var flagconsole = location.href.indexOf('console=1') >= 0;var _clog = _clog || console.log;if (!flagconsole) {console.info = console.debug = function () {};console.log = function (msg) {var wlist = ['snb://__bridge_loaded__'];wlist.indexOf(msg) > -1 && _clog(msg);};}/*! * @version 0.1.45 * @date 2023-12-21 * @generated web */!function(t){function e(e){for(var n,i,o=e[0],a=e[1],s=0,l=[];s0},getVal:function(t,e){return!!t[e]&&t[e]},getFullPos:function(t){!t&&(t=1);return t.toString().length<3&&(t=("000"+t).substr(-3,3)),t},getParamsStr:function(t){return encodeURIComponent(JSON.stringify(t))},bindEventForApp:function(t,e,n,i){document.addEventListener?t.addEventListener(e,n,!i):t.attachEvent(e,n)},stopDefault:function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1},getFullNumber:function(t){!t&&(t=1);return t.toString().length<3&&(t=("000"+t).substr(-3,3)),t},isWeiboJsbridgeWay:function(){for(var t=navigator.userAgent.match(/weibo__([^_]+)__android/)&&navigator.userAgent.match(/weibo__([^_]+)__android/)[1],e=(t&&t.length>1?t:"0.0.0").split("."),n=0,i=["9","6","1"],r=e.length,o=0;oNumber(i[o])){n=1;break}if(Number(e[o])").concat(r):((i=document.createElement("div")).id="iLogZone",i.setAttribute("style","position: fixed;z-index:99;left:0;top:0;width:100%;height:150px;background-color: rgba(0,0,0,0.7);padding: 20px;color:#FFF;overflow: scroll;font-size: 14px;"),i.innerHTML=r,document.body.appendChild(i))}},pageVisibility:function(){var t,e=function(t,e){return""!==t?t+e.slice(0,1).toUpperCase()+e.slice(1):e},n=function(){var n=!1;return"number"===typeof window.screenX&&["webkit","moz","ms","o",""].forEach((function(i){0==n&&void 0!=document[e(i,"hidden")]&&(t=i,n=!0)})),n}(),i=function(){if(n)return document[e(t,"hidden")]},r=function(){if(n)return document[e(t,"visibilityState")]};return{hidden:i(),visibilityState:r(),isSupport:n,visibilitychange:function(e,o){if(!1,n&&"function"===typeof e)return document.addEventListener(t+"visibilitychange",function(t){this.hidden=i(),this.visibilityState=r(),e.call(this,t)}.bind(this),false)}}}(),_UA:navigator.userAgent.toLocaleLowerCase(),OpenTypeIdentify:{noIntent:/aliapp|360 aphone|redmi note|weibo|windvane|ucbrowser|baidubrowser|huaweiknt-al20|mqqbrowser|h60-l01|vivo|huaweitag-al00|mxb48t|xiaomibrowser|oppobrowser|sm-g9350|sm-g9550|sm-g9500|sm-g6100|sm-c7000|huawei|xiaomi|miuibrowser|sm-c7010/,hasIntent:/samsung|e2363/,speciallIntent:/e2363/,isOriginalChrome:/chrome\/[\d.]+ mobile safari\/[\d.]+/i,notIntentCallbackUrl:/xiaomi|oppobrowser/,forbidden:/ucbrowser|mzbrowser|baidu/,isHuaweiP30:/huaweiele|huaweivog/,isHuawei912315:/huaweibrowser\/9\.1\.2\.315|huaweibrowser\/9\.1\.1\.303/,isQQBrowswer95:/mqqbrowser\/9\.5/},RegExpTest:function(t,e){return t.test(e)},_system:function(){var t=this._UA;return t.match(/iphone|ipod/gi)?"ios":t.match(/android/gi)?"android":"other"},isWeibo:function(){var t=this.UAIdentify;return!!this.isInclude(this._UA,t.weibo)},canOpenByIntent:function(){var t=this,e=t._UA,n=t.OpenTypeIdentify,i=t._system();t.RegExpTest(n.hasIntent,e),t.RegExpTest(n.noIntent,e),t.RegExpTest(n.speciallIntent,e);return t.RegExpTest(n.isOriginalChrome,e)&&"android"==i&&!t.isWeibo()}},Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"pageVisibility",function(){var t,e=function(t,e){return""!==t?t+e.slice(0,1).toUpperCase()+e.slice(1):e},n=function(){var n=!1;return"number"===typeof window.screenX&&["webkit","moz","ms","o",""].forEach((function(i){0==n&&void 0!=document[e(i,"hidden")]&&(t=i,n=!0)})),n}(),i=function(){if(n)return document[e(t,"hidden")]},r=function(){if(n)return document[e(t,"visibilityState")]};return{hidden:i(),visibilityState:r(),isSupport:n,visibilitychange:function(e,o){if(!1,n&&"function"===typeof e)return document.addEventListener(t+"visibilitychange",function(t){this.hidden=i(),this.visibilityState=r(),e.call(this,t)}.bind(this),false)}}}()),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"iAssign",(function(t,e){for(var n in e)t[n]=e[n];return t})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"ajaxGet",(function(t){var e=t.url,n=(t.type,t.crossOrigin,t.contentType,t.setHeader),i=t.succCb,r=t.failCb,o=new XMLHttpRequest;if(o.open("GET",e,!0),n)for(var a in n)o.setRequestHeader(a,n[a]);o.send(null),o.onreadystatechange=function(){4===o.readyState&&(200===o.status?i&&i(o.responseText):r&&r("load error,stauts code:"+o.status))}})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"getValFromRoutUri",(function getValFromRoutUri(_ref3){var _ref3$routeUri=_ref3.routeUri,routeUri=void 0===_ref3$routeUri?"":_ref3$routeUri,testReg=_ref3.testReg,_ref3$key=_ref3.key,key=void 0===_ref3$key?"newsId":_ref3$key;if(!eval(testReg)instanceof RegExp||!testReg.test(routeUri))return"";var routeUriSearch=routeUri&&routeUri.replace(testReg,"&");return this.getQueryString(routeUriSearch,key)})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"getNewRouteUriJoinFlag",(function(t){if(!t)return"";var e=t.split("?").length>1,n=-1!=t.indexOf("?");return e&&(n?"&":"")||"?"})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"checkNewRoute",(function(t){return!!t&&(t.match(/(^sinanews|(\s*)routeUri\=sinanews)\:\/\/sina\.cn[\s\S]*\.(sv|pg)/gi)||[]).length>0})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"getUrlJoinFlag",(function(t,e){return t&&e?t.indexOf("?")>0?"&":"?":""})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"getExistVal",(function(t){var e=t.box,n=t.key,i=t.defaultKey,r=e.hasOwnProperty(n)&&n||i;return e[r]})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"getForceNewRoutePower",(function(t){var e="undefined"!==typeof SM&&SM||{},n=t.forceNewRoute||0,i=e&&e.data&&e.data.callUpConfig&&e.data.callUpConfig.forceNewRoute||0;return~~n>0||~~i>0})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"clearBox",(function(t){if(t){var e=document.querySelector(t);e&&e.remove()}})),Object(_Users_dongyukuan_Documents_work_sina_aio_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.a)(_utils,"getBackUrl",(function(t){var e=window.isNphBackUrl;if(t||~~e)try{var n=t?JSON.parse(t):{needBackConfig:e.toString()};return this.encode(JSON.stringify(n),2)||""}catch(i){console.log("backurl error!!!")}return""})),_utils);function ObjAssign(t,e){for(var n in e)t[n]=e[n];return t}__webpack_exports__.a=ObjAssign(utils,_UA_js__WEBPACK_IMPORTED_MODULE_1__.a)},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(71);function r(t,e){for(var n=0;n18);a&&(n.weChat=!0);e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r),e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(11);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function h(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new i.a(20),f=null;function g(t,e){f&&p(f,e),f=d.put(t,f||e.slice())}function v(t,e){if(t){e=e||[];var n=d.get(t);if(n)return p(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in r)return p(e,r[i]),g(t,e),e;var o,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(h(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(i.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1):7===a||9===a?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(h(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(i.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1):void 0;var c=i.indexOf("("),u=i.indexOf(")");if(-1!==c&&u+1===a){var f=i.substr(0,c),v=i.substr(c+1,u-(c+1)).split(","),y=1;switch(f){case"rgba":if(4!==v.length)return 3===v.length?h(e,+v[0],+v[1],+v[2],1):h(e,0,0,0,1);y=l(v.pop());case"rgb":return v.length>=3?(h(e,s(v[0]),s(v[1]),s(v[2]),3===v.length?y:l(v[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==v.length?void h(e,0,0,0,1):(v[3]=l(v[3]),m(v,e),g(t,e),e);case"hsl":return 3!==v.length?void h(e,0,0,0,1):(m(v,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return h(e=e||[],o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return S(n,4===n.length?"rgba":"rgb")}}function _(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],c=e[s],h=i-r;return n[0]=o(u(l[0],c[0],h)),n[1]=o(u(l[1],c[1],h)),n[2]=o(u(l[2],c[2],h)),n[3]=a(u(l[3],c[3],h)),n}}function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=v(e[r]),c=v(e[s]),h=i-r,p=S([o(u(l[0],c[0],h)),o(u(l[1],c[1],h)),o(u(l[2],c[2],h)),a(u(l[3],c[3],h))],"rgba");return n?{color:p,leftIndex:r,rightIndex:s,value:i}:p}}function w(t,e,n,i){var r,o=v(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,c=(s+a)/2;if(0===l)e=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+u-p:o===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,c];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=l(n)),null!=i&&(o[2]=l(i)),S(m(o),"rgba")}function x(t,e){var n=v(t);if(n&&null!=e)return n[3]=a(e),S(n,"rgba")}function S(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function k(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}},function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"q",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return v})),n.d(e,"l",(function(){return m})),n.d(e,"n",(function(){return y})),n.d(e,"m",(function(){return _})),n.d(e,"o",(function(){return b})),n.d(e,"k",(function(){return w})),n.d(e,"d",(function(){return x})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return k})),n.d(e,"c",(function(){return T}));var i=n(0),r=n(7),o=n(5),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(r.g)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function c(t){return t-l}function u(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function p(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+h(t[4])+","+h(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function m(t){return t&&!!t.image}function y(t){return m(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function b(t){return"radial"===t.type}function w(t){return t&&("linear"===t.type||"radial"===t.type)}function x(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function k(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.a,o=Object(i.P)(t.scaleX,1),s=Object(i.P)(t.scaleY,1),l=t.skewX||0,c=t.skewY||0,u=[];return(e||n)&&u.push("translate("+e+"px,"+n+"px)"),r&&u.push("rotate("+r+")"),1===o&&1===s||u.push("scale("+o+","+s+")"),(l||c)&&u.push("skew("+a(l*i.a)+"deg, "+a(c*i.a)+"deg)"),u.join(" ")}var T=o.a.hasGlobalWindow&&Object(i.w)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!==typeof t?function(e){return t.from(e).toString("base64")}:function(t){return null}}).call(this,n(283).Buffer)},function(t,e){t.exports=window.__SINA_COMMON_PKG__.vueClassComponent},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return l}));var i=12,r="sans-serif",o=i+"px "+r;var a=function(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n=0)h=u*n.length;else for(var p=0;p-1?this.cache[r]:null}},{key:"getEmit",value:function(t,e,n,i){var r=this;return function(o,a,s){r.emit(t,e,n,o,a,s,i)}}}]),t}();Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r0&&void 0!==arguments[0]?arguments[0]:{};Object(o.a)(this,t),this.jsb=e.jsb,this.version=e.version||"v1",this.id_prefix=e.id_prefix||"",this.gkurl=e.gkurl||"https://gk.sina.cn/".concat(this.version,"/gkmatch"),this.qeurl=e.qeurl||"https://gk.sina.cn/".concat(this.version,"/qematch"),this.closeCache=e.closeCache}return Object(a.a)(t,[{key:"getQueueKey",value:function(t){return"".concat("GONGBU_","_").concat(t,"Queue")}},{key:"addRequest",value:function(t,e){var n=this.getQueueKey(t);window[n]||(window[n]=[]),window[n].push(Object(r.a)(Object(r.a)({},e),{},{prefix:this.id_prefix}))}},{key:"clearQueue",value:function(t){var e=this.getQueueKey(t);window[e]=[]}},{key:"loadGK",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};this.loadGkOrQe(t,e,"gk",n)}},{key:"getQueue",value:function(t){var e=this.getQueueKey(t);return window[e]}},{key:"preRequest",value:function(t){var e=this,n="GONGBU_".concat(t,"RequestTimer");window[n]||(window[n]=setTimeout((function(){window[n]=null,e.startRequest(t)}),0))}},{key:"startRequest",value:function(t){var e=[],n={},r=this.getQueue(t);r.forEach((function(t){var r,o=t.ids.map((function(e){return"".concat(t.prefix).concat(e)}));(r=e).push.apply(r,Object(i.a)(o)),Object.assign(n,t.data)})),e=function(t){for(var e=t.slice(),n=0;n2&&void 0!==arguments[2]?arguments[2]:function(){};this.loadGkOrQe(t,e,"qe",n)}},{key:"loadGkOrQe",value:function(t,e,n,i){this.addRequest(n,{ids:t,data:e,cb:i}),this.preRequest(n)}},{key:"loadGkObj",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};this.loadGkOrQe(t,e,"gk",(function(t,e,i){n(t,i)}))}},{key:"loadQeObj",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};this.loadGkOrQe(t,e,"qe",(function(t,e,i){n(t,i)}))}},{key:"loadQEbyNative",value:function(t,e,n,i,r){var o=this;if(e=e.map((function(t){return"".concat(o.id_prefix).concat(t)})),this.closeCache||c.on(r,e,n,i,!0)){var a=e.join(",");JSON.parse(JSON.stringify(n)).id=a;var s=this.closeCache?i:c.getEmit(r,e,n,!0);this.jsb&&this.jsb.getSystemInfo().then((function(e){var i=e.deviceId;o.jsb.fetch({url:t,method:"GET",data:Object.assign({},n||{},{deviceId:i}),success:function(t){s(null,t)},error:function(t){s(t)}})})).catch(s)}}},{key:"loadGKRule",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};this.loadGK(t,e,(function(t,e){if(t)return i(t);n.loadRuleByRss(e,i)}))}},{key:"loadQERule",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};this.loadQE(t,e,(function(t,e){if(t)return i(t);n.loadRuleByRss(e,i)}))}},{key:"loadRuleByRss",value:function(t,e){var n=this,i=t.length,r=0;t.forEach((function(o){var a=o.conf||o.rs.conf;n.loadScript(a.url,(function(n){++r===i&&e(n,t)}))}))}},{key:"fetch",value:function(t,e,n,i){var r=this;if(e=e+"?id="+t.join(","),this.jsb)this.jsb.getSystemInfo().then((function(t){var o=t.deviceId;r.jsb.fetch({url:e,method:"POST",referer:"http://sina.cn",data:Object.assign({},n||{},{deviceId:o}),success:function(t){i(null,t)},error:function(t){i(t)}})})).catch(i);else{var o=new XMLHttpRequest;o.open("POST",e,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){var t,e;try{t=JSON.parse(o.responseText)}catch(n){e=n}e?i(e):i(null,t)}else i(new Error(o.responseText||"status is ".concat(o.status)))},o.onerror=i,o.timeout=i,n=Object.keys(n).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])})).join("&"),o.send(n)}}},{key:"loadScript",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(!t)return e(null);var n=document.createElement("script");n.onload=function(){n.parentNode.removeChild(n),e(null)},n.onerror=function(t){n.parentNode.removeChild(n),e(t)},n.src=t,document.body.appendChild(n)}},{key:"setUrl",value:function(t){t.gkurl&&(this.gkurl=t.gkurl),t.qeurl&&(this.qeurl=t.qeurl)}},{key:"getCookie",value:function(t){return Object(s.getCookie)(t)}}]),t}();u.defaultData=Object(s.collectData)()},function(t,e){t.exports=window.__SINA_COMMON_PKG__.scpDecorator},function(t,e,n){"use strict";e.a={intent:"intent",schemeLayer:"schemeLayer",schemeAPK:"schemeAPK",schemeH5:"schemeH5",schemeNoLayer:"schemeNoLayer",universal:"universal",yyb:"yyb",other:"other"}},function(t,e,n){var i=n(113),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},function(t,e){t.exports=window.__SINA_COMMON_PKG__.Vue},function(t,e,n){var i=n(74),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}n.r(e);var r=n(4),o=n.n(r),a=n(51).default;a.init(window.sudaMapConfig&&window.sudaMapConfig.pageId||2949,100);var s=function(t){var e=function(t){var e=function(t){if(t){for(var e=t.split(","),n={},i=0;i=n?null:t}function u(t){var e=t.srcElement||t.target;if(null==e&&e==document)return!1;var n="",i="";if("A"==e.tagName)"txt",e.getAttribute("target"),i=e;else if("IMG"==e.tagName){"img",n=e.alt;var r=c(e,"A",8);r&&(r.getAttribute("target"),i=r)}else{"txt";var o=c(e,"A",8);o&&(o.getAttribute("target"),i=o)}var a="",l=e.tagName,u="0",h=!1;try{for(var p=0;p<10&&e!=document;p++){var d=e.getAttribute("data-sudaclick");if(d){var f=e.getAttribute("data-sudatagname");if(f)h=!0,f.split(",").forEach((function(t){t.toUpperCase()==l&&(h=!1)}));a=d;for(var g=e.getElementsByTagName("A"),v=0;v30&&(n=n.substr(0,30));(new Date).getTime();s({data:a,index:u})}}function h(){p(window)}function p(t){for(var e=t.frames,n=0;n=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.a=o},function(t,e,n){"use strict";var i=n(42);t.exports=function(t){if(!i(t))throw new TypeError("Cannot use null or undefined");return t}},function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,"a",(function(){return i}))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(27),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not an object")}},function(t,e,n){"use strict";t.exports=n(250)()?n(60).Symbol:n(253)},function(t,e,n){"use strict";t.exports=n(227)()?Map:n(228)},function(t,e,n){"use strict";var i=n(1);var r=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e},o=null;function a(t){t&&(function(t){o&&function(){o&&document.body.removeChild(o);o=null}();(o=document.createElement("textarea")).style.fontSize="12px",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style.left="-9999px";var e=window.pageYOffset||document.documentElement.scrollTop;o.style.top="".concat(e,"px"),o.setAttribute("readonly",""),o.value=t,document.body.appendChild(o),r(o)}(t),function(){try{document.execCommand("Copy","false",null)}catch(t){!1}}())}window.copyHackInfo=a;var s=a,l=window,c=i.a.isWeibo(),u=i.a._system(),h="undefined"!==typeof isNphCopyPower?parseInt(isNphCopyPower||0):1;function p(t){var e=t.config;if(!t.url.match(/sinanews|sapi\.sina\.cn|sinawap/gi))return"";var n=Number(e.newRoute)?"&":"::";return"".concat(n,"ustat=").concat(encodeURIComponent(i.a.getCookie("ustat"))).concat(n,"opid=").concat((new Date).getTime()).concat(Math.floor(1e7*Math.random()))}var d=function(t){var e=t.config,n=t.url,r=(p({config:e,url:n}),!1);if(1===h||0!==h&&"ios"==u||e.onlyCopy){var o=p({config:e,url:n}),a=((e.androidNativeUrl||n)+o).replace("sinawap*","sinawap_clip*");c?(i.a.showLog({title:"copyHack wbInstallInfo",txt:l.wbInstallInfo}),(1!=l.wbInstallInfo&&!~~e.onlyCopy||~~e.onlyCopy)&&s(a)):(i.a.showLog({title:"copyHack wbInstallInfo",txt:l.wbInstallInfo}),s(a)),r=!0}return i.a.showLog({title:"\u4f7f\u7528\u526a\u8d34\u677f",txt:r}),n};e.a={iCopyHack:d,newLocation:function(t){var e=t.config,n=t.url;d({config:e,url:n}),setTimeout((function(){~~e.onlyCopy||(l.location.href=n||"javascript:;")}),50)}}},function(t,e,n){var i=n(74),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,n){"use strict";t.exports=function(t){if("function"!==typeof t)throw new TypeError(t+" is not a function");return t}},function(t,e,n){var i=n(171),r=n(75);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(16),r=n(28),o=n(121),a=n(77);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){"use strict";var i=n(229)();t.exports=function(t){return t!==i&&null!==t}},function(t,e,n){"use strict";t.exports=function(t){return undefined!==t&&null!==t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(49);function r(t,e){if(t){if("string"===typeof t)return Object(i.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i.a)(t,e):void 0}}},function(t,e,n){var i=n(18),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e){t.exports={}},function(t,e,n){"use strict";e.a={SamsungBrowser:"SamsungBrowser",Chrome:"Chrome",QQBrowser:"QQBrowser",HuaweiBrowser:"HuaweiBrowser",XiaoMi:"XiaoMi",OppoBrowser:"OppoBrowser",UC:"UC",QQ:"QQ",Wechat:"Wechat",VivoBrowser:"VivoBrowser",iPad:"iPad",Quark:"Quark"}},function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n"+t+""},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}m="undefined"!=typeof document?document.domain&&i?v(i):function(){var t,e=c("iframe"),n="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F}():v(i);for(var t=a.length;t--;)delete m[h][a[t]];return m()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f[h]=r(t),n=new f,f[h]=null,n[d]=t):n=m(),void 0===e?n:o.f(n,e)}},function(t,e,n){var i=n(24),r=n(16);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},function(t,e,n){var i=n(16),r=n(82),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a function")}},function(t,e){t.exports={}},function(t,e,n){var i,r,o,a=n(183),s=n(24),l=n(27),c=n(87),u=n(26),h=n(76),p=n(86),d=n(56),f="Object already initialized",g=s.TypeError,v=s.WeakMap;if(a||h.state){var m=h.state||(h.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,i=function(t,e){if(m.has(t))throw g(f);return e.facade=t,m.set(t,e),e},r=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var y=p("state");d[y]=!0,i=function(t,e){if(u(t,y))throw g(f);return e.facade=t,c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";t.exports=n(137)()?Object.setPrototypeOf:n(138)},function(t,e,n){"use strict";t.exports=n(251)()?globalThis:n(252)},function(t,e,n){"use strict";var i=Object.prototype.toString,r=i.call(function(){return arguments}());t.exports=function(t){return i.call(t)===r}},function(t,e,n){"use strict";var i=Object.prototype.toString,r=i.call("");t.exports=function(t){return"string"===typeof t||t&&"object"===typeof t&&(t instanceof String||i.call(t)===r)||!1}},function(t,e,n){(function(e){var n="Expected a function",i=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,p=u||h||Function("return this")(),d=Object.prototype.toString,f=Math.max,g=Math.min,v=function(){return p.Date.now()};function m(t,e,i){var r,o,a,s,l,c,u=0,h=!1,p=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function m(e){var n=r,i=o;return r=o=void 0,u=e,s=t.apply(i,n)}function b(t){var n=t-c;return void 0===c||n>=e||n<0||p&&t-u>=a}function w(){var t=v();if(b(t))return x(t);l=setTimeout(w,function(t){var n=e-(t-c);return p?g(n,a-(t-u)):n}(t))}function x(t){return l=void 0,d&&r?m(t):(r=o=void 0,s)}function S(){var t=v(),n=b(t);if(r=arguments,o=this,c=t,n){if(void 0===l)return function(t){return u=t,l=setTimeout(w,e),h?m(t):s}(c);if(p)return l=setTimeout(w,e),m(c)}return void 0===l&&(l=setTimeout(w,e)),s}return e=_(e)||0,y(i)&&(h=!!i.leading,a=(p="maxWait"in i)?f(_(i.maxWait)||0,e):a,d="trailing"in i?!!i.trailing:d),S.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=c=o=l=void 0},S.flush=function(){return void 0===l?s:x(v())},S}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==r}(t))return i;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?i:+t}t.exports=function(t,e,i){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError(n);return y(i)&&(r="leading"in i?!!i.leading:r,o="trailing"in i?!!i.trailing:o),m(t,e,{leading:r,maxWait:e,trailing:o})}}).call(this,n(33))},function(t,e){var n;n="undefined"!==typeof self?self:this,t.exports=function(t){var e=t||{},n="undefined"!=typeof t.navigator?t.navigator:{},i=function(t,e){var i=n.mimeTypes;for(var r in i)if(i[r][t]==e)return!0;return!1};return function(t){var r=t||n.userAgent||{},o=this,a={Trident:r.indexOf("Trident")>-1||r.indexOf("NET CLR")>-1,Presto:r.indexOf("Presto")>-1,WebKit:r.indexOf("AppleWebKit")>-1,Gecko:r.indexOf("Gecko/")>-1,Safari:r.indexOf("Safari")>-1,Chrome:r.indexOf("Chrome")>-1||r.indexOf("CriOS")>-1,IE:r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1,Edge:r.indexOf("Edge")>-1,Firefox:r.indexOf("Firefox")>-1||r.indexOf("FxiOS")>-1,"Firefox Focus":r.indexOf("Focus")>-1,Chromium:r.indexOf("Chromium")>-1,Opera:r.indexOf("Opera")>-1||r.indexOf("OPR")>-1,Vivaldi:r.indexOf("Vivaldi")>-1,Yandex:r.indexOf("YaBrowser")>-1,Arora:r.indexOf("Arora")>-1,Lunascape:r.indexOf("Lunascape")>-1,QupZilla:r.indexOf("QupZilla")>-1,"Coc Coc":r.indexOf("coc_coc_browser")>-1,Kindle:r.indexOf("Kindle")>-1||r.indexOf("Silk/")>-1,Iceweasel:r.indexOf("Iceweasel")>-1,Konqueror:r.indexOf("Konqueror")>-1,Iceape:r.indexOf("Iceape")>-1,SeaMonkey:r.indexOf("SeaMonkey")>-1,Epiphany:r.indexOf("Epiphany")>-1,360:r.indexOf("QihooBrowser")>-1||r.indexOf("QHBrowser")>-1,"360EE":r.indexOf("360EE")>-1,"360SE":r.indexOf("360SE")>-1,UC:r.indexOf("UC")>-1||r.indexOf(" UBrowser")>-1,QQBrowser:r.indexOf("QQBrowser")>-1,huaweiBrowser:r.indexOf("huaweiBrowser")>-1,QQ:r.indexOf("QQ/")>-1,Baidu:r.indexOf("Baidu")>-1||r.indexOf("BIDUBrowser")>-1,Maxthon:r.indexOf("Maxthon")>-1,Sogou:r.indexOf("MetaSr")>-1||r.indexOf("Sogou")>-1,LBBROWSER:r.indexOf("LBBROWSER")>-1,"2345Explorer":r.indexOf("2345Explorer")>-1,TheWorld:r.indexOf("TheWorld")>-1,XiaoMi:r.indexOf("MiuiBrowser")>-1,Quark:r.indexOf("Quark")>-1,Qiyu:r.indexOf("Qiyu")>-1,Wechat:r.indexOf("MicroMessenger")>-1,Taobao:r.indexOf("AliApp(TB")>-1,Alipay:r.indexOf("AliApp(AP")>-1,Weibo:r.indexOf("Weibo")>-1,Douban:r.indexOf("com.douban.frodo")>-1,Suning:r.indexOf("SNEBUY-APP")>-1,iQiYi:r.indexOf("IqiyiApp")>-1,SamsungBrowser:r.indexOf("SamsungBrowser")>-1,VivoBrowser:r.indexOf("VivoBrowser")>-1,OppoBrowser:r.indexOf("OppoBrowser")>-1,HuaweiBrowser:r.indexOf("HuaweiBrowser")>-1,MZBrowser:r.indexOf("MZBrowser")>-1,LeBrowser:r.indexOf("LeBrowser")>-1,LieBaoFast:r.indexOf("LieBaoFast")>-1,Windows:r.indexOf("Windows")>-1,Linux:r.indexOf("Linux")>-1||r.indexOf("X11")>-1,"Mac OS":r.indexOf("Macintosh")>-1,Android:r.indexOf("Android")>-1||r.indexOf("Adr")>-1,Ubuntu:r.indexOf("Ubuntu")>-1,FreeBSD:r.indexOf("FreeBSD")>-1,Debian:r.indexOf("Debian")>-1,"Windows Phone":r.indexOf("IEMobile")>-1||r.indexOf("Windows Phone")>-1,BlackBerry:r.indexOf("BlackBerry")>-1||r.indexOf("RIM")>-1,MeeGo:r.indexOf("MeeGo")>-1,Symbian:r.indexOf("Symbian")>-1,iPad:r.indexOf("iPad; CPU OS")>-1,iOS:r.indexOf("like Mac OS X")>-1&&r.indexOf("iPad; CPU OS")<0,"Chrome OS":r.indexOf("CrOS")>-1,WebOS:r.indexOf("hpwOS")>-1,Mobile:r.indexOf("Mobi")>-1||r.indexOf("iPh")>-1||r.indexOf("Android")>0||r.indexOf("480")>-1,Tablet:(r.indexOf("Tablet")>-1||r.indexOf("Pad")>-1||r.indexOf("Nexus 7")>-1)&&r.indexOf("iPad; CPU OS")<0,sinanews:r.match(/sinanews/gi),sinanewslite:r.match(/sinanewslite/gi)},s=!1;if(e.chrome){var l=r.replace(/^.*Chrome\/([\d]+).*$/,"$1");l>36&&e.showModalDialog?s=!0:l>45&&(s=i("type","application/vnd.chromium.remoting-viewer"))}if(a.Mobile?a.Mobile=!(r.indexOf("iPad")>-1):s&&(i("type","application/gameplugin")||n&&n.connection&&"undefined"==typeof n.connection.saveData?a["360SE"]=!0:a["360EE"]=!0),a.IE||a.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 102:a["360EE"]=!0;break;case 75:case 74:case 105:case 104:a["360SE"]=!0}a.Baidu&&a.Opera&&(a.Baidu=!1);var c={engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","sinanews","sinanewslite","Edge","IE","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat","Taobao","Alipay","Weibo","Douban","Suning","iQiYi","SamsungBrowser","VivoBrowser","OppoBrowser","HuaweiBrowser","MZBrowser","LeBrowser","LieBaoFast"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iPad","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]};for(var u in o.device="PC",o.language=function(){var t=(n.browserLanguage||n.language).split("-");return t[1]&&(t[1]=t[1].toUpperCase()),t.join("_")}(),c)for(var h=0;h27||"Opera"==o.browser&&parseInt(o.version)>12||"Yandex"==o.browser)&&(o.engine="Blink")}}(n)},function(t,e,n){"use strict";e.a={searchRank:"searchRank",search:"search",event:"event",h5:"h5",doc:"doc",ch:"ch",hybrid:"hybrid",tab:"tab",newHybrid:"newHybrid",calendar:"calendar",newRoute:"newRoute"}},function(t,e,n){"use strict";var i=n(1),r=n(67),o=n(70),a=window.SM&&window.SM.data&&window.SM.data.callUpConfig&&window.SM.data.callUpConfig.shiftKnob||0;!!document.location.href.match(/shiftKnob\=1/gi)&&(a=1);var s="",l=500,c=1500,u=2e3,h=800,p={},d={},f={},g={},v="",m="",y=i.a.isWeixin(),_=i.a.isIOS9(),b=!y&&i.a.isQQ(),w=i.a.isSinaNews(),x=i.a.isWeibo(),S=i.a.isUC(),k=function(t,e){var n=e;return i.a.checkNewRoute(e)?t.ios9Https&&t.ios9Https+"?routeUri="+encodeURIComponent(n):t.ios9Https&&t.ios9Https+"?"+(g.ios9Params?g.ios9Params:g.schemeParams)||""},T=function(t){var e=t.config,n=void 0===e?{}:e,r=t.nativeUrl,a=void 0===r?s:r;try{if(!a.match(/sinanews\:\/\/sina\.cn/))return a;var l,c={dataid:n.paramsK&&n.paramsK.dataid||"",routeuri:n.routeuri||n.androidNativeUrl||"",targetEl:n.targetEl||""},u=o.a.addDefaultBase(c),h=[];u.forEach((function(t){var e=t.split("=")[0];a.includes(e)||h.push(t)})),l=h.join("&");var p=i.a.getUrlJoinFlag(a,l);return"".concat(a).concat(l&&p).concat(l)}catch(d){return a}};e.a={set:function(t){var e=t.typeInfo,n=t._type,o=t._config;f=o,g=e,v=i.a.isExist(f,"golink"),m=i.a.isExist(f,"kid"),d=i.a.getExistVal({box:r.a,key:f.app||"news",defaultkey:"news"});var a=g.schemeParams.match(/sinanews\:\/\//gi),s="".concat(a?"":d.head+"://").concat(g.schemeParams);p={golink:"",iosNativeUrl:s,androidNativeUrl:s,ios9Url:k(d,s),weixn:d.wxUrl};var l=g.ios9Params?g.ios9Params:g.schemeParams;return v?(p.golink=f.golink,p.weixn=f.golink,p.ios9Url&&(p.ios9Url=p.ios9Url+"&golinkUrl="+encodeURIComponent(p.golink)+"&"),p.ios9Weixin=p.ios9Url):(m&&(p.golink="https://so.sina.cn/palmnews/?id="+f.kid),p.ios9Url&&(p.ios9Weixin=d.ios9Https+"?golinkUrl="+encodeURIComponent(p.weixn)+"&"+("newRoute"==n?encodeURIComponent(l):l))),p.ios9Url&&(p.ios9Url=function(t){var e=t.downloadswitch,n=t.ios9Params,i=t._type;return~~e<1?"".concat(d.ios9Https,"?golinkUrl=").concat(encodeURIComponent(p.golink),"&downloadswitch=0&").concat("newRoute"==i?encodeURIComponent(n):n):""}({downloadswitch:f.downloadswitch,ios9Params:l,_type:n})||p.ios9Url),{iosNativeUrl:p.iosNativeUrl,androidNativeUrl:p.androidNativeUrl,iosInstallUrl:p.golink,androidInstallUrl:p.golink,isGolink:v,openByWeixin:p.weixn,ios9Url:p.ios9Url,ios9Weixin:p.ios9Weixin,downloadswitch:f.downloadswitch||"1",weiboslience:f.weiboslience,paramsK:f,calluptype:f.calluptype,position:f.position,targetEl:f.targetEl,onlyCopy:f.onlycopy,tryCallDirectly:f.trycalldirectly,newRoute:f.newroute||i.a.checkNewRoute(p.androidNativeUrl)||0,comloginfokey:f.comloginfokey||"",comloginfo:f.comloginfo||""}},reset:function(t){var e="undefined"!=typeof t&&t||{};for(var n in p.androidNativeUrl=T({config:e,nativeUrl:e.androidNativeUrl}),p.iosNativeUrl=T({config:e,nativeUrl:e.iosNativeUrl}),p.ios9Url=function(t){var e=t.config,n=void 0===e?{}:e,r=t.nativeUrl,o=void 0===r?s:r;try{if(!o.match(/^http/gi))return o;var a=i.a.getQueryVariable(o),l=o.split("?")[0],c=0;if(!a.routeUri)return o;for(var u in a.routeUri=T({config:n,nativeUrl:decodeURIComponent(a.routeUri)}),a)l+="".concat(c>0?"&":"?").concat(u,"=").concat(encodeURIComponent(a[u])),c++;return l}catch(h){return o}}({config:e,nativeUrl:e.ios9Url}),p.androidInstallUrl=e.androidInstallUrl||s,p.iosInstallUrl=e.iosInstallUrl||s,p.installUrl=e.androidInstallUrl||s,p.onlyCopy=parseInt(e.onlyCopy||"0")>0,p.platform=i.a._system(),p.openByWeixin=e.openByWeixin||s,b=!(!b||!e.openByWeixin)||s,p.isNotScheme=!!e.isNotScheme,p.ios9Weixin=e.ios9Weixin||e.ios9Url,p.isGolink=e.isGolink||!1,p.downloadswitch=e.downloadswitch&&!!parseInt(e.downloadswitch),p.tryCallDirectly=e.tryCallDirectly||"0",p.newRoute=e.newRoute||i.a.checkNewRoute(e.androidNativeUrl)||0,p.targetEl=e.targetEl||null,p._position=i.a.getFullNumber(e.position),p.position=!!e.calluptype&&(e.calluptype||"")+p._position||"001",p.comloginfokey=e.comloginfokey||"",p.comloginfo=e.comloginfo||"",t)p[n]=p[n]||t[n];"ios"==p.platform?("newslite"===(p.targetEl&&p.targetEl.getAttribute("data-app")||"")&&a&&(window.iNPHConfig.useInstallUrl=1),p.nativeUrl=p.iosNativeUrl,p.openTime=e.iosOpenTime||h):(p.nativeUrl=p.androidNativeUrl,p.openTime=e.androidOpenTime||(x?l:S?c:u));return p.ios9Url=function(t){return w&&_?t.nativeUrl:t.ios9Url}(p),p.nextIsDownload=p.installUrl&&~~!!p.installUrl.match(/sinaweibo|so\.sina\.cn|\.apk/gi),p}}},function(t,e,n){"use strict";e.a={newslite:{name:"newslite",head:"sinanewslite",ios9Https:"https://lite.sina.cn/lite/Callup.php"},news:{name:"news",head:"sinanews",ios9Https:"https://sapi.sina.cn/Callup.php",wxUrl:"https://a.app.qq.com/o/simple.jsp?pkgname=com.sina.news&ckey=CK1346428841879"},sports:{name:"sports",head:"sinasports",ios9Https:"",downloadUrl:window.prtl.prefix+"sports.sina.cn/app_download.d.html?id=1",wxUrl:window.prtl.prefix+"sports.sina.cn/app_download.d.html?id=1"}}},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(33))},function(t,e,n){"use strict";(function(t){var i=n(21),r=n(162),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?i.a.Buffer:void 0,l=(s?s.isBuffer:void 0)||r.a;e.a=l}).call(this,n(98)(t))},function(t,e,n){"use strict";var i=n(1),r={iDocConfig:{},artContentSelector:"",artContentHeight:"",maxPercent:0,getElementPos:function(t){var e={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};if(!t)return e;var n=document.querySelector(t);return n&&n.getBoundingClientRect()||e},getPaddingTop:function(){var t=r,e=t.getElementPos(t.artContentSelector),n=t.getElementPos("body");return(e.top-n.top).toFixed(2)},getConentHeightFromPageSet:function(){return(~~r.artContentHeight||0).toFixed(2)},getConentHeightFromSelector:function(){var t=r,e=t.getElementPos(t.artContentSelector);t.getElementPos("body");return e.height.toFixed(2)},getMaxContentHeight:function(){var t=r,e=t.getConentHeightFromSelector(),n=t.getConentHeightFromPageSet(),o=Math.max(e,n).toFixed(2);return t.maxPercent=e>0?(e/o).toFixed(2):1,i.a.showLog({title:"maxPercent",txt:"".concat(t.maxPercent)}),o},getCurrentTop:function(){return window.scrollY},getFlexHeight:function(){return parseFloat(r.getPaddingTop()||0)+window.screen.height/2},getFinalPercent:function(){var t=r,e=window.screen.height,n=t.getCurrentTop()||0,o=t.getMaxContentHeight()||-1,a=t.getFlexHeight();a=n>=2*e?a:0,i.a.showLog({title:"getFlexHeight/currentTop/screenHeight",txt:"".concat(a,"/").concat(n,"/").concat(e)});var s=((n-a)/o).toFixed(3);return Math.min(Math.max(s,0),t.maxPercent)},compareTargetInContext:function(t){if(!t)return!1;var e=r,n=t.getBoundingClientRect(),i=e.getElementPos(e.artContentSelector),o=e.artContentHeight;return e.artContentSelector&&n.top<=i.bottom||!e.artContentSelector&&window.scrollY+n.top<=o},init:function(t,e,n){try{var o=r;o.iDocConfig="undefined"!==typeof __docConfig&&__docConfig||{},o.artContentSelector=o.iDocConfig.__artContentSelector||"",o.artContentHeight=o.iDocConfig.__artContentHeight||"";var a=o.iDocConfig.__callupId,s=o.compareTargetInContext(e),l=!a||a!=t||a&&!o.artContentSelector&&!o.artContentHeight||!s;if(i.a.showLog({title:"permitPercent",txt:!l}),l&&!~~n)return!1;i.a.showLog({title:"getConentHeightFromSelector",txt:o.getConentHeightFromSelector()}),i.a.showLog({title:"getConentHeightFromPageSet",txt:o.getConentHeightFromPageSet()}),i.a.showLog({title:"getMaxContentHeight",txt:o.getMaxContentHeight()}),i.a.showLog({title:"getFinalPercent",txt:o.getFinalPercent()});var c=o.getFinalPercent();return Math.min(c,1)}catch(u){return!1}}},o=r,a={getParamse:function(t){var e="",n=t,r=t.module,a=t.action;switch(r){case"main":if("main"===a)e="tab=".concat(i.a.encode(n.tabId),"&channel=").concat(i.a.encode(n.ch),"&channelName=").concat(i.a.encode(n.chName),"&forceSubType=").concat(i.a.encode(n.forcesubtype||"2"));break;case"feed":if("subfeed"===a)e="newsId=".concat(i.a.encode(t.chNewsId),"&title=").concat(i.a.encode(t.chtitle),"&clickItem=").concat(i.a.encode(t.chClickItem));break;case"media":case"comment":case"photoPreview":case"favorite":case"message":case"readrecord":case"account":case"app":case"column":break;case"video":switch(a){case"detail":e="newsId=".concat(i.a.encode(n.callupid));break;case"miniVideo":e="newsId=".concat(i.a.encode(n.callupid),"&link=").concat(i.a.encode(n.link));break;case"collection":e="collectionId=".concat(i.a.encode(n.collectionid),"&collectionDataId=").concat(i.a.encode(n.dataid),"&title=").concat(i.a.encode(n.title),"&count=").concat(i.a.encode(n.count))}break;case"live":var s=n.paramsid||n.newsId;e="newsId=".concat(i.a.encode(s));break;case"photo":if("detail"===a)e="newsId=".concat(i.a.encode(n.callupid));break;case"article":var l=o.init(n.callupid,n.targetEl,n.percentPower);e+="newsId="+i.a.encode(n.callupid),l&&(e+="&percent=".concat(l)),n.voteid&&(e+="&voteId="+i.a.encode(n.voteid)),n.commentid&&(e+="&voteId="+i.a.encode(n.commentid)),n.commenthandletype&&(e+="&voteId="+i.a.encode(n.commenthandletype));break;case"hybrid":if("hybrid"===a)e="newsId=".concat(i.a.encode(n.hybridId||n.hbNewsId),"&message=").concat(i.a.encode(decodeURIComponent(n.message)),"&urlInfo=").concat(i.a.encode(n.urlinfo));break;case"search":switch(a){case"detail":e="keyword=".concat(i.a.encode(n.keyword));break;case"rank":e="channelId=".concat(i.a.encode(n.searchRank))}break;case"webbrowser":if("detail"===a)e="link=".concat(i.a.encode(n.url));break;case"finance":switch(a){case"stockDetail":e="market=".concat(i.a.encode(n.market),"&symbol=").concat(i.a.encode(decodeURIComponent(n.symbol)),"&stockType=").concat(i.a.encode(n.stockType));break;case"calender":e="newsId=".concat(i.a.encode(n.hbNewsId),"&message=").concat(i.a.encode(decodeURIComponent(n.message)),"&urlInfo=").concat(i.a.encode(n.urlinfo))}break;case"audio":"player"==a&&(e+="newsId=".concat(i.a.encode(n.callupid),"&column=").concat(i.a.encode(n.column)));break;default:e=n.routeuri||""}return e}},s="photo",l="video",c="article",u="eventlive",h="matchlive",p="superlive",d="undefined"!==typeof __docConfig&&__docConfig||{},f={getForceNewRoutePower:function(t){return i.a.getForceNewRoutePower(t)},changeNewRoute:function(t,e){return this.newRoute(Object.assign({},t,e))},defaultInfo:function(){return{ios9Params:"",schemeParams:"ch=news_toutiao"}},addDefaultParams:function(t,e){var n=t||{},r=e||{},o=!!d.__isCallSilence&&d.__isCallSilence+""||!!r.isSilence&&r.isSilence+""||"0";t.dataid=r.dataid||"",t.pkey=r.pkey||"",~~o&&(n.isSilence=o),(~~r.skipAd||~~window.isNphSkipad)&&(n.skipAd=~~r.skipAd?r.skipAd:String(~~window.isNphSkipad)||"0"),r.needredirect&&(n.needRedirect=r.needredirect||"0"),(d.__appFeed||r.appFeed||d.__appfeed||r.appfeed)&&(n.appFeed=d.__appFeed||r.appFeed||d.__appfeed||r.appfeed||"");var a=i.a.getBackUrl(r.backUrl);return a&&(n.backUrl=a),n},searchRank:function(t){var e=t||{},n=this.addDefaultParams({rankCh:t.searchRank,actionType:"35"},e);return parseInt(d.__isCallSilence||0)&&(n.backApp="sinaweibo://"),this.getForceNewRoutePower(e)?this.changeNewRoute(t,{module:"search",action:"rank"}):{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(n)),schemeParams:"params="+i.a.getParamsStr(n)}},search:function(t){var e=t||{},n=this.addDefaultParams({keyword:t.keyword,actionType:"28"},e);return parseInt(d.__isCallSilence||0)&&(n.backApp="sinaweibo://"),this.getForceNewRoutePower(e)?this.changeNewRoute(t,{module:"search",action:"detail"}):{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(n)),schemeParams:"params="+i.a.getParamsStr(n)}},newHybrid:function(t){var e=t||{},n=e.hbNewsId,r=this.addDefaultParams({hbNewsId:n,actionType:e.actionType||"13"},e);return e.url&&(r.url=e.url),parseInt(d.__isCallSilence||0)&&(r.backApp="sinaweibo://"),this.getForceNewRoutePower(e)?this.changeNewRoute(t,{module:"hybrid",action:"hybrid"}):{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(r)),schemeParams:"params="+i.a.getParamsStr(r)}},hybrid:function(t){var e=t||{},n=e.hybridId,r=this.addDefaultParams({hybridId:n,actionType:e.actionType||"13"},e);return e.url&&(r.url=e.url),parseInt(d.__isCallSilence||0)&&(r.backApp="sinaweibo://"),{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(r)),schemeParams:"params="+i.a.getParamsStr(r)}},doc:function(t){var e=t||{},n=e.callupid||e.docid+"-comos-news-cms";n.indexOf("-")<=0&&(n=d.__callupId||d.__docId+"-comos-news-cms"),e.pageType="doc";var r=!!n.match(/pic/gi),a=!!n.match(/video/gi),u=this.addDefaultParams({id:n,actionType:r?"6":a?"3":"2"},e);e.paramstype&&(u.paramstype=e.paramstype),e.url&&(u.url=e.url),1==~~e.isMiniVideo&&(u.isMiniVideo=e.isMiniVideo,u.link=e.link);var h=o.init(n,e.targetEl,e.percentPower);if(h&&(u.percent=h),parseInt(d.__isCallSilence||0)&&(u.backApp="sinaweibo://"),this.getForceNewRoutePower(e)){var p=r?s:a?l:c,f=u.isMiniVideo&&a?"miniVideo":"detail";return this.changeNewRoute(t,{module:p,action:f})}return{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(u)),schemeParams:"params="+i.a.getParamsStr(u)}},event:function(t){var e=t||{},n=this.addDefaultParams({id:e.paramsid,livetype:e.paramslivetype,type:e.paramstype,vid:e.paramsvid,matchid:e.paramsmatchid,actionType:e.paramsid.match(/0\-v3\-snlive/gi)?"24":"4"},e);if(this.getForceNewRoutePower(e)){var r=e.paramsid||e.newsId||"",o=!!r.match(/event/gi),a=!!r.match(/0\-v3\-snlive/gi),s=o?u:a?p:h;return this.changeNewRoute(t,{module:"live",action:s})}return{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(n)),schemeParams:"params="+i.a.getParamsStr(n)}},h5:function(t){var e=t||{},n=this.addDefaultParams({url:e.url||"",actionType:"1"},e),r=(t.app||"").match(/lite/gi)?"":"::params="+i.a.getParamsStr(n);return this.getForceNewRoutePower(e)?this.changeNewRoute(t,{module:"webbrowser",action:"detail"}):{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(n)),schemeParams:"url="+encodeURIComponent(n.url)+r}},ch:function(t){var e=t||{},n=this.addDefaultParams({ch:e.ch||"",chName:e.chName||"",actionType:"22",forceSubType:e.forcesubtype||"2"},e);return this.getForceNewRoutePower(e)?this.changeNewRoute(t,{module:"main",action:"main"}):{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(n)),schemeParams:"params="+i.a.getParamsStr(n)}},tab:function(t){var e=t||{},n=this.addDefaultParams({tabId:e.tabId||"",ch:e.ch||"",chName:e.chName||""},e);return this.getForceNewRoutePower(e)?this.changeNewRoute(t,{module:"main",action:"main"}):{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(n)),schemeParams:"params="+i.a.getParamsStr(n)}},calendar:function(t){var e=t||{},n=this.addDefaultParams({hbNewsId:e.hbNewsId||"",actionType:"34"},e);return this.getForceNewRoutePower(e)?this.changeNewRoute(t,{module:"finance",action:"calender"}):{ios9Params:"params="+encodeURIComponent(i.a.getParamsStr(n)),schemeParams:"params="+i.a.getParamsStr(n)}},newRoute:function(t){var e=t||{},n=e.module,r=e.action,o=e.issv?"sv":"pg",s=a.getParamse(e),l=this.addDefaultBase(e).join("&"),c=s.match(/sinanews\:\/\//gi)?"":"sinanews://sina.cn/"+n+"/"+r+"."+o,u=c+i.a.getUrlJoinFlag(c,s)+s;return{ios9Params:u+=i.a.getUrlJoinFlag(u,l)+l,schemeParams:u}},checkRouteUriExist:function(t,e){return t.routeuri&&t.routeuri.includes(e)},addDefaultBase:function(t){var e=t||{},n=[],r=i.a.getBackUrl(e.backUrl),a=!!d.__isCallSilence&&d.__isCallSilence+""||!!e.isSilence&&e.isSilence+"",s=e.skipAd||String(~~window.isNphSkipad)||"0",l=e.callupid||i.a.getValFromRoutUri({routeUri:e.routeuri,testReg:/sinanews\:\/\/sina.cn\/article\/detail\.pg\?/,key:"newsId"});if(l){var c=o.init(l,e.targetEl,e.percentPower);c&&n.push("percent=".concat(c||""))}return e.dataid&&!this.checkRouteUriExist(e,"dataid")&&n.push("dataid=".concat(e.dataid||"")),e.pkey&&!this.checkRouteUriExist(e,"pkey")&&n.push("pkey=".concat(e.pkey||"")),s&&!this.checkRouteUriExist(e,"skipAd")&&n.push("skipAd=".concat(s)),e.needredirect&&!this.checkRouteUriExist(e,"needredirect")&&n.push("needredirect=".concat(e.needredirect||"0")),r&&!this.checkRouteUriExist(e,"backUrl")&&n.push("backUrl="+r),a&&!this.checkRouteUriExist(e,"isSilence")&&n.push("isSilence="+(a||"0")),n}};e.a=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(32);function r(t){var e=function(t,e){if("object"!==Object(i.a)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Object(i.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Object(i.a)(e)?e:String(e)}},function(t,e){var n=location.origin+location.pathname,i=function(t){return void 0!=t&&""!=t&&r(document.cookie,t,";","")},r=function(t,e,n,i){if(""==t)return"";e+=i=""==i?"=":i;var r=t.indexOf(e);if(r<0)return"";r+=e.length;var o=t.indexOf(n,r);return o0}});else{var t=function(t){for(var e=window.document,n=r(e);n;)n=r(e=n.ownerDocument);return e}(),e=[],n=null,i=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(t,n){i=t&&n?p(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},a._resetCrossOriginUpdater=function(){n=null,i=null},a.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},a.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},a.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},a.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var i=this._checkForIntersections,o=null,a=null;this.POLL_INTERVAL?o=n.setInterval(i,this.POLL_INTERVAL):(s(n,"resize",i,!0),s(e,"scroll",i,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(i)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(o&&t.clearInterval(o),l(t,"resize",i,!0)),l(e,"scroll",i,!0),a&&a.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=c){var u=r(e);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var i=this.root&&(this.root.ownerDocument||this.root)||t,o=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=i;){var o=r(n);if((n=o&&o.ownerDocument)==e)return!0}return!1}));if(!o){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),e!=i){var s=r(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e=0&&s>=0&&{top:n,bottom:i,left:r,right:o,width:a,height:s}||null}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function p(t,e){var n=e.top-t.top,i=e.left-t.left;return{top:n,left:i,height:e.height,width:e.width,bottom:n+e.height,right:i+e.width}}function d(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?r(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function g(t){return t&&9===t.nodeType}}()},function(t,e,n){var i=n(19);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){var i=n(46),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},function(t,e,n){var i=n(24),r=n(77),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},function(t,e,n){var i=n(24),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},function(t,e,n){var i=n(18),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},function(t,e,n){var i=n(176),r=n(117);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},function(t,e,n){var i=n(18);t.exports=i({}.isPrototypeOf)},function(t,e,n){var i=n(55),r=n(46);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},function(t,e,n){var i=n(180);t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},function(t,e,n){var i=n(181);t.exports=function(t){return i(t.length)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var i=n(109),r=n(78),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){var i=n(25),r=n(28),o=n(58);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var i=n(89),r=n(38),o=n(52),a=n(122),s=n(16),l=n(189),c=n(125),u=n(126),h=n(91),p=n(87),d=n(41),f=n(23),g=n(47),v=n(124),m=a.PROPER,y=a.CONFIGURABLE,_=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,w=f("iterator"),x="keys",S="values",k="entries",T=function(){return this};t.exports=function(t,e,n,a,f,v,C){l(n,e,a);var O,I,M,A=function(t){if(t===f&&j)return j;if(!b&&t in E)return E[t];switch(t){case x:case S:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},D=e+" Iterator",P=!1,E=t.prototype,L=E[w]||E["@@iterator"]||f&&E[f],j=!b&&L||A(f),R="Array"==e&&E.entries||L;if(R&&(O=c(R.call(new t)))!==Object.prototype&&O.next&&(o||c(O)===_||(u?u(O,_):s(O[w])||d(O,w,T)),h(O,D,!0,!0),o&&(g[D]=T)),m&&f==S&&L&&L.name!==S&&(!o&&y?p(E,"name",S):(P=!0,j=function(){return r(L,this)})),f)if(I={values:A(S),keys:v?j:A(x),entries:A(k)},C)for(M in I)(b||P||!(M in E))&&d(E,M,I[M]);else i({target:e,proto:!0,forced:b||P},I);return o&&!C||E[w]===j||d(E,w,j,{name:f}),g[e]=j,I}},function(t,e,n){var i=n(24),r=n(120).f,o=n(87),a=n(41),s=n(77),l=n(186),c=n(123);t.exports=function(t,e){var n,u,h,p,d,f=t.target,g=t.global,v=t.stat;if(n=g?i:v?i[f]||s(f,{}):(i[f]||{}).prototype)for(u in e){if(p=e[u],h=t.dontCallGetSet?(d=r(n,u))&&d.value:n[u],!c(g?u:f+(v?".":"#")+u,t.forced)&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(n,u,p,t)}}},function(t,e,n){var i=n(118),r=n(85).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(28).f,r=n(26),o=n(23)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e){t.exports=function(t,e){return{value:t,done:e}}},function(t,e,n){var i=n(94),r=n(16),o=n(45),a=n(23)("toStringTag"),s=Object,l="Arguments"==o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=s(t),a))?n:l?o(e):"Object"==(i=o(e))&&r(e.callee)?"Arguments":i}},function(t,e,n){var i={};i[n(23)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){"use strict";var i=n(43),r={object:!0,function:!0,undefined:!0};t.exports=function(t){return!!i(t)&&hasOwnProperty.call(r,typeof t)}},function(t,e,n){"use strict";t.exports=n(242)()?Object.assign:n(243)},function(t,e,n){"use strict";var i,r=n(135),o=n(96),a=n(39),s=n(31),l=n(29),c=n(262),u=n(35),h=Object.defineProperty,p=Object.defineProperties;t.exports=i=function(t,e){if(!(this instanceof i))throw new TypeError("Constructor requires 'new'");p(this,{__list__:l("w",s(t)),__context__:l("w",e),__nextIndex__:l("w",0)}),e&&(a(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))},delete i.prototype.constructor,p(i.prototype,o({_next:l((function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,n){e>=t&&(this.__redo__[n]=++e)}),this),this.__redo__.push(t)):h(this,"__redo__",l("c",[t])))})),_onDelete:l((function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach((function(e,n){e>t&&(this.__redo__[n]=--e)}),this)))})),_onClear:l((function(){this.__redo__&&r.call(this.__redo__),this.__nextIndex__=0}))}))),h(i.prototype,u.iterator,l((function(){return this})))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);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}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){var i=n(150),r=n(290),o=n(291),a=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):o(t)}},function(t,e,n){var i=n(151),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var i=n(149),r=n(154);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";(function(t){var n=("undefined"!==typeof window?window:"undefined"!==typeof t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n,r=(n=function(e){return e.original===t},e.filter(n)[0]);if(r)return r.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(n){o[n]=i(t[n],e)})),o}function r(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function o(t){return null!==t&&"object"===typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){r(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&r(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&r(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&r(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,s);var l=function(t){this.register([],t,!1)};function c(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;c(t.concat(i),e.getChild(i),n.modules[i])}}l.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},l.prototype.update=function(t){c([],this.root,t)},l.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var o=new a(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&r(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},l.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var u;var h=function(t){var e=this;void 0===t&&(t={}),!u&&"undefined"!==typeof window&&window.Vue&&_(window.Vue);var i=t.plugins;void 0===i&&(i=[]);var r=t.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(t),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(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),i.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:u.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){n.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){n.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function d(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function f(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),g(t,n,e)}function g(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,a={};r(o,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,t._vm=new u({data:{$$state:e},computed:a}),u.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),u.nextTick((function(){return i.$destroy()})))}function v(t,e,n,i,r){var o=!n.length,a=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=i),!o&&!r){var s=m(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){u.set(s,l,i.state)}))}var c=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=y(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:i?t.commit:function(n,i,r){var o=y(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return m(t.state,n)}}}),r}(t,a,n);i.forEachMutation((function(e,n){!function(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))}(t,a+n,e,c)})),i.forEachAction((function(e,n){var i=e.root?n:a+n,r=e.handler||e;!function(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r,o=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(r=o)&&"function"===typeof r.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,i,r,c)})),i.forEachGetter((function(e,n){!function(t,e,n,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)}}(t,a+n,e,c)})),i.forEachChild((function(i,o){v(t,e,n.concat(o),i,r)}))}function m(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,n){return o(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function _(t){u&&t===u|| /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(t){0},h.prototype.commit=function(t,e,n){var i=this,r=y(t,e,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(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,i.state)})))},h.prototype.dispatch=function(t,e){var n=this,i=y(t,e),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){0}e(t)}))}))}},h.prototype.subscribe=function(t,e){return d(t,this._subscribers,e)},h.prototype.subscribeAction=function(t,e){return d("function"===typeof t?{before:t}:t,this._actionSubscribers,e)},h.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},h.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},h.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),g(this,this.state)},h.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),f(this)},h.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},h.prototype.hotUpdate=function(t){this._modules.update(t),f(this,!0)},h.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(h.prototype,p);var b=T((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=C(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),w=T((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=C(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),x=T((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),S=T((function(t,e){var n={};return k(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=C(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n}));function k(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function T(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}function O(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(r){t.log(e)}}function I(t){try{t.groupEnd()}catch(e){t.log("\u2014\u2014 log end \u2014\u2014")}}function M(){var t=new Date;return" @ "+A(t.getHours(),2)+":"+A(t.getMinutes(),2)+":"+A(t.getSeconds(),2)+"."+A(t.getMilliseconds(),3)}function A(t,e){return n="0",i=e-t.toString().length,new Array(i+1).join(n)+t;var n,i}var D={Store:h,install:_,version:"3.6.2",mapState:b,mapMutations:w,mapGetters:x,mapActions:S,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:x.bind(null,t),mapMutations:w.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var c=t.logActions;void 0===c&&(c=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var h=i(t.state);"undefined"!==typeof u&&(l&&t.subscribe((function(t,a){var s=i(a);if(n(t,h,s)){var l=M(),c=o(t),p="mutation "+t.type+l;O(u,p,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),I(u)}h=s})),c&&t.subscribeAction((function(t,n){if(a(t,n)){var i=M(),r=s(t),o="action "+t.type+i;O(u,o,e),u.log("%c action","color: #03A9F4; font-weight: bold",r),I(u)}})))}}};e.a=D}).call(this,n(33))},function(t,e,n){"use strict";(function(t){var i=n(68),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r&&i.a.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();e.a=s}).call(this,n(98)(t))},function(t,e,n){!function(e){"use strict";var i={};t.exports?(i.bytesToHex=n(281).bytesToHex,i.convertString=n(282),t.exports=c):(i.bytesToHex=e.convertHex.bytesToHex,i.convertString=e.convertString,e.sha256=c);var r=[];!function(){function t(t){for(var e=Math.sqrt(t),n=2;n<=e;n++)if(!(t%n))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(r[i]=e(Math.pow(n,1/3)),i++),n++}();var o=function(t){for(var e=[],n=0,i=0;n>>5]|=t[n]<<24-i%32;return e},a=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},s=[],l=function(t,e,n){for(var i=t[0],o=t[1],a=t[2],l=t[3],c=t[4],u=t[5],h=t[6],p=t[7],d=0;d<64;d++){if(d<16)s[d]=0|e[n+d];else{var f=s[d-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=s[d-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;s[d]=g+s[d-7]+m+s[d-16]}var y=i&o^i&a^o&a,_=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),b=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&h)+r[d]+s[d];p=h,h=u,u=c,c=l+b|0,l=a,a=o,o=i,i=b+(_+y)|0}t[0]=t[0]+i|0,t[1]=t[1]+o|0,t[2]=t[2]+a|0,t[3]=t[3]+l|0,t[4]=t[4]+c|0,t[5]=t[5]+u|0,t[6]=t[6]+h|0,t[7]=t[7]+p|0};function c(t,e){t.constructor===String&&(t=i.convertString.UTF8.stringToBytes(t));var n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],r=o(t),s=8*t.length;r[s>>5]|=128<<24-s%32,r[15+(s+64>>9<<4)]=s;for(var c=0;c1)for(var n=1;nc;)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},function(t,e,n){var i=n(83),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},function(t,e,n){var i=n(25),r=n(38),o=n(184),a=n(58),s=n(40),l=n(79),c=n(26),u=n(115),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=s(t),e=l(e),u)try{return h(t,e)}catch(n){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},function(t,e,n){var i=n(18),r=n(19),o=n(16),a=n(26),s=n(25),l=n(122).CONFIGURABLE,c=n(185),u=n(57),h=u.enforce,p=u.get,d=String,f=Object.defineProperty,g=i("".slice),v=i("".replace),m=i([].join),y=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===g(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=h(t);return a(i,"source")||(i.source=m(_,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return o(this)&&p(this).source||c(this)}),"toString")},function(t,e,n){var i=n(25),r=n(26),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(t,e,n){var i=n(19),r=n(16),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n==u||n!=c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},function(t,e,n){"use strict";var i,r,o,a=n(19),s=n(16),l=n(27),c=n(53),u=n(125),h=n(41),p=n(23),d=n(52),f=p("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(r=u(u(o)))!==Object.prototype&&(i=r):g=!0),!l(i)||a((function(){var t={};return i[f].call(t)!==t}))?i={}:d&&(i=c(i)),s(i[f])||h(i,f,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},function(t,e,n){var i=n(26),r=n(16),o=n(110),a=n(86),s=n(190),l=a("IE_PROTO"),c=Object,u=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(i(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},function(t,e,n){var i=n(191),r=n(34),o=n(192);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var i=n(89),r=n(18),o=n(56),a=n(27),s=n(26),l=n(28).f,c=n(90),u=n(196),h=n(199),p=n(78),d=n(201),f=!1,g=p("meta"),v=0,m=function(t){l(t,g,{value:{objectID:"O"+v++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},f=!0;var t=c.f,e=r([].splice),n={};n[g]=1,t(n).length&&(c.f=function(n){for(var i=t(n),r=0,o=i.length;ry;y++)if((b=A(t[y]))&&c(g,b))return b;return new f(!1)}v=u(t,m)}for(w=T?t.next:v.next;!(x=r(w,v)).done;){try{b=A(x.value)}catch(D){p(v,"throw",D)}if("object"==typeof b&&b&&c(g,b))return b}return new f(!1)}},function(t,e,n){var i=n(202),r=n(55),o=n(74),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(93),r=n(81),o=n(46),a=n(47),s=n(23)("iterator");t.exports=function(t){if(!o(t))return r(t,s)||r(t,"@@iterator")||a[i(t)]}},function(t,e,n){var i=n(80),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw r("Incorrect invocation")}},function(t,e,n){var i=n(121),r=n(28);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},function(t,e,n){var i=n(93),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},function(t,e,n){"use strict";var i=n(4),r=n.n(i);r.a.mountApi("wapApis",{simaBizLog:function(){this.simaBizLog=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});r.a.simaBizLog},function(t,e,n){"use strict";var i=n(31);t.exports=function(){return i(this).length=0,this}},function(t,e,n){"use strict";var i=n(234),r=Math.max;t.exports=function(t){return r(0,i(t))}},function(t,e,n){"use strict";var i=Object.create,r=Object.getPrototypeOf,o={};t.exports=function(){var t=Object.setPrototypeOf;return"function"===typeof t&&r(t((arguments[0]||i)(null),o))===o}},function(t,e,n){"use strict";var i,r=n(238),o=n(31),a=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};i=function(t,e){if(o(t),null===e||r(e))return t;throw new TypeError("Prototype must be null or an object")},t.exports=function(t){var e,n;return t?(2===t.level?t.set?(n=t.set,e=function(t,e){return n.call(i(t,e),e),t}):e=function(t,e){return i(t,e).__proto__=e,t}:e=function t(e,n){var r;return i(e,n),(r=a.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===n&&(n=t.nullPolyfill),e.__proto__=n,r&&s(t.nullPolyfill,"__proto__",l),e},Object.defineProperty(e,"level",{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),n={},i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(i){try{(t=i.set).call(e,n)}catch(r){}if(Object.getPrototypeOf(e)===n)return{set:t,level:2}}return e.__proto__=n,Object.getPrototypeOf(e)===n?{level:2}:((e={}).__proto__=n,Object.getPrototypeOf(e)===n&&{level:1})}()),n(239)},function(t,e,n){"use strict";var i=n(240),r=/^\s*class[\s{/}]/,o=Function.prototype.toString;t.exports=function(t){return!!i(t)&&!r.test(o.call(t))}},function(t,e,n){"use strict";var i=n(42),r=Array.prototype.forEach,o=Object.create;t.exports=function(t){var e=o(null);return r.call(arguments,(function(t){i(t)&&function(t,e){var n;for(n in t)e[n]=t[n]}(Object(t),e)})),e}},function(t,e,n){"use strict";t.exports=n(247)()?String.prototype.contains:n(248)},function(t,e,n){"use strict";var i=n(254);t.exports=function(t){if(!i(t))throw new TypeError(t+" is not a symbol");return t}},function(t,e,n){"use strict";var i=n(258);t.exports=function(t){if(!i(t))throw new TypeError(t+" is not iterable");return t}},function(t,e,n){"use strict";var i=n(43),r=n(95),o=n(264),a=n(265),s=function(t,e){return t.replace("%v",a(e))};t.exports=function(t,e,n){if(!r(n))throw new TypeError(s(e,t));if(!i(t)){if("default"in n)return n.default;if(n.isOptional)return null}var a=o(n.errorMessage);throw i(a)||(a=e),new TypeError(s(a,t))}},function(t,e,n){"use strict";var i=function(t){try{var e,n=p(t);if(e=o(t,n))return e;if(e=l(t,n))return e;if(e=c(t,n))return e;if(e=h(t,n))return e;if(e=r(t,n))return e}catch(i){}return!1},r=function(t,e){if("kandian"!=e&&"k"!=e&&"i.k.nodejs-pre"!=e)return!1;var n=t.match("/article_([0-9a-zA-Z]+)_([0-9a-zA-Z]+).html");if(n&&n[1]&&n[2]){var i=n[2].substring(0,1);return"p"==i?n[1]+"-"+n[2]+"-hdpic-mp":"m"==i?n[1]+"-"+n[2]+"-video-mp":n[1]+"-"+n[2]+"-cms-mp"}return!1},o=function(t,e){var n=t.match("-i([a-z]{7}[0-9]{7})"),i=n?n[1]:"";if(i&&e){var r=a(t,i,e);return r||((r=s(t,i,e))?r:("v"==e&&(e="video"),i+"-comos-"+e+"-cms"))}},a=function(t,e,n){return"yd"==n&&e+"-"+(d(t,"mid")||0)+"-comos-original"},s=function(t,e,n){return"top"==n&&e+"-comos-consice"},l=function(t,e){var n=!1;if("cj"==e){var i=t.match("/article/detail/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)"),r=t.match("/articles/view/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)");if(i&&i[1]&&i[2]&&(n=i[1]+"-"+i[2]+"-cj-cjtop"),r&&r[1]&&r[2]){var o=r[2].split("")[0];switch(n=r[1]+"-"+r[2]+"-cj-",o){case"p":n+="hdpic-mp";break;case"m":n+="video-mp";break;default:n+="cms-mp"}}}else if("t.cj"==e){var a=t.match("/articles/view/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)");if(a&&a[1]&&a[2]){var s=a[2].split("")[0];switch(n=a[1]+"-"+a[2]+"-tcj-",s){case"p":n+="hdpic-mp";break;case"m":n+="video-mp";break;default:n+="cms-mp"}}}return n},c=function(t,e){var n=u(t,e);return!!n&&n+"-blog"},u=function(t,e){if("blog"!=e)return!1;var n=t.match("dpool/blog/s/blog_(.*?).html");return!(!n||!n[1])&&n[1]},h=function(t,e){if("photo"!=e&&"i.photo.nodejs-pre"!=e)return!1;var n=t.match("album_([0-9_]*).htm");return!(!n||!n[1])&&n[1].replace(/\_/g,"-")+"-hdpic"},p=function(t){var e=t.indexOf(".com.cn")>-1?t.match("://([a-zA-Z0-9-.]{0,61}).sina.com.cn"):t.match("://([a-zA-Z0-9-.]{0,61}).sina.cn");return e?e[1]:""},d=function(t,e){if(-1==t.indexOf(e))return"";for(var n=t.split("?")[1].split("&"),i=0;i-1&&t%1==0&&t<=9007199254740991}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;Object(r.a)(this,t),this.root=e,this.margin=this.initMargin(n),this.initObserver()}return Object(o.a)(t,[{key:"initMargin",value:function(t){if("number"===typeof t)return"-"+t+"px";if("object"===typeof t&&t){var e=new Array(4).fill("0px");return Object.keys(t).forEach((function(n){var i="-"+t[n]+"px";"top"===n&&(e[0]=i),"right"===n&&(e[1]=i),"bottom"===n&&(e[2]=i),"left"===n&&(e[3]=i)})),e.join(" ")}}},{key:"initObserver",value:function(){this.observer=new IntersectionObserver((function(t,e){t.forEach((function(t){if(t.isIntersecting){var n=setTimeout((function(){t.target.__cr||e.unobserve(t.target),t.target.__act(t.target),t.target.dataset.__exposured=t.target.__cr?2:1}),t.target.__ts);t.target.__expt=n}else t.target.__expt&&clearTimeout(t.target.__expt)}))}),{root:this.root,rootMargin:this.margin,threshold:[.1]})}},{key:"observe",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.repeat,r=void 0!==i&&i,o=n.threshold,a=void 0===o?300:o;t.__act=e,t.__ts=a,t.__cr=r,this.observer.observe(t)}},{key:"observeAll",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0?(e&&(k=t.substring(n)),t.substring(0,n)):(e&&(k=""),t)}function O(t){for(var e=0,n=0,i=t;e=i.indexOf("<"),n=i.indexOf(">",e),e>=0&&n>=0&&n>e;)i=i.substring(0,e)+i.substring(n+1,i.length);return i}function I(t,e,n){if(null!=e){var i=function(){if(""!=d)return d;var t="",e=b.toLowerCase(),n=e.indexOf("sina.");if(n>0)t="sina.cn";else{var i=e.indexOf(".");if(!(i>0))return"";i+=1,(n=e.indexOf("/",i))<0&&(n=e.length),t=e.substring(i,n)}return d=t,t}();if("undefined"==n||null==n)document.cookie=t+"="+e+"; domain="+i+"; path=/";else{var r=new Date,o=r.getTime();o+=864e5*n,r.setTime(o),o=r.getTime(),document.cookie=t+"="+e+"; domain="+i+"; expires="+r.toUTCString()+"; path=/"}}}function M(){if(!(Math.floor(100*Math.random())0&&s.observeAll(e,(function(t){for(var e=0;e-1?"&":"?";e=e+r+"clicktime="+t+"&userid="+i}if("_blank"==n){var o=window.navigator.userAgent.toLowerCase();/ucbrowser/i.test(o)?window.location.href="ext:wo:"+e+k:/qqbrowser/i.test(o)?window.location.href=e+k:window.open(e+k)}else window.location.href=e+k}),200)}function P(t,e,n){for(var i=0;i=n?null:t}function E(t){var e=t.srcElement||t.target;if(null==e&&e==document)return!1;var n="",r="",o="",a="",s="";if("A"==e.tagName)n="txt",r=O(e.innerHTML),o=C(e.href,!0),s=e.getAttribute("target"),a=e;else if("IMG"==e.tagName){n="img",r=e.alt;var l=P(e,"A",8);l&&(o=C(l.href,!0),s=l.getAttribute("target"),a=l)}else{n="txt",r=O(e.innerHTML);var c=P(e,"A",8);c&&(o=C(c.href,!0),s=c.getAttribute("target"),a=c)}var u="",h=e.tagName,p="",d=!1;try{for(var f=0;f<10&&e!=document;f++){var g=e.getAttribute("data-sudaclick");e.getAttribute("data-sudaexposure");if(g){var v=e.getAttribute("data-sudatagname");if(v)d=!0,v.split(",").forEach((function(t){t.toUpperCase()==h&&(d=!1)}));u=g;for(var m=e.getElementsByTagName("A"),_=0;_30&&(r=r.substr(0,30));var b=(new Date).getTime();o=o.replace(/(\r\n)|(\n)|(\t)|(\<)|(\>)/gim,"");var w={data:{index:p,aid:u,url:encodeURIComponent(o)},action:"_click"};D(L(Object(i.a)({t:n,s:r,h:escape(o+(-1==o.indexOf("?")?"?":"&")+"channel="+y),ct:b,aid:u+"-"+p},T)),o,s,w)}}function L(t){var e="";for(var n in t)t[n]&&(e+=n+"="+t[n]+",");return e.substring(0,e.length-1)}function j(){R(window)}function R(t){for(var e=t.frames,n=0;n0&&(l=t,c=e,n,"function"===typeof window.getUserInfo&&"file:"!==window.location.protocol?window.getUserInfo((function(t){t&&t.uid&&(window.sudaMapConfig.uId=t.uid),M()}),!0):M(),u=!0)},B=function(t){if(!t.name)return!1;if(!u)return console.warn("SIMA has not inited!"),!1;t.type||(t.type="btn"),t.title||(t.title=""),t.index||(t.index=0),t.href||(t.href=window.location.href);var e=(new Date).getTime();D(L(Object(i.a)({t:t.type,s:t.title,h:escape(t.href+(-1==t.href.indexOf("?")?"?":"&")+"channel="+y),ct:e,aid:t.name+"-"+t.index},T)),"",void 0==t.target?"":t.target)};var z="";function F(t){for(var e in t)"string"==typeof t[e]&&(t[e]=t[e].replace(/(\r\n)|(\n)|(\t)|(\<)|(\>)/gim,""),t[e]=t[e].replace(/#/gim,""));return t}"function"===typeof window.getCookie&&(z=window.getCookie(g)||""),"function"!=typeof Object.assign&&(Object.assign=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i1){var e=t[1].replace(/_/gi,".");return parseInt(e)}return 0}(n)},getWeiboVersion:function(){var t=this._UA,e=this.UAIdentify,n=t.split("__"+e.weibo+"__"),i=n.length>1?n[1]:"0.0.0";return this.getVersion(i)},getVersion:function(t){var e=t.split(".");return parseFloat(e[0]+"."+parseInt(e[1]))},isInclude:function(t,e){return t.indexOf(e)>-1},isIOS9:function(){return this.getIOSVersion()>=9},_system:function(){return this._UA.match(/iphone|ipod|ipad/gi)?"ios":"android"},isOriginalChrome:function(){return this.OpenTypeIdentify.isOriginalChrome.test(this._UA)},createScript:function(t){var e=document.createElement("script");e.src=t,document.body.appendChild(e)}};i.createCheckFunc(),e.a=i},function(t,e,n){"use strict";var i=n(70),r=n(1),o=n(65),a=n(67),s="undefined"!==typeof __docConfig&&__docConfig||{};function l(t){var e=t||{},n=o.a||{},l=r.a.isExist(e,"callupid")||r.a.isExist(e,"docid"),c=!!parseInt(e.globalswitch)&&r.a.isExist(s,"__callupId")||r.a.isExist(s,"__docId")||r.a.isExist(e,"callupid"),u=r.a.isExist(e,"tabId")&&n.tab,h=r.a.isExist(e,"url")&&n.h5,p=r.a.isExist(e,"paramsid")&&n.event,d=r.a.isExist(e,"ch")&&n.ch,f=r.a.isExist(e,"hybridId")&&n.hybrid,g=r.a.isExist(e,"hbNewsId")&&n.newHybrid,v=r.a.isExist(e,"keyword")&&n.search,m=r.a.isExist(e,"searchRank")&&n.searchRank,y=r.a.isExist(e,"calendar")&&n.calendar,_=(r.a.isExist(e,"newroute")||r.a.isExist(e,"routeuri"))&&n.newRoute||y||v||m||g||f||u||d||p||(l||c)&&n.doc||h||"defaultInfo",b=i.a[_](e),w=r.a.getExistVal({box:a.a,key:e.app||"news",defaultkey:"news"}),x="newRoute"===_||r.a.getForceNewRoutePower(t);return{fullRoute:{scheme:"".concat(x?"":w.head+"://").concat(b.schemeParams),ios9:"".concat(w.ios9Https).concat(x?"?routeUri="+encodeURIComponent(b.ios9Params):"?"+b.ios9Params)},routeParams:b,pageType:x&&n.newRoute||_}}window.getRouteUri=l,e.a=l},function(t,e){var n={protocol:"https:"==window.location.protocol?"https:":"http:",init:function(t,e){var n={width:e.width,height:e.height,top:e.top||0,left:e.left||50,after:e.after||"c55",cut:e.cut,server:e.server};return/ssl=1/.test(location.href)&&(this.protocol="https:"),/sina/.test(t)&&1==n.server?this.k_cut(t,n):/miaopai/.test(t)||0==n.server?this.z_cut(t,n):t},reg_combine:function(t){return t.cut?"w"+t.width+"h"+t.height+"f1t"+t.top+"l"+t.left+"q90"+t.after:0!=parseInt(t.height)?"w"+t.width+"h"+t.height+"q90"+t.after:"w"+t.width+"q90"+t.after},k_cut:function(t,e){var n=t.split("."),i=n[n.length-1],r=null,o=this.reg_combine(e)||"w200h134f1t10q90c55";return/\.(png|jpe?g|gif|svg|webp)\/[a-zA-Z0-9_]*\.(png|jpe?g|gif|svg|webp)/.test(t)?/https?:\/\/l\.sinaimg\.cn/.test(t)?t.substring(0,t.lastIndexOf("/")+1)+o+"."+i:this.z_cut(t,e):(r=t.match(/(http|https):\/\/(www|n|wx1)\.sinaimg\.cn/i))?t.replace(r[0],this.protocol+"//k.sinaimg.cn/"+r[2])+"/"+o+".jpg":this.z_cut(t,e)},z_cut:function(t,e){var n=e.width+"_"+e.height;return e.cut?this.protocol+"//z"+Math.floor(10*Math.random())+".sinaimg.cn/auto/crop?img="+encodeURIComponent(t)+"&size="+n:this.protocol+"//z"+Math.floor(10*Math.random())+".sinaimg.cn/auto/resize?img="+encodeURIComponent(t)+"&size="+n}};t.exports=n},function(t,e,n){"use strict";e.a=function(){return!1}},function(t,e,n){"use strict";(function(t){var i=n(21),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r?i.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}}).call(this,n(98)(t))},function(t,e,n){(function(t){var i="undefined"!==typeof t&&t||"undefined"!==typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(287),e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(33))},function(t,e,n){var i=n(146),r=n(296),o=n(297),a=n(102),s=n(156),l=n(306),c=Object.prototype.hasOwnProperty,u=o((function(t,e){if(s(e)||a(e))r(e,l(e),t);else for(var n in e)c.call(e,n)&&i(t,n,e[n])}));t.exports=u},function(t,e,n){"use strict";var i=n(1),r=n(37),o=function(t){var e=document.getElementById("callDirectlyId"),n="http://gogocan.com:61594/wakeup?r="+t;if(e)e.src=n;else{var i=document.createElement("img");i.id="callDirectlyId",i.style.height=0,i.style.width=0,i.src=n,document.body.appendChild(i)}},a="undefined"!==typeof __docConfig&&__docConfig||{},s=function(){var t="undefined"!=typeof _SACONFIG&&_SACONFIG||"",e=function(){var t=document.location.search;function e(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),n=window.location.search.substr(1).match(e),i="";return null!=n&&(i=n[2]),e=null,n=null,null==i||""==i||"undefined"==i?"":i}return t.indexOf("cu_domain"),t.indexOf("cu_type"),!!(t.indexOf("cu_pos")>-1)&&{domain:e("cu_domain"),type:e("cu_type"),channel:e("cu_channel")||e("cu_domain"),position:e("cu_pos")}}(),n=window.SM||{},i={media:t&&t.media||"sinawap",domain:t&&t.domain||document.domain.split(".")[0],channel:t&&t.channel||"news",type:t&&t.type||"index",calluptype:t&&t.calluptype||"SN_",position:t&&t.position||"0000",timeStamp:(new Date).getTime(),url:t&&t.url||window.location.href,dataid:a.__dataid||"",pkey:a.__pkey||n&&n.doc&&n.doc.pkey||"",pageDataid:n&&n.doc&&n.doc.dataid||""};return i.domain=a.__tj_sch||i.domain,i.channel=a.__tj_ch||i.domain,i.type=a.__tj_type||"article",i.calluptype=i.calluptype,!window.getFromUrl&&e&&(i.domain=e.domain||i.domain,i.channel=e.channel||i.channel,i.type=e.type||i.type,i.position=e.position||i.pos,window.getFromUrl=!0),i},l="undefined"!==typeof __docConfig&&__docConfig||{},c="undefined"!==typeof sudaLogConfig&&sudaLogConfig||{},u="undefined"!==typeof SM&&SM||{};function h(){var t="undefined"!==typeof SM&&SM||{};if(t.data&&t.data.pageType)return t.data.pageType;var e="other";try{var n=l.__docId?"art":"",i=t.data&&t.data.channelType||"",r=window.location.href.match(/\/\/sina\.cn/gi)?"home":"";return n||i||r||e}catch(o){return e}}function p(t){var e=t||window.iNPHConfig;return e&&(function(t){var e=u.data&&u.data&&u.data.callUpConfig&&u.data.callUpConfig.comLogInfo||{};return t?Object.assign({},e.all,JSON.parse(t||"{}")||{}):e.all||{}}(e.comloginfo)||e.comloginfokey&&function(t){var e=u.data&&u.data&&u.data.callUpConfig&&u.data.callUpConfig.comLogInfo||{};return t?Object.assign({},e.all,e[t]||{}):e.all||{}}(e.comloginfokey))}function d(){var t=c.channel||"",e=window.location.host.split(".")[0];return t||("sina"===e?"home":e)}function f(t){var e={fromSN:window.iNPHConfig&&window.iNPHConfig.calluptype||"",sid:i.a.getCookie("Apache")||"",pageType:h()||"other",channel:d()||"",backId:(i.a.getQueryVariable(window.location.href)||{}).backId||"",browser:window.checkCallWayType().browser||""};return Object.assign(e,p(t)||{})}window.gkInfo=window.gkInfo||{},window.getCommonNPHCof=f;var g=f,v=(document.location.href.match(/debug\=1/gi),"undefined"!==typeof __docConfig&&__docConfig,{config:{},weiboslience:"sinaweibo://appsdownload?APPID=84475&pyid=2028810631",keyListOrder:["media","domain","channel","type","position","timeStamp","url","ustat"],getKInfo:function(){var t=this.config,e=this.config,n=s(),r="undefined"!==typeof e.paramsK&&e.paramsK||"";return t.media=r&&r.media||n.media,t.domain=r&&r.domain||n.domain,t.channel=r&&r.channel||n.channel,t.type=r&&r.type||n.type,t.calluptype=r&&r.calluptype||n.calluptype,t.position=r&&r.position||n.position,t.timeStamp=(new Date).getTime(),t.url=r&&r.url||n.url,t.ustat=i.a.getCookie("ustat")||"",t.dataid=r&&r.dataid||n.dataid,t.pageDataid=r&&r.pageDataid||n.pageDataid,t.pkey=r&&r.pkey||n.pkey,t.tjShowType=r&&r.tjShowType||n.tjShowType,t},getNativeUrl:function(t){var e=t||"",n=e.indexOf("sinanews")>-1||e.indexOf("sapi.sina.cn")>-1,r=!e.match(/(sinanews)(\S*)(k\=)(\S*)/)||!e.match(/(sapi.sina.cn)(\S*)(k\=)/),o=this.keyListOrder,a=this.getKInfo(),s=[],l=!1;try{window.location.hostname.match(/sina\.cn/gi)&&getUserInfo((function(t){l=t}))}catch(v){console.log(v.message)}if(n&&r){var c=g(window.iNPHConfig),u="";for(var h in o){var p=o[h];switch(p){case"url":default:u=a[p];break;case"type":var d=!!l&&!!l.uid&&l.uid||"";u=[a.type||"","uid"+d].join("_");break;case"position":u=[a.calluptype||"",i.a.getFullNumber(a.position)].join("");break;case"ustat":u=["ustat",a[p],"end"].join("_");break;case"media":u="sinanews"===c.browser?"sinanews":a[p]}"function"!=typeof p&&s.push(encodeURIComponent(u))}var f={ref:document.referrer&&document.referrer.split("?")[0]||"-",dataid:a.dataid||"-",pageDataid:a.pageDataid||"-",pkey:a.pkey||"-",tjShowType:a.tjShowType||""};s.push(encodeURIComponent(JSON.stringify(Object.assign(f,c))))}return n?(this._addKToNativeUrl(e,s),this.addKToNativeUrl(e,s)):e},addKToNativeUrl:function(t,e){var n=e.join("*"),r=i.a.checkNewRoute(decodeURIComponent(t)),o=!!t.match(/sapi\.sina\.cn/),a="",s="";if(r)if(o){var l=t.split("?").length>1&&t.split("?")[1]||"",c=i.a.getQueryString(l,"routeUri")||"";c&&(a=i.a.getNewRouteUriJoinFlag(c),s="".concat(a,"k=").concat(n),t=t.replace(encodeURIComponent(c),encodeURIComponent(c+s)))}else a=i.a.getNewRouteUriJoinFlag(t),t+=s="".concat(a,"k=").concat(n);else t+=s="".concat(a="::","k=").concat(n);return t},_addKToNativeUrl:function(t,e){var n,r=e.join("*"),o=t.length>8,a=i.a.checkNewRoute(decodeURIComponent(t)),s="";return o&&(s=a?-1!=t.indexOf("?")?"&":"?":"::"),n="".concat("?"!=t.slice(-1)?s:"","k=").concat(r),t+=t.match(/sapi\.sina\.cn/)&&a?encodeURIComponent(n):n},toAddNewsStaticParams:function(t){var e=t||{},n=this;return e.iosNativeUrl===e.androidNativeUrl?e.iosNativeUrl=e.androidNativeUrl=n.getNativeUrl(e.iosNativeUrl):(e.iosNativeUrl=n.getNativeUrl(e.iosNativeUrl),e.androidNativeUrl=n.getNativeUrl(e.androidNativeUrl)),e.ios9Url=n.getNativeUrl(e.ios9Url),e.ios9Weixin=n.getNativeUrl(e.ios9Weixin),e},init:function(t){var e=t||{},n=e.androidNativeUrl||e.iosNativeUrl||"",i=n.indexOf("sinanews")>-1||n.indexOf("sinasports")>-1;return this.config=e,i&&(e=this.toAddNewsStaticParams(e)),e}}),m=n(66),y=window.SM&&window.SM.data&&window.SM.data.callUpConfig&&window.SM.data.callUpConfig.shiftKnob||0,_={},b=i.a._system(),w=i.a.isWeibo(),x=i.a.isSinaNews(),S=function(t){var e=s(),n=t||"";return n?(n.indexOf("cu_pos=")<=-1&&n.match(/https\:\/\/so.sina.cn\/palmnews/gi)&&(n.indexOf("?")<=-1&&(n+="?"),n+="&cu_pos="+e.position+"&cu_domain="+e.domain+"&cu_type="+e.type),n):n},k=function(t){_=t||{};Number(_.newRoute);var e=_.hasOwnProperty("downloadswitch");if(e&&parseInt(_.downloadswitch)||!e)_.iosInstallUrl=S(_.iosInstallUrl),_.androidInstallUrl=function(t,e){var n=e||"sinaweibo://appsdownload?APPID=84475&pyid=2028810631",r=i.a.getWeiboVersion(),o="android"==i.a._system();return t&&t.match(/jump_client.d.html|so.sina.cn\/palmnews|app\/download|app\_download/g)&&w&&o&&r>=6?n:S(t)}(_.androidInstallUrl,_.weiboslience);else if(_.iosInstallUrl=_.androidInstallUrl="",_.ios9Url&&!_.ios9Url.match(/downloadswitch=0/gi)){var n=_.ios9Url.match(/\?/gi)?"&":"?";_.ios9Url+=n+"downloadswitch=0"}if("ios"==b){_.installUrl=parseInt(y)?window.config.useInstallUrl&&w&&_.iosInstallUrl||"":_.iosInstallUrl||"";var r=_.installUrl.match(/(\S*)(d\.php\?k\=)(\S*)/);w&&_.installUrl&&r&&(_.installUrl+="&sinainternalbrowser=external")}else _.installUrl=t.androidInstallUrl||"";return(x||~~_.onlyCopy)&&(_.installUrl=""),_},T=n(64),C=n.n(T),O=n(15),I=n(48),M=new C.a,A=I.a,D=M.device,P=i.a._UA,E=i.a.isWeibo(),L=i.a.isUC(),j=M.browser===A.Quark,R=M.browser===A.QQ,N=M.browser===A.QQBrowser,B=M.browser===A.Wechat,z=M.browser===A.XiaoMi,F=M.browser===A.HuaweiBrowser,H=(M.browser,A.VivoBrowser,i.a.isOriginalChrome()),V=i.a._system(),U=i.a.isIOS9(),G=M.os===A.iPad,W=M.browser===A.Chrome&&P.indexOf("HeyTap")>0,Y=i.a.isSinaNews(),X=null,$=function(){var t={type:O.a.universal,power:U&&!L&&!E&&!Y&&!j||G&&!Y,browser:M.browser,device:D},e={type:O.a.yyb,power:"android"===V&&(R||B||N),browser:M.browser,device:D},n=function(){var t=H&&"android"===V;return{type:O.a.intent,power:t,browser:M.browser,device:D}}(),i={type:O.a.schemeLayer,power:(F||z||W)&&"android"===V,browser:W>0?A.OppoBrowser:M.browser,device:D};return t.power&&t||e.power&&e||n.power&&n||i.power&&i||{type:O.a.schemeAPK,power:!0,browser:M.browser,device:D}},q=function(){return X=X||$()};window.checkCallWayType=q;var Z=q;function K(t){var e=JSON.parse(t),n={};for(var i in e){n[decodeURIComponent(i)]=e[i]}return console.log("\u6821\u9a8c\u6587\u4ef6\u5df2\u6210\u529f\u83b7\u53d6",n),n}function Q(t){var e=t.url,n=t.isUpdate,i=t.checkRule;return new Promise((function(t,r){n&&t({checkRule:i,isUpdate:!0});try{var o=new XMLHttpRequest;o.open("GET",e,!1),o.send(),200==o.status&&t({checkRule:Object.assign({},K(o.responseText)),isUpdate:!0})}catch(a){console.log("\u83b7\u53d6\u6821\u9a8c\u6587\u4ef6\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5~")}t({checkRule:i,isUpdate:!1})}))}var J=Q({url:"https://mfejs.sina.cn/V1Json.js",isUpdate:!1,checkRule:{}}),tt=Q({url:"https://mfejs.sina.cn/V2Json.js",isUpdate:!1,checkRule:{"sinanews://sina.cn/video/detail.pg":[{keyName:"dataid",comment:"dataid"}],"sinanews://sina.cn/article/detail.pg":[{keyName:"dataid",comment:"dataid"}],"sinanews://sina.cn/photo/detail.pg":[{keyName:"dataid",comment:"dataid"}],"sinanews://sina.cn/audio/player.pg":[{keyName:"dataid",comment:"dataid"}],"sinanews://sina.cn/video/miniVideo.pg":[{keyName:"dataid",comment:"dataid"}],"sinanews://sina.cn/live/verticalLive.pg":[{keyName:"dataid",comment:"dataid"}],"sinanews://sina.cn/post/detail.pg":[{keyName:"dataid",comment:"dataid"}]}}),et=new Promise((function(t){Promise.all([J,tt]).then((function(e){t({ruleV1:e[0].checkRule,ruleV2:e[1].checkRule,isUpdateRuleV1:e[0].isUpdate,isUpdateRuleV2:e[1].isUpdate})}))})),nt=(n(225),{});et.then((function(t){nt=t}));var it="sina_wap_scheme_".concat(document.domain,"_").concat(window.SM&&window.SM.data&&window.SM.data.pageType||""),rt=/undefined|null|NaN/g;!window._ERR_REP&&window.startReport(it);var ot=function(t,e){t.calluptype=e.calluptype,t.pageDataid=e.pageDataid,t.targetClass=e.targetEle&&e.targetEl.className||"",i.a.showLog({title:"[sendLogArr list]",txt:JSON.stringify(t)}),window._ERR_REP&&window._ERR_REP.reportCustomError(encodeURIComponent(JSON.stringify(t)),{j:it})},at=function(t){var e=t.match(rt);return!!(e&&e.length>0)},st=function(t){var e=t.androidNativeUrl||"";0===e.indexOf("sinanews://sina.cn")?function(t){var e=t.androidNativeUrl||"",n={scheme:e,info:"",isUpdateRuleV2:nt.isUpdateRuleV2},r=0,o=e.split("?")[1],a=e.split("?")[0],s=nt.ruleV2[a]||[];s.length>0&&(s.forEach((function(t){var e=i.a.getQueryString(o,t.keyName);(!e||e.match(rt)&&e.match(rt).length>0)&&(r++,n.info+="/".concat(t.keyName,"[").concat(t.comment,"]"))})),at(e)&&(r++,n.info+="/fullScheme[\u5b8c\u6574scheme\u68c0\u6d4b\u5f02\u5e38]"),r>0)&&ot(n,t)}(t):e.indexOf("params=")>-1&&function(t){var e=t.androidNativeUrl||"",n={scheme:e},i=0,r=e.match(/params=(.*?)(\:\:|$)/),o=JSON.parse(decodeURIComponent(r&&r[1]||{}));if(o.id){var a=o.dataid;(!a||a.match(rt)&&a.match(rt).length>0)&&i++}at(e)&&i++,i>0&&ot(n,t)}(t)};n(13),Z(),g();var lt="sinanews://sina.cn/video/detail.pg",ct="sinanews://sina.cn/video/miniVideo.pg",ut=function(t){return t&&t.replace(lt,ct).replace(encodeURIComponent(lt),encodeURIComponent(ct))||""},ht=function(t){return t.nativeUrl=ut(t.nativeUrl),t.ios9Url=ut(t.ios9Url),t.ios9Weixin=ut(t.ios9Weixin),t.iosNativeUrl=ut(t.iosNativeUrl),t.androidNativeUrl=ut(t.androidNativeUrl),t};"undefined"!==typeof SM&&SM;window.waitingLogList=[];var pt=window,dt=function(t){var e=null,n="";"string"!=typeof t?(n=t.code,e=t):(n=t,e=window.iNPHConfig),function(t,e){var n=g(e),r=JSON.stringify(Object.assign({installAppFromWeibo:~~pt.wbInstallInfo},n)),o={name:t,type:encodeURIComponent(r),title:"",index:"",href:""};if(i.a.showLog({title:"send log ",txt:t+"/"+r}),waitingLogList.push(o),"function"==typeof pt.suda_count||pt.suda_count){for(var a in waitingLogList)pt.suda_count(waitingLogList[a]);waitingLogList=[]}}(n,e)};(function(){_sinaCallEvent.on("sina_suda_action",dt)})();var ft={},gt=i.a.isWeixin(),vt=i.a.isIOS9(),mt=!gt&&i.a.isQQB(),yt=(!gt&&!mt&&i.a.isQQ(),i.a.isWeibo()),_t=i.a.isUC(),bt=function(t){var e=Z();if("PC"!=e.device||"UC"==e.browser)if(~~t.tryCallDirectly)o(t.nativeUrl);else switch(e.type!==O.a.yyb||t.openByWeixin||(e.type=O.a.other),e.type!==O.a.schemeLayer||t.nextIsDownload&&!yt||(e.type=O.a.schemeH5),t.callWay=e,e.type){case O.a.universal:!function(t,e){vt&&t.ios9Url&&!yt&&!_t||"iPad"===e.device?r.a.newLocation({config:t,url:t.ios9Url}):_sinaCallEvent.trigger("sina_direct_open",t)}(t,e);break;case O.a.yyb:!function(t){t.openByWeixin+=t.openByWeixin.indexOf("?")<0?"?":"";var e=t.openByWeixin.indexOf("app.qq.com")>0?"&android_schema="+encodeURIComponent(t.nativeUrl):"",n=t.openByWeixin+e;r.a.newLocation({config:t,url:n})}(t);break;case O.a.intent:case O.a.schemeLayer:case O.a.schemeH5:default:ft.isNoLayer=!0,_sinaCallEvent.trigger("sina_direct_open",ft)}else!function(t,e){t.installUrl?("Safari"===e.browser?window.location.href=t.ios9Url:window.location.href=t.nativeUrl,setTimeout((function(){window.location.href=t.installUrl}),0)):console.log("\u8df3\u8f6c\u5730\u5740\u4e3a\u7a7a\uff01\uff01\uff01")}(t,e)},wt=function(t){window.iNPHConfig=t,ft=k(t),ft=v.init(ft)||{},ft=m.a.reset(ft),window.iNPHConfig=ft,window.iNPHConfig.useInstallUrl||~~t.isNotSendClickLog||~~ft.onlyCopy||(i.a.showLog({title:"sina_suda_action",txt:"click_".concat(ft.position)}),_sinaCallEvent.trigger("sina_suda_action","click_".concat(ft.position))),_sinaCallEvent.trigger("native_call_start",t.targetEl),ft=ht(ft),st(ft),bt(ft)};window.goOpenNative=function(t){wt(t)};e.a=wt},,,function(t,e,n){"use strict";n.r(e);var i=function(){console.warn("The package @mfelibs/base-tools-SIMA world not work when jsbridgeBuildType is app. If you want to report a log, please use the API SNC.simaBizLog!")},r=function(){i()},o=function(){i()},a=function(){i()};r.init=a,r.suda_count=o,window.suda_count=o,window.suda_init=a,window.SIMA=r,window.suda_exposure=function(){i()},e.default=r},function(t,e,n){"use strict";var i=n(40),r=n(172),o=n(47),a=n(57),s=n(28).f,l=n(88),c=n(92),u=n(52),h=n(25),p="Array Iterator",d=a.set,f=a.getterFor(p);t.exports=l(Array,"Array",(function(t,e){d(this,{type:p,target:i(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==n?i:"values"==n?e[i]:[i,e[i]],!1)}),"values");var g=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(v){}},function(t,e,n){var i=n(18),r=n(19),o=n(45),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},function(t,e,n){var i=n(23),r=n(53),o=n(28).f,a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var i,r,o=n(24),a=n(174),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){var i=n(25),r=n(114),o=n(28),a=n(34),s=n(40),l=n(178);e.f=i&&!r?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),r=l(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],i[n]);return t}},function(t,e,n){var i=n(38),r=n(27),o=n(117),a=n(81),s=n(177),l=n(23),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e,n){var i=n(38),r=n(16),o=n(27),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},function(t,e,n){var i=n(118),r=n(85);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(40),r=n(119),o=n(84),a=function(t){return function(e,n,a){var s,l=i(e),c=o(l),u=r(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:n)(e)}},function(t,e,n){var i=n(83),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(54);t.exports=i("document","documentElement")},function(t,e,n){var i=n(24),r=n(16),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},function(t,e,n){var i=n(18),r=n(16),o=n(76),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},function(t,e,n){var i=n(26),r=n(187),o=n(120),a=n(28);t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!_(this,t)}}),o(p,n?{get:function(t){var e=_(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),d&&r(p,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(t,e,n){var i=e+" Iterator",r=m(e),o=m(i);u(t,e,(function(t,e){v(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?h("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),p(e)}}},function(t,e,n){var i=n(41);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){"use strict";var i=n(54),r=n(132),o=n(23),a=n(25),s=o("species");t.exports=function(t){var e=i(t);a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(94),r=n(41),o=n(212);i||r(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";var i=n(94),r=n(93);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,n){"use strict";var i=n(214).charAt,r=n(133),o=n(57),a=n(88),s=n(92),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",(function(t){c(this,{type:l,string:r(t),index:0})}),(function(){var t,e=u(this),n=e.string,r=e.index;return r>=n.length?s(void 0,!0):(t=i(n,r),e.index+=t.length,s(t,!1))}))},function(t,e,n){var i=n(18),r=n(83),o=n(133),a=n(75),s=i("".charAt),l=i("".charCodeAt),c=i("".slice),u=function(t){return function(e,n){var i,u,h=o(a(e)),p=r(n),d=h.length;return p<0||p>=d?t?"":void 0:(i=l(h,p))<55296||i>56319||p+1===d||(u=l(h,p+1))<56320||u>57343?t?s(h,p):i:t?c(h,p,p+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[],n=null,i=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(t,n){i=t&&n?h(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},o._resetCrossOriginUpdater=function(){n=null,i=null},o.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var i=this._checkForIntersections,r=null,o=null;if(this.POLL_INTERVAL?r=n.setInterval(i,this.POLL_INTERVAL):(a(n,"resize",i,!0),a(e,"scroll",i,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(i)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),s(t,"resize",i,!0)),s(e,"scroll",i,!0),o&&o.disconnect()})),e!=(this.root&&this.root.ownerDocument||t)){var l=f(e);l&&this._monitorIntersections(l.ownerDocument)}}},o.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var i=this.root&&this.root.ownerDocument||t,r=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=i;){var r=f(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var o=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),o(),e!=i){var a=f(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e=0&&s>=0&&{top:n,bottom:i,left:r,right:o,width:a,height:s}||null}function c(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function h(t,e){var n=e.top-t.top,i=e.left-t.left;return{top:n,left:i,height:e.height,width:e.width,bottom:n+e.height,right:i+e.width}}function p(t,e){for(var n=e;n;){if(n==t)return!0;n=d(n)}return!1}function d(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?f(e):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function f(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(e){return null}}}()},function(t,e,n){"use strict";var i=Object.prototype.hasOwnProperty;function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return null}}function o(t){try{return encodeURIComponent(t)}catch(e){return null}}e.stringify=function(t,e){e=e||"";var n,r,a=[];for(r in"string"!==typeof e&&(e="?"),t)if(i.call(t,r)){if((n=t[r])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),r=o(r),n=o(n),null===r||null===n)continue;a.push(r+"="+n)}return a.length?e+a.join("&"):""},e.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,i={};e=n.exec(t);){var o=r(e[1]),a=r(e[2]);null===o||null===a||o in i||(i[o]=a)}return i}},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(t,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,a=l(o),s=this._rootContainsTarget(o),c=r.entry,u=e&&s&&this._computeTargetAndRootIntersection(o,n),h=r.entry=new i({time:t.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:n,intersectionRect:u});c?e&&s?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,i){if("none"!=t.getComputedStyle(n).display){for(var r=l(n),o=u(n),a=!1;!a;){var c=null,h=1==o.nodeType?t.getComputedStyle(o):{};if("none"==h.display)return;if(o==this.root||o==e?(a=!0,c=i):o!=e.body&&o!=e.documentElement&&"visible"!=h.overflow&&(c=l(o)),c&&!(r=s(c,r)))break;o=u(o)}return r}},r.prototype._getRootRect=function(){var t;if(this.root)t=l(this.root);else{var n=e.documentElement,i=e.body;t={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var r=0;r=0&&s>=0&&{top:n,bottom:i,left:r,right:o,width:a,height:s}}function l(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(t,e){for(var n=e;n;){if(n==t)return!0;n=u(n)}return!1}function u(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e,n){"use strict";n.r(e);var i=n(219).default;e.default=i},function(t,e,n){"use strict";n.r(e);var i=n(2),r=n(3),o=function(){function t(e){Object(i.a)(this,t),this.map={},this.registedMap=[],this.instance=null}return Object(r.a)(t,[{key:"trigger",value:function(t,e){var n=this,i=this.map[t];i&&i.forEach((function(t){t.apply(n,[].concat(e))}))}},{key:"on",value:function(t,e){this.map[t]?this.map[t].push(e):this.map[t]=[e]}},{key:"off",value:function(t,e){if(this.map[t]&&e){var n=this.map[t].indexOf(e);this.map[t].splice(n,1)}else e||this.map[t]&&(this.map[t]=[])}}],[{key:"getInstance",value:function(e){return this.instance||(this.instance=new t),this.instance}}]),t}().getInstance();e.default=o},function(t,e,n){"use strict";n.r(e);var i=n(221).default;e.default=i},function(t,e,n){"use strict";n.r(e);var i=n(2),r=n(3),o=function(){function t(){Object(i.a)(this,t)}return Object(r.a)(t,[{key:"insert",value:function(t){return new Promise((function(e,n){e(t)}))}},{key:"delete",value:function(t){return new Promise((function(e,n){e(t)}))}},{key:"query",value:function(t){return new Promise((function(e,n){e(t)}))}}],[{key:"getInstance",value:function(e){return this.instance||(this.instance=new t),this.instance}}]),t}().getInstance();e.default=o},function(t,e){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i>>32-e}function n(t,e){var n,i,r,o,a;return r=2147483648&t,o=2147483648&e,a=(1073741823&t)+(1073741823&e),(n=1073741824&t)&(i=1073741824&e)?2147483648^a^r^o:n|i?1073741824&a?3221225472^a^r^o:1073741824^a^r^o:a^r^o}function i(t,i,r,o,a,s,l){return t=n(t,n(n(function(t,e,n){return t&e|~t&n}(i,r,o),a),l)),n(e(t,s),i)}function r(t,i,r,o,a,s,l){return t=n(t,n(n(function(t,e,n){return t&n|e&~n}(i,r,o),a),l)),n(e(t,s),i)}function o(t,i,r,o,a,s,l){return t=n(t,n(n(function(t,e,n){return t^e^n}(i,r,o),a),l)),n(e(t,s),i)}function a(t,i,r,o,a,s,l){return t=n(t,n(n(function(t,e,n){return e^(t|~n)}(i,r,o),a),l)),n(e(t,s),i)}function s(t){var e,n="",i="";for(e=0;e<=3;e++)n+=(i="0"+(t>>>8*e&255).toString(16)).substr(i.length-2,2);return n}var l,c,u,h,p,d,f,g,v,m=Array();for(m=function(t){for(var e,n=t.length,i=n+8,r=16*((i-i%64)/64+1),o=Array(r-1),a=0,s=0;s>>29,o}(this),d=1732584193,f=4023233417,g=2562383102,v=271733878,l=0;l=2;t--)try{if(new Function("return new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+t+"');")()){e=t+".0";break}}catch(i){}return e}function s(){var t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"android":t.toLowerCase().match(/iphone/i)?"iphone":"other"}function l(t){var e,n=new RegExp("(^| )"+t+"=([^;]*)(;|$)");return(e=document.cookie.match(n))?unescape(e[2]):null}n.r(e);var c=function(){},u=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.breadcrumbs=[],this.inited=!1,this.errorReporter=void 0,this.domClickEventHandler=function(t){var e=t.target?t.target:t.srcElement,i={tagName:"",id:"",className:"",parentId:"",outerHTML:"",name:"",time:(new Date).getTime()};if(e&&function(t){return t instanceof HTMLElement}(e)&&(e.tagName&&(i.tagName=e.tagName),e.id&&(i.id=e.id),e.className&&(i.className=e.className),e.name&&(i.name=e.name),!e.id)){for(var r=0,o=e;r++<3&&o.parentNode&&o.parentNode&&o.parentNode.outerHTML&&!(o=o.parentNode).id;);if(o.id)i.parentId=r+":"+o.id;else{var a=o.outerHTML.replace(/>\s+<");a&&a.length>200&&(a=a.slice(0,200)),i.outerHTML=a}}n.breadcrumbs.push(i),n.breadcrumbs.length>10&&n.breadcrumbs.shift()},this.errorReporter=e}var e,n,u;return e=t,(n=[{key:"startCollect",value:function(){this.inited||(this.init(),this.inited=!0)}},{key:"stopCollect",value:function(){this.inited&&(this.destruct(),this.clean(),this.inited=!1)}},{key:"destruct",value:function(){window.onerror=c,window.onunhandledrejection=c,this.unbindCatchClickQueueEvent()}},{key:"clean",value:function(){this.breadcrumbs=[]}},{key:"init",value:function(){this.bindUnhanldePromiseRejectionHandler(),this.bindErrorEventHandler(),this.bindCatchClickQueueEvent()}},{key:"reportCustomError",value:function(t,e){var n;n=t instanceof Error?this.handleErrorStack(t):"string"===typeof t?t:t.toString();var i=this._constructReportBaseError(n);this.reportError(i,e)}},{key:"_constructReportBaseError",value:function(t){return{breadcrumbs:JSON.stringify(this.breadcrumbs),msg:t,rowNum:void 0,colNum:void 0,targetUrl:void 0}}},{key:"reportError",value:function(t,e){var n=function(){var t=window.navigator;return{b:"sinawap",c:"h5",d:l("SINAGLOBAL"),e:s(),f:window.ERR_UID||l("ustat"),g:t.userAgent,h:Date.parse((new Date).toString())/1e3,i:"load",l:window.location.href,_:Math.random()}}(),i=function(){var t=window.screen;return{userAgent:window.navigator.userAgent,currentUrl:window.location.href,timestamp:+new Date+Math.random(),platform:o(),flashVer:a(),title:document.title,screenSize:t.width+"x"+t.height,referer:document.referrer?document.referrer:"",host:window.location.protocol+"//"+window.location.hostname}}();this.errorReporter(t,n,i,e)}},{key:"bindErrorEventHandler",value:function(){var t=this;window.addEventListener("error",(function(e){var n=e.message,i=e.filename,o=e.lineno,a=e.colno,s=e.error;try{a=a||window.event&&window.event.errorCharacter||0;var l=n;r(l=s&&s.stack?t.handleErrorStack(s):t._fixMsgByCaller(l,arguments.callee.caller),"Event")&&(l+=l.type?"--"+l.type+"--"+(l.target?l.target.tagName+"::"+l.target.src:""):""),l&&t.reportError({msg:l,rowNum:o,colNum:a,targetUrl:i,breadcrumbs:JSON.stringify(t.breadcrumbs)})}catch(e){t.reportCustomError(e)}}))}},{key:"_fixMsgByCaller",value:function(t,e){for(var n=[],i=e,r=3;i&&r-- >0&&(n.push(i.toString()),i!==i.caller);)i=i.caller;return n.length>0&&(t+="@"+n.join(",")),t}},{key:"bindUnhanldePromiseRejectionHandler",value:function(){var t=this;window.addEventListener("unhandledrejection",(function(e){try{var n,i=e.reason&&e.reason.message||e.reason;e.reason&&e.reason.stack?(i=t.handleErrorStack(e.reason),n=t._parseErrorStack(e.reason.stack)):i=t._fixMsgByCaller(i,arguments.callee.caller),e.reason instanceof Error&&e.reason,i&&t.reportError({msg:i,rowNum:n&&n.line||0,colNum:n&&n.col||0,targetUrl:n&&n.targetUrl||"",breadcrumbs:JSON.stringify(t.breadcrumbs)})}catch(r){t.reportCustomError(r)}}))}},{key:"_parseErrorStack",value:function(t){var e={col:0,line:0,targetUrl:""};try{var n=t.split("at")[1].match(/http.*/)[0].replace(/\)$/,"").split(":"),i=n.length;e.col=n[i-1],e.line=n[i-2],n.splice(i-2,2),e.targetUrl=n.join(":")}catch(r){}return e}},{key:"handleErrorStack",value:function(t){var e=t.stack,n=t.toString();return n&&e?-1===e.indexOf(n)&&(e+="@"+n):e="",e}},{key:"bindCatchClickQueueEvent",value:function(){window.addEventListener?"ontouchstart"in document.documentElement?window.addEventListener("touchstart",this.domClickEventHandler,!0):window.addEventListener("click",this.domClickEventHandler,!0):document.attachEvent("onclick",this.domClickEventHandler)}},{key:"unbindCatchClickQueueEvent",value:function(){window.addEventListener?"ontouchstart"in document.documentElement?window.removeEventListener("touchstart",this.domClickEventHandler,!0):window.removeEventListener("click",this.domClickEventHandler,!0):document.detachEvent("onclick",this.domClickEventHandler)}}])&&i(e.prototype,n),u&&i(e,u),t}(),h="default",p={breadcrumbs:"bf",colNum:"bg",flashVer:"bi",host:"bj",msg:"n",platform:"bm",referer:"bn",rowNum:"m",screenSize:"bp",targetUrl:"k",title:"br"};function d(t){t&&"object"===typeof t&&t.code&&(h=t.code),(window._ERR_REP&&window._ERR_REP instanceof u?window._ERR_REP:window._ERR_REP=new u((function(e,n,i,r){var o=f(e,i);if(o.customError=n,t.ignoreList&&t.ignoreList.length)for(var a=0;a=0?c(u):r(this.length)-c(l(u));e0?1:-1}},function(t,e,n){"use strict";var i=n(42),r={function:!0,object:!0};t.exports=function(t){return i(t)&&r[typeof t]||!1}},function(t,e,n){"use strict";var i,r=Object.create;n(137)()||(i=n(138)),t.exports=function(){var t,e,n;return i?1!==i.level?r:(t={},e={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){e[t]="__proto__"!==t?n:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(t,e),Object.defineProperty(i,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:t}),function(e,n){return r(null===e?t:e,n)}):r}()},function(t,e,n){"use strict";var i=n(241);t.exports=function(t){if("function"!==typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!==typeof t.length)return!1;if("function"!==typeof t.call)return!1;if("function"!==typeof t.apply)return!1}catch(e){return!1}return!i(t)}},function(t,e,n){"use strict";var i=n(95);t.exports=function(t){if(!i(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(e){return!1}}},function(t,e,n){"use strict";t.exports=function(){var t,e=Object.assign;return"function"===typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,e,n){"use strict";var i=n(244),r=n(31),o=Math.max;t.exports=function(t,e){var n,a,s,l=o(arguments.length,2);for(t=Object(r(t)),s=function(i){try{t[i]=e[i]}catch(r){n||(n=r)}},a=1;a-1}},function(t,e,n){"use strict";var i,r,o,a,s,l,c,u=n(29),h=n(39),p=Function.prototype.apply,d=Function.prototype.call,f=Object.create,g=Object.defineProperty,v=Object.defineProperties,m=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var n,r;return h(e),r=this,i.call(this,t,n=function(){o.call(r,t,n),p.call(e,this,arguments)}),n.__eeOnceListener__=e,this},a=function(t){var e,n,i,r,o;if(m.call(this,"__ee__")&&(r=this.__ee__[t]))if("object"===typeof r){for(n=arguments.length,o=new Array(n-1),e=1;e=55296&&v<=56319&&(g+=t[++d]),l.call(e,m,g,h),!p);++d);else c.call(t,(function(t){return l.call(e,m,t,h),p}))}},function(t,e,n){"use strict";var i=n(61),r=n(62),o=n(261),a=n(276),s=n(143),l=n(35).iterator;t.exports=function(t){return"function"===typeof s(t)[l]?t[l]():i(t)?new o(t):r(t)?new a(t):new o(t)}},function(t,e,n){"use strict";var i,r=n(59),o=n(141),a=n(29),s=n(35),l=n(97),c=Object.defineProperty;i=t.exports=function(t,e){if(!(this instanceof i))throw new TypeError("Constructor requires 'new'");l.call(this,t),e=e?o.call(e,"key+value")?"key+value":o.call(e,"key")?"key":"value":"value",c(this,"__kind__",a("",e))},r&&r(i,l),delete i.prototype.constructor,i.prototype=Object.create(l.prototype,{_resolve:a((function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}))}),c(i.prototype,s.toStringTag,a("c","Array Iterator"))},function(t,e,n){"use strict";var i,r=n(43),o=n(263),a=n(267),s=n(268),l=n(140),c=n(273),u=Function.prototype.bind,h=Object.defineProperty,p=Object.prototype.hasOwnProperty;i=function(t,e,n){var i,r=o(e)&&a(e.value);return delete(i=s(e)).writable,delete i.value,i.get=function(){return!n.overwriteDefinition&&p.call(this,t)?r:(e.value=u.call(r,n.resolveContext?n.resolveContext(this):this),h(this,t,e),this[t])},i},t.exports=function(t){var e=l(arguments[1]);return r(e.resolveContext)&&a(e.resolveContext),c(t,(function(t,n){return i(n,t,e)}))}},function(t,e,n){"use strict";var i=n(144),r=n(43);t.exports=function(t){return r(t)?t:i(t,"Cannot use %v",arguments[1])}},function(t,e,n){"use strict";var i=n(43),r=n(95),o=Object.prototype.toString;t.exports=function(t){if(!i(t))return null;if(r(t)){var e=t.toString;if("function"!==typeof e)return null;if(e===o)return null}try{return""+t}catch(n){return null}}},function(t,e,n){"use strict";var i=n(266),r=/[\n\r\u2028\u2029]/g;t.exports=function(t){var e=i(t);return null===e?"":(e.length>100&&(e=e.slice(0,99)+"\u2026"),e=e.replace(r,(function(t){switch(t){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})))}},function(t,e,n){"use strict";t.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(n){return null}}}},function(t,e,n){"use strict";var i=n(144),r=n(139);t.exports=function(t){return r(t)?t:i(t,"%v is not a plain function",arguments[1])}},function(t,e,n){"use strict";var i=n(269),r=n(96),o=n(31);t.exports=function(t){var e=Object(o(t)),n=arguments[1],a=Object(arguments[2]);if(e!==t&&!n)return e;var s={};return n?i(n,(function(e){(a.ensure||e in t)&&(s[e]=t[e])})):r(s,t),s}},function(t,e,n){"use strict";t.exports=n(270)()?Array.from:n(271)},function(t,e,n){"use strict";t.exports=function(){var t,e,n=Array.from;return"function"===typeof n&&(e=n(t=["raz","dwa"]),Boolean(e&&e!==t&&"dwa"===e[1]))}},function(t,e,n){"use strict";var i=n(35).iterator,r=n(61),o=n(272),a=n(136),s=n(39),l=n(31),c=n(42),u=n(62),h=Array.isArray,p=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;t.exports=function(t){var e,n,g,v,m,y,_,b,w,x,S=arguments[1],k=arguments[2];if(t=Object(l(t)),c(S)&&s(S),this&&this!==Array&&o(this))e=this;else{if(!S){if(r(t))return 1!==(m=t.length)?Array.apply(null,t):((v=new Array(1))[0]=t[0],v);if(h(t)){for(v=new Array(m=t.length),n=0;n=55296&&y<=56319&&(x+=t[++n]),x=S?p.call(S,k,x,g):x,e?(d.value=x,f(v,g,d)):v[g]=x,++g;m=g}if(void 0===m)for(m=a(t.length),e&&(v=new e(m)),n=0;n=55296&&e<=56319?n+this.__list__[this.__nextIndex__++]:n}))}),l(i.prototype,a.toStringTag,o("c","String Iterator"))},function(t,e,n){"use strict";var i,r=n(59),o=n(29),a=n(97),s=n(35).toStringTag,l=n(278),c=Object.defineProperties,u=a.prototype._unBind;i=t.exports=function(t,e){if(!(this instanceof i))return new i(t,e);a.call(this,t.__mapKeysData__,t),e&&l[e]||(e="key+value"),c(this,{__kind__:o("",e),__values__:o("w",t.__mapValuesData__)})},r&&r(i,a),i.prototype=Object.create(a.prototype,{constructor:o(i),_resolve:o((function(t){return"value"===this.__kind__?this.__values__[t]:"key"===this.__kind__?this.__list__[t]:[this.__list__[t],this.__values__[t]]})),_unBind:o((function(){this.__values__=null,u.call(this)})),toString:o((function(){return"[object Map Iterator]"}))}),Object.defineProperty(i.prototype,s,o("c","Map Iterator"))},function(t,e,n){"use strict";t.exports=n(279)("key","value","key+value")},function(t,e,n){"use strict";var i=Array.prototype.forEach,r=Object.create;t.exports=function(t){var e=r(null);return i.call(arguments,(function(t){e[t]=!0})),e}},function(t,e,n){"use strict";t.exports="undefined"!==typeof Map&&"[object Map]"===Object.prototype.toString.call(new Map)},function(t,e,n){!function(e){"use strict";var n={bytesToHex:function(t){return function(t){return t.map((function(t){return e=t.toString(16),n=2,e.length>n?e:Array(n-e.length+1).join("0")+e;var e,n})).join("")}(t)},hexToBytes:function(t){if(t.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map((function(t){return parseInt(t,16)}))}};t.exports?t.exports=n:e.convertHex=n}(this)},function(t,e,n){!function(e){"use strict";var n={bytesToString:function(t){return t.map((function(t){return String.fromCharCode(t)})).join("")},stringToBytes:function(t){return t.split("").map((function(t){return t.charCodeAt(0)}))}};n.UTF8={bytesToString:function(t){return decodeURIComponent(escape(n.bytesToString(t)))},stringToBytes:function(t){return n.stringToBytes(unescape(encodeURIComponent(t)))}},t.exports?t.exports=n:e.convertString=n}(this)},function(t,e,n){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var i=n(284),r=n(285),o=n(286);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(i)return H(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return I(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function v(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function m(t,e,n,i,r){if(0===t.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:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:y(t,e,n,i,r);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,i,r){var o,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,p=0;pr&&(i=r):i=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function T(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r239?4:c>223?3:c>191?2:1;if(r+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128===(192&(o=t[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[r+1],a=t[r+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(i,r),u=t.slice(e,n),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,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 O=4096;function I(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;ri)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,n,i,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function L(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function j(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function R(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,i,o){return o||R(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function B(t,e,n,i,o){return o||R(t,0,n,8),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||E(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=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),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=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((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function U(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n(33))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=l(t),a=i[0],s=i[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),u=0,h=s>0?a-4:a;for(n=0;n>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],a=16383,s=0,l=n-r;sl?l:s+a));1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)i[s]=a[s],r[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var r,o,a=[],s=e;s>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,u=-7,h=n?r-1:0,p=n?-1:1,d=t[e+h];for(h+=p,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+t[e+h],h+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+t[e+h],h+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=c}return(d?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&s,d+=f,s/=256,r-=8);for(a=a<0;t[n+d]=255&a,d+=f,a/=256,c-=8);t[n+d-f]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r=1,o={},a=!1,s=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){u(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"===typeof n.data&&0===n.data.indexOf(e)&&u(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),i=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){u(t.data)},i=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var t=s.documentElement;i=function(e){var n=s.createElement("script");n.onreadystatechange=function(){u(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():i=function(t){setTimeout(u,0,t)},l.setImmediate=function(t){"function"!==typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++i0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(152),r=n(102),o=n(155),a=n(101);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?r(n)&&o(e,n.length):"string"==s&&e in n)&&i(n[e],t)}},function(t,e,n){var i=n(307),r=n(318),o=n(102);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var i=n(308),r=n(309),o=n(311),a=n(312),s=n(155),l=n(314),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&r(t),h=!n&&!u&&a(t),p=!n&&!u&&!h&&l(t),d=n||u||h||p,f=d?i(t.length,String):[],g=f.length;for(var v in t)!e&&!c.call(t,v)||d&&("length"==v||h&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||f.push(v);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n=0})).forEach((function(t){if(a.hasOwnProperty(t)&&"function"===typeof s[t]){var e=a[t];a[t]=function(n,i){return e(s[t](n),i)}}}))}for(var h in a)a[h]=this.mergeGeneralParam(a[h]);this.logLib=a}},{key:"updateGeneralParam",value:function(t){this.generalParam=Object.assign(Object.assign({},this.generalParam),t)}},{key:"getGeneralParam",value:function(){return this.generalParam}},{key:"mergeGeneralParam",value:function(t){var e=this;return function(n,i){var r=n.other;n.other=Object.assign(Object.assign({},e.generalParam),r),t(n,i)}}}]),t}(),w=null;n(170),n(193),n(211),n(213),n(215);var x=new(function(){function t(){Object(l.a)(this,t),this.prefix=(+new Date).toString(),this.map=new Map,this.seed=0}return Object(c.a)(t,[{key:"genId",value:function(){return"FaizReport_exposure_id_".concat(this.prefix,"_").concat(this.seed++)}},{key:"add",value:function(t){var e=this.genId();return this.map.set(e,t),e}},{key:"has",value:function(t){return this.map.has(t)}},{key:"get",value:function(t){return this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t)}}]),t}()),S=null,k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r1&&void 0!==arguments[1]?arguments[1]:"click",n=arguments.length>2?arguments[2]:void 0;t["faizReportHenshin_".concat(e)]||(t["faizReportHenshin_".concat(e)]=!0,t.addEventListener(e,n))}(this.el,"click",(function(){"string"===typeof r?e.doReport(r,n,i,o,"click"):r instanceof Array&&r.forEach((function(t){return e.doReport(t,n,i,o,"click")}))}))}},{key:"exposure",value:function(t){var e=this,n=t.id,i=t.other,r=t.reportMethod,o=k(t,["id","other","reportMethod"]);!function(t,e){var n=x.add(e);if(t.faizReportExposureId=n,!S){var i=g.get(m)||{},r=Object.assign({root:null,threshold:[0]},i);S=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){_("=== [Faiz Console:] faiz report \u6267\u884c listener ===",t);var e=t.target.faizReportExposureId;if(x.has(e))try{x.get(e)()}catch(n){_("=== [Faiz Console:] faiz report \u6267\u884c listener error ===",n)}x.delete(e),S.unobserve(t.target)}}))}),r)}S.observe(t)}(this.el,(function(){"string"===typeof r?e.doReport(r,n,i,o,"exposure"):r instanceof Array&&r.forEach((function(t){return e.doReport(t,n,i,o,"exposure")}))}))}},{key:"doReport",value:function(t,e,n,i,r){this.logMethod[t]?this.logMethod[t](Object.assign({id:e,other:n},i),r):_("=== [Faiz Console:] error ===","".concat(this.env,"Log \u4e0a\u4e0d\u5b58\u5728 ").concat(t,"\u65b9\u6cd5"))}}]),t}(),C=function(t){_("=== [Faiz Console:] faiz report plugin options ===",t);var e=t.env;return{bind:function(t,n,i){_("=== faiz report === bind",t,n);var r=n.arg,o=void 0===r?"wap-click":r,a=n.value,s=void 0===a?{}:a,l=o.split("-"),c=l[0],u=l[1]?l[1].split("_"):"click";e===c&&new T(c,u,t,s)},unbind:function(t){_("=== faiz report === unbind",t),function(t){var e=t.faizReportExposureId;_("=== [Faiz Console:] \u89e3\u9664\u89c2\u5bdf ===",S,t),S&&S.unobserve(t),x.delete(e)}(t)}}},O=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object.assign(y,e),g.set(m,e.exposureObserverOption||{}),g.set(v,e.debug||!1);var n=function(t){return w||(w=new b(t))}(e);t.directive("FaizReport",C(e)),t.prototype.$faizReport={setGeneralParam:n.updateGeneralParam.bind(n),getGeneralParam:n.getGeneralParam.bind(n),logLib:n.logLib}},I={ready:"hb.core.ready",onInject:"hb.core.onInject",onDatePickerChange:"hb.bee.onDatePickerChange",onUnload:"hb.core.onUnload",onPreFetch:"hb.core.onPreFetch",onGetRenderStatus:"hb.core.getRenderStatus",onFirstAjax:"hb.core.onFirstAjax",onShareInfo:"hb.bee.onShareInfo",onDayOrNightModeChange:"hb.core.onDayOrNightModeChange",onPullDownRefresh:"hb.bee.onPullDownRefresh",onNetworkStatusChange:"hb.core.onNetworkStatusChange",onShow:"hb.core.onShow",onHide:"hb.core.onHide",onReload:"hb.core.onReload",onCommentReady:"hb.bee.onCommentReady",onCommentSendBack:"hb.bee.onCommentSendBack",onCommentCancel:"hb.bee.onCommentCancel",onMessage:"hb.core.onMessage",onLuckMoneyEnd:"hb.core.onLuckMoneyEnd",onShareSuccess:"hb.bee.onShareSuccess",onCommentClick:"hb.bee.onCommentClick",onUserStateChange:"hb.core.onUserStateChange",onNativeClick:"hb.bee.onNativeClick",onNativeTouchDown:"hb.bee.onNativeTouchDown",onLike:"hb.bee.onLike",onFollow:"hb.globalEvent.onFollow",onNativeStateChange:"hb.core.onNativeStateChange",onSensorChange:"hb.core.onSensorChange",onAdAppStatesChange:"hb.bee.onAdAppStatesChange",onPictureMark:"hb.bee.onPictureMark",onUploadProgress:"hb.core.onUploadProgress",onKeyboardChange:"hb.core.onKeyboardChange"},M=n(4),A=n.n(M);A.a.mountApi("wapApis",{pageReload:function(){this.pageReload=function(t){var e=t.type,n=t.success;return new Promise((function(t,i){"firstAjax"!==e&&window.location.reload(),n&&n(),t()}))}}});A.a.pageReload;A.a.mountApi("wapApis",{showToast:function(){this.showToast=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.showToast;A.a.mountApi("wapApis",{getNetworkType:function(){this.getNetworkType=function(t){var e=t.success;return new Promise((function(t,n){e&&e({}),t({})}))}}});A.a.getNetworkType;function D(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}var P=D({props:{type:{type:String},title:{type:String,required:!0},showReloadBtn:{},clickBtnFn:{type:Function},clickBtnTitle:{type:String,default:"\u70b9\u51fb\u91cd\u65b0\u52a0\u8f7d"},subtitle:{type:String}},methods:{reload:function(){this.clickBtnFn?this.clickBtnFn():A.a.pageReload({type:this.type})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error_network"},[n("figure",{staticClass:"error_network_img"}),n("h5",{staticClass:"error_data_tit"},[t._v(t._s(t.title))]),t.subtitle?n("p",{staticClass:"error_data_prompt"},[t._v(t._s(t.subtitle))]):t._e(),t.showReloadBtn?n("a",{staticClass:"error_network_refresh",attrs:{href:"javascript:;"},on:{click:t.reload}},[t._v(t._s(t.clickBtnTitle))]):t._e()])}),[],!1,null,null,null),E=P.exports,L=D({props:{type:{type:String},title:{type:String,required:!0},showReloadBtn:{},clickBtnFn:{type:Function},clickBtnTitle:{type:String,default:"\u70b9\u51fb\u91cd\u65b0\u52a0\u8f7d"},subtitle:{type:String}},methods:{reload:function(){this.clickBtnFn?this.clickBtnFn():A.a.pageReload({type:this.type})}},mounted:function(){}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error_data"},[n("figure",{staticClass:"error_data_img"}),n("h5",{staticClass:"error_data_tit"},[t._v(t._s(t.title))]),t.subtitle?n("p",{staticClass:"error_data_prompt"},[t._v(t._s(t.subtitle))]):t._e(),t.showReloadBtn?n("a",{staticClass:"error_network_refresh",attrs:{href:"javascript:;"},on:{click:t.reload}},[t._v(t._s(t.clickBtnTitle))]):t._e()])}),[],!1,null,null,null),j=L.exports,R=D({props:["type","title","clickBtnFn","subtitle"],methods:{reload:function(){this.clickBtnFn?this.clickBtnFn():A.a.pageReload({type:this.type})}},mounted:function(){}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error_audit "},[n("figure",{staticClass:"error_audit_img"}),n("h5",{staticClass:"error_data_tit"},[t._v(t._s(t.title))]),n("p",{staticClass:"error_data_prompt"},[t._v(t._s(t.subtitle))])])}),[],!1,null,null,null),N=(R.exports,D({props:[],methods:{}},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"error_loading"})}),[],!1,null,null,null).exports,D({props:["type","title","showReloadBtn","clickBtnFn","subtitle"],methods:{reload:function(){this.clickBtnFn?this.clickBtnFn():A.a.pageReload({type:this.type})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error_msg "},[n("figure",{staticClass:"error_msg_img"}),n("h5",{staticClass:"error_data_tit"},[t._v(t._s(t.title))])])}),[],!1,null,null,null)),B=(N.exports,D({props:{type:{type:String},title:{type:String,required:!0},showReloadBtn:{},clickBtnFn:{type:Function},clickBtnTitle:{type:String,default:"\u70b9\u51fb\u91cd\u65b0\u52a0\u8f7d"},subtitle:{type:String}},methods:{reload:function(){this.clickBtnFn?this.clickBtnFn():A.a.pageReload({type:this.type})}},mounted:function(){}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error_search"},[n("figure",{staticClass:"error_search_img"}),n("h5",{staticClass:"error_data_tit"},[t._v(t._s(t.title))]),t.subtitle?n("p",{staticClass:"error_data_prompt"},[t._v(t._s(t.subtitle))]):t._e(),t.showReloadBtn?n("a",{staticClass:"error_network_refresh",attrs:{href:"javascript:;"},on:{click:t.reload}},[t._v(t._s(t.clickBtnTitle))]):t._e()])}),[],!1,null,null,null)),z=B.exports,F=D({props:["type","title","clickBtnFn","subtitle"],methods:{}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error_privacy "},[n("figure",{staticClass:"error_privacy_img"}),n("h5",{staticClass:"error_data_tit"},[t._v(t._s(t.title))]),n("p",{staticClass:"error_data_prompt"},[t._v(t._s(t.subtitle))])])}),[],!1,null,null,null);F.exports;A.a.mountApi("wapApis",{setNavigationBarTitle:function(){this.setNavigationBarTitle=function(t){var e=t.title,n=t.success;return new Promise((function(t,i){document.title=e||"",n&&n(),t()}))}}});A.a.setNavigationBarTitle;A.a.mountApi("wapApis",{hideLoading:function(){this.hideLoading=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.hideLoading;var H=n(20),V=A.a,U=!1,G=D({components:{ErrorNetwork:E,ErrorSearch:z},props:{title:{},titleAlign:{},waitFirstAjax:{default:!1},autoSendRender:{default:!0}},watch:{title:{handler:function(){void 0!==this.title&&this.$appSNC.setNavigationBarTitle({title:this.title,align:this.titleAlign})},immediate:!0}},data:function(){return{errorType:"none",networkErrorTitle:"",networkErrorTypeL:"firstAjax",showReloadBtn:!0,getNetworkTypeDone:!1,hb_onFirstAjaxDone:!this.waitFirstAjax,isApp:U}},created:function(){var t=this;V.onNetworkStatusChange((function(e){console.log("onNetworkStatusChange:",e),t.$store.commit("setAIOSTATE",{AIO_networkStatus:e.networkType,isOnline:"none"!==e.networkType})})),V.getNetworkType({success:function(e){console.log("getNetworkType:",e),t.$store.commit("setAIOSTATE",{networkStatus:e.networkType,isOnline:"none"!==e.networkType}),"none"==e.networkType&&(t.errorType="network",V.hideLoading()),t.getNetworkTypeDone=!0}})},mounted:function(){this.title},methods:{hb_onFirstAjax:function(t){try{this.$store.commit("setAIOSTATE",{firstAjaxData:t}),this.$store.commit("setAIOSTATE",{firstAjaxError:{status:0,err:""}}),this.hb_onFirstAjaxDone=!0}catch(e){console.log("aio-core aio-page hb_onFirstAjax error:",e),this.$store.commit("setAIOSTATE",{firstAjaxError:{status:1,err:e.message}})}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{staticClass:"page_main"},[t.getNetworkTypeDone&&t.hb_onFirstAjaxDone&&"network"!==t.errorType?[t._t("header"),t._t("default"),t._t("footer")]:t._e(),"network"==t.errorType?n("div",{staticClass:"errorNetwork"},[n("error-network",{attrs:{title:t.networkErrorTitle,type:t.networkErrorType,showReloadBtn:t.showReloadBtn}})],1):t._e()],2)}),[],!1,null,"1c7a4c46",null),W=G.exports,Y=D({props:{created_method:{require:!1,type:String,default:"simaBizLog"},created_log:{require:!1,type:Object},mounted_method:{require:!1,type:String,default:"simaBizLog"},mounted_log:{require:!1,type:Object}},created:function(){this.created_log&&this.$appSNC[this.created_method](Object(a.a)({},this.created_log))},mounted:function(){this.mounted_log&&this.$appSNC[this.mounted_method](Object(a.a)({},this.mounted_log))}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._t("default")],2)}),[],!1,null,null,null).exports;var X=n(44);function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||Object(X.a)(t,e)||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 Z(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Object(X.a)(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var K=n(12);function Q(t,e){if("string"!==typeof t||"string"!==typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[];var n=t.indexOf(e);return-1===n?[]:[t.slice(0,n),t.slice(n+e.length)]}function J(t,e){return e.decode?decodeURIComponent(t):t}function tt(t,e){return e.encode?encodeURIComponent(t):t}function et(t){var e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function nt(t){var e=(t=et(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function it(t){return"string"!==typeof t||""===t||Number.isNaN(Number(t))?null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()):t=Number(t),t}function rt(t){return"comma"===t.arrayFormat?function(t){return function(e,n){return null===n||void 0===n||0===n.length?e:0===e.length?["".concat(tt(t,options),"=").concat(tt(n,options))]:[[e,tt(n,options)].join(",")]}}:function(t){return function(e,n){return void 0===n||options.skipNull&&null===n||options.skipEmptyString&&""===n?e:[].concat(Object(K.a)(e),null===n?[tt(t,options)]:["".concat(tt(t,options),"=").concat(tt(n,options))])}}}function ot(t,e){e=Object.assign({decode:!0,arrayFormat:"none"},e);var n=Object.create(null);if("string"!==typeof t)return n;var i=function(t){return"comma"===t.arrayFormat?function(e,n,i){var r="string"===typeof n&&n.split("").indexOf(",")>-1?n.split(",").map((function(e){return J(e,t)})):null===n?n:J(n,t);i[e]=r}:function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}(e);if(!(t=t.trim().replace(/^[?#&]/,"")))return n;var r,o=Z(t.split("&"));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=q(Q(e.decode?a.replace(/\+/g," "):a,"="),2),l=s[0],c=s[1];c=void 0===c?null:["comma"].includes(e.arrayFormat)?c:J(c,e),i(J(l,e),c,n)}}catch(m){o.e(m)}finally{o.f()}for(var u=0,h=Object.keys(n);u1&&void 0!==arguments[1]?arguments[1]:{},n=et(t.url).split("?")[0]||"",i=ot(nt(t.url)),r=function(t){var e="",n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url),o=function(t,e){if("object"!==typeof t&&null===t)return"";for(var n=rt(e=Object.assign({decode:!0,arrayFormat:"none",skipNull:!0,skipEmptyString:!0},e)),i=function(n){return e.skipNull&&(null===t[n]||void 0===t[n])||e.skipEmptyString&&""===t[n]},r={},o=0,a=Object.keys(t);o0})).join("&")}(Object.assign(i,t.query),e);return o&&(o="?".concat(o)),"".concat(n).concat(o).concat(r)}function st(t){return new URLSearchParams(t)}function lt(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(e);return null===n?null:decodeURI(n[2])}var ct,ut,ht,pt=n(216);function dt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.search;return pt.parse(t)}var ft=null!==(ct=null===(ut=window.SM)||void 0===ut||null===(ht=ut.data)||void 0===ht?void 0:ht.callup)&&void 0!==ct?ct:{},gt=lt("wm");function vt(t){var e=ft.HybridId||t.newsId||"",n=ft.Kid||t.kid||"",i=ft.Position||t.newsId||"1",r=t.SN||"",o="https://so.sina.cn/palmnews?id="+n,a=encodeURIComponent(JSON.stringify({id:e})),s="sinanews://params="+a,l={iosInstallUrl:o,androidInstallUrl:o,iosNativeUrl:s,androidNativeUrl:s,ios9Url:"https://sapi.sina.cn/Callup.php?params="+a,openByWeixin:"http://a.app.qq.com/o/simple.jsp?pkgname=com.sina.news",paramsK:{type:"wm".concat(gt,"_LAND_").concat(e),calluptype:r,position:i}};window._sinaCallEvent&&window._sinaCallEvent.trigger("sina_open_native",l)}var mt=vt,yt={bind:function(t,e,n){t.__handle__=function(t){t.preventDefault(),vt(e.value)},t.addEventListener("click",t.__handle__)},unbind:function(t){t.removeEventListener("click",t.__handle__)}};function _t(t,e){return"number"===typeof t?t:!(t=Number(t))||isNaN(t)?e:t}var bt=/yyyy|MM|M|mm|m|dd|d|HH|H|ss|s/g;function wt(t,e){var n=function(t){t=t?new Date(t):new Date;var e=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),r=t.getHours(),o=t.getMinutes(),a=t.getSeconds();return{yyyy:e,M:n,d:i,H:r,m:o,s:a}}(t);return console.log(1111),e.replace(bt,(function(t){var e=n[4===t.length?t:t.slice(0,1)];return 2===t.length?function(t){return t<10?"0".concat(t):t}(e):e}))}function xt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"d",i=Number(e);if(isNaN(i))throw new Error("invald number: "+e);var r="FullYear",o="Month",a="Date",s="Hours",l="Seconds",c="Minutes",u="Milliseconds",h={y:r,yyyy:r,M:o,months:o,w:"Day",weeks:"Day",d:a,days:a,hours:s,h:s,seconds:l,s:l,minutes:c,m:c,milliseconds:u,ms:u}[n];if(!h)throw new Error("invald type: "+n);if("Day"===h){if(i>6||i<0)throw new Error("\u65e5\u671f\u6570\u503c\u5e94\u8bbe\u7f6e\u8303\u56f4\u5e940-6,\u4f20\u5165\u503c\u4e3a\uff1a"+i);var p=i+1;t.setDate(t.getDate()+(p-t["get".concat(h)]()))}else t["set".concat(h)](t["get".concat(h)]()+i);return t}var St=function(){var t,e=/])/g,s=/[&<>"'`]/g,l=/(?:\x00|^-*!?>|--!?>|--?!?$|\]>|\]$)/g,c=/&(?:#([xX][0-9A-Fa-f]+|\d+);?|(Tab|NewLine|colon|semi|lpar|rpar|apos|sol|comma|excl|ast|midast|ensp|emsp|thinsp);|(nbsp|amp|AMP|lt|LT|gt|GT|quot|QUOT);?)/g,u={Tab:"\t",NewLine:"\n",colon:":",semi:";",lpar:"(",rpar:")",apos:"'",sol:"/",comma:",",excl:"!",ast:"*",midast:"*",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",nbsp:"\xa0",amp:"&",lt:"<",gt:">",quot:'"',QUOT:'"'},h=/^(?:(?!-*expression)#?[-\w]+|[+-]?(?:\d+|\d*\.\d+)(?:r?em|ex|ch|cm|mm|in|px|pt|pc|%|vh|vw|vmin|vmax)?|!important|)$/i,p=/[\x00-\x1F\x7F\[\]{}\\"]/g,d=/[\x00-\x1F\x7F\[\]{}\\']/g,f=/url[\(\u207D\u208D]+/g,g=/['\(\)]/g,v=/\/\/%5[Bb]([A-Fa-f0-9:]+)%5[Dd]/,m={javascript:1,data:1,vbscript:1,mhtml:1,"x-schema":1},y=/(?::|&#[xX]0*3[aA];?|�*58;?|:)/,_=/(?:^[\x00-\x20]+|[\t\n\r\x00]+)/g,b={Tab:"\t",NewLine:"\n"},w=function(t,e,n){return void 0===t?"undefined":null===t?"null":t.toString().replace(e,n)},x=String.fromCodePoint||function(t){return 0===arguments.length?"":t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),t%1024+56320))};function S(t){var e=t.split(y,2);return!e[0]||2!==e.length&&t.length===e[0].length?null:e[0]}function k(e,n,i,r){return n=n||u,i=i||c,void 0===e?"undefined":null===e?"null":e.toString().replace(o,"\ufffd").replace(i,(function(e,i,o,a){return i?(i=Number(i[0]<="9"?i:"0"+i),r?x(i):128===i?"\u20ac":130===i?"\u201a":131===i?"\u0192":132===i?"\u201e":133===i?"\u2026":134===i?"\u2020":135===i?"\u2021":136===i?"\u02c6":137===i?"\u2030":138===i?"\u0160":139===i?"\u2039":140===i?"\u0152":142===i?"\u017d":145===i?"\u2018":146===i?"\u2019":147===i?"\u201c":148===i?"\u201d":149===i?"\u2022":150===i?"\u2013":151===i?"\u2014":152===i?"\u02dc":153===i?"\u2122":154===i?"\u0161":155===i?"\u203a":156===i?"\u0153":158===i?"\u017e":159===i?"\u0178":i>=55296&&i<=57343||13===i?"\ufffd":t.frCoPt(i)):n[o||a]||e}))}function T(t){return"\\"+t.charCodeAt(0).toString(16).toLowerCase()+" "}function C(t){return t.replace(f,(function(t){return"-x-"+t}))}function O(e){var n=S(e=t.yufull(k(e)));return n&&m[n.toLowerCase()]?"##"+e:e}return t={frCoPt:function(t){return void 0===t||null===t?"":!isFinite(t=Number(t))||t<=0||t>1114111||t>=1&&t<=8||t>=14&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||11===t||65535===(65535&t)||65534===(65535&t)?"\ufffd":x(t)},d:k,yup:function(t){return(t=S(t.replace(o,"")))?k(t,b,null,!0).replace(_,"").toLowerCase():null},y:function(t){return w(t,s,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"===t?"'":"`"}))},ya:function(t){return w(t,r,"&")},yd:function(t){return w(t,e,"<")},yc:function(t){return w(t,l,(function(t){return"\0"===t?"\ufffd":"--!"===t||"--"===t||"-"===t||"]"===t?t+" ":t.slice(0,-1)+" >"}))},yavd:function(t){return w(t,n,""")},yavs:function(t){return w(t,i,"'")},yavu:function(t){return w(t,a,(function(t){return"\t"===t?" ":"\n"===t?" ":"\v"===t?" ":"\f"===t?" ":"\r"===t?" ":" "===t?" ":"="===t?"=":"<"===t?"<":">"===t?">":'"'===t?""":"'"===t?"'":"`"===t?"`":"\ufffd"}))},yu:encodeURI,yuc:encodeURIComponent,yubl:function(e){return m[t.yup(e)]?"x-"+e:e},yufull:function(e){return t.yu(e).replace(v,(function(t,e){return"//["+e+"]"}))},yublf:function(e){return t.yubl(t.yufull(e))},yceu:function(t){return t=k(t),h.test(t)?t:";-x:'"+C(t.replace(d,T))+"';-v:"},yced:function(t){return C(k(t).replace(p,T))},yces:function(t){return C(k(t).replace(d,T))},yceuu:function(t){return O(t).replace(g,(function(t){return"'"===t?"\\27 ":"("===t?"%28":"%29"}))},yceud:function(t){return O(t)},yceus:function(t){return O(t).replace(i,"\\27 ")}}}();var kt={mixinByPath:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i={};if(""===n)Object.assign(i,t,e);else{var r=n.split("."),o=t;r.map((function(t){o=o[t]})),o=Object.assign(o,e),i=t}return i},isOverAppVersion:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.app.version;function n(t){var e=t.reduce((function(t,e){var n=parseInt(e);return t+""+"".concat(("00"+n).slice(-2))}),"");return e}try{var i=n(t.split(".")),r=parseInt(i),o=n(e.split(".")),a=parseInt(o)-r;if(a>0)return 1;if(a<0)return-1;if(0==a)return 0;throw new Error("\u5224\u65ad\u51fa\u9519\uff0c\u8bf7\u68c0\u67e5\u4f20\u5165\u7684\u7248\u672c\u53f7\u683c\u5f0f")}catch(s){throw new Error(s)}},merge:function(t){for(var e=1,n=arguments.length;e1&&void 0!==arguments[1]?arguments[1]:{};return ot(nt(t),e)},stringifyUrl:at,stringifyURL:at,SearchParams:st,searchParams:st,getUrlParam:lt,getAllUrlParam:dt,formatTime:wt,dateCalc:xt,cutString:function(t,e){if(2*t.length<=e)return t;for(var n=0,i="",r=0;r128?n+=2:n+=1,n>=e)return"".concat(i.substring(0,i.length),"...");return i},strLen:function(t){var e=0,n=t;if(""==n)return e;for(var i=0;i255?e+=2:e++;return e},inHTMLData:St.yd,uriInHTMLData:St.yufull,uriPathInHTMLData:St.yu,uriComponentInHTMLData:St.yuc},Tt=function(){function t(){Object(l.a)(this,t),this.attributes={path:"/"}}return Object(c.a)(t,[{key:"set",value:function(t,e,n){if("undefined"!==typeof document){"number"===typeof(n=Object(a.a)(Object(a.a)({},this.attributes),n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),t=this._writeConverter(t).replace(/=/g,"%3D"),e=this._writeConverter(e);var i="";for(var r in n)n[r]&&(i+="; ".concat(r),!0!==n[r]&&(i+="="+n[r].toString().split(";")[0]));var o="".concat(t,"=").concat(e)+i;return document.cookie=o,o}}},{key:"get",value:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],n={},i=0;i2&&void 0!==arguments[2]?arguments[2]:"d",i=Number(e);if(isNaN(i))throw new Error("invald number: "+e);var r="FullYear",o="Month",a="Date",s="Hours",l="Seconds",c="Minutes",u="Milliseconds",h={y:r,yyyy:r,M:o,months:o,w:"Day",weeks:"Day",d:a,days:a,hours:s,h:s,seconds:l,s:l,minutes:c,m:c,milliseconds:u,ms:u}[n];if(!h)throw new Error("invald type: "+n);return t["set".concat(h)](t["get".concat(h)]()+i),t}var At=function(){function t(e){Object(l.a)(this,t),this.time=e}return Object(c.a)(t,[{key:"add",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return Mt(this.time,t,e),this}},{key:"subtract",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return Mt(this.time,-t,e),this}},{key:"format",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy/MM/dd HH:mm:ss";return It(this.time,t)}}]),t}();var Dt=window.navigator&&navigator.userAgent||"",Pt=function(t){return t.test(Dt)},Et={Chrome:Pt(/webkit\W.*(chrome|chromium)\W/i),Firefox:Pt(/mozilla.*\Wfirefox\W/i),IE:function(){return"Microsoft Internet Explorer"===navigator.appName||!!Pt(/\bTrident\b/)},Kindle:Pt(/\W(kindle|silk)\W/i),Mobile:Pt(/(iphone|ipod|((?:android)?.*?mobile)|blackberry|nokia)/i),Opera:Pt(/opera.*\Wpresto\W|OPR/i),Safari:Pt(/webkit\W(?!.*chrome).*safari\W/i),QQ:Pt(/(M?QQBrowser)\/([0-9.]*)/i),iBrowser:Pt(/(iBrowser)\/([0-9.]*)/i),Dolphin:Pt(/DolphinHDCN\/([0-9.]*)/i),"360EEE":Pt(/360EE/i),UC:Pt(/UCBrowser\/([0-9.]*)/i),Tablet:Pt(/(ipad|android(?!.*mobile)|tablet)/i),TV:Pt(/googletv|sonydtv/i),WebKit:Pt(/webkit\W/i),Android:Pt(/android/i),IOS:Pt(/(ipad|iphone|ipod)/i),IPad:Pt(/ipad/i),IPhone:Pt(/iphone/i),IPod:Pt(/ipod/i),userAgent:function(){return Dt}};var Lt={version:(function(){var t,e={},n=navigator.userAgent.toLowerCase();return(t=n.match(/msie ([\d.]+)/))?e.ie=t[1]:(t=n.match(/firefox\/([\d.]+)/))?e.firefox=t[1]:(t=n.match(/chrome\/([\d.]+)/))?e.chrome=t[1]:(t=n.match(/opera.([\d.]+)/))?e.opera=t[1]:(t=n.match(/version\/([\d.]+).*safari/))&&(e.safari=t[1]),e.ie?"IE: "+e.ie:e.firefox?"Firefox: "+e.firefox:e.chrome?"Chrome: "+e.chrome:e.opera?"Opera: "+e.opera:e.safari?"Safari: "+e.safari:void 0}()+"").replace(/[^0-9.]/gi,""),android:Et.android,ios:Et.IOS,ipad:Et.IPad,kindle:Et.Kindle,tablet:Et.Tablet,brower:Et.Chrome?"chrome":Et.Firefox?"firfox":Et.Safari?"safari":Et.Opera?"opera":Et.QQ?"QQ Browser":Et.Dolphin?"Dolphin":Et.iBrowser?"iBrowser":Et["360EE"]?"360":Et.UC?"UC":"other",chrome:Et.Chrome,firefox:Et.Firefox,safari:Et.Safari,opera:Et.Opera};function jt(t,e){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jt(t,e)}function Rt(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jt(t,e)}function Nt(t){return Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nt(t)}var Bt=n(32);function zt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ft(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Nt(t);if(e){var r=Nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Object(Bt.a)(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return zt(t)}(this,n)}}var Ht=function(){function t(){Object(l.a)(this,t),this.map={},this.emitData={}}return Object(c.a)(t,[{key:"emit",value:function(t,e,n){this.map[t]?this.map[t].forEach((function(t){t.apply(this,e)})):n&&(this.emitData[t]?this.emitData[t].push(e):this.emitData[t]=[e])}},{key:"on",value:function(t,e,n){n&&this.emitData[t]&&(this.emitData[t].forEach((function(t){e.apply(this,t)})),delete this.emitData[t]),this.map[t]?this.map[t].push(e):this.map[t]=[e]}}]),t}(),Vt=function(t){Rt(n,t);var e=Ft(n);function n(t){var i;return Object(l.a)(this,n),(i=e.call(this))._handleOptions(t),i._elementMap=new WeakMap,i._initIo(),i}return Object(c.a)(n,[{key:"observe",value:function(t){t=this._verifyElements(t);var e=this.io,n=this._elementMap;t.forEach((function(t){var i=n.get(t);i&&i.stopped||(n.set(t,{isShow:!1,timer:null,count:0}),e.observe(t))}))}},{key:"unobserve",value:function(t,e){t=this._verifyElements(t);var n=this.io,i=this._elementMap;t.forEach((function(t){n.unobserve(t),e?i.get(t).stopped=!0:i.delete(t)}))}},{key:"_initIo",value:function(){var t=this,e=this._elementMap;this.io=new IntersectionObserver((function(n){n.forEach((function(n){var i=n.target,r=e.get(i);n.isIntersecting?0===t.stayTime?t.emit("show",[i,++r.count]):r.timer=setTimeout((function(){r.timer=null,r.isShow=!0,t.emit("show",[i,++r.count])}),t.stayTime):(r.timer&&(clearTimeout(r.timer),r.timer=null),r.isShow&&(t.emit("hide",[i]),r.isShow=!1))}))}))}},{key:"_handleOptions",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).stayTime;this.stayTime=_t(t,0)}},{key:"_verifyElements",value:function(t){if(t instanceof Element)return[t];if(void 0===t.length)throw new Error('"elements" must be an element or an array of elements or an NodeList or an HTMLCollection. Got '+t);return[].slice.call(t)}}]),n}(Ht),Ut=Vt,Gt=0;function Wt(){}var Yt=function(t,e,n){"function"==typeof e&&(n=e,e={}),e||(e={});var i,r,o=e.prefix||"jsonp",a=e.name||o+Gt++,s=e.param||"callback",l=null!=e.timeout?e.timeout:6e4,c=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head;function h(){i.parentNode&&i.parentNode.removeChild(i),window[a]=Wt,r&&clearTimeout(r)}return l&&(r=setTimeout((function(){h(),n&&n(new Error("Timeout"))}),l)),window[a]=function(t){h(),n&&n(null,t)},t=(t+=(~t.indexOf("?")?"&":"?")+s+"="+c(a)).replace("?&","?"),(i=document.createElement("script")).src=t,console.log(t),u.parentNode.insertBefore(i,u),function(){window[a]&&h()}},Xt=n(11),$t={},qt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(l.a)(this,t),this.storage=void 0,this.name=void 0,this.prefix="",this.holdTime=0,this.fullName="",this.expireKey="___EXPIRE_DATE_KEY__","string"!==typeof e)throw new Error('"name" must be a string');if(!e.trim())throw new Error("invalid name: ".concat(e));var i=n.holdTime,r=n.prefix,o=n.useSessionStorage;"string"===typeof r&&(this.prefix=r),this.name=e,this.fullName=this.prefix+this.name;var a=this.prefix+e;if(this.fullName=a,$t[a])return $t[a];$t[a]=this,this.setHoldTime(i),this.option={name:e,options:n},this.storage=o?window.sessionStorage:window.localStorage}return Object(c.a)(t,[{key:"get",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.storage.getItem(this.fullName);if(!e)return t;try{e=JSON.parse(e)}catch(i){return e}var n=e[this.expireKey];return n?Date.now()>n?(console.log("".concat(this.fullName," is expired")),t):e.value:e}},{key:"set",value:function(t){var e,n=this._getExpires(),i=this.storage;n?i.setItem(this.fullName,JSON.stringify((e={},Object(Xt.a)(e,this.expireKey,n),Object(Xt.a)(e,"value",t),e))):(t=void 0===t?t:JSON.stringify(t),i.setItem(this.fullName,t));return this}},{key:"setHoldTime",value:function(t){return t=Number(t),isNaN(t)||(this.holdTime=t),this}},{key:"destroy",value:function(){var t=this.fullName;$t[t]=null,this.storage.removeItem(t)}},{key:"getOptions",value:function(){return this.option}},{key:"_getExpires",value:function(){var t=this.holdTime;return t?Date.now()+1e3*t:0}}]),t}(),Zt=qt,Kt=function(t){return t.get="get",t.post="post",t}(Kt||{}),Qt=function(t){return t.json="json",t.jsonp="jsonp",t}(Qt||{}),Jt={cookie:Ct,dateTool:function(t){return new At(t)},device:Lt,ElementViewObserver:Ut,Events:Ht,jsonp:Yt,StorageHandle:Zt,request:new(function(){function t(){Object(l.a)(this,t)}return Object(c.a)(t,[{key:"get",value:function(t,e){return this.fetch({url:t,method:Kt.get,data:e})}},{key:"post",value:function(t,e){return this.fetch({url:t,method:Kt.post,data:e})}},{key:"jsonp",value:function(t,e){return this.fetch({url:t,method:Kt.get,data:e,dataType:Qt.jsonp})}},{key:"fetch",value:function(t){return new Promise((function(e,n){var i=t.url,r=t.method,o=t.data,s=t.dataType,l=void 0===s?"json":s;function c(t){V.sendError({error:"".concat(i,"\u63a5\u53e3\u8bf7\u6c42\u5931\u8d25--res: ").concat(t)}),n(t)}V.fetch({url:i,needAuth:!0,needGatewayAuth:!0,needGeneralParam:!0,data:o,method:r,dataType:l,success:function(t){var n,i,r=Number(null===t||void 0===t||null===(n=t.result)||void 0===n||null===(i=n.status)||void 0===i?void 0:i.code),o=Number(null===t||void 0===t?void 0:t.code),s=Number(null===t||void 0===t?void 0:t.status);0===r||0===o||200===s||0===s?e(t):c(Object(a.a)(Object(a.a)({},t),{},{_isErrorCode:!0}))},error:function(e){console.log("FetchError",e,t),c(e)}})}))}}]),t}())},te=navigator.userAgent;var ee,ne,ie={buildMode:"prod",isIOS:!!te.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),isHarmony:/sinanews(.+)harmony/gi.test(te),isWeibo:!!te.match(/weibo/gi),isWechat:!!te.match(/MicroMessenger/gi),isTencent:!!te.match(/qq/gi),pkgVersion:"0.1.45",isApp:!1},re=D({name:"aio-msgbox",props:{title:{type:String,default:""},message:{type:String,default:""},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},confirmButtonText:{type:String,default:"\u786e\u5b9a"},cancelButtonText:{type:String,default:"\u53d6\u6d88"},confirmButtonClass:{type:String,default:""},cancelButtonClass:{type:String,default:""},zIndex:{type:Number,default:9999}},data:function(){return{visible:!1}},methods:{handleAction:function(t){var e=this.callback;this.visible=!1,e(t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"aio-msgbox-wrapper",style:{"z-index":t.zIndex}},[n("transition",{attrs:{name:"msgbox-bounce"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"aio-msgbox-mask"})]),n("transition",{attrs:{name:"msgbox-bounce"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"aio-msgbox-popup"},[t.title?n("div",{staticClass:"aio-msgbox-title"},[t._v(t._s(t.title))]):t._e(),t.message?n("div",{staticClass:"aio-msgbox-content"},[n("div",{staticClass:"aio-msgbox-message",domProps:{innerHTML:t._s(t.message)}})]):t._e(),n("div",{staticClass:"aio-msgbox-btns"},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.showCancelButton,expression:"showCancelButton"}],class:[t.cancelButtonClass],on:{click:function(e){return t.handleAction("cancel")}}},[t._v(t._s(t.cancelButtonText))]),t.showCancelButton?n("span",{staticClass:"spliter"}):t._e(),n("button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],class:[t.confirmButtonClass,"highlight"],on:{click:function(e){return t.handleAction("confirm")}}},[t._v(t._s(t.confirmButtonText))])])])])],1)}),[],!1,null,"22091713",null),oe=re.exports,ae={title:"",message:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:"\u786e\u5b9a",cancelButtonText:"\u53d6\u6d88",confirmButtonClass:"",cancelButtonClass:""},se=o.a.extend(oe),le=[];function ce(t){for(var e=1,n=arguments.length;e0){var t=(ee=le.shift()).options;for(var e in t)t.hasOwnProperty(e)&&(ne[e]=t[e]);void 0===t.callback&&(ne.callback=ue),document.body.appendChild(ne.$el),o.a.nextTick((function(){ne.visible=!0}))}}var pe=function t(e,n){if("string"===typeof e?(e={message:e},arguments[1]&&(e.title=arguments[1]),arguments[2]&&(e.type=arguments[2])):e.callback&&!n&&(n=e.callback),"undefined"!==typeof Promise)return new Promise((function(i,r){le.push({options:ce({},ae,t.defaults||{},e),callback:n,resolve:i,reject:r}),he()}));le.push({options:ce({},ae,t.defaults||{},e),callback:n}),he()};pe.setDefaults=function(t){pe.defaults=t},pe.alert=function(t,e,n){return"object"===typeof e&&(n=e,e=""),pe(ce({title:e,message:t,$type:"alert"},n))},pe.confirm=function(t,e,n){return"object"===typeof e&&(n=e,e=""),pe(ce({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},pe.close=function(){ne.visible=!1,le=[],ee=null};var de=pe,fe={props:{size:Number,color:String},computed:{spinnerColor:function(){return this.color||this.$parent.color||"#ccc"},spinnerSize:function(){return(this.size||this.$parent.size||20)+"px"}}},ge=D({name:"snake",mixins:[fe]},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"aio-spinner-snake",style:{"border-top-color":t.spinnerColor,"border-left-color":t.spinnerColor,"border-bottom-color":t.spinnerColor,height:t.spinnerSize,width:t.spinnerSize}})}),[],!1,null,null,null).exports,ve=D({name:"dots",mixins:[fe],computed:{spinnerSize:function(){return(this.size||this.$parent.size||20)/3-2+"px"},bounceStyle:function(){return{width:this.spinnerSize,height:this.spinnerSize,backgroundColor:this.spinnerColor}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"aio-spinner-dots"},[n("div",{staticClass:"aio-spinner-dots-bounce1",style:t.bounceStyle}),n("div",{staticClass:"aio-spinner-dots-bounce2",style:t.bounceStyle}),n("div",{staticClass:"aio-spinner-dots-bounce3",style:t.bounceStyle})])}),[],!1,null,null,null),me=ve.exports,ye=["snake","dots"],_e=D({name:"aio-spinner",components:{SpinnerSnake:ge,SpinnerDots:me},props:{type:{type:String,default:"snake"},color:{type:String,default:"#909399"},size:{type:Number,default:20}},computed:{spinnerName:function(){var t=ye.indexOf(this.type)>-1?this.type:ye[0];return"spinner-".concat(t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n(t.spinnerName,{tag:"component"})],1)}),[],!1,null,null,null),be=_e.exports,we=D({name:"aio-mask",components:{AioSpinner:be},props:{visible:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},closable:{type:Boolean,default:!1}},watch:{visible:function(t){!this.scrollable&&t?document.body.style.overflow="hidden":document.body.style.overflow=""}},methods:{close:function(){this.$emit("update:visible",!1),this.$emit("close")}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"aio-mask"},[t.closable?n("div",{staticClass:"aio-mask-icon",on:{click:t.close}},[t._t("close",(function(){return[n("svg",{staticClass:"icon",attrs:{t:"1589511111287",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15307",width:"200",height:"200"}},[n("path",{attrs:{d:"M862.72 161.28a496 496 0 1 0 0 704 496.64 496.64 0 0 0 0-704z m-45.44 656a432 432 0 1 1 0-610.56 431.36 431.36 0 0 1 0 610.56z",fill:"#ffffff","p-id":"15308"}}),n("path",{attrs:{d:"M698.88 325.12a32.64 32.64 0 0 0-45.44 0L512 466.56 370.56 325.12a32 32 0 0 0-45.44 45.44L466.56 512l-141.44 141.44a32.64 32.64 0 0 0 0 45.44 33.28 33.28 0 0 0 45.44 0L512 557.44l141.44 141.44a33.28 33.28 0 0 0 45.44 0 32.64 32.64 0 0 0 0-45.44L557.44 512l141.44-141.44a32.64 32.64 0 0 0 0-45.44z",fill:"#ffffff","p-id":"15309"}})])]}))],2):t._e(),n("div",{staticClass:"aio-mask-content"},[n("aio-spinner",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._t("default")],2)])}),[],!1,null,null,null),xe=we.exports;function Se(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function ke(t,e,n,i,r){var o={};return Object.keys(i).forEach((function(t){o[t]=i[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(t,e,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var Te=n(9),Ce=n.n(Te);var Oe="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function Ie(t,e,n){if(Oe&&!Array.isArray(t)&&"function"!==typeof t&&"undefined"===typeof t.type){var i=Reflect.getMetadata("design:type",e,n);i!==Object&&(t.type=i)}}var Me,Ae,De,Pe,Ee;var Le=(Me=Ce()({components:{}}),Ae=function(t){return void 0===t&&(t={}),function(e,n){Ie(t,e,n),Object(Te.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}({}),Me((Pe=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o0}}),!0;return!1}();var ze="event",Fe="observer",He=function(){if(Ne)return"function"===typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t);function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}}();function Ve(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function Ue(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n,i,r,o=t.getAttribute("data-srcset"),a=[],s=t.parentNode.offsetWidth*e;(o=o.trim().split(",")).map((function(t){t=t.trim(),-1===(n=t.lastIndexOf(" "))?(i=t,r=999998):(i=t.substr(0,n),r=parseInt(t.substr(n+1,t.length-n-2),10)),a.push([r,i])})),a.sort((function(t,e){if(t[0]e[0])return-1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var l,c="",u=0;u0&&void 0!==arguments[0]?arguments[0]:1;return Ne&&window.devicePixelRatio||t};function Ye(){if(!Ne)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(i){t=!1}return t}var Xe=function(){if(Ne){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(n){}return t}}(),$e={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Xe?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},qe=function(t,e,n){var i=new Image;if(!t||!t.src){var r=new Error("image src is required");return n(r)}i.src=t.src,t.cors&&(i.crossOrigin=t.cors),i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},Ze=function(t,e){return"undefined"!==typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},Ke=function(t){return Ze(t,"overflow")+Ze(t,"overflow-y")+Ze(t,"overflow-x")};function Qe(){}var Je,tn=function(){function t(e){var n=e.max;Object(l.a)(this,t),this.options={max:n||100},this._caches=[]}return Object(c.a)(t,[{key:"has",value:function(t){return this._caches.indexOf(t)>-1}},{key:"add",value:function(t){this.has(t)||(this._caches.push(t),this._caches.length>this.options.max&&this.free())}},{key:"free",value:function(){this._caches.shift()}}]),t}(),en=function(){function t(e){var n=e.el,i=e.src,r=e.error,o=e.loading,a=e.bindType,s=e.$parent,c=e.options,u=e.cors,h=e.elRenderer,p=e.imageCache;Object(l.a)(this,t),this.el=n,this.src=i,this.error=r,this.loading=o,this.bindType=a,this.attempt=0,this.cors=u,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=s,this.elRenderer=h,this._imageCache=p,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return Object(c.a)(t,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error,r=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.topthis.options.preLoadTop&&this.rect.left0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;this.state.loading=!0,qe({src:this.loading,cors:this.cors},(function(n){e.render("loading",!1),e.state.loading=!1,t()}),(function(){t(),e.state.loading=!1,e.options.silent||console.warn("VueLazyload log: load failed with loading image(".concat(e.loading,")"))}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qe;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: ".concat(this.src," tried too more than ").concat(this.options.attempt," times")),void e()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading((function(){t.attempt++,t.options.adapter.beforeLoad&&t.options.adapter.beforeLoad(t,t.options),t.record("loadStart"),qe({src:t.src,cors:t.cors},(function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),t.state.rendered=!0,t._imageCache.add(t.src),e()}),(function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"$destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),nn="https://mjs.sinaimg.cn/wap/online/home/v7/images/lz2X1.jpg",rn=["scroll","wheel","mousewheel","touchmove"],on={rootMargin:"0px",threshold:0},an=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,r=t.throttleWait,o=t.preLoadTop,a=t.dispatchEvent,s=t.loading,c=t.attempt,u=t.silent,h=void 0===u||u,p=t.scale,d=t.listenEvents,f=(t.hasbind,t.filter),g=t.adapter,v=t.observer,m=t.observerOptions;Object(l.a)(this,e),this.version="__VUE_LAZYLOAD_VERSION__",this.mode=ze,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:h,dispatchEvent:!!a,throttleWait:r||200,preLoad:n||1.3,preLoadTop:o||0,error:i||nn,loading:s||nn,attempt:c||3,scale:p||We(p),ListenEvents:d||rn,hasbind:!1,supportWebp:Ye(),filter:f||{},adapter:g||{},observer:!!v,observerOptions:m||on},this._initEvent(),this._imageCache=new tn({max:200}),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var r=Date.now()-i,o=this,a=arguments,s=function(){i=Date.now(),n=!1,t.apply(o,a)};r>=e?s():n=setTimeout(s,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?Fe:ze)}return Object(c.a)(e,[{key:"add",value:function(e,n,i){var r=this;if(function(t,e){for(var n=!1,i=0,r=t.length;i1&&void 0!==arguments[1]?arguments[1]:{},n=new(an(t))(e);t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)})}},ln=(n(217),{threshold:[0],root:null,rootMargin:"0px 0px -50px 0px"}),cn=new(function(){function t(){Object(l.a)(this,t),this.prefix=(+new Date).toString(36),this.seed=0,this.set={}}return Object(c.a)(t,[{key:"uuid",value:function(){return"exposureset_".concat(this.prefix,"_").concat(this.seed++)}},{key:"add",value:function(t){var e=this.uuid();return this.set[e]=t,e}},{key:"has",value:function(t){return!!this.set[t]}},{key:"get",value:function(t){return this.set[t]}},{key:"delete",value:function(t){delete this.set[t]}}]),t}()),un={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.config,i=void 0===n?{}:n,r=e.name,o=void 0===r?"exposure":r,s=Object(a.a)(Object(a.a)({},ln),i);console.log("[exposure plugin] ".concat(o," config"),s),Je||(Je=new IntersectionObserver((function(t){for(var e=0,n=t.length;e1&&void 0!==arguments[1]?arguments[1]:{};O(t,e),t.use(s.a),t.directive("callup",yt),t.use(sn,{error:e.LazyLoad_error||"https://mjs.sinaimg.cn/wap/online/home/v7/images/lz2X1.jpg",loading:e.LazyLoad_loading||"https://mjs.sinaimg.cn/wap/online/home/v7/images/lz2X1.jpg"});t.use(un,{config:Object.assign({name:"exposure",rootMargin:"0px 0px -50px 0px"},e.exposure_config)}),t.appSNC=V,t.mixin({created:function(){var t=this;Object.keys(I).forEach((function(e){t["hb_".concat(e)]&&V[e](t["hb_".concat(e)].bind(t))})),"app"===V.context.target?this.onHBCreated&&this.onHBCreated():this.onH5Created&&this.onH5Created()},mounted:function(){"app"===V.context.target?this.onHBMounted&&this.onHBMounted():this.onH5Mounted&&this.onH5Mounted()}}),t.config.errorHandler=function(t,e,n){console.error("\u901a\u8fc7vue errorHandler\u6355\u83b7\u7684\u9519\u8bef"),console.error("error:",t),console.error("vm:",e),console.error("info:",n),V.sendError({error:t})};var i=!0;!1===e.use_aio_vuex?i=!1:"multiple"===e.use_aio_vuex&&(i="multiple");var r={state:e.state||{},actions:{},getters:{},mutations:e.mutations||{},plugins:[]},o={};function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},i?r:{}),i?e.vuex_option:{}),t),{state:Object.assign(n?{AIO:{networkStatus:"",isOnline:"",readyData:{},firstAjaxData:{},firstAjaxError:{status:0,err:""}}}:{},i?r.state:{},i&&e.vuex_option?e.vuex_option.state:{},t.state||{})}),{mutations:Object.assign(n?{setAIOSTATE:function(t,e){for(var n in e)t.AIO[n]=e[n]}}:{},i?r.mutations:{},i&&e.vuex_option?e.vuex_option.mutations:{},t.mutations)});return new s.a.Store(o)}i&&("multiple"===i?t.mixin({computed:{$store:{get:function(){var t=this.$root._uid;if(o[t])return o[t];var e=this.$root.vuex_option,n=this.$root.merge_aio_vuex,i=this.$root.merge_common_vuex;return o[t]=l(e,n,i),o[t]},set:function(t){}}}}):t.prototype.$store=l({},!0,!0)),t.prototype.$AIO={context:Object.assign(V.context,ie),wm:lt("wm")||"",urlParam:dt()||{},callup:mt},t.prototype.$appSNC=V,t.prototype.$AIOTools=kt,t.prototype.$AIOLibs=Jt,t.prototype.$MsgBox=de,t.prototype.$CrossEvent=n(218).default,t.prototype.$Calendar=n(220).default,t.prototype.$UniversalLog=n(20).default;var c=e.exts||{};Object.keys(c).forEach((function(n){if(hn[n])throw new Error("".concat(n," \u5df2\u7ecf\u5728AIO\u7ec4\u4ef6\u4e2d\u6ce8\u518c\uff0c\u4e0d\u652f\u6301\u8986\u76d6\uff0c\u8bf7\u66f4\u6362key\u503c"));t.prototype["$"+n]=e.exts[n]&&(e.exts[n].default||e.exts[n])||{}}));var u=e.statics||{};Object.keys(u).forEach((function(n){if(hn[n])throw new Error("".concat(n," \u5df2\u7ecf\u5728AIO\u7ec4\u4ef6\u4e2d\u6ce8\u518c\uff0c\u4e0d\u652f\u6301\u8986\u76d6\uff0c\u8bf7\u66f4\u6362key\u503c"));t.prototype["$"+n]=e.statics[n]&&(e.statics[n].default||e.statics[n])||{}})),window.SINAAIO=window.SINAAIO||{},window.SINAAIO.$AIO=t.prototype.$AIO,window.SINAAIO.$appSNC=t.prototype.$appSNC,window.SINAAIO.$AIOTools=t.prototype.$AIOTools,window.SINAAIO.$AIOLibs=t.prototype.$AIOLibs,window.SINAAIO.$MsgBox=t.prototype.$MsgBox,window.SINAAIO.$CrossEvent=t.prototype.$CrossEvent,window.SINAAIO.$Calendar=t.prototype.$Calendar,window.SINAAIO.$UniversalLog=t.prototype.$UniversalLog,t.component("AioPage",W),t.component("AioComp",Y),t.component("AioSpinner",be),t.component("AioMask",xe),t.component("AioMaskLayer",Re);var h=e.components||{};Object.keys(h).forEach((function(e){t.component(e,h[e].default||h[e])}))}},dn=pn;function fn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ fn=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(I){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:w(t,n,s)}),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(I){return{type:"throw",arg:I}}}t.wrap=c;var h={};function p(){}function d(){}function f(){}var g={};l(g,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(C([])));m&&m!==e&&n.call(m,o)&&(g=m);var y=f.prototype=p.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(i,o,a,s){var l=u(t[i],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==Object(Bt.a)(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function w(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function x(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=u(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function gn(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(i,r)}function vn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){gn(o,i,r,a,s,"next",t)}function s(t){gn(o,i,r,a,s,"throw",t)}a(void 0)}))}}var mn,yn="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function _n(t,e,n){if(yn&&!Array.isArray(t)&&"function"!==typeof t&&!t.hasOwnProperty("type")&&"undefined"===typeof t.type){var i=Reflect.getMetadata("design:type",e,n);i!==Object&&(t.type=i)}}function bn(t){return void 0===t&&(t={}),function(e,n){_n(t,e,n),Object(Te.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function wn(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,o=void 0!==r&&r;return Object(Te.createDecorator)((function(e,n){"object"!==typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!==typeof r[t]||Array.isArray(r[t])?"undefined"===typeof r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:o})}))}var xn=Ce()(mn=function(t){Rt(n,t);var e=Ft(n);function n(){return Object(l.a)(this,n),e.apply(this,arguments)}return Object(c.a)(n)}(o.a))||mn;function Sn(t){return null!==t&&"object"===typeof t&&"constructor"in t&&t.constructor===Object}function kn(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(n){"undefined"===typeof t[n]?t[n]=e[n]:Sn(e[n])&&Sn(t[n])&&Object.keys(e[n]).length>0&&kn(t[n],e[n])}))}var Tn={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Cn(){var t="undefined"!==typeof document?document:{};return kn(t,Tn),t}var On={document:Tn,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return"undefined"===typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){"undefined"!==typeof setTimeout&&clearTimeout(t)}};function In(){var t="undefined"!==typeof window?window:{};return kn(t,On),t}function Mn(t){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Mn(t)}function An(t,e){return An=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},An(t,e)}function Dn(t,e,n){return Dn=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(t){return!1}}()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&An(r,n.prototype),r},Dn.apply(null,arguments)}function Pn(t){var e="function"===typeof Map?new Map:void 0;return Pn=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return Dn(t,arguments,Mn(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),An(i,t)},Pn(t)}var En=function(t){var e,n;function i(e){var n;return function(t){var e=t.__proto__;Object.defineProperty(t,"__proto__",{get:function(){return e},set:function(t){e.__proto__=t}})}(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n=t.call.apply(t,[this].concat(e))||this)),n}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(Pn(Array));function Ln(t){void 0===t&&(t=[]);var e=[];return t.forEach((function(t){Array.isArray(t)?e.push.apply(e,Ln(t)):e.push(t)})),e}function jn(t,e){return Array.prototype.filter.call(t,e)}function Rn(t,e){var n=In(),i=Cn(),r=[];if(!e&&t instanceof En)return t;if(!t)return new En(r);if("string"===typeof t){var o=t.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";0===o.indexOf("0})).length>0},toggleClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;d-=1){var f=p[d];o&&f.listener===o||o&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===o?(h.removeEventListener(c,f.proxyListener,a),p.splice(d,1)):o||(h.removeEventListener(c,f.proxyListener,a),p.splice(d,1))}}return this},trigger:function(){for(var t=In(),e=arguments.length,n=new Array(e),i=0;i0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(t){var e=this;return t&&e.on("transitionend",(function n(i){i.target===this&&(t.call(this,i),e.off("transitionend",n))})),this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var t=In();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var t=In(),e=Cn(),n=this[0],i=n.getBoundingClientRect(),r=e.body,o=n.clientTop||r.clientTop||0,a=n.clientLeft||r.clientLeft||0,s=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:i.top+s-o,left:i.left+l-a}}return null},css:function(t,e){var n,i=In();if(1===arguments.length){if("string"!==typeof t){for(n=0;ne-1)return Rn([]);if(t<0){var n=e+t;return Rn(n<0?[]:[this[n]])}return Rn([this[t]])},append:function(){for(var t,e=Cn(),n=0;n=0;n-=1)this[e].insertBefore(r.childNodes[n],this[e].childNodes[0])}else if(t instanceof En)for(n=0;n0?t?this[0].nextElementSibling&&Rn(this[0].nextElementSibling).is(t)?Rn([this[0].nextElementSibling]):Rn([]):this[0].nextElementSibling?Rn([this[0].nextElementSibling]):Rn([]):Rn([])},nextAll:function(t){var e=[],n=this[0];if(!n)return Rn([]);for(;n.nextElementSibling;){var i=n.nextElementSibling;t?Rn(i).is(t)&&e.push(i):e.push(i),n=i}return Rn(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&Rn(e.previousElementSibling).is(t)?Rn([e.previousElementSibling]):Rn([]):e.previousElementSibling?Rn([e.previousElementSibling]):Rn([])}return Rn([])},prevAll:function(t){var e=[],n=this[0];if(!n)return Rn([]);for(;n.previousElementSibling;){var i=n.previousElementSibling;t?Rn(i).is(t)&&e.push(i):e.push(i),n=i}return Rn(e)},parent:function(t){for(var e=[],n=0;n6&&(i=i.split(", ").map((function(t){return t.replace(",",".")})).join(", ")),r=new o.WebKitCSSMatrix("none"===i?"":i)):n=(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(i=o.WebKitCSSMatrix?r.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(i=o.WebKitCSSMatrix?r.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}function Xn(t){return"object"===typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function $n(){for(var t,e=Object(arguments.length<=0?void 0:arguments[0]),n=["__proto__","constructor","prototype"],i=1;i=0,observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(i){}return e}(),gestures:"ongesturestart"in t}}()),Fn}function Zn(t){return void 0===t&&(t={}),Hn||(Hn=function(t){var e=(void 0===t?{}:t).userAgent,n=qn(),i=In(),r=i.navigator.platform,o=e||i.navigator.userAgent,a={ios:!1,android:!1},s=i.screen.width,l=i.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/),u=o.match(/(iPad).*OS\s([\d_]+)/),h=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="Win32"===r,f="MacIntel"===r;return!u&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(s+"x"+l)>=0&&((u=o.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),f=!1),c&&!d&&(a.os="android",a.android=!0),(u||p||h)&&(a.os="ios",a.ios=!0),a}(t)),Hn}function Kn(){return Vn||(Vn=function(){var t=In();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),Vn}var Qn={name:"resize",create:function(){var t=this;$n(t,{resize:{observer:null,createObserver:function(){t&&!t.destroyed&&t.initialized&&(t.resize.observer=new ResizeObserver((function(e){var n=t.width,i=t.height,r=n,o=i;e.forEach((function(e){var n=e.contentBoxSize,i=e.contentRect,a=e.target;a&&a!==t.el||(r=i?i.width:(n[0]||n).inlineSize,o=i?i.height:(n[0]||n).blockSize)})),r===n&&o===i||t.resize.resizeHandler()})),t.resize.observer.observe(t.el))},removeObserver:function(){t.resize.observer&&t.resize.observer.unobserve&&t.el&&(t.resize.observer.unobserve(t.el),t.resize.observer=null)},resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(t){var e=In();t.params.resizeObserver&&"undefined"!==typeof In().ResizeObserver?t.resize.createObserver():(e.addEventListener("resize",t.resize.resizeHandler),e.addEventListener("orientationchange",t.resize.orientationChangeHandler))},destroy:function(t){var e=In();t.resize.removeObserver(),e.removeEventListener("resize",t.resize.resizeHandler),e.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};function Jn(){return Jn=Object.assign||function(t){for(var e=1;e=0&&e.eventsAnyListeners.splice(n,1),e},off:function(t,e){var n=this;return n.eventsListeners?(t.split(" ").forEach((function(t){"undefined"===typeof e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].forEach((function(i,r){(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[t].splice(r,1)}))})),n):n},emit:function(){var t,e,n,i=this;if(!i.eventsListeners)return i;for(var r=arguments.length,o=new Array(r),a=0;ac?c:i&&t=c.length&&(m=c.length-1),(p||l.initialSlide||0)===(h||0)&&n&&a.emit("beforeSlideChangeStart");var y,_=-c[m];if(a.updateProgress(_),l.normalizeSlideIndex)for(var b=0;b=x&&w=x&&w=x&&(s=b)}if(a.initialized&&s!==p){if(!a.allowSlideNext&&_a.translate&&_>a.maxTranslate()&&(p||0)!==s)return!1}if(y=s>p?"next":s=t&&(d=t)})),"undefined"!==typeof d&&(u=s.indexOf(d))<0&&(u=i.activeIndex-1),i.slideTo(u,t,e,n)},slideReset:function(t,e,n){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,n)},slideToClosest:function(t,e,n,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===i&&(i=.5);var r=this,o=r.activeIndex,a=Math.min(r.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[s]){var c=r.snapGrid[s];l-c>(r.snapGrid[s+1]-c)*i&&(o+=r.params.slidesPerGroup)}else{var u=r.snapGrid[s-1];l-u<=(r.snapGrid[s]-u)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,t,e,n)},slideToClickedSlide:function(){var t,e=this,n=e.params,i=e.$wrapperEl,r="auto"===n.slidesPerView?e.slidesPerViewDynamic():n.slidesPerView,o=e.clickedIndex;if(n.loop){if(e.animating)return;t=parseInt(Un(e.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?oe.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Gn((function(){e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Gn((function(){e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}};function ai(t){var e=this,n=Cn(),i=In(),r=e.touchEventsData,o=e.params,a=e.touches;if(e.enabled&&(!e.animating||!o.preventInteractionOnTransition)){var s=t;s.originalEvent&&(s=s.originalEvent);var l=Un(s.target);if(("wrapper"!==o.touchEventsTarget||l.closest(e.wrapperEl).length)&&(r.isTouchEvent="touchstart"===s.type,(r.isTouchEvent||!("which"in s)||3!==s.which)&&!(!r.isTouchEvent&&"button"in s&&s.button>0)&&(!r.isTouched||!r.isMoved))){!!o.noSwipingClass&&""!==o.noSwipingClass&&s.target&&s.target.shadowRoot&&t.path&&t.path[0]&&(l=Un(t.path[0]));var c=o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass,u=!(!s.target||!s.target.shadowRoot);if(o.noSwiping&&(u?function(t,e){return void 0===e&&(e=this),function e(n){return n&&n!==Cn()&&n!==In()?(n.assignedSlot&&(n=n.assignedSlot),n.closest(t)||e(n.getRootNode().host)):null}(e)}(c,s.target):l.closest(c)[0]))e.allowClick=!0;else if(!o.swipeHandler||l.closest(o.swipeHandler)[0]){a.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,a.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var h=a.currentX,p=a.currentY,d=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,f=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(d&&(h<=f||h>=i.innerWidth-f)){if("prevent"!==d)return;t.preventDefault()}if($n(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=p,r.touchStartTime=Wn(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==s.type){var g=!0;l.is(r.focusableElements)&&(g=!1),n.activeElement&&Un(n.activeElement).is(r.focusableElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var v=g&&e.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||l[0].isContentEditable||s.preventDefault()}e.emit("touchStart",s)}}}}function si(t){var e=Cn(),n=this,i=n.touchEventsData,r=n.params,o=n.touches,a=n.rtlTranslate;if(n.enabled){var s=t;if(s.originalEvent&&(s=s.originalEvent),i.isTouched){if(!i.isTouchEvent||"touchmove"===s.type){var l="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),c="touchmove"===s.type?l.pageX:s.pageX,u="touchmove"===s.type?l.pageY:s.pageY;if(s.preventedByNestedSwiper)return o.startX=c,void(o.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(i.isTouched&&($n(o,{startX:c,startY:u,currentX:c,currentY:u}),i.touchStartTime=Wn()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(uo.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(co.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&s.target===e.activeElement&&Un(s.target).is(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){o.currentX=c,o.currentY=u;var h=o.currentX-o.startX,p=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(p,2))=25&&(d=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,i.isScrolling=n.isHorizontal()?d>r.touchAngle:90-d>r.touchAngle);if(i.isScrolling&&n.emit("touchMoveOpposite",s),"undefined"===typeof i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){n.allowClick=!1,!r.cssMode&&s.cancelable&&s.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&s.stopPropagation(),i.isMoved||(r.loop&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",s)),n.emit("sliderMove",s),i.isMoved=!0;var f=n.isHorizontal()?h:p;o.diff=f,f*=r.touchRatio,a&&(f=-f),n.swipeDirection=f>0?"prev":"next",i.currentTranslate=f+i.startTranslate;var g=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),f>0&&i.currentTranslate>n.minTranslate()?(g=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+i.startTranslate+f,v))):f<0&&i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(f)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&(0===i.velocities.length&&i.velocities.push({position:o[n.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:o[n.isHorizontal()?"currentX":"currentY"],time:Wn()})),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",s)}}function li(t){var e=this,n=e.touchEventsData,i=e.params,r=e.touches,o=e.rtlTranslate,a=e.$wrapperEl,s=e.slidesGrid,l=e.snapGrid;if(e.enabled){var c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var u,h=Wn(),p=h-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap click",c),p<300&&h-n.lastClickTime<300&&e.emit("doubleTap doubleClick",c)),n.lastClickTime=Wn(),Gn((function(){e.destroyed||(e.allowClick=!0)})),!n.isTouched||!n.isMoved||!e.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=i.followFinger?o?e.translate:-e.translate:-n.currentTranslate,!i.cssMode)if(i.freeMode){if(u<-e.minTranslate())return void e.slideTo(e.activeIndex);if(u>-e.maxTranslate())return void(e.slides.length1){var d=n.velocities.pop(),f=n.velocities.pop(),g=d.position-f.position,v=d.time-f.time;e.velocity=g/v,e.velocity/=2,Math.abs(e.velocity)150||Wn()-d.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var m=1e3*i.freeModeMomentumRatio,y=e.velocity*m,_=e.translate+y;o&&(_=-_);var b,w,x=!1,S=20*Math.abs(e.velocity)*i.freeModeMomentumBounceRatio;if(_e.minTranslate())i.freeModeMomentumBounce?(_-e.minTranslate()>S&&(_=e.minTranslate()+S),b=e.minTranslate(),x=!0,n.allowMomentumBounce=!0):_=e.minTranslate(),i.loop&&i.centeredSlides&&(w=!0);else if(i.freeModeSticky){for(var k,T=0;T-_){k=T;break}_=-(_=Math.abs(l[k]-_)=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var I=0,M=e.slidesSizesGrid[0],A=0;A=s[A]&&u=s[A]&&(I=A,M=s[s.length-1]-s[s.length-2])}var P=(u-s[I])/M,E=Ii.longSwipesMs){if(!i.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(P>=i.longSwipesRatio?e.slideTo(I+E):e.slideTo(I)),"prev"===e.swipeDirection&&(P>1-i.longSwipesRatio?e.slideTo(I+E):e.slideTo(I))}else{if(!i.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl)?c.target===e.navigation.nextEl?e.slideTo(I+E):e.slideTo(I):("next"===e.swipeDirection&&e.slideTo(I+E),"prev"===e.swipeDirection&&e.slideTo(I))}}}}function ci(){var t=this,e=t.params,n=t.el;if(!n||0!==n.offsetWidth){e.breakpoints&&t.setBreakpoint();var i=t.allowSlideNext,r=t.allowSlidePrev,o=t.snapGrid;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}}function ui(t){var e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function hi(){var t=this,e=t.wrapperEl,n=t.rtlTranslate;if(t.enabled){t.previousTranslate=t.translate,t.isHorizontal()?t.translate=n?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var i=t.maxTranslate()-t.minTranslate();(0===i?0:(t.translate-t.minTranslate())/i)!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}var pi=!1;function di(){}var fi={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function gi(t,e){for(var n=0;n=0&&(_=parseFloat(_.replace("%",""))/100*o),t.virtualSize=-_,a?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),i.slidesPerColumn>1&&(S=Math.floor(h/i.slidesPerColumn)===h/t.params.slidesPerColumn?h:Math.ceil(h/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(S=Math.max(S,i.slidesPerView*i.slidesPerColumn)));for(var T,C,O,I=i.slidesPerColumn,M=S/I,A=Math.floor(h/i.slidesPerColumn),D=0;D1){var E=void 0,L=void 0,j=void 0;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){var R=Math.floor(D/(i.slidesPerGroup*i.slidesPerColumn)),N=D-i.slidesPerColumn*i.slidesPerGroup*R,B=0===R?i.slidesPerGroup:Math.min(Math.ceil((h-R*I*i.slidesPerGroup)/I),i.slidesPerGroup);E=(L=N-(j=Math.floor(N/B))*B+R*i.slidesPerGroup)+j*S/I,P.css({"-webkit-box-ordinal-group":E,"-moz-box-ordinal-group":E,"-ms-flex-order":E,"-webkit-order":E,order:E})}else"column"===i.slidesPerColumnFill?(j=D-(L=Math.floor(D/I))*I,(L>A||L===A&&j===I-1)&&(j+=1)>=I&&(j=0,L+=1)):L=D-(j=Math.floor(D/M))*M;P.css(e("margin-top"),0!==j?i.spaceBetween&&i.spaceBetween+"px":"")}if("none"!==P.css("display")){if("auto"===i.slidesPerView){var z=getComputedStyle(P[0]),F=P[0].style.transform,H=P[0].style.webkitTransform;if(F&&(P[0].style.transform="none"),H&&(P[0].style.webkitTransform="none"),i.roundLengths)k=t.isHorizontal()?P.outerWidth(!0):P.outerHeight(!0);else{var V=n(z,"width"),U=n(z,"padding-left"),G=n(z,"padding-right"),W=n(z,"margin-left"),Y=n(z,"margin-right"),X=z.getPropertyValue("box-sizing");if(X&&"border-box"===X)k=V+W+Y;else{var $=P[0],q=$.clientWidth;k=V+U+G+W+Y+($.offsetWidth-q)}}F&&(P[0].style.transform=F),H&&(P[0].style.webkitTransform=H),i.roundLengths&&(k=Math.floor(k))}else k=(o-(i.slidesPerView-1)*_)/i.slidesPerView,i.roundLengths&&(k=Math.floor(k)),u[D]&&(u[D].style[e("width")]=k+"px");u[D]&&(u[D].swiperSlideSize=k),f.push(k),i.centeredSlides?(b=b+k/2+w/2+_,0===w&&0!==D&&(b=b-o/2-_),0===D&&(b=b-o/2-_),Math.abs(b)<.001&&(b=0),i.roundLengths&&(b=Math.floor(b)),x%i.slidesPerGroup===0&&p.push(b),d.push(b)):(i.roundLengths&&(b=Math.floor(b)),(x-Math.min(t.params.slidesPerGroupSkip,x))%t.params.slidesPerGroup===0&&p.push(b),d.push(b),b=b+k+_),t.virtualSize+=k+_,w=k,x+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+v,a&&s&&("slide"===i.effect||"coverflow"===i.effect)&&r.css({width:t.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize)r.css(((C={})[e("width")]=t.virtualSize+i.spaceBetween+"px",C));if(i.slidesPerColumn>1)if(t.virtualSize=(k+i.spaceBetween)*S,t.virtualSize=Math.ceil(t.virtualSize/i.slidesPerColumn)-i.spaceBetween,r.css(((O={})[e("width")]=t.virtualSize+i.spaceBetween+"px",O)),i.centeredSlides){T=[];for(var Z=0;Z1&&p.push(t.virtualSize-o)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){var tt,et=t.isHorizontal()&&a?"marginLeft":e("marginRight");u.filter((function(t,e){return!i.cssMode||e!==u.length-1})).css(((tt={})[et]=_+"px",tt))}if(i.centeredSlides&&i.centeredSlidesBounds){var nt=0;f.forEach((function(t){nt+=t+(i.spaceBetween?i.spaceBetween:0)}));var it=(nt-=i.spaceBetween)-o;p=p.map((function(t){return t<0?-g:t>it?it+v:t}))}if(i.centerInsufficientSlides){var rt=0;if(f.forEach((function(t){rt+=t+(i.spaceBetween?i.spaceBetween:0)})),(rt-=i.spaceBetween)1)if(n.params.centeredSlides)n.visibleSlides.each((function(t){i.push(t)}));else for(e=0;en.slides.length&&!r)break;i.push(a(s))}else i.push(a(n.activeIndex));for(e=0;eo?l:o}o&&n.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e=0&&c1&&u<=e.size||c<=0&&u>=e.size)&&(e.visibleSlides.push(s),e.visibleSlidesIndexes.push(a),i.eq(a).addClass(n.slideVisibleClass))}s.progress=r?-l:l}e.visibleSlides=Un(e.visibleSlides)}},updateProgress:function(t){var e=this;if("undefined"===typeof t){var n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}var i=e.params,r=e.maxTranslate()-e.minTranslate(),o=e.progress,a=e.isBeginning,s=e.isEnd,l=a,c=s;0===r?(o=0,a=!0,s=!0):(a=(o=(t-e.minTranslate())/r)<=0,s=o>=1),$n(e,{progress:o,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),a&&!l&&e.emit("reachBeginning toEdge"),s&&!c&&e.emit("reachEnd toEdge"),(l&&!a||c&&!s)&&e.emit("fromEdge"),e.emit("progress",o)},updateSlidesClasses:function(){var t,e=this,n=e.slides,i=e.params,r=e.$wrapperEl,o=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;n.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(t=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o)).addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=t.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=n.eq(0)).addClass(i.slideNextClass);var c=t.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=n.eq(-1)).addClass(i.slidePrevClass),i.loop&&(l.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(t){var e,n=this,i=n.rtlTranslate?n.translate:-n.translate,r=n.slidesGrid,o=n.snapGrid,a=n.params,s=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=t;if("undefined"===typeof u){for(var h=0;h=r[h]&&i=r[h]&&i=r[h]&&(u=h);a.normalizeSlideIndex&&(u<0||"undefined"===typeof u)&&(u=0)}if(o.indexOf(i)>=0)e=o.indexOf(i);else{var p=Math.min(a.slidesPerGroupSkip,u);e=p+Math.floor((u-p)/a.slidesPerGroup)}if(e>=o.length&&(e=o.length-1),u!==s){var d=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);$n(n,{snapIndex:e,realIndex:d,previousIndex:s,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==d&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else e!==c&&(n.snapIndex=e,n.emit("snapIndexChange"))},updateClickedSlide:function(t){var e,n=this,i=n.params,r=Un(t.target).closest("."+i.slideClass)[0],o=!1;if(r)for(var a=0;ao?"next":ir?"next":ir.length&&(t.loopedSlides=r.length);var l=[],c=[];r.each((function(e,n){var i=Un(e);n=r.length-t.loopedSlides&&l.push(e),i.attr("data-swiper-slide-index",n)}));for(var u=0;u=0;h-=1)i.prepend(Un(l[h].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var t=this;t.emit("beforeLoopFix");var e,n=t.activeIndex,i=t.slides,r=t.loopedSlides,o=t.allowSlidePrev,a=t.allowSlideNext,s=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-s[n]-t.getTranslate();if(n=i.length-r){e=-i.length+n+r,e+=r,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)}t.allowSlidePrev=o,t.allowSlideNext=a,t.emit("loopFix")},loopDestroy:function(){var t=this,e=t.$wrapperEl,n=t.params,i=t.slides;e.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(t){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){var t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}},manipulation:{appendSlide:function(t){var e=this,n=e.$wrapperEl,i=e.params;if(i.loop&&e.loopDestroy(),"object"===typeof t&&"length"in t)for(var r=0;r=a)n.appendSlide(e);else{for(var s=o>t?o+1:o,l=[],c=a-1;c>=t;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"===typeof e&&"length"in e){for(var h=0;ht?o+e.length:o}else i.append(e);for(var p=0;p1,p=u.slidesPerColumn>1,d=o.enabled;h&&!p?(a.removeClass(o.containerModifierClass+"multirow "+o.containerModifierClass+"multirow-column"),t.emitContainerClasses()):!h&&p&&(a.addClass(o.containerModifierClass+"multirow"),(u.slidesPerColumnFill&&"column"===u.slidesPerColumnFill||!u.slidesPerColumnFill&&"column"===o.slidesPerColumnFill)&&a.addClass(o.containerModifierClass+"multirow-column"),t.emitContainerClasses());var f=u.direction&&u.direction!==o.direction,g=o.loop&&(u.slidesPerView!==o.slidesPerView||f);f&&n&&t.changeDirection(),$n(t.params,u);var v=t.params.enabled;$n(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),d&&!v?t.disable():!d&&v&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",u),g&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",u)}}},getBreakpoint:function(t,e,n){if(void 0===e&&(e="window"),t&&("container"!==e||n)){var i=!1,r=In(),o="window"===e?r.innerHeight:n.clientHeight,a=Object.keys(t).map((function(t){if("string"===typeof t&&0===t.indexOf("@")){var e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}}));a.sort((function(t,e){return parseInt(t.value,10)-parseInt(e.value,10)}));for(var s=0;s0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?t.isLocked=i<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),n&&n!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}},classes:{addClasses:function(){var t=this,e=t.classNames,n=t.params,i=t.rtl,r=t.$el,o=t.device,a=t.support,s=function(t,e){var n=[];return t.forEach((function(t){"object"===typeof t?Object.keys(t).forEach((function(i){t[i]&&n.push(e+i)})):"string"===typeof t&&n.push(e+t)})),n}(["initialized",n.direction,{"pointer-events":a.pointerEvents&&!a.touch},{"free-mode":n.freeMode},{autoheight:n.autoHeight},{rtl:i},{multirow:n.slidesPerColumn>1},{"multirow-column":n.slidesPerColumn>1&&"column"===n.slidesPerColumnFill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode}],n.containerModifierClass);e.push.apply(e,s),r.addClass([].concat(e).join(" ")),t.emitContainerClasses()},removeClasses:function(){var t=this,e=t.$el,n=t.classNames;e.removeClass(n.join(" ")),t.emitContainerClasses()}},images:{loadImage:function(t,e,n,i,r,o){var a,s=In();function l(){o&&o()}Un(t).parent("picture")[0]||t.complete&&r?l():e?((a=new s.Image).onload=l,a.onerror=l,i&&(a.sizes=i),n&&(a.srcset=n),e&&(a.src=e)):l()},preloadImages:function(){var t=this;function e(){"undefined"!==typeof t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var n=0;n1){var a=[];return Un(n.el).each((function(e){var i=$n({},n,{el:e});a.push(new t(i))})),a}var s=this;s.__swiper__=!0,s.support=qn(),s.device=Zn({userAgent:n.userAgent}),s.browser=Kn(),s.eventsListeners={},s.eventsAnyListeners=[],"undefined"===typeof s.modules&&(s.modules={}),Object.keys(s.modules).forEach((function(t){var e=s.modules[t];if(e.params){var i=Object.keys(e.params)[0],r=e.params[i];if("object"!==typeof r||null===r)return;if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===n[i]&&(n[i]={auto:!0}),!(i in n)||!("enabled"in r))return;!0===n[i]&&(n[i]={enabled:!0}),"object"!==typeof n[i]||"enabled"in n[i]||(n[i].enabled=!0),n[i]||(n[i]={enabled:!1})}}));var l=$n({},fi);return s.useParams(l),s.params=$n({},l,mi,n),s.originalParams=$n({},s.params),s.passedParams=$n({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach((function(t){s.on(t,s.params.on[t])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=Un,$n(s,{enabled:s.params.enabled,el:e,classNames:[],slides:Un(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===s.params.direction},isVertical:function(){return"vertical"===s.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){var t=["touchstart","touchmove","touchend","touchcancel"],e=["mousedown","mousemove","mouseup"];return s.support.pointerEvents&&(e=["pointerdown","pointermove","pointerup"]),s.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},s.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:Wn(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.useModules(),s.emit("_swiper"),s.params.init&&s.init(),s}var e,n,i,r=t.prototype;return r.enable=function(){var t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))},r.disable=function(){var t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))},r.setProgress=function(t,e){var n=this;t=Math.min(Math.max(t,0),1);var i=n.minTranslate(),r=(n.maxTranslate()-i)*t+i;n.translateTo(r,"undefined"===typeof e?0:e),n.updateActiveIndex(),n.updateSlidesClasses()},r.emitContainerClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=t.el.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-container")||0===e.indexOf(t.params.containerModifierClass)}));t.emit("_containerClasses",e.join(" "))}},r.getSlideClasses=function(t){var e=this;return t.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)})).join(" ")},r.emitSlidesClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=[];t.slides.each((function(n){var i=t.getSlideClasses(n);e.push({slideEl:n,classNames:i}),t.emit("_slideClass",n,i)})),t.emit("_slideClasses",e)}},r.slidesPerViewDynamic=function(){var t=this,e=t.params,n=t.slides,i=t.slidesGrid,r=t.size,o=t.activeIndex,a=1;if(e.centeredSlides){for(var s,l=n[o].swiperSlideSize,c=o+1;cr&&(s=!0));for(var u=o-1;u>=0;u-=1)n[u]&&!s&&(a+=1,(l+=n[u].swiperSlideSize)>r&&(s=!0))}else for(var h=o+1;h1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||i(),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function i(){var e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}},r.changeDirection=function(t,e){void 0===e&&(e=!0);var n=this,i=n.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t||(n.$el.removeClass(""+n.params.containerModifierClass+i).addClass(""+n.params.containerModifierClass+t),n.emitContainerClasses(),n.params.direction=t,n.slides.each((function(e){"vertical"===t?e.style.width="":e.style.height=""})),n.emit("changeDirection"),e&&n.update()),n},r.mount=function(t){var e=this;if(e.mounted)return!0;var n=Un(t||e.params.el);if(!(t=n[0]))return!1;t.swiper=e;var i=function(){return"."+(e.params.wrapperClass||"").trim().split(" ").join(".")},r=function(){if(t&&t.shadowRoot&&t.shadowRoot.querySelector){var e=Un(t.shadowRoot.querySelector(i()));return e.children=function(t){return n.children(t)},e}return n.children(i())}();if(0===r.length&&e.params.createElements){var o=Cn().createElement("div");r=Un(o),o.className=e.params.wrapperClass,n.append(o),n.children("."+e.params.slideClass).each((function(t){r.append(t)}))}return $n(e,{$el:n,el:t,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0},r.init=function(t){var e=this;return e.initialized||!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e},r.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var n=this,i=n.params,r=n.$el,o=n.$wrapperEl,a=n.slides;return"undefined"===typeof n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),e&&(n.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(t){n.off(t)})),!1!==t&&(n.$el[0].swiper=null,function(t){var e=t;Object.keys(e).forEach((function(t){try{e[t]=null}catch(n){}try{delete e[t]}catch(n){}}))}(n)),n.destroyed=!0),null},t.extendDefaults=function(t){$n(mi,t)},t.installModule=function(e){t.prototype.modules||(t.prototype.modules={});var n=e.name||Object.keys(t.prototype.modules).length+"_"+Wn();t.prototype.modules[n]=e},t.use=function(e){return Array.isArray(e)?(e.forEach((function(e){return t.installModule(e)})),t):(t.installModule(e),t)},e=t,i=[{key:"extendedDefaults",get:function(){return mi}},{key:"defaults",get:function(){return fi}}],(n=null)&&gi(e.prototype,n),i&&gi(e,i),t}();Object.keys(vi).forEach((function(t){Object.keys(vi[t]).forEach((function(e){yi.prototype[e]=vi[t][e]}))})),yi.use([Qn,ei]);var _i=yi,bi=n(14);A.a.mountApi("wapApis",{enablePullDownRefresh:function(){this.enablePullDownRefresh=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.enablePullDownRefresh;A.a.mountApi("wapApis",{stopPullDownRefresh:function(){this.stopPullDownRefresh=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.stopPullDownRefresh;var wi=A.a,xi=new(function(){function t(){Object(l.a)(this,t),this.isPullingDown=!1,this.taskQueue=[]}return Object(c.a)(t,[{key:"initPullDownEvent",value:function(t){}},{key:"refresh",value:function(){this.taskQueue.forEach((function(t){return t()}))}},{key:"registerCB",value:function(t){this.taskQueue.push(t)}},{key:"finishPullDown",value:function(t){this.isPullingDown&&(this.isPullingDown=!1,wi.stopPullDownRefresh({msg:t}))}}]),t}()),Si=n(63),ki=n.n(Si);A.a.mountApi("wapApis",{disablePullDownRefresh:function(){this.disablePullDownRefresh=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.disablePullDownRefresh;A.a.mountApi("wapApis",{disableSlidingClose:function(){this.disableSlidingClose=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.disableSlidingClose;A.a.mountApi("wapApis",{enableSlidingClose:function(){this.enableSlidingClose=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.enableSlidingClose;var Ti,Ci,Oi,Ii,Mi,Ai,Di,Pi,Ei,Li,ji,Ri,Ni,Bi,zi,Fi,Hi,Vi,Ui,Gi,Wi,Yi,Xi,$i,qi,Zi,Ki=(Ti=Object(bi.Component)({components:{}}),Ci=Object(bi.Prop)({required:!1,default:function(){return{fontSize:"",fontColor:"",barHeight:0,fixNavTab:!0,gapTime:30,loadDistance:300,preload:!1,loadAll:!1,logCode:"",tabId:"page-flap",allowLoadMore:!0,allowTouchMove:!0,bindScroll:!0,cyclicityNavTop:0,allowScrollTo:!0,enableSlidingClose:!0,scrollTo:1}}}),Ti((Ii=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=this.tabs.length&&(e=this.tabs.length-1),this.tabs.forEach((function(n,i){e=n.isActive&&-1===e?i:e,t.tabShow.push(n.isActive)})),this.curIndex=e<=-1?0:e,this.curTab=this.tabs[this.curIndex],this.tabShow[this.curIndex]=this.tabs[this.curIndex].isVisible=this.tabs[this.curIndex].isActive=this.tabs[this.curIndex].isShow=!0,this.$emit("tabChange",{index:this.curIndex})}},{key:"bindEvents",value:function(){var t=this;this.tabConfig.bindScroll&&window.addEventListener("scroll",(function(){return t.scrollCallback()}))}},{key:"filterHash",value:function(t){var e=t||window.location.hash;if(!e)return-1;var n=e&&+e.split("_")[1];return isNaN(n)||"number"!==typeof n?0:+e.split("_")[1]}},{key:"clickTab",value:function(t,e,n){this.$emit("clickTab",{index:t}),this.selectTab(t,e,"click")}},{key:"selectTab",value:function(t,e,n){var i=this;if(t!=this.curIndex&&!this.clickFlag&&(this.curTab=this.tabs[t],this.curTab)){var r=document.scrollingElement||document.documentElement;this.preIndex=this.curIndex,this.tabContentsTop[this.preIndex]=r.scrollTop,this.curTab.isUnRead=!1,this.curIndex=t,this.tabs[t].isVisible=!0,this.tabs.forEach((function(e,n){e.isActive=e.isShow=t===n})),this.sendLog(this.tabConfig.logCode),e&&this.swiper&&this.swiper.slideTo(t)&&(this.clickFlag=!0),0===t&&!0===this.tabConfig.enableSlidingClose?A.a.enableSlidingClose():A.a.disableSlidingClose(),setTimeout((function(){i.clickFlag=!1,i.tabConfig.allowScrollTo&&i.scrollTo()}),100),this.changCompActive(this.preIndex,this.curIndex),this.$emit("tabChange",{index:t,action:n})}}},{key:"initSwiper",value:function(){if(!this.swiper&&!(this.tabs.length<=1)){var t=!1,e=this,n=this.tabConfig.tabId;console.log("==this.tabConfig",this.tabConfig);var i,r,o,a,s,l,c=void 0!==this.tabConfig.resistanceRatio?this.tabConfig.resistanceRatio:.85;if(!n)throw new Error("tabId should be exist");if(n="#".concat(n),this.swiper=new _i(n,{allowTouchMove:this.tabConfig.allowTouchMove,resistanceRatio:c,on:{transitionEnd:function(){console.log("transitionEnd",this.activeIndex),t&&(setTimeout((function(){e.tabChangeEnd=!0}),200),e.$nextTick((function(){e.selectTab(e.swiper.activeIndex,null,"transition")})))},transitionStart:function(){if(t){e.tabChangeEnd=!1;var n=e.swiper&&e.swiper.activeIndex;e.$emit("transitionStart",{index:n})}}},touchAngle:30,longSwipesRatio:.1,longSwipesMs:0,shortSwipes:!1,threshold:5,initialSlide:this.curIndex,observer:!0,observeParents:!0}),this.swiper&&(t=!0),console.log("this.swiper:",this.swiper),this.swiper)if(this.swiper.slides)this.swiper.slides.on("touchstart",(function(t){i=this.scrollTop,r=t.targetTouches[0].pageY,s=t.targetTouches[0].pageX}),!0),this.swiper.slides.on("touchmove",(function(t){o=t.targetTouches[0].pageY,a=t.targetTouches[0].pageX;var n=o-r;l=a-s;var c=this;c.scrollHeight>c.offsetHeight&&(n<0&&0===i||n>0&&i===c.scrollHeight-c.offsetHeight||i>0&&i0&&0===e.swiper.activeIndex&&!0===e.tabConfig.enableSlidingClose?(A.a.enableSlidingClose(),t.stopPropagation()):A.a.disableSlidingClose(),l>0&&1===e.swiper.activeIndex&&!0===e.tabConfig.enableSlidingClose&&A.a.enableSlidingClose()}),!0)}}},{key:"preLoadTab",value:function(){var t=this;this.tabShow.forEach((function(e,n){return!e&&setTimeout((function(){t.tabs[n].isVisible=!0}),200*n)}))}},{key:"loadAllTab",value:function(){var t=this;this.tabShow.forEach((function(e,n){return t.tabs[n].isVisible=!0}))}},{key:"changCompActive",value:function(t,e){this.tabs[t].$children.forEach((function(t){t.toggleShow&&t.toggleShow(!1)})),this.tabs[e].$children.forEach((function(t){t.toggleShow&&t.toggleShow(!0)}))}},{key:"pullRefresh",value:function(){var t=this;H.default.log({reportID:"CL_W_5",other:{compId:"sportHeader"}}),this.$nextTick((function(){t.curTab&&t.curTab.$children.forEach((function(t){return t.refresh&&t.refresh("pull")}))}))}},{key:"loadMore",value:function(){var t=this;console.log("===loadMore==="),this.curTab&&this.curTab.$children.forEach((function(e){e.loadMore&&(e.loadMore(),t.sendLog("CL_W_5"))}))}},{key:"toggleDisableSlide",value:function(){0==this.curIndex?A.a.enableSlidingClose({success:function(t){}}):A.a.disablePullDownRefresh({success:function(t){}})}},{key:"sendLog",value:function(t){H.default.simaBizLog({ek:t,method:"CLICK",attribute:{compId:"tabWrapper",tab:this.curTab.tabCode||"tab".concat(this.curIndex)}})}},{key:"scrollCallback",value:function(){var t=document.documentElement,e=t.scrollTop||(document.body||document.scrollingElement).scrollTop,n=this.tabConfig.barHeight||0,i=this.tabConfig.cyclicityNavTop?this.navHeight:0,r=this.isApp?e>=this.navBarTop-i-n:e>=this.navBarTop-i;if((this.tabConfig.fixNavTab?r?this.fixNav||(this.fixNav=!0):this.fixNav&&(this.fixNav=!1):this.fixNav=!1,this.tabConfig.allowLoadMore)&&(e>=t.scrollHeight-t.clientHeight-(this.tabConfig.loadDistance||300)&&this.tabChangeEnd))return void this.throttleLoadMore()}},{key:"initNavBarFixHandler",value:function(){var t=this;if(this.$el.firstChild){this.navBarTop=this.getElementBoundingTop(this.$el.firstChild),this.navHeight=this.$el.firstChild.offsetHeight,setTimeout((function(){t.navBarTop=t.getElementBoundingTop(t.$el.firstChild)}),500);this.updateNavBarTop(),this.bindEvents()}else this.$nextTick((function(){t.initNavBarFixHandler()}))}},{key:"updateNavBarTop",value:function(){var t=this,e=this;function n(t,i){var r=e.getElementBoundingTop(i);r!==t.navBarTop&&(t.navBarTop=r,setTimeout((function(){n(t,i)}),30))}this.$nextTick((function(){t.tabConfig.cyclicityNavTop?setInterval((function(){n(t,t.$el.children[2])}),e.tabConfig.cyclicityNavTop):n(t,t.$el.firstChild)}))}},{key:"scrollTo",value:function(){var t=this.tabContentsTop[this.preIndex]||0,e=this.tabContentsTop[this.curIndex]||0,n=this.behindNav(e),i=this.behindNav(t);n?window.scrollTo(0,e):i&&(this.isApp?(window.scrollTo(0,this.navBarTop-(this.tabConfig.barHeight||0)+this.tabConfig.scrollTo),console.log("\u6eda\u52a8\u8ddd\u79bb",this.navBarTop-(this.tabConfig.barHeight||0)+this.tabConfig.scrollTo)):(window.scrollTo(0,this.navBarTop+this.tabConfig.scrollTo),console.log("\u6eda\u52a8\u8ddd\u79bb",this.navBarTop+this.tabConfig.scrollTo)))}},{key:"behindNav",value:function(t){var e=this.navBarTop,n=!0;return 0==e&&(n=!0),this.isApp?e-(this.tabConfig.barHeight||0)>t&&(n=!1):e>t&&(n=!1),n}},{key:"getElementBoundingTop",value:function(t){for(var e=t.offsetTop;t=t.offsetParent;){var n=window.getComputedStyle(t,"border-top-width").getPropertyValue("border-top-width"),i=parseInt(n);e+=t.offsetTop,i&&(e+=i)}return e}}]),n}(bi.Vue),Mi=ke(Ii.prototype,"config",[Ci],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oi=Ii))||Oi),Qi=D(Ki,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue_con",staticStyle:{"flex-direction":"column"}},[n("div",{staticClass:"nav_starV",class:{fixed:t.fixNav},style:t.fixNavTop},t._l(t.tabs,(function(e,i){return n("span",{key:i,staticClass:"nav_starV_fun",class:{active:e.isActive},style:t.styleObject,on:{click:function(e){return t.clickTab(i,e,"click")}}},[t._v(" "+t._s(e.tabName)+" "),n("i",{directives:[{name:"show",rawName:"v-show",value:e.isUnRead,expression:"tab.isUnRead"}],staticClass:"nav_starV_news"}),n("i",{staticClass:"nav_starV_line"})])})),0),n("div",{directives:[{name:"show",rawName:"v-show",value:t.fixNav,expression:"fixNav"}],staticClass:"\n "}),n("section",{staticClass:"cm_sw swiper-container page-flap",attrs:{id:t.tabConfig.tabId}},[n("ul",{staticClass:"cm_sw_scroll d_r swiper-wrapper"},[t._t("default")],2)])])}),[],!1,null,null,null),Ji=(Qi.exports,Ai=Object(bi.Component)({components:{}}),Di=Object(bi.Prop)({}),Pi=Object(bi.Prop)({default:0}),Ei=Object(bi.Watch)("active",{immediate:!0}),Ai((ji=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;oc.offsetHeight&&(n<0&&0===i||n>0&&i===c.scrollHeight-c.offsetHeight||i>0&&i0&&0===e.swiper.activeIndex&&!0===e.tabConfig.enableSlidingClose?(A.a.enableSlidingClose(),t.stopPropagation()):A.a.disableSlidingClose(),l>0&&1===e.swiper.activeIndex&&!0===e.tabConfig.enableSlidingClose&&A.a.enableSlidingClose()}),!0)}}},{key:"loadMore",value:function(){console.log("===loadMore==="),this.$emit("loadMore")}},{key:"toggleDisableSlide",value:function(){0==this.curIndex?A.a.enableSlidingClose({success:function(t){}}):A.a.disablePullDownRefresh({success:function(t){}})}},{key:"initNavBarFixHandler",value:function(){var t=this;this.$el.firstChild?(this.navBarTop=this.getElementBoundingTop(this.$el.firstChild),this.navHeight=this.$el.firstChild.offsetHeight,setTimeout((function(){t.navBarTop=t.getElementBoundingTop(t.$el.firstChild)}),1e3),this.updateNavBarTop(),this.bindEvents()):this.$nextTick((function(){t.initNavBarFixHandler()}))}},{key:"bindEvents",value:function(){var t=this;this.tabConfig.bindScroll&&window.addEventListener("scroll",(function(){return t.scrollCallback()}))}},{key:"scrollCallback",value:function(){var t=document.documentElement,e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,n=document.querySelector("#tab-box")&&document.querySelector("#tab-box").offsetTop||0,i=e>=(this.tabConfig.navBarfixedHeight?this.tabConfig.navBarfixedHeight:n);if((this.tabConfig.fixNavTab?i?this.fixNav||(this.fixNav=!0):this.fixNav&&(this.fixNav=!1):this.fixNav=!1,this.tabConfig.allowLoadMore)&&(e>=t.scrollHeight-t.clientHeight-(this.tabConfig.loadDistance||300)&&this.tabChangeEnd))return void this.throttleLoadMore()}},{key:"updateNavBarTop",value:function(){var t=this,e=this;function n(t,i){var r=e.getElementBoundingTop(i);r!==t.navBarTop&&(t.navBarTop=r,setTimeout((function(){n(t,i)}),30))}this.$nextTick((function(){t.tabConfig.cyclicityNavTop?setInterval((function(){n(t,t.$el.children[1])}),e.tabConfig.cyclicityNavTop):n(t,t.$el.firstChild)}))}},{key:"scrollTo",value:function(){var t=this.tabContentsTop[this.preIndex]||0,e=this.tabContentsTop[this.curIndex]||0,n=this.behindNav(e),i=this.behindNav(t);n?window.scrollTo(0,e):i&&(this.isApp?window.scrollTo(0,this.navBarTop-(this.tabConfig.barHeight||0)+this.tabConfig.scrollTo):(window.scrollTo(0,this.navBarTop+this.tabConfig.scrollTo),console.log("\u6eda\u52a8\u8ddd\u79bb",this.navBarTop+this.tabConfig.scrollTo)))}},{key:"behindNav",value:function(t){var e=this.navBarTop,n=!0;return 0==e&&(n=!0),this.isApp?e-(this.tabConfig.barHeight||0)>t&&(n=!1):e>t&&(n=!1),n}},{key:"getElementBoundingTop",value:function(t){if(t){for(var e=t.offsetTop;t=t.offsetParent;){var n=window.getComputedStyle(t,"border-top-width").getPropertyValue("border-top-width"),i=parseInt(n);e+=t.offsetTop,i&&(e+=i)}return e}}}]),n}(bi.Vue),Zi=ke(qi.prototype,"config",[Xi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$i=qi))||$i),ar=D(or,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tab_box",staticStyle:{"flex-direction":"column"},attrs:{id:"tab-box"}},[t.tabConfig.navbarArr&&t.tabConfig.navbarArr.length>1?[t.config.navBarSlide?n("NavBarSwiper",{attrs:{navBarconfig:{fixNav:t.fixNav,fixNavTop:t.fixNavTop,navbarArr:t.tabConfig.navbarArr},active:t.tabBarActive},on:{selectTab:t.clickTab}}):n("nav-bar",{attrs:{navBarconfig:{fixNav:t.fixNav,fixNavTop:t.fixNavTop,navbarArr:t.tabConfig.navbarArr},active:t.tabBarActive},on:{selectTab:t.clickTab}})]:t._e(),n("section",{staticClass:"cm_sw swiper-container page-flap oem_tab_sw",attrs:{id:t.tabConfig.tabId}},[n("ul",{staticClass:"cm_sw_scroll d_r swiper-wrapper"},[t._l(t.tabConfig.navbarArr,(function(e,i){return[n("li",{key:i,staticClass:"cm_sw_content swiper-slide"},[t._t(e.tabType)],2)]}))],2)])],2)}),[],!1,null,null,null),sr=ar.exports;function lr(t,e){var n=new RegExp("[&,?]"+e+"=(.*?)([&,?]|$)"),i=t.match(n);return i?i[1]:""}var cr=A.a.statistics.errorReport;A.a.mountApi("wapApis",{sendError:function(){this.sendError=function(t){return new Promise((function(e,n){cr.error(t.error),t.success&&t.success(),t.complete&&t.complete()}))}}}),A.a.on("errorInfo",(function(t){H.default.simaBizLog({ek:"WAP_PAGE_ERROR",method:"CLICK",attribute:t})}));A.a.sendError;function ur(t,e){var n=e instanceof Error?e.stack||"".concat(e.name,":").concat(e.message):e;A.a.sendError({error:"[".concat(t,"] ").concat(n)})}A.a.mountApi("wapApis",{URLNavigateTo:function(){var t=[];this.URLNavigateTo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.length&&(e=t.reduce((function(t,e){var n=e(t);return n||t}),e)),new Promise((function(t,n){if(t(),("web"===e.action||1==e.actionType)&&e.url){if(-1!=window.location.href.indexOf("wm=")&&-1==e.url.indexOf("wm=")){var i=function(t,e){var n=new RegExp(e+"=(.*?)(&|$)"),i=t.match(n);return null!=i?i[1]:""}(window.location.href,"wm");e.url+=(-1==e.url.indexOf("?")?"?":"&")+"wm="+i,e.url=e.url.replace("?&","?")}var r=/sinanews(.+)harmony/gi.test(navigator.userAgent);location.href=r?"sinanews://sina.cn/webbrowser/detail.pg?link="+encodeURIComponent(e.url):e.url}}))},this.URLNavigateTo.tap=function(e){"function"==typeof e&&t.push(e)}}});A.a.URLNavigateTo;n(73);var hr=function(){function t(e){return Object(l.a)(this,t),this._observer=null,this._elToMeta={},this._suffix="",this._index=0,this._config={},this._config=Object.assign({threshold:[0],root:null,rootMargin:"0px 0px -50px 0px"},e||{}),console.log("[vue-exposure] config: ".concat(this._config)),t.instance?t.instance:(this._suffix=(+new Date).toString(36),this._observer=null,this.createIntersectionObserver(),t.instance=this)}return Object(c.a)(t,[{key:"generateUniqueKey",value:function(){return"exposure_".concat(this._index++,"_").concat(this._suffix)}},{key:"getDatasetKey",value:function(e){return e.dataset[t.DATASET_KEY]||""}},{key:"createIntersectionObserver",value:function(){var e=this;window.IntersectionObserver&&(this._observer=new IntersectionObserver((function(n){n.forEach((function(n){var i=n.target,r=n.intersectionRatio,o=e._elToMeta[e.getDatasetKey(i)];if(o&&r){var a=window.getComputedStyle(i,null),s=a.visibility,l=a.height,c=a.width;if("hidden"!==s&&parseInt(l)*parseInt(c)!==0){var u=o.value,h=o.arg?o.arg.split(","):[];"function"===typeof u&&u.apply(void 0,Object(K.a)(h)),i.classList.add(t.EXPOSURE_SUCCESS_CLASS),e.unObserve(i)}}}))}),this._config))}},{key:"observe",value:function(e,n){var i=this.generateUniqueKey();e.dataset[t.DATASET_KEY]=i,this._elToMeta[i]=n,this._observer&&this._observer.observe(e)}},{key:"unObserve",value:function(t){var e=this.getDatasetKey(t);this._elToMeta[e]&&this._observer&&(delete this._elToMeta[e],this._observer.unobserve(t))}}]),t}();hr.DATASET_KEY="__exposure_key",hr.EXPOSURE_SUCCESS_CLASS="__isExposed";var pr;!function(t){t.SUCCESS="v-lazyload-success",t.ERROR="v-lazyload-error"}(pr||(pr={}));var dr=function(){function t(e){return Object(l.a)(this,t),this._observer=null,this._elToMeta={},this._suffix="",this._index=0,t.instance?t.instance:(this._observer=null,this._opts=e,this.createIntersectionObserver(),t.instance=this)}return Object(c.a)(t,[{key:"generateUniqueKey",value:function(){return"exposure_".concat(this._index++,"_").concat(this._suffix)}},{key:"getDatasetKey",value:function(e){return e.dataset[t.DATASET_KEY]||""}},{key:"createIntersectionObserver",value:function(){var t=this;"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((function(e){e.forEach((function(e){var n=e.target,i=e.intersectionRatio,r=t._elToMeta[t.getDatasetKey(n)];if(r&&i>0){var o=n,a=new Image;a.src=r.value,a.onload=function(){o.src=r.value,o.classList.remove(pr.ERROR),o.classList.add(pr.SUCCESS),t.unObserve(n)},a.onerror=function(){o.classList.add(pr.ERROR)}}}))}),this._opts))}},{key:"observe",value:function(e,n){if("img"!==e.tagName.toLowerCase())throw new Error("".concat(n.name," \u5fc5\u987b\u5728 img \u6807\u7b7e\u4e0a\u4f7f\u7528"));var i=e;if(i.src||(i.src=t.DEFAULT_SRC),!n.value||"string"!==typeof n.value)throw new Error("".concat(n.value," \u5fc5\u987b\u662f\u5b57\u7b26\u4e32\u4e14\u4e0d\u80fd\u4e3a\u7a7a"));var r=this.generateUniqueKey();e.dataset[t.DATASET_KEY]=r,this._elToMeta[r]=n,this._observer&&this._observer.observe(e)}},{key:"unObserve",value:function(t){var e=this.getDatasetKey(t);this._elToMeta[e]&&this._observer&&(delete this._elToMeta[e],this._observer.unobserve(t))}}]),t}();dr.DATASET_KEY="__lazyload_key",dr.DEFAULT_SRC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACAQMAAACnuvRZAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=";var fr=n(13);n(323);n(161);n(134);var gr,vr=function(t,e){var n="click"===t?"behaviorLog":"actionLog";if("behaviorLog"===n){var i=e.action;if("string"!==typeof i||!i.startsWith("A"))return void console.error("[behavior-log] \u884c\u4e3a\u65e5\u5fd7 attribute \u4e2d\u5fc5\u987b\u5305\u542b action, \u4e14\u4ee5 A \u4e3a\u9996\u5b57\u6bcd")}if("actionLog"===n){var r=e.response;if("string"!==typeof r||!r.startsWith("R"))return void console.error("[behavior-log] \u54cd\u5e94\u65e5\u5fd7 attribute \u4e2d\u5fc5\u987b\u5305\u542b response, \u4e14\u4ee5 R \u4e3a\u9996\u5b57\u6bcd")}var o={ek:"",type:n,method:t,attribute:e};console.log("[behavior-log]",o),A.a.simaBizLog(o)};function mr(t,e){var n="click"===t?"click":"Exposure",i=e.eventKey,r=e.title,o=void 0===r?"":r,a=e.index,s=void 0===a?0:a,l=e.channel,c=void 0===l?"":l,u={type:"_".concat(t),name:"".concat(n,"_").concat(i),title:o,index:s,channel:c};gr&&gr.suda_count&&(console.log("[sima-log]",u),gr.suda_count(u))}function yr(t,e){var n="click"===t,i={ek:n?"CL_N_1":"CL_R_1",method:n?"CLICK":"EXPOSURE",attribute:e};console.log("[apache-sima-log] ",i),H.default.SIMA(i)}gr=n(51).default;var _r={install:function(t){t.prototype.$behaviorLog=vr,t.prototype.$sudaLog=mr,t.prototype.$apacheAndSimaLog=yr}},br=n(226).default;A.a.mountApi("wapApis",{fetch:br});A.a.fetch;var wr=["//localhost","//10.222",["t","e","s","t",".","s","i","n","a"].join(""),["t","y","t","e","s","t"].join(""),["wap","_","f","r","o","n","t",".","d","e","v"].join("")];var xr=function(){function t(){Object(l.a)(this,t)}return Object(c.a)(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getUrlByEnv(t),i=n,r=e.params,o=void 0===r?{}:r;if(Object.keys(o).length>0){var a=n.includes("?")?"&":"?";i=n+a+function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];for(var i in t){var r=t[i];""!==r&&n.push("".concat(i,"=").concat(e?encodeURIComponent(r):r))}return n.join("&")}(o,!1)}return this.sncFetch(i,"GET",{},e)}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getUrlByEnv(t);return this.sncFetch(i,"POST",e,n)}},{key:"getUrlByEnv",value:function(t){return"string"===typeof t?t:["test","dev"].includes(function(){var t=wr.some((function(t){return window.location.origin.includes(t)}))?"dev":"online";return lr(window.location.href,"appEnv")||t}())?t.test:t.online}},{key:"sncFetch",value:function(){var t=vn(fn().mark((function t(e,n,i,r){var o,a,s,l,c,u,h,p,d,f,g,v,m,y,_,b,w,x,S,k,T;return fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r.gatewayName,a=void 0===o?"":o,s=r.needGatewayAuth,l=void 0!==s&&s,c=r.needAuth,u=void 0!==c&&c,h=r.needGeneralParam,p=void 0!==h&&h,d=r.referer,f=void 0===d?"http://newsapp.sina.cn":d,g=r.dataType,v=void 0===g?"jsonp":g,m=r.timeout,y=void 0===m?0:m,_=r.headers,b=void 0===_?{}:_,w=r.moreConf,x=void 0===w?{}:w,S=r.format,k={url:e,method:n,data:i,gatewayName:a,needGatewayAuth:l,needAuth:u,needGeneralParam:p,referer:f,dataType:v,headers:b,moreConf:x,timeout:y},console.log("[snc-fetch] \u8bf7\u6c42\u53c2\u6570",k),T=A.a.fetch(k),"function"!==typeof S){t.next=12;break}return t.t1=S,t.next=8,T;case 8:t.t2=t.sent,t.t0=(0,t.t1)(t.t2),t.next=13;break;case 12:t.t0=T;case 13:return t.abrupt("return",t.t0);case 14:case"end":return t.stop()}}),t)})));return function(e,n,i,r){return t.apply(this,arguments)}}()}]),t}(),Sr=new xr;new(function(){function t(){Object(l.a)(this,t),this.requestPool=[],this.gongBuInstance=null,this.requestParams=null,this.initWebGongBu()}return Object(c.a)(t,[{key:"loadGk",value:function(t){var e=this;return new Promise((function(n,i){return e.request(t,"loadGK",n,i)}))}},{key:"loadQE",value:function(t){var e=this;return new Promise((function(n,i){return e.request(t,"loadQE",n,i)}))}},{key:"updateParams",value:function(t){Object.assign(this.requestParams,t),this.callRequestPool()}},{key:"initParams",value:function(t){this.requestParams=t,this.callRequestPool()}},{key:"callRequestPool",value:function(){var t=this;0!==this.requestPool.length&&(this.requestPool.forEach((function(e){var n=e.method,i=q(e.params,2),r=i[0],o=i[1];null!==r&&void 0!==r&&r.length&&t.gongBuInstance[n](r,t.requestParams,o)})),this.requestPool.length=0)}},{key:"request",value:function(t,e,n,i){this.requestPool.push({method:e,params:[this.parseArgs(t),function(t,e){return t?i(t):n(e)}]}),null!==this.requestParams&&this.callRequestPool()}},{key:"parseArgs",value:function(t){return Array.isArray(t)?t:"number"===typeof t?[t]:(ur("GongBu parseArgs()","\u53c2\u6570\u53ea\u80fd\u662f\u6570\u7ec4\u6216\u6570\u5b57"),[])}},{key:"initNativeGongBu",value:function(){var t=this;this.gongBuInstance=new fr.a({jsb:A.a,id_prefix:"r",closeCache:!1,gkurl:["test","dev"].includes(A.a.app.env)?"http://gk.sina.cn/v1/gkmatch":"https://gk.sina.cn/v1/gkmatch"}),A.a.getSystemInfo({success:function(e){t.initParams({deviceId:(null===e||void 0===e?void 0:e.deviceId)||"",appEnv:A.a.app.env,ua:navigator.userAgent})}})}},{key:"initWebGongBu",value:function(){var t,e,n,i;this.gongBuInstance=new fr.a({id_prefix:"r",closeCache:!1}),this.initParams({ua:navigator.userAgent,sinaglobal:null===(t=window)||void 0===t?void 0:t.getCookie("SINAGLOBAL"),ustat:null===(e=window)||void 0===e?void 0:e.getCookie("ustat"),ref:window.location.href,href:window.location.href,channel:(null===(n=window)||void 0===n||null===(i=n.sudaLogConfig)||void 0===i?void 0:i.channel)||"",useragent:navigator.userAgent,referrer:document.referrer})}}]),t}());n(36);var kr=function(){this.__data__=[],this.size=0};var Tr=function(t,e){return t===e||t!==t&&e!==e};var Cr=function(t,e){for(var n=t.length;n--;)if(Tr(t[n][0],e))return n;return-1},Or=Array.prototype.splice;var Ir=function(t){var e=this.__data__,n=Cr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Or.call(e,n,1),--this.size,!0)};var Mr=function(t){var e=this.__data__,n=Cr(e,t);return n<0?void 0:e[n][1]};var Ar=function(t){return Cr(this.__data__,t)>-1};var Dr=function(t,e){var n=this.__data__,i=Cr(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function Pr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991};var oa=function(t){return null!=t&&ra(t.length)&&!Zr(t)};var aa=function(t){return Zo(t)&&oa(t)},sa=n(69),la=Function.prototype,ca=Object.prototype,ua=la.toString,ha=ca.hasOwnProperty,pa=ua.call(Object);var da=function(t){if(!Zo(t)||"[object Object]"!=$r(t))return!1;var e=Yo(t);if(null===e)return!0;var n=ha.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ua.call(n)==pa},fa={};fa["[object Float32Array]"]=fa["[object Float64Array]"]=fa["[object Int8Array]"]=fa["[object Int16Array]"]=fa["[object Int32Array]"]=fa["[object Uint8Array]"]=fa["[object Uint8ClampedArray]"]=fa["[object Uint16Array]"]=fa["[object Uint32Array]"]=!0,fa["[object Arguments]"]=fa["[object Array]"]=fa["[object ArrayBuffer]"]=fa["[object Boolean]"]=fa["[object DataView]"]=fa["[object Date]"]=fa["[object Error]"]=fa["[object Function]"]=fa["[object Map]"]=fa["[object Number]"]=fa["[object Object]"]=fa["[object RegExp]"]=fa["[object Set]"]=fa["[object String]"]=fa["[object WeakMap]"]=!1;var ga=function(t){return Zo(t)&&ra(t.length)&&!!fa[$r(t)]};var va=function(t){return function(e){return t(e)}},ma=n(105),ya=ma.a&&ma.a.isTypedArray,_a=ya?va(ya):ga;var ba=function(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]},wa=Object.prototype.hasOwnProperty;var xa=function(t,e,n){var i=t[e];wa.call(t,e)&&Tr(i,n)&&(void 0!==n||e in t)||Ro(t,e,n)};var Sa=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,a=e.length;++o-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Ga=Ua(Ha);var Wa=function(t,e){return Ga(za(t,e,Ra),t+"")};var Ya=function(t,e,n){if(!qr(n))return!1;var i=typeof e;return!!("number"==i?oa(n)&&Ca(e,n.length):"string"==i&&e in n)&&Tr(n[e],t)};Xa=function(t,e,n,i){ja(t,e,n,i)},Wa((function(t,e){var n=-1,i=e.length,r=i>1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(r=Xa.length>3&&"function"==typeof r?(i--,r):void 0,o&&Ya(e[0],e[1],o)&&(r=i<3?void 0:r,i=1),t=Object(t);++n0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(Object(a.a)({},this.baseConfig||{}),t)}},{key:"mergeURL",value:function(t,e,n){var i=$a(t),r=$a(n?this.baseURL:"");function o(t){return e?t.replace(/^(\w*:?)\/\//,"https://"):t}return{test:o(r.test+i.test),online:o(r.online+i.online)}}},{key:"isIncorrectUrl",value:function(t){var e=t.includes("?")?t.split("?")[0]:t;return["test.","tytest.","dev."].some((function(t){return e.includes(t)}))}},{key:"mergeRetryConfig",value:function(t){var e=0,n=100;if(t){var i,r,o,a="boolean"===typeof t?{}:t;e=null!==(i=null!==(r=a.times)&&void 0!==r?r:this.retryTimes)&&void 0!==i?i:2,n=null!==(o=a.delay)&&void 0!==o?o:100}return{times:e,delay:n}}},{key:"retry",value:function(t,e,n){return function(){for(var i=arguments.length,r=new Array(i),o=0;o0?setTimeout(s,n):o(t)}))}()}))}}},{key:"request",value:function(t){var e,n=t.retry,i=t.method,r=t.url,o=t.option,a=t.useHttps,s=void 0!==a&&a,l=t.useBaseURL,c=void 0===l||l,u=t.autoSendError,h=void 0===u||u,p=this.mergeURL(r,s,c),d=this.mergeOptions(o),f=this.mergeRetryConfig(n),g=f.times,v=f.delay;if(this.isIncorrectUrl(p.online)){var m="[ServiceModel] \u7ebf\u4e0a\u5730\u5740\u9519\u8bef\u7684\u4f7f\u7528\u4e86\u6d4b\u8bd5\u63a5\u53e3 url: ".concat(p.online);h?A.a.sendError({error:m}):console.error(m)}var y=[];return"GET"===i?(e=Sr.get,y=[p,d]):(e=Sr.post,y=[p,t.data,d]),this.retry(e,g,v).apply(Sr,y).catch((function(t){if(h){var e=t instanceof Error?t.stack||"".concat(t.name,":").concat(t.message):t;A.a.sendError({error:"[ServiceModel] url: ".concat(p.online," ;method: ").concat(i,";options: ").concat(JSON.stringify(d)," ;retryConfig: {time:").concat(g,",delay:").concat(v,"};error: ").concat(e)})}throw t}))}},{key:"get",value:function(t){return this.request(Object(a.a)(Object(a.a)({},t),{},{method:"GET"}))}},{key:"post",value:function(t){return this.request(Object(a.a)(Object(a.a)({},t),{},{method:"POST"}))}}],[{key:"filterInstances",value:function(e){return t.instances.filter((function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:ns;return new Promise((function(n,i){var r=[t];"object"==typeof t&&(r=t),ts.loadGK(r,e,(function(t,e){n(e)}))}))}var rs=new(function(t){Rt(n,t);var e=Ft(n);function n(){var t;return Object(l.a)(this,n),(t=e.call(this)).baseURL={test:"",online:""},t.retryTimes=3,t}return Object(c.a)(n,[{key:"getSocketverify",value:function(t){return this.get({url:{test:"//".concat("","rapid.sports.sina.cn/home/api/room/socketverify"),online:"//rapid.sports.sina.cn/home/api/room/socketverify"},useBaseURL:!1,option:{params:t||{},moreConf:{jsonpCallback:"getSocketverify",caches:!1},format:function(t){return 0!==t.result.status.code?"":t.result.data}}})}},{key:"getLiveMsg",value:function(t){return this.get({url:{test:"//rapid.sports.sina.cn/live/api/msg/h5",online:"//rapid.sports.sina.cn/live/api/msg/h5"},useBaseURL:!1,option:{moreConf:{jsonpCallback:"getLiveMsg",caches:!1},format:function(t){return t.result.data},params:Object.assign(t||{},{dpc:1})}})}}]),n}(qa)),os=window.$,as=window.PAGECTRL||{},ss=function(){function t(e){Object(l.a)(this,t),this.states={"-1":"inactive",0:"connecting",1:"open",2:"closing",3:"closed"},this.proxy=as.event||os({}),this.opt=null,this.socket=null,this.reconnectTimeoutId=null,this.opt=Object.assign({url:"",protocols:null,reconnectDelay:1e4},e)}return Object(c.a)(t,[{key:"connect",value:function(){var t=this;if("closed"===t.getState()&&(t.socket=null),"inactive"===t.getState()){try{var e=new WebSocket(t.opt.url,t.opt.protocols);e.onmessage=function(e){t.proxy.trigger("message",e)},e.onopen=function(e){t.proxy.trigger("open",e)},e.onclose=function(e){t.proxy.trigger("close",e)},e.onerror=function(e){t.proxy.trigger("error",e)},t.socket=e}catch(n){return setTimeout((function(){t.proxy.trigger("error",n)}),0)}t.reconnectTimeoutId=null,t.opt.reconnectDelay&&t.proxy.off(".reconnectDelay").on("error.reconnectDelay close.reconnectDelay",(function(e,n){n.reason&&"_manual"===n.reason||(clearTimeout(t.reconnectTimeoutId),t.reconnectTimeoutId=setTimeout((function(){t.connect()}),t.opt.reconnectDelay))}))}}},{key:"getState",value:function(){return this.states[this.socket?this.socket.readyState:-1]}},{key:"send",value:function(t,e){var n=this;"open"===n.getState()?n.socket.send(t):"open"!==n.getState()&&e&&n.proxy.trigger("error",{msg:"INVALID_STATE_ERR : Pausing to reconnect websocket"})}},{key:"close",value:function(t,e){"undefined"===typeof t&&(t=1e3),this.socket&&this.socket.close(t,e)}}]),t}(),ls=function(){function t(e){Object(l.a)(this,t),this.options=null,this.ws1=null,this.intervalId=null,this.sendTimer=null,this.connectedTimer=null,this.roomId="",this.url="",this.parame=null,this.reConnectNum=0,this.options=Object.assign({url:("https:"===location.protocol?"wss:":"ws:")+"//ably.sports.sina.com.cn",closeOpt:!0},e||{}),this.parame=this.options.parame||{},this.roomId=this.options.roomId||this.parame.roomId;var n=this.options.url,i={test:"",online:""};"string"===typeof n?(i.test=n,i.online=n):(i.test=n.online||"",i.online=n.online||""),this.url=/appEnv=(test|dev)/g.test(location.href)?i.test:i.online,this.url?this.wsLoad(e,this.url).then((function(){})):console.log("\u7f3a\u5c11ws Url")}return Object(c.a)(t,[{key:"wsLoad",value:function(){var t=vn(fn().mark((function t(e,n){var i,r;return fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,r=null,!this.roomId){t.next=6;break}return t.next=5,rs.getSocketverify({roomnum:this.roomId});case 5:r=t.sent;case 6:if(r){t.next=9;break}return console.log("\u7f3a\u5c11ws\u6821\u9a8c\u53c2\u6570"),t.abrupt("return",!1);case 9:return console.log("ws\u6821\u9a8c\u53c2\u6570\uff1a",r),i.ws1=new ss({url:n+"/"+r,reconnectDelay:0}),i.ws1.connect(),i.reConnectNum=i.reConnectNum+1,i.wsBind(e,n),i.intervalId&&clearInterval(i.intervalId),i.sendTimer&&clearInterval(i.sendTimer),i.sendTimer=setInterval((function(){i.ws1.send("",!1)}),6e4),t.abrupt("return",Promise.resolve(e));case 18:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"wsBind",value:function(t,e){var n=this;n.ws1&&(n.ws1.proxy.off("open").on("open",(function(t,e){console.log("wsopen:",e),n.options.onConnected&&n.options.onConnected()})),n.ws1.proxy.off("message").on("message",(function(t,e){e=JSON.parse(e.data),console.log("ws\u6570\u636e:",e),n.options.onMessage&&n.options.onMessage(e)})),n.ws1.proxy.off("close").on("close",(function(i,r){console.warn("socket \u5173\u95ed\u4e86\uff1a",r),n.reConnect(r,t,e),n.options.onBreak&&n.options.onBreak(r)})),n.ws1.proxy.off("error").on("error",(function(i,r){console.warn("socket \u51fa\u9519\u4e86\uff1a",r),n.reConnect(r,t,e),n.options.onBreak&&n.options.onBreak(r)}))),n.visibilityChange(t,e)}},{key:"visibilityChange",value:function(t,e){var n=this,i="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,r=i.replace(/hidden/i,"visibilitychange"),o=function(){document[i]?n.options.closeOpt&&n.ws1&&n.ws1.close&&n.ws1.close(3001,"_manual"):(n.reConnectNum=2,n.reConnect({},t,e,500))};document.removeEventListener(r,o),document.addEventListener(r,o)}},{key:"autoAction",value:function(t){var e=this;return{start:function(n){e.intervalId&&clearInterval(e.intervalId),e.intervalId=setInterval((function(){e.ws1&&e.ws1.socket&&1!==e.ws1.socket.readyState?(e.options.onReConnect&&e.options.onReConnect(),console.log("\u5c1d\u8bd5\u91cd\u542f"),n()):e.intervalId&&clearInterval(e.intervalId)}),t||5e3)}}}},{key:"reConnect",value:function(t,e,n,i){var r=this;"_manual"!==t.reason&&r.reConnectNum<3&&r.autoAction(i).start((function(){r.wsLoad(e,n)}))}}]),t}();function cs(t,e){if(!t)return"";if(!t.includes("?"))return"";var n,i=Z(t.slice(t.indexOf("?")+1).split("&"));try{for(i.s();!(n=i.n()).done;){var r=n.value.split("=");if(r[0]==e)return r[1]}}catch(o){i.e(o)}finally{i.f()}}var us=n(106),hs=n.n(us),ps=function(t,e){t=t||{};var n=JSON.parse(JSON.stringify(t));n.secret=e;var i=[];for(var r in n)i.push(r);i.sort();for(var o=[],a=0;a-1?"sina.com.cn":"sina.cn",fs=navigator.userAgent,gs=new(function(t){Rt(n,t);var e=Ft(n);function n(){var t;return Object(l.a)(this,n),(t=e.call(this)).baseURL={test:"",online:""},t.retryTimes=3,t}return Object(c.a)(n,[{key:"praiseUpdate",value:function(t){var e,n=(e=fs,hs()(e)),i=(new Date).getTime(),r=Math.round(i/1e3);t=Object.assign({did:n,ts:r},t);var o=ps(t,"1bc4aff8c0");t.sign=o;var a=location.host;return a&&(a.indexOf("sina.cn")>-1||a.indexOf("sina.com.cn")>-1)?this.post({url:"//bonus.sports.".concat(ds,"/rwd/index/secincr"),useBaseURL:!1,data:t,option:{format:function(t){return t.result.data}}}):new Promise((function(e,n){!function(t,e,n,i){document.domain=window.ijaxDomain||(location.host.indexOf("sina.com.cn")>-1?"sina.com.cn":"sina.cn");var r=document.getElementsByTagName("body")[0],o=Math.abs((new Date).getTime())+"_"+Math.round(1e8*Math.random()),a="ijax_iframe_"+o,s=document.createElement("iframe");s.style.height="0px",s.style.position="absolute",s.style.top="-9999px",s.style.overflow="hidden",s.style.display="none",s.name=a,s.id=a,s.frameborder=0,e.callback="ijax_"+o;var l=function(t){var e=[];for(var n in t)if("file_el"!=n){var i=t[n];e.push('")}return e.join("")}(e);e.file_el,window["ijax_"+o]=function(t){"function"===typeof n&&(t.result&&t.result.data&&"10011"==t.result.data.code?this.window.location.href="http://"+t.result.data.url:n(t)),clearTimeout(timer),setTimeout((function(){r.removeChild(s),e.file_el,r.removeChild(c)}),1e3)};var c=document.createElement("form");if(c.style.height="0px",c.style.position="absolute",c.style.top="-9999px",c.style.display="none",c.method="post",c.action=t+"?callback=ijax_"+o,c.target=a,c.innerHTML=l,r.appendChild(s),e.file_el){var u=e.file_el;c.enctype="multipart/form-data",c.encoding="multipart/form-data",r.appendChild(c),c.appendChild(u.cloneNode(!0))}else r.appendChild(c);c.submit()}("//bonus.sports.".concat(ds,"/rwd/index/secincr"),t,(function(t){e(t.result.data)}))}))}},{key:"getScoreData",value:function(t){return this.get({url:{test:"http://".concat(Ka,"/wink/api/panel/score?id=").concat(t),online:"//".concat(Qa,"/wink/api/panel/score?id=").concat(t)},useBaseURL:!1,option:{params:{dpc:1},moreConf:{jsonpCallback:"getPanelScore"},format:function(t){return t.result.data}}})}}]),n}(qa)),vs=new(function(t){Rt(n,t);var e=Ft(n);function n(){var t;return Object(l.a)(this,n),(t=e.call(this)).baseURL={test:"",online:""},t.retryTimes=3,t}return Object(c.a)(n,[{key:"getfootballData",value:function(t){return this.get({url:{test:"http://".concat(Ka,"/live/api/various/datum?id=").concat(t),online:"//".concat(Qa,"/live/api/various/datum?id=").concat(t)},useBaseURL:!1,option:{params:{dpc:1},moreConf:{jsonpCallback:"getfootballLiveData"},format:function(t){return t.result.data}}})}}]),n}(qa)),ms={"[\u5fae\u7b11]":"d_hehe","[\u53ef\u7231]":"face_sina_13","[\u592a\u5f00\u5fc3]":"face_sina_34","[\u9f13\u638c]":"face_sina_28","[\u563b\u563b]":"face_sina_3","[\u54c8\u54c8]":"face_sina_4","[\u7b11cry]":"face_sina_20","[\u6324\u773c]":"face_sina_43","[\u998b\u5634]":"face_sina_10","[\u9ed1\u7ebf]":"face_sina_50","[\u6c57]":"face_sina_15","[\u6316\u9f3b]":"d_wabishi","[\u54fc]":"face_sina_12","[\u6012]":"face_sina_14","[\u59d4\u5c48]":"face_sina_39","[\u53ef\u601c]":"face_sina_41","[\u5931\u671b]":"face_sina_44","[\u60b2\u4f24]":"face_sina_29","[\u6cea]":"face_sina_9","[\u5141\u60b2]":"d_yunbei","[\u5bb3\u7f9e]":"face_sina_16","[\u6c61]":"d_wu","[\u7231\u4f60]":"face_sina_5","[\u4eb2\u4eb2]":"face_sina_32","[\u8272]":"d_huaxin","[\u8214\u5c4f]":"d_tian","[\u61a7\u61ac]":"d_xingxingyan","[doge]":"face_sina_21","[\u55b5\u55b5]":"face_sina_22","[\u4e8c\u54c8]":"face_sina_100","[\u574f\u7b11]":"d_huaixiao","[\u9634\u9669]":"face_sina_51","[\u7b11\u800c\u4e0d\u8bed]":"d_heiheihei","[\u5077\u7b11]":"face_sina_19","[\u9177]":"face_sina_23","[\u5e76\u4e0d\u7b80\u5355]":"d_bingbujiandan","[\u601d\u8003]":"face_sina_30","[\u7591\u95ee]":"face_sina_46","[\u8d39\u89e3]":"d_feijie","[\u6655]":"face_sina_8","[\u8870]":"face_sina_24","[\u9ab7\u9ac5]":"d_kulou","[\u5618]":"face_sina_38","[\u95ed\u5634]":"face_sina_25","[\u50bb\u773c]":"d_shayan","[\u5403\u60ca]":"face_sina_7","[\u5410]":"face_sina_40","[\u611f\u5192]":"face_sina_48","[\u751f\u75c5]":"face_sina_31","[\u62dc\u62dc]":"face_sina_49","[\u9119\u89c6]":"face_sina_26","[\u767d\u773c]":"d_landelini","[\u5de6\u54fc\u54fc]":"face_sina_37","[\u53f3\u54fc\u54fc]":"face_sina_36","[\u6293\u72c2]":"face_sina_11","[\u6012\u9a82]":"face_sina_33","[\u6253\u8138]":"d_dalian","[\u9876]":"face_sina_45","[\u4e92\u7c89]":"face_sina_52","[\u94b1]":"face_sina_18","[\u54c8\u6b20]":"d_dahaqi","[\u56f0]":"face_sina_47","[\u7761]":"d_shuijiao","[\u5403\u74dc]":"d_chigua","[\u62b1\u62b1]":"face_sina_101","[\u644a\u624b]":"face_sina_102","[\u8dea\u4e86]":"d_guile","[\u5fc3]":"face_sina_53","[\u4f24\u5fc3]":"face_sina_54","[\u9c9c\u82b1]":"face_sina_69","[\u7537\u5b69\u513f]":"face_sina_94","[\u5973\u5b69\u513f]":"face_sina_95","[\u63e1\u624b]":"face_sina_58","[\u4f5c\u63d6]":"face_sina_59","[\u8d5e]":"face_sina_60","[\u8036]":"face_sina_61","[good]":"face_sina_62","[\u5f31]":"face_sina_63","[NO]":"h_buyao","[ok]":"face_sina_65","[haha]":"face_sina_66","[\u6765]":"face_sina_67","[\u62f3\u5934]":"h_quantou","[\u52a0\u6cb9]":"h_jiayou","[\u718a\u732b]":"face_sina_56","[\u5154\u5b50]":"face_sina_57","[\u732a\u5934]":"face_sina_55","[\u8349\u6ce5\u9a6c]":"face_sina_82","[\u5965\u7279\u66fc]":"face_sina_81","[\u592a\u9633]":"face_sina_74","[\u6708\u4eae]":"face_sina_73","[\u6d6e\u4e91]":"face_sina_71","[\u4e0b\u96e8]":"face_sina_76","[\u6c99\u5c18\u66b4]":"face_sina_99","[\u5fae\u98ce]":"face_sina_75","[\u56f4\u89c2]":"face_sina_79","[\u98de\u673a]":"face_sina_72","[\u7167\u76f8\u673a]":"face_sina_97","[\u8bdd\u7b52]":"face_sina_80","[\u97f3\u4e50]":"face_sina_89","[\u8721\u70db]":"face_sina_92","[\u559c]":"face_sina_87","[\u7ed9\u529b]":"face_sina_77","[\u5a01\u6b66]":"face_sina_68","[\u5e72\u676f]":"face_sina_93","[\u86cb\u7cd5]":"face_sina_91","[\u793c\u7269]":"face_sina_86","[\u949f]":"face_sina_70","[\u80a5\u7682]":"face_sina_96","[\u7eff\u4e1d\u5e26]":"face_sina_90","[\u56f4\u8116]":"face_sina_88","[\u6d6a]":"face_sina_98","[\u795e\u9a6c]":"face_sina_78","[\u840c]":"face_sina_83","[\u56e7]":"face_sina_84","[\u7ec7]":"face_sina_85","[\u6700\u53f3]":"d_zuiyou","[\u7f9e\u55d2\u55d2]":"lxh_xiudada","[\u597d\u7231\u54e6]":"lxh_haoaio","[\u5077\u4e50]":"lxh_toule","[\u8d5e\u554a]":"lxh_zana","[\u7b11\u54c8\u54c8]":"lxh_xiaohaha","[\u597d\u559c\u6b22]":"lxh_haoxihuan","[\u6c42\u5173\u6ce8]":"lxh_qiuguanzhu"};window.emoticonjson=ms;var ys=ms;function _s(t,e,n){var i,r=0;return function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;le&&(t.apply(this,s),r=c)}else i||(i=setTimeout((function(){i=null,t.apply(o,s)}),e))}}var bs,ws,xs,Ss,ks,Ts,Cs,Os,Is,Ms,As,Ds,Ps,Es,Ls,js=function(t){var e=location.protocol;return e=/http(s)?:/.test(e)?e:"https:",t.replace(/^((http:)|(https:))?\/\//,e+"//")},Rs=function(){function t(e,n,i){Object(l.a)(this,t);var r=this;r.wrapper=n,r.button=e,r.itemNodes=[],r.textNode=i,r.bindEvent()}return Object(c.a)(t,[{key:"sendItem",value:function(t,e,n){var i=this,r=document.createElement("div");r.className="pk_item_icon pk_item_icon_".concat(n%3);var o=function(){r._remove||(i.wrapper&&i.wrapper.removeChild(r),r._remove=!0)};i.wrapper&&i.wrapper.appendChild(r),r.className=r.className+" item-rotate";!function(t){var e,n=t||{},i=n.originX,r=n.originY,o=n.targetX,a=n.targetY,s=n.duration,l=void 0===s?800:s,c=n.a,u=void 0===c?.005:c,h=n.vertical,p=void 0===h||h,d=n.callback,f=n.done,g=o-i,v=a-r,m=g/l,y=v/l,_=p?(v-u*g*g)/g:(g-u*v*v)/v,b=null,w=null,x=Date.now();e=requestAnimationFrame((function t(){var n=Date.now(),i=l-(n-x);if(i<=0)return d&&d(g,v),cancelAnimationFrame(e),void(f&&f());e=requestAnimationFrame(t),p?(b=m*(n-x),w=m?u*b*b+_*b:y*(n-x)):(w=y*(n-x),b=y?u*w*w+_*w:m*(n-x)),d&&d(b,w,i)}))}(e=Object.assign({},{callback:function(t,e,n){r.style.transform="translate(".concat(t,"px, ").concat(e,"px)"),n<620&&!r._animate&&(r.className=r.className+" item-fade",r._animate=!0,r.removeEventListener("animationend",o),r.addEventListener("animationend",o))},done:o},e))}},{key:"debounce",value:function(t,e,n){var i,r=null,o=0;return function(){for(var a=arguments.length,s=new Array(a),l=0;l=n?(t.apply(c,s),i=u):0==o?(t.apply(c,s),o++):r=setTimeout((function(){t.apply(c,s)}),e)}}},{key:"bindEvent",value:function(){}},{key:"getPConfig",value:function(t,e){var n={x:e.x+e.width/2,y:e.y+e.height/2},i=t;i=i*(6*Math.random()+4)/10;var r=Math.PI/180*360*Math.random(),o=n.x+Math.sin(r)*i,a=n.y+Math.cos(r)*i;return{originX:n.x,originY:n.y,targetX:o,targetY:a,duration:700,a:3e-4}}},{key:"send",value:function(){var t=this;t.bodyWidth=t.bodyWidth||document.documentElement.clientWidth,t.buttonRect=t.buttonRect||t.button.getBoundingClientRect();for(var e=0;e<14;e++){var n=t.getPConfig(t.bodyWidth,t.buttonRect);t.sendItem(e,n,e)}}}]),t}(),Ns=Rs,Bs=window.lottie,zs=(bs=bn({type:String,default:"l"}),ws=bn({type:Boolean,default:!0}),Ce()((Ss=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o999?999:this.num||1)+"").split("")}},{key:"getZanIconType",get:function(){var t=this.num||0;return t<10?1:t<=20?2:t<=40?3:t<100?4:5}},{key:"created",value:function(){}},{key:"mounted",value:function(){this.bodyWidth=document.body.clientWidth&&document.documentElement.clientWidth;var t=this.$refs.hand_ref,e=this.$refs.pk_icon;if(this.initAnimationIcon(),this.isFirework)this.FWork=new Ns(e,t);else{var n=this.$refs.liveroomAni_ref;this.initliveroomAni(n)}var i=this;document.getElementById("pk_icon_".concat(this.type)).addEventListener("click",_s((function(){i._pk_hand()}),500,!0))}},{key:"initliveroomAni",value:function(t){var e=this;this.liveroomAni_lottie=Bs&&Bs.loadAnimation({container:t,renderer:"svg",loop:!1,autoplay:!1,path:"//n.sinaimg.cn/default/b5eb0bc4/20220406/liveroomAni.json"}),this.liveroomAni_lottie&&this.liveroomAni_lottie.addEventListener("complete",(function(){e.liveroomAni_lottie.goToAndStop(0),e.liveroomAniShow=!1}))}},{key:"initAnimationIcon",value:function(){var t=this,e=this.$refs.pk_icon_svg,n="l"==this.type?"//n.sinaimg.cn/default/b5eb0bc4/20220406/liveroomLeftAni.json":"//n.sinaimg.cn/default/b5eb0bc4/20220406/liveroomRightAni.json";this.pk__lottie=Bs&&Bs.loadAnimation({container:e,renderer:"svg",loop:!1,autoplay:!1,path:n}),this.pk__lottie&&(this.pk__lottie.addEventListener("complete",(function(){t.pk__lottie.goToAndStop(0)})),this.pk__lottie.addEventListener("DOMLoaded",(function(){t.pk_icon_show=!1})))}},{key:"handAniEnd",value:function(){this.is__hand_ani=!1}},{key:"animationFade",value:function(){}},{key:"_pk_hand",value:function(){var t=this;t.FWork&&t.FWork.send(),t.liveroomAni_lottie&&t.liveroomAni_lottie.play(),t.num=t.num+1,t.hand_icon_show=!0,t.is__hand_ani=!0,t.hand_icon_fade=!1,t.liveroomAniShow=!0,t.pk_lottie_ani.apply(t),t.$emit("workHandClick",t.type),t.handFadeTimeout&&clearTimeout(t.handFadeTimeout),t.handFadeTimeout=setTimeout((function(){t.hand_icon_show=!1}),1100)}},{key:"pk_lottie_ani",value:function(){var t=this;this.pk_lottieTimeout&&clearTimeout(this.pk_lottieTimeout),this.pk_lottieTimeout=setTimeout((function(){t.pk__lottie&&t.pk__lottie.play()}),510)}}]),n}(o.a),ks=ke(Ss.prototype,"type",[bs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ts=ke(Ss.prototype,"isFirework",[ws],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xs=Ss))||xs),Fs=D(zs,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"firework_wrap"},[n("div",{ref:"hand_ref",staticClass:"hand-wrap",class:"hand-wrap_"+t.type}),n("div",{ref:"pk_icon",staticClass:"pk_icon",class:{pk_icon_show:t.pk_icon_show},attrs:{id:"pk_icon_"+t.type}},[n("div",{staticClass:"pk_icon_svg_warp"},[n("div",{ref:"pk_icon_svg",staticClass:"pk_icon_svg"})]),t.hand_icon_show?n("span",{staticClass:"pk_hand_icon",class:[t.type+"_pk_hand_icon","pk_hand_icon_"+t.getZanIconType,t.hand_icon_fade?"pk_hand_icon_fade":""],on:{animationend:function(e){return e.stopPropagation(),t.animationFade.apply(null,arguments)}}},[n("div",{ref:"num_icon",staticClass:"num_icon",class:{num_icon_ani:t.is__hand_ani},on:{animationend:function(e){return e.stopPropagation(),t.handAniEnd.apply(null,arguments)}}},[n("span",{staticClass:"num_x",class:t.type+"_num_it"}),t._l(t.getNumStrArr,(function(e,i){return n("span",{key:i,staticClass:"num_it",class:[t.type+"_num_it","num_"+e]})}))],2)]):t._e()]),t.isFirework?t._e():n("div",{ref:"liveroomAni_ref",staticClass:"liveroomAni_warp",class:{liveroomAni_warp_show:t.liveroomAniShow,liveroomAni_left:"l"===t.type,liveroomAni_right:"l"!==t.type},style:{width:t.bodyWidth+"px",top:t.bodyWidth/375*-190+"px"}})])}),[],!1,null,"7bcb9b17",null),Hs=Fs.exports,Vs=(Cs=Ce()({components:{Firework:Hs}}),Os=bn({}),Is=bn({}),Ms=wn("Status"),As=wn("GameState"),Cs((Ps=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;oi?"score-hl-left":n===i?"score-hl-left score-hl-right":"score-hl-right"},getRat:function(t,e,n){var i,r,o;return t.indexOf("%")>-1&&(t=t.slice(0,-1)),e.indexOf("%")>-1&&(e=e.slice(0,-1)),t=Number(t),e=Number(e),0==t&&0==e?(i=0,r=0):(i=t/(o=t+e)*n,r=e/o*n),{rate1:i,rate2:r}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"score-bar-item",on:{click:function(e){return t.item.handleClick(t.item)}}},[n("div",{staticClass:"score-bar-top",class:t.heighLight},[n("span",{staticClass:"score-left"},[t._v(t._s(t.item.value1))]),t.item.tip1?n("span",{staticClass:"score-tip score-tip-left"},[t._v(t._s(t.item.tip1))]):t._e(),n("span",[t._v(t._s(t.item.center))]),t.item.tip2?n("span",{staticClass:"score-tip score-tip-right"},[t._v(t._s(t.item.tip2))]):t._e(),n("span",{staticClass:"score-right"},[t._v(t._s(t.item.value2))])]),n("div",{staticClass:"score-bar-btm",class:t.heighLight},[n("span",{staticClass:"bar bar-left",style:{width:t.rate1?t.rate1+"rem":"auto"}}),n("span",{staticClass:"bar bar-right",style:{width:t.rate2?t.rate2+"rem":"auto"}})])])}),[],!1,null,null,null),ll=D({name:"bar-chart",components:{Item:sl.exports},props:{data:{type:Array,default:null}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._l(t.data,(function(t,e){return n("item",{key:t.id||e,attrs:{item:t}})})),1)}),[],!1,null,null,null),cl=ll.exports,ul=D({name:"PreHistory",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{lists:this.data&&this.data.lists||[],teams:this.data&&this.data.teams||{}}},components:{Title:rl,InfoBlock:al,BarChart:cl},beforeMount:function(){}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"page-seperator"},[n("Title",{attrs:{title:"\u5386\u53f2\u4ea4\u950b"}}),n("InfoBlock",{attrs:{data:t.data.teams||{}}}),n("section",{style:{padding:"0 .32rem .24rem .32rem"}},[n("BarChart",{attrs:{data:t.data.lists||[]}})],1)],1)}),[],!1,null,"591b2638",null),hl=ul.exports,pl=function(t,e){return pl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},pl(t,e)};function dl(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}pl(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var fl=n(5),gl=n(0),vl=function(t,e){return vl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},vl(t,e)};function ml(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}vl(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function yl(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function _l(t,e){return t[0]=e[0],t[1]=e[1],t}function bl(t){return[t[0],t[1]]}function wl(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function xl(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Sl(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function kl(t){return Math.sqrt(Tl(t))}function Tl(t){return t[0]*t[0]+t[1]*t[1]}function Cl(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Ol(t,e){var n=kl(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Il(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Ml=Il;var Al=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function Dl(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function Pl(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function El(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Ll(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var jl=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Rl=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new jl(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new jl(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new jl(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new jl(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new jl(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new jl(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Nl=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),h=2*c,p=u.left,d=u.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Hl(s,a):Hl(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function Wl(t){return"CANVAS"===t.nodeName.toUpperCase()}var Yl=/([&<>"'])/g,Xl={"&":"&","<":"<",">":">",'"':""","'":"'"};function $l(t){return null==t?"":(t+"").replace(Yl,(function(t,e){return Xl[e]}))}var ql=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zl=[],Kl=fl.a.browser.firefox&&+fl.a.browser.version.split(".")[0]<39;function Ql(t,e,n,i){return n=n||{},i?Jl(t,e,n):Kl&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Jl(t,e,n),n}function Jl(t,e,n){if(fl.a.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Wl(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Gl(Zl,t,i,r))return n.zrX=Zl[0],void(n.zrY=Zl[1])}n.zrX=n.zrY=0}function tc(t){return t||window.event}function ec(t,e,n){if(null!=(e=tc(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Ql(t,r,e,n)}else{Ql(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ql.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function nc(t,e,n,i){t.addEventListener(e,n,i)}var ic=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function rc(t){return 2===t.which||3===t.which}var oc=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ac(r)/ac(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function lc(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function cc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function uc(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function hc(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function pc(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],c=Math.sin(n),u=Math.cos(n);return t[0]=i*u+a*c,t[1]=-i*c+a*u,t[2]=r*u+s*c,t[3]=-r*c+u*s,t[4]=u*o+c*l,t[5]=u*l-c*o,t}function dc(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function fc(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var gc=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),vc=Math.min,mc=Math.max,yc=new gc,_c=new gc,bc=new gc,wc=new gc,xc=new gc,Sc=new gc,kc=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=vc(t.x,this.x),n=vc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return hc(r,r,[-e.x,-e.y]),dc(r,r,[n,i]),hc(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,c=e.x+e.width,u=e.y,h=e.y+e.height,p=!(of&&(f=_,gf&&(f=b,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,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 e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}yc.x=bc.x=n.x,yc.y=wc.y=n.y,_c.x=wc.x=n.x+n.width,_c.y=bc.y=n.y+n.height,yc.transform(i),wc.transform(i),_c.transform(i),bc.transform(i),e.x=vc(yc.x,_c.x,bc.x,wc.x),e.y=vc(yc.y,_c.y,bc.y,wc.y);var l=mc(yc.x,_c.x,bc.x,wc.x),c=mc(yc.y,_c.y,bc.y,wc.y);e.width=l-e.x,e.height=c-e.y}else e!==n&&t.copy(e,n)},t}(),Tc="silent";function Cc(){ic(this.event)}var Oc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return ml(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Bl),Ic=function(t,e){this.x=t,this.y=e},Mc=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ac=new kc(0,0,0,0),Dc=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Ic(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Oc,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Rl(a),a}return ml(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(gl.k(Mc,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Lc(this,e,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 Ic(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ic(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:Cc}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Ic(t,e);if(Ec(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new kc(t-s,e-s,a,a),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Ac.copy(u.getBoundingRect()),u.transform&&Ac.applyTransform(u.transform),Ac.intersect(l)&&o.push(u))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,d=0;d=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Pc(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Tc)){e.target=a;break}}}function Lc(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}gl.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Dc.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Lc(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ml(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var jc=Dc,Rc=32,Nc=7;function Bc(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function zc(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=a}}function Fc(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var c=a;a=r-l,l=r-c}for(a++;a>>1);o(t,e[n+u])>0?a=u+1:l=u}return l}function Hc(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var c=a;a=r-l,l=r-c}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+u])<0?l=u:a=u+1}return l}function Vc(t,e){var n,i,r,o=Nc,a=0;n=t.length;var s=[];function l(n){var l=i[n],c=r[n],u=i[n+1],h=r[n+1];r[n]=c+h,n===a-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),a--;var p=Hc(t[u],t,l,c,0,e);l+=p,0!==(c-=p)&&0!==(h=Fc(t[l+c-1],t,u,h,h-1,e))&&(c<=h?function(n,i,r,a){var l=0;for(l=0;l=Nc||d>=Nc);if(f)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===i){for(l=0;l=0;l--)t[d+l]=t[p+l];return void(t[h]=s[u])}var f=o;for(;;){var g=0,v=0,m=!1;do{if(e(s[u],t[c])<0){if(t[h--]=t[c--],g++,v=0,0===--i){m=!0;break}}else if(t[h--]=s[u--],v++,g=0,1===--a){m=!0;break}}while((g|v)=0;l--)t[d+l]=t[p+l];if(0===i){m=!0;break}}if(t[h--]=s[u--],1===--a){m=!0;break}if(0!==(v=a-Fc(t[c],s,0,a,a-1,e))){for(a-=v,d=(h-=v)+1,p=(u-=v)+1,l=0;l=Nc||v>=Nc);if(m)break;f<0&&(f=0),f+=2}(o=f)<1&&(o=1);if(1===a){for(d=(h-=i)+1,p=(c-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=s[u]}else{if(0===a)throw new Error;for(p=h-(a-1),l=0;l1;){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;l(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&r[t-1]=Rc;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Bc(t,n,i,e))s&&(l=s),zc(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Gc=1,Wc=4,Yc=!1;function Xc(){Yc||(Yc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $c(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var qc=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$c}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(Xc(),c.z=0),isNaN(c.z2)&&(Xc(),c.z2=0),isNaN(c.zlevel)&&(Xc(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Zc=fl.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Kc={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Kc.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Kc.bounceIn(2*t):.5*Kc.bounceOut(2*t-1)+.5}},Qc=Kc,Jc=Math.pow,tu=Math.sqrt,eu=1e-8,nu=1e-4,iu=tu(3),ru=1/3,ou=yl(),au=yl(),su=yl();function lu(t){return t>-eu&&teu||t<-eu}function uu(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function hu(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function pu(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),c=t-r,u=s*s-3*a*l,h=s*l-9*a*c,p=l*l-3*s*c,d=0;if(lu(u)&&lu(h)){if(lu(s))o[0]=0;else(k=-l/s)>=0&&k<=1&&(o[d++]=k)}else{var f=h*h-4*u*p;if(lu(f)){var g=h/u,v=-g/2;(k=-s/a+g)>=0&&k<=1&&(o[d++]=k),v>=0&&v<=1&&(o[d++]=v)}else if(f>0){var m=tu(f),y=u*s+1.5*a*(-h+m),_=u*s+1.5*a*(-h-m);(k=(-s-((y=y<0?-Jc(-y,ru):Jc(y,ru))+(_=_<0?-Jc(-_,ru):Jc(_,ru))))/(3*a))>=0&&k<=1&&(o[d++]=k)}else{var b=(2*u*s-3*a*h)/(2*tu(u*u*u)),w=Math.acos(b)/3,x=tu(u),S=Math.cos(w),k=(-s-2*x*S)/(3*a),T=(v=(-s+x*(S+iu*Math.sin(w)))/(3*a),(-s+x*(S-iu*Math.sin(w)))/(3*a));k>=0&&k<=1&&(o[d++]=k),v>=0&&v<=1&&(o[d++]=v),T>=0&&T<=1&&(o[d++]=T)}}return d}function du(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(lu(a)){if(cu(o))(u=-s/o)>=0&&u<=1&&(r[l++]=u)}else{var c=o*o-4*a*s;if(lu(c))r[0]=-o/(2*a);else if(c>0){var u,h=tu(c),p=(-o-h)/(2*a);(u=(-o+h)/(2*a))>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function fu(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,h=(u-c)*r+c;o[0]=t,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=i}function gu(t,e,n,i,r,o,a,s,l,c,u){var h,p,d,f,g,v=.005,m=1/0;ou[0]=l,ou[1]=c;for(var y=0;y<1;y+=.05)au[0]=uu(t,n,r,a,y),au[1]=uu(e,i,o,s,y),(f=Al(ou,au))=0&&f=0&&v=1?1:pu(0,i,o,1,t,s)&&uu(0,r,a,1,s[0])}}}var Tu=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||gl.L,this.ondestroy=t.ondestroy||gl.L,this.onrestart=t.onrestart||gl.L,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(gl.w)(t)?t:Qc[t]||ku(t)},t}(),Cu=n(7),Ou=n(8),Iu=Array.prototype.slice;function Mu(t,e,n){return(e-t)*n+t}function Au(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(Object(gl.u)(e)){var l=function(t){return Object(gl.u)(t&&t[0])?2:1}(e);a=l,(1===l&&!Object(gl.z)(e[0])||2===l&&!Object(gl.z)(e[0][0]))&&(o=!0)}else if(Object(gl.z)(e)&&!Object(gl.l)(e))a=0;else if(Object(gl.C)(e))if(isNaN(+e)){var c=Cu.g(e);c&&(s=c,a=3)}else a=0;else if(Object(gl.x)(e)){var u=Object(gl.m)({},s);u.colorStops=Object(gl.H)(e.colorStops,(function(t){return{offset:t.offset,color:Cu.g(t.color)}})),Object(Ou.m)(e)?a=4:Object(Ou.o)(e)&&(a=5),s=u}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(gl.w)(n)?n:Qc[n]||ku(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Bu(i),l=Nu(i),c=0;c=0&&!(l[n].percent<=e);n--);n=d(n,c-2)}else{for(n=p;ne);n++);n=d(n-1,c-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?zu:t[u];if(!Bu(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[u]=g<1?i.rawValue:r.rawValue;else if(Bu(s))1===s?Au(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,ju(l),i),this._trackKeys.push(a)}s.addKeyframe(t,ju(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function Vu(){return(new Date).getTime()}var Uu=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return ml(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Vu()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Zc((function e(){t._running&&(Zc(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Vu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Vu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Vu()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Hu(t,e.loop);return this.addAnimator(n),n},e}(Bl),Gu=fl.a.domSupported,Wu=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:gl.H(t,(function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t}))}}(),Yu=["mousemove","mouseup"],Xu=["pointermove","pointerup"],$u=!1;function qu(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Zu(t){t&&(t.zrByTouch=!0)}function Ku(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Qu=function(t,e){this.stopPropagation=gl.L,this.stopImmediatePropagation=gl.L,this.preventDefault=gl.L,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ju={mousedown:function(t){t=ec(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ec(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ec(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ku(this,(t=ec(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$u=!0,t=ec(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$u||(t=ec(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Zu(t=ec(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ju.mousemove.call(this,t),Ju.mousedown.call(this,t)},touchmove:function(t){Zu(t=ec(this.dom,t)),this.handler.processGesture(t,"change"),Ju.mousemove.call(this,t)},touchend:function(t){Zu(t=ec(this.dom,t)),this.handler.processGesture(t,"end"),Ju.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ju.click.call(this,t)},pointerdown:function(t){Ju.mousedown.call(this,t)},pointermove:function(t){qu(t)||Ju.mousemove.call(this,t)},pointerup:function(t){Ju.mouseup.call(this,t)},pointerout:function(t){qu(t)||Ju.mouseout.call(this,t)}};gl.k(["click","dblclick","contextmenu"],(function(t){Ju[t]=function(e){e=ec(this.dom,e),this.trigger(t,e)}}));var th={pointermove:function(t){qu(t)||th.mousemove.call(this,t)},pointerup:function(t){th.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function eh(t,e){var n=e.domHandlers;fl.a.pointerEventsSupported?gl.k(Wu.pointer,(function(i){ih(e,i,(function(e){n[i].call(t,e)}))})):(fl.a.touchEventsSupported&&gl.k(Wu.touch,(function(i){ih(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),gl.k(Wu.mouse,(function(i){ih(e,i,(function(r){r=tc(r),e.touching||n[i].call(t,r)}))})))}function nh(t,e){function n(n){ih(e,n,(function(i){i=tc(i),Ku(t,i.target)||(i=function(t,e){return ec(t.dom,new Qu(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}fl.a.pointerEventsSupported?gl.k(Xu,n):fl.a.touchEventsSupported||gl.k(Yu,n)}function ih(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,nc(t.domTarget,e,n,i)}function rh(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var oh=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ah=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new oh(e,Ju),Gu&&(i._globalHandlerScope=new oh(document,th)),eh(i,i._localHandlerScope),i}return ml(e,t),e.prototype.dispose=function(){rh(this._localHandlerScope),Gu&&rh(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Gu&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?nh(this,e):rh(e)}},e}(Bl),sh=1;fl.a.hasGlobalWindow&&(sh=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var lh=sh,ch="#333",uh="#ccc",hh=lc,ph=5e-5;function dh(t){return t>ph||t<-5e-5}var fh=[],gh=[],vh=[1,0,0,1,0,0],mh=Math.abs,yh=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return dh(this.rotation)||dh(this.x)||dh(this.y)||dh(this.scaleX-1)||dh(this.scaleY-1)||dh(this.skewX)||dh(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):hh(n),t&&(e?uc(n,t,n):cc(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&hh(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(fh);var n=fh[0]<0?-1:1,i=fh[1]<0?-1:1,r=((fh[0]-n)*e+n)/fh[0]||0,o=((fh[1]-i)*e+i)/fh[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],fc(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(uc(gh,t.invTransform,e),e=gh);var n=this.originX,i=this.originY;(n||i)&&(vh[4]=n,vh[5]=i,uc(gh,e,vh),gh[4]-=n,gh[5]-=i,e=gh),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Pl(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Pl(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&mh(t[0]-1)>1e-10&&mh(t[3]-1)>1e-10?Math.sqrt(mh(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){bh(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,c=t.x,u=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-h*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&pc(e,e,l),e[4]+=n+c,e[5]+=i+u,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),_h=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bh(t,e){for(var n=0;n<_h.length;n++){var i=_h[n];t[i]=e[i]}}var wh=yh,xh=n(30),Sh=n(10),kh={};function Th(t,e){e=e||Sh.a;var n=kh[e];n||(n=kh[e]=new xh.a(500));var i=n.get(t);return null==i&&(i=Sh.d.measureText(t,e).width,n.put(t,i)),i}function Ch(t,e,n,i){var r=Th(t,e),o=Ah(e),a=Ih(0,r,n),s=Mh(0,o,i);return new kc(a,s,r,o)}function Oh(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Ch(r[0],e,n,i);for(var o=new kc(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function Ph(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",h="top";if(i instanceof Array)l+=Dh(i[0],n.width),c+=Dh(i[1],n.height),u=null,h=null;else switch(i){case"left":l-=r,c+=s,u="right",h="middle";break;case"right":l+=r+a,c+=s,h="middle";break;case"top":l+=a/2,c-=r,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+r,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=r,c+=s,h="middle";break;case"insideRight":l+=a-r,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=r,u="center";break;case"insideBottom":l+=a/2,c+=o-r,u="center",h="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,u="right",h="bottom"}return(t=t||{}).x=l,t.y=c,t.align=u,t.verticalAlign=h,t}var Eh="__zr_normal__",Lh=_h.concat(["ignore"]),jh=Object(gl.N)(_h,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Rh={},Nh=new kc(0,0,0,0),Bh=function(){function t(t){this.id=Object(gl.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var c=Nh;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Rh,n,c):Ph(Rh,n,c),r.x=Rh.x,r.y=Rh.y,o=Rh.align,a=Rh.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var h=void 0,p=void 0;"center"===u?(h=.5*c.width,p=.5*c.height):(h=Dh(u[0],c.width),p=Dh(u[1],c.height)),l=!0,r.originX=-r.x+h+(i?0:c.x),r.originY=-r.y+p+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Gc,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?uh:ch},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Cu.g)(e);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,Object(Cu.h)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(gl.m)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(gl.A)(t))for(var n=t,i=Object(gl.F)(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Eh,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Eh;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(Object(gl.r)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,u=this._textGuide;return c&&c.useState(t,e,n,l),u&&u.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gc),s}Object(gl.G)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gc)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(gl.r)(i,t),o=Object(gl.r)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p0||r.force&&!a.length){var x,S=void 0,k=void 0,T=void 0;if(s){k={},p&&(S={});for(b=0;b<_;b++){k[m=g[b]]=n[m],p?S[m]=i[m]:n[m]=i[m]}}else if(p){T={};for(b=0;b<_;b++){T[m=g[b]]=ju(n[m]),Hh(n,i,m)}}(x=new Hu(n,!1,!1,h?Object(gl.n)(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(x.scope=r.scope),p&&S&&x.whenWithKeys(0,S,g),T&&x.whenWithKeys(0,T,g),x.whenWithKeys(null==c?500:c,s?k:i,g).delay(u||0),t.addAnimator(x,e),a.push(x)}}Object(gl.K)(Bh,Bl),Object(gl.K)(Bh,wh);var Uh=Bh,Gh=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return ml(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=gl.r(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=gl.r(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*c+a}function Jh(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return gl.C(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function tp(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Kh),t=(+t).toFixed(e),n?t:+t}function ep(t){return t.sort((function(t,e){return t-e})),t}function np(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function ip(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function rp(t,e){var n=gl.N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=gl.H(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=gl.H(r,(function(t){return Math.floor(t)})),s=gl.N(a,(function(t,e){return t+e}),0),l=gl.H(r,(function(t,e){return t-a[e]}));sc&&(c=l[h],u=h);++a[u],l[u]=0,++s}return gl.H(a,(function(t){return t/i}))}function op(t,e){var n=Math.max(np(t),np(e)),i=t+e;return n>Kh?i:tp(i,n)}var ap=9007199254740991;function sp(t){var e=2*Math.PI;return(t%e+e)%e}function lp(t){return t>-Zh&&t=10&&e++,e}function pp(t,e){var n=hp(t),i=Math.pow(10,n),r=t/i;return t=(e?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?+t.toFixed(n<0?-n:0):t}function dp(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function fp(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0||r&&gl.r(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var nd=ed([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),id=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return nd(this,t,e)},t}(),rd=new xh.a(50);function od(t){if("string"===typeof t){var e=rd.get(t);return e&&e.image}return t}function ad(t,e,n,i,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=rd.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!ld(e=o.image)&&o.pending.push(a):((e=Sh.d.loadImage(t,sd,sd)).__zrImageSrc=t,rd.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function sd(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var c=Th(n,e);return c>s&&(n="",c=0),s=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=t,r}function pd(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Th(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?dd(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Th(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function dd(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=bd(e,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!yd[t]}function bd(t,e,n,i,r){for(var o=[],a=[],s="",l="",c=0,u=0,h=0;hn:r+u+d>n)?u?(s||l)&&(f?(s||(s=l,l="",u=c=0),o.push(s),a.push(u-c),l+=p,s="",u=c+=d):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=p,u=d)):f?(o.push(l),a.push(c),l=p,c=d):(o.push(p),a.push(d)):(u+=d,f?(l+=p,c+=d):(l&&(s+=l,l="",c=0),s+=p))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=t,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}var wd="__zr_style_"+Math.round(10*Math.random()),xd={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Sd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xd[wd]=!0;var kd=["z","z2","invisible"],Td=["invisible"],Cd=function(t){function e(e){return t.call(this,e)||this}return ml(e,t),e.prototype._init=function(e){for(var n=Object(gl.F)(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(jd[0]=Ed(r)*n+t,jd[1]=Pd(r)*i+e,Rd[0]=Ed(o)*n+t,Rd[1]=Pd(o)*i+e,c(s,jd,Rd),u(l,jd,Rd),(r%=Ld)<0&&(r+=Ld),(o%=Ld)<0&&(o+=Ld),r>o&&!a?o+=Ld:rr&&(Nd[0]=Ed(d)*n+t,Nd[1]=Pd(d)*i+e,c(s,Nd,s),u(l,Nd,l))}var Wd={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Yd=[],Xd=[],$d=[],qd=[],Zd=[],Kd=[],Qd=Math.min,Jd=Math.max,tf=Math.cos,ef=Math.sin,nf=Math.abs,rf=Math.PI,of=2*rf,af="undefined"!==typeof Float32Array,sf=[];function lf(t){return Math.round(t/rf*1e8)/1e8%2*rf}function cf(t,e){var n=lf(t[0]);n<0&&(n+=of);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=of?r=n+of:e&&n-r>=of?r=n-of:!e&&n>r?r=n+(of-lf(n-r)):e&&n0&&(this._ux=nf(n/lh/t)||0,this._uy=nf(n/lh/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Wd.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=nf(t-this._xi),i=nf(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Wd.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Wd.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Wd.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),sf[0]=i,sf[1]=r,cf(sf,o),i=sf[0];var a=(r=sf[1])-i;return this.addData(Wd.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=tf(r)*n+t,this._yi=ef(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Wd.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Wd.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!af||(this.data=new Float32Array(e));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){$d[0]=$d[1]=Zd[0]=Zd[1]=Number.MAX_VALUE,qd[0]=qd[1]=Kd[0]=Kd[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||nf(v)>i||h===e-1)&&(f=Math.sqrt(M*M+v*v),r=g,o=_);break;case Wd.C:var m=t[h++],y=t[h++],_=(g=t[h++],t[h++]),b=t[h++],w=t[h++];f=vu(r,o,m,y,g,_,b,w,10),r=b,o=w;break;case Wd.Q:f=xu(r,o,m=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Wd.A:var x=t[h++],S=t[h++],k=t[h++],T=t[h++],C=t[h++],O=t[h++],I=O+C;h+=1;t[h++];d&&(a=tf(C)*k+x,s=ef(C)*T+S),f=Jd(k,T)*Qd(of,Math.abs(O)),r=tf(I)*k+x,o=ef(I)*T+S;break;case Wd.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case Wd.Z:var M=a-r;v=s-o;f=Math.sqrt(M*M+v*v),r=a,o=s}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,c,u,h,p=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=e*this._pathLen))t:for(var b=0;b0&&(t.lineTo(u,h),_=0),w){case Wd.M:n=r=p[b++],i=o=p[b++],t.moveTo(r,o);break;case Wd.L:a=p[b++],s=p[b++];var S=nf(a-r),k=nf(s-o);if(S>d||k>f){if(v){if(m+($=l[y++])>c){var T=(c-m)/$;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}m+=$}t.lineTo(a,s),r=a,o=s,_=0}else{var C=S*S+k*k;C>_&&(u=a,h=s,_=C)}break;case Wd.C:var O=p[b++],I=p[b++],M=p[b++],A=p[b++],D=p[b++],P=p[b++];if(v){if(m+($=l[y++])>c){fu(r,O,M,D,T=(c-m)/$,Yd),fu(o,I,A,P,T,Xd),t.bezierCurveTo(Yd[1],Xd[1],Yd[2],Xd[2],Yd[3],Xd[3]);break t}m+=$}t.bezierCurveTo(O,I,M,A,D,P),r=D,o=P;break;case Wd.Q:O=p[b++],I=p[b++],M=p[b++],A=p[b++];if(v){if(m+($=l[y++])>c){bu(r,O,M,T=(c-m)/$,Yd),bu(o,I,A,T,Xd),t.quadraticCurveTo(Yd[1],Xd[1],Yd[2],Xd[2]);break t}m+=$}t.quadraticCurveTo(O,I,M,A),r=M,o=A;break;case Wd.A:var E=p[b++],L=p[b++],j=p[b++],R=p[b++],N=p[b++],B=p[b++],z=p[b++],F=!p[b++],H=j>R?j:R,V=nf(j-R)>.001,U=N+B,G=!1;if(v)m+($=l[y++])>c&&(U=N+B*(c-m)/$,G=!0),m+=$;if(V&&t.ellipse?t.ellipse(E,L,j,R,z,N,U,F):t.arc(E,L,H,N,U,F),G)break t;x&&(n=tf(N)*j+E,i=ef(N)*R+L),r=tf(U)*j+E,o=ef(U)*R+L;break;case Wd.R:n=r=p[b],i=o=p[b+1],a=p[b++],s=p[b++];var W=p[b++],Y=p[b++];if(v){if(m+($=l[y++])>c){var X=c-m;t.moveTo(a,s),t.lineTo(a+Qd(X,W),s),(X-=W)>0&&t.lineTo(a+W,s+Qd(X,Y)),(X-=Y)>0&&t.lineTo(a+Jd(W-X,0),s+Y),(X-=W)>0&&t.lineTo(a,s+Jd(Y-X,0));break t}m+=$}t.rect(a,s,W,Y);break;case Wd.Z:if(v){var $;if(m+($=l[y++])>c){T=(c-m)/$;t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}m+=$}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Wd,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),hf=uf;function pf(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+h&&u>i+h&&u>o+h&&u>s+h||ut+h&&c>n+h&&c>r+h&&c>a+h||ce+c&&l>i+c&&l>o+c||lt+c&&s>n+c&&s>r+c||sn||u+cr&&(r+=mf);var p=Math.atan2(l,s);return p<0&&(p+=mf),p>=i&&p<=r||p+mf>=i&&p+mf<=r}function _f(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var bf=hf.CMD,wf=2*Math.PI,xf=1e-4;var Sf=[-1,-1,-1],kf=[-1,-1];function Tf(){var t=kf[0];kf[0]=kf[1],kf[1]=t}function Cf(t,e,n,i,r,o,a,s,l,c){if(c>e&&c>i&&c>o&&c>s||c1&&Tf(),d=uu(e,i,o,s,kf[0]),p>1&&(f=uu(e,i,o,s,kf[1]))),2===p?ve&&s>i&&s>o||s=0&&u<=1&&(r[l++]=u);else{var c=a*a-4*o*s;if(lu(c))(u=-a/(2*o))>=0&&u<=1&&(r[l++]=u);else if(c>0){var u,h=tu(c),p=(-a-h)/(2*o);(u=(-a+h)/(2*o))>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Sf);if(0===l)return 0;var c=_u(e,i,o);if(c>=0&&c<=1){for(var u=0,h=mu(e,i,o,c),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Sf[0]=-l,Sf[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=wf-1e-4){i=0,r=wf;var u=o?1:-1;return a>=Sf[0]+t&&a<=Sf[1]+t?u:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=wf,r+=wf);for(var p=0,d=0;d<2;d++){var f=Sf[d];if(f+t>a){var g=Math.atan2(s,f);u=o?1:-1;g<0&&(g=wf+g),(g>=i&&g<=r||g+wf>=i&&g+wf<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),p+=u)}}return p}function Mf(t,e,n,i,r){for(var o,a,s,l,c=t.data,u=t.len(),h=0,p=0,d=0,f=0,g=0,v=0;v1&&(n||(h+=_f(p,d,f,g,i,r))),y&&(f=p=c[v],g=d=c[v+1]),m){case bf.M:p=f=c[v++],d=g=c[v++];break;case bf.L:if(n){if(pf(p,d,c[v],c[v+1],e,i,r))return!0}else h+=_f(p,d,c[v],c[v+1],i,r)||0;p=c[v++],d=c[v++];break;case bf.C:if(n){if(df(p,d,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],e,i,r))return!0}else h+=Cf(p,d,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],i,r)||0;p=c[v++],d=c[v++];break;case bf.Q:if(n){if(ff(p,d,c[v++],c[v++],c[v],c[v+1],e,i,r))return!0}else h+=Of(p,d,c[v++],c[v++],c[v],c[v+1],i,r)||0;p=c[v++],d=c[v++];break;case bf.A:var _=c[v++],b=c[v++],w=c[v++],x=c[v++],S=c[v++],k=c[v++];v+=1;var T=!!(1-c[v++]);o=Math.cos(S)*w+_,a=Math.sin(S)*x+b,y?(f=o,g=a):h+=_f(p,d,o,a,i,r);var C=(i-_)*x/w+_;if(n){if(yf(_,b,x,S,S+k,T,e,C,r))return!0}else h+=If(_,b,x,S,S+k,T,C,r);p=Math.cos(S+k)*w+_,d=Math.sin(S+k)*x+b;break;case bf.R:if(f=p=c[v++],g=d=c[v++],o=f+c[v++],a=g+c[v++],n){if(pf(f,g,o,g,e,i,r)||pf(o,g,o,a,e,i,r)||pf(o,a,f,a,e,i,r)||pf(f,a,f,g,e,i,r))return!0}else h+=_f(o,g,o,a,i,r),h+=_f(f,a,f,g,i,r);break;case bf.Z:if(n){if(pf(p,d,f,g,e,i,r))return!0}else h+=_f(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l).5?ch:e>.2?"#eee":uh}if(t)return uh}return ch},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(gl.C)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(Cu.d)(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Wc},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new hf(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Wc)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.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 t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){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(t,e,n,i){return Mf(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Mf(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Wc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(gl.m)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Wc)},e.prototype.createStyle=function(t){return Object(gl.g)(Af,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(gl.m)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Object(gl.m)({},i.shape),Object(gl.m)(s,n.shape)):(s=Object(gl.m)({},r?this.shape:i.shape),Object(gl.m)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Object(gl.m)({},this.shape);for(var c={},u=Object(gl.F)(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(gl.g)(Lf,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Oh(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Md);jf.prototype.type="tspan";var Rf=jf,Nf=Object(gl.i)({x:0,y:0},xd),Bf={style:Object(gl.i)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Sd.style)};var zf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ml(e,t),e.prototype.createStyle=function(t){return Object(gl.g)(Nf,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!==typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Bf},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new kc(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Md);zf.prototype.type="image";var Ff=zf;var Hf=Math.round;function Vf(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Hf(2*i)===Hf(2*r)&&(t.x1=t.x2=Gf(i,s,!0)),Hf(2*o)===Hf(2*a)&&(t.y1=t.y2=Gf(o,s,!0)),t):t}}function Uf(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Gf(i,s,!0),t.y=Gf(r,s,!0),t.width=Math.max(Gf(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Gf(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Gf(t,e,n){if(!e)return t;var i=Hf(2*t);return(i+Hf(e))%2===0?i/2:(i+(n?1:-1))/2}var Wf=function(){this.x=0,this.y=0,this.width=0,this.height=0},Yf={},Xf=function(t){function e(e){return t.call(this,e)||this}return ml(e,t),e.prototype.getDefaultShape=function(){return new Wf},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Uf(Yf,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,c=e.width,u=e.height,h=e.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"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>c&&(n*=c/(a=n+i),i*=c/a),r+o>c&&(r*=c/(a=r+o),o*=c/a),i+r>u&&(i*=u/(a=i+r),r*=u/a),n+o>u&&(n*=u/(a=n+o),o*=u/a),t.moveTo(s+n,l),t.lineTo(s+c-i,l),0!==i&&t.arc(s+c-i,l+i,i,-Math.PI/2,0),t.lineTo(s+c,l+u-r),0!==r&&t.arc(s+c-r,l+u-r,r,0,Math.PI/2),t.lineTo(s+o,l+u),0!==o&&t.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ef);Xf.prototype.type="rect";var $f=Xf,qf={fill:"#000"},Zf={style:Object(gl.i)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Sd.style)},Kf=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=qf,n.attr(e),n}return ml(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&u){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=hd(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,O=0;Ol&&md(n,t.substring(l,c),e,s),md(n,i[2],e,s,i[1]),l=cd.lastIndex}lo){w>0?(y.tokens=y.tokens.slice(0,w),v(y,b,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var O=x.width,I=null==O||"auto"===O;if("string"===typeof O&&"%"===O.charAt(O.length-1))P.percentWidth=O,u.push(P),P.contentWidth=Th(P.text,T);else{if(I){var M=x.backgroundColor,A=M&&M.image;A&&ld(A=od(A))&&(P.width=Math.max(P.width,A.width*C/A.height))}var D=f&&null!=r?r-b:null;null!=D&&D=0&&"right"===(O=_[C]).align;)this._placeToken(O,t,w,f,T,"right",v),x-=O.width,T-=O.width,C--;for(k+=(n-(k-d)-(g-T)-x)/2;S<=C;)O=_[S],this._placeToken(O,t,w,f,k+O.width/2,"center",v),k+=O.width,S++;f+=w}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,c=i+n/2;"top"===l?c=i+t.height/2:"bottom"===l&&(c=i+n-t.height/2),!t.isLineHolder&&cg(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,c-t.height/2,t.width,t.height);var u=!!s.backgroundColor,h=t.textPadding;h&&(r=sg(r,o,h),c-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(Rf),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,v=0,m=ag("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),y=og("stroke"in s?s.stroke:"stroke"in e?e.stroke:u||a||f.autoStroke&&!g?null:(v=2,f.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=c,_&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||Sh.a,d.opacity=Object(gl.Q)(s.opacity,e.opacity,1),ng(d,s),y&&(d.lineWidth=Object(gl.Q)(s.lineWidth,e.lineWidth,v),d.lineDash=Object(gl.P)(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=y),m&&(d.fill=m);var b=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new kc(Ih(d.x,b,d.textAlign),Mh(d.y,w,d.textBaseline),b,w))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,c=t.backgroundColor,u=t.borderWidth,h=t.borderColor,p=c&&c.image,d=c&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||u&&h){(a=this._getOrCreateChild($f)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=c||null,l.fillOpacity=Object(gl.P)(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(Ff)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=c.image,m.x=n,m.y=i,m.width=r,m.height=o}u&&h&&((l=a.style).lineWidth=u,l.stroke=h,l.strokeOpacity=Object(gl.P)(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=Object(gl.Q)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return ig(t)&&(e=[t.fontStyle,t.fontWeight,eg(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(gl.T)(e)||t.textFont||t.font},e}(Md),Qf={left:!0,right:1,center:1},Jf={top:1,bottom:1,middle:1},tg=["fontStyle","fontWeight","fontSize","fontFamily"];function eg(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Sh.c+"px":t+"px":t}function ng(t,e){for(var n=0;n=0,o=!1;if(t instanceof Ef){var a=gg(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Mg(s)||Mg(l)){var c=(i=i||{}).style||{};"inherit"===c.fill?(o=!0,i=Object(gl.m)({},i),(c=Object(gl.m)({},c)).fill=s):!Mg(c.fill)&&Mg(s)?(o=!0,i=Object(gl.m)({},i),(c=Object(gl.m)({},c)).fill=Dg(s)):!Mg(c.stroke)&&Mg(l)&&(o||(i=Object(gl.m)({},i),c=Object(gl.m)({},c)),c.stroke=Dg(l)),i.style=c}}if(i&&null==i.z2){o||(i=Object(gl.m)({},i));var u=t.z2EmphasisLift;i.z2=t.z2+(null!=u?u:xg)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=Object(gl.r)(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function ov(t,e,n){hv(t,!0),Fg(t,Ug),sv(t,e,n)}function av(t,e,n,i){i?function(t){hv(t,!1)}(t):ov(t,e,n)}function sv(t,e,n){var i=hg(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var lv=["emphasis","blur","select"],cv={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function uv(t,e,n,i){n=n||"itemStyle";for(var r=0;r0){var h={duration:u.duration,delay:u.delay||0,easing:u.easing,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function yv(t,e,n,i,r,o){mv("update",t,e,n,i,r,o)}function _v(t,e,n,i,r,o){mv("enter",t,e,n,i,r,o)}function bv(t){if(!t.__zr)return!0;for(var e=0;e-1?em:im;function sm(t,e){t=t.toUpperCase(),om[t]=new Kv(e),rm[t]=e}function lm(t){return om[t]}sm(nm,{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:". "}}}}),sm(em,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var cm=1e3,um=60*cm,hm=60*um,pm=24*hm,dm=365*pm,fm={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}"},gm="{yyyy}-{MM}-{dd}",vm={year:"{yyyy}",month:"{yyyy}-{MM}",day:gm,hour:gm+" "+fm.hour,minute:gm+" "+fm.minute,second:gm+" "+fm.second,millisecond:fm.none},mm=["year","month","day","hour","minute","second","millisecond"],ym=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _m(t,e){return"0000".substr(0,e-(t+="").length)+t}function bm(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function wm(t){return t===bm(t)}function xm(t,e,n,i){var r=up(t),o=r[Tm(n)](),a=r[Cm(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Om(n)](),c=r["get"+(n?"UTC":"")+"Day"](),u=r[Im(n)](),h=(u-1)%12+1,p=r[Mm(n)](),d=r[Am(n)](),f=r[Dm(n)](),g=(i instanceof Kv?i:lm(i||am)||om[im]).getModel("time"),v=g.get("month"),m=g.get("monthAbbr"),y=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,_m(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,_m(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[c]).replace(/{ee}/g,_[c]).replace(/{e}/g,c+"").replace(/{HH}/g,_m(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,_m(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,_m(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,_m(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,_m(f,3)).replace(/{S}/g,f+"")}function Sm(t,e){var n=up(t),i=n[Cm(e)]()+1,r=n[Om(e)](),o=n[Im(e)](),a=n[Mm(e)](),s=n[Am(e)](),l=0===n[Dm(e)](),c=l&&0===s,u=c&&0===a,h=u&&0===o,p=h&&1===r;return p&&1===i?"year":p?"month":h?"day":u?"hour":c?"minute":l?"second":"millisecond"}function km(t,e,n){var i=gl.z(t)?up(t):t;switch(e=e||Sm(t,n)){case"year":return i[Tm(n)]();case"half-year":return i[Cm(n)]()>=6?1:0;case"quarter":return Math.floor((i[Cm(n)]()+1)/4);case"month":return i[Cm(n)]();case"day":return i[Om(n)]();case"half-day":return i[Im(n)]()/24;case"hour":return i[Im(n)]();case"minute":return i[Mm(n)]();case"second":return i[Am(n)]();case"millisecond":return i[Dm(n)]()}}function Tm(t){return t?"getUTCFullYear":"getFullYear"}function Cm(t){return t?"getUTCMonth":"getMonth"}function Om(t){return t?"getUTCDate":"getDate"}function Im(t){return t?"getUTCHours":"getHours"}function Mm(t){return t?"getUTCMinutes":"getMinutes"}function Am(t){return t?"getUTCSeconds":"getSeconds"}function Dm(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Pm(t){return t?"setUTCFullYear":"setFullYear"}function Em(t){return t?"setUTCMonth":"setMonth"}function Lm(t){return t?"setUTCDate":"setDate"}function jm(t){return t?"setUTCHours":"setHours"}function Rm(t){return t?"setUTCMinutes":"setMinutes"}function Nm(t){return t?"setUTCSeconds":"setSeconds"}function Bm(t){return t?"setUTCMilliseconds":"setMilliseconds"}function zm(t){if(!vp(t))return gl.C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Fm(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Hm=gl.M;function Vm(t,e,n){function i(t){return t&&gl.T(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?up(t):t;if(!isNaN(+s))return xm(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return gl.D(t)?i(t):gl.z(t)&&r(t)?t+"":"-";var l=gp(t);return r(l)?zm(l):gl.D(t)?i(t):"boolean"===typeof t?t+"":"-"}var Um=["a","b","c","d","e","f","g"],Gm=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Wm(t,e,n){gl.t(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;oi||l.newline?(o=0,u=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+n:a=h+n)}))}var Qm=Km;gl.h(Km,"vertical"),gl.h(Km,"horizontal");function Jm(t,e,n){n=Hm(n||0);var i=e.width,r=e.height,o=Jh(t.left,i),a=Jh(t.top,r),s=Jh(t.right,i),l=Jh(t.bottom,r),c=Jh(t.width,i),u=Jh(t.height,r),h=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(c)&&(c=i-s-p-o),isNaN(u)&&(u=r-l-h-a),null!=d&&(isNaN(c)&&isNaN(u)&&(d>i/r?c=.8*i:u=.8*r),isNaN(c)&&(c=d*u),isNaN(u)&&(u=c/d)),isNaN(o)&&(o=i-s-c-p),isNaN(a)&&(a=r-l-u-h),t.left||t.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h}o=o||0,a=a||0,isNaN(c)&&(c=i-p-o-(s||0)),isNaN(u)&&(u=r-h-a-(l||0));var f=new kc(o+n[3],a+n[0],c,u);return f.margin=n,f}function ty(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],c=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===c)a="group"===t.type?new kc(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(a=a.clone()).applyTransform(u)}var h=Jm(gl.i({width:a.width,height:a.height},e),n,i),p=s?h.x-a.x:0,d=l?h.y-a.y:0;return"raw"===c?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function ey(t){var e=t.layoutMode||t.constructor.layoutMode;return gl.A(e)?e:e?{type:e}:null}function ny(t,e,n){var i=n&&n.ignoreSize;!gl.t(i)&&(i=[i,i]);var r=a(Zm[0],0),o=a(Zm[1],1);function a(n,r){var o={},a=0,c={},u=0;if($m(n,(function(e){c[e]=t[e]})),$m(n,(function(t){s(e,t)&&(o[t]=c[t]=e[t]),l(o,t)&&a++,l(c,t)&&u++})),i[r])return l(e,n[1])?c[n[2]]=null:l(e,n[2])&&(c[n[1]]=null),c;if(2!==u&&a){if(a>=2)return o;for(var h=0;h=0;a--)o=gl.I(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Hp(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Kv);Zp(ay,Kv),td(ay),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=$p(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=$p(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(ay),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return gl.k(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return gl.k(t,(function(t){gl.r(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),gl.k(s,(function(t){gl.r(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);gl.r(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,c={};for(gl.k(t,(function(t){c[t]=!0}));l.length;){var u=l.pop(),h=s[u],p=!!c[u];p&&(r.call(o,u,h.originalDeps.slice()),delete c[u]),gl.k(h.successor,p?f:d)}gl.k(c,(function(){throw new Error("")}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){c[t]=!0,d(t)}}}(ay,(function(t){var e=[];gl.k(ay.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=gl.H(e,(function(t){return $p(t).main})),"dataset"!==t&&gl.r(e,"dataset")<=0&&e.unshift("dataset");return e}));var sy=ay,ly="";"undefined"!==typeof navigator&&(ly=navigator.platform||"");var cy="rgba(0, 0, 0, 0.2)",uy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cy,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cy,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cy,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cy,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cy,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cy,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ly.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},hy=Object(gl.f)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),py="original",dy="arrayRows",fy="objectRows",gy="keyedColumns",vy="typedArray",my="unknown",yy="column",_y="row",by={Must:1,Might:2,Not:3},wy=jp();function xy(t,e,n){var i={},r=ky(e);if(!r||!t)return i;var o,a,s=[],l=[],c=e.ecModel,u=wy(c).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(gl.k)(t,(function(e,n){var r=Object(gl.A)(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=u.get(h)||u.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((u=u||n)&&u.length){var h=u[l];return r&&(c[r]=h),s.paletteIdx=(l+1)%u.length,h}}var Ey,Ly,jy;"undefined"!==typeof console&&console.warn&&console.log;function Ry(t){0}function Ny(t){throw new Error(t)}var By="\0_ec_inner";var zy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Kv(i),this._locale=new Kv(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Vy(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Vy(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):jy(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Object(gl.k)(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(gl.f)(),s=e&&e.replaceMergeMainTypeMap;wy(this).datasetMap=Object(gl.f)(),Object(gl.k)(t,(function(t,e){null!=t&&(sy.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(gl.d)(t):Object(gl.I)(n[e],t,!0))})),s&&s.each((function(t,e){sy.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),sy.topologicalTravel(o,sy.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=Oy.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,Sp(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=Ip(a,o,l);(function(t,e,n){Object(gl.k)(t,(function(t){var i=t.newOption;Object(gl.A)(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(c,e,sy),n[e]=null,i.set(e,null),r.set(e,0);var u,h=[],p=[],d=0;Object(gl.k)(c,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=sy.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return void 0;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Object(gl.m)({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),Object(gl.m)(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),p.push(i),d++):(h.push(void 0),p.push(void 0))}),this),n[e]=h,i.set(e,p),r.set(e,d),"series"===e&&Ey(this)}),this),this._seriesIndices||Ey(this)},e.prototype.getOption=function(){var t=Object(gl.d)(this.option);return Object(gl.k)(t,(function(e,n){if(sy.hasClass(n)){for(var i=Sp(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Ep(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[By],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}var Ky=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(gl.k)(Sp(t.series),(function(t){t&&t.data&&Object(gl.E)(t.data)&&Object(gl.R)(t.data)})),Object(gl.k)(Sp(t.dataset),(function(t){t&&t.source&&Object(gl.E)(t.source)&&Object(gl.R)(t.source)}))),t=Object(gl.d)(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,c=t.media,u=!!t.media,h=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((h||u)&&(t.options=t.media=null),r=t);u&&Object(gl.t)(c)&&Object(gl.k)(c,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}));function p(t){Object(gl.k)(e,(function(e){e(t,n)}))}return p(r),Object(gl.k)(l,(function(t){return p(t)})),Object(gl.k)(o,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!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},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(gl.d)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Object(gl.d)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,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 c=0,u=o.length;c=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,h)),p>=0){var m=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&d>=0&&m>0||"samesign"===l&&d<=0&&m<0){d=op(d,m),f=m;break}}}return i[0]=d,i[1]=f,i}))}))}var __,b_,w_,x_,S_,k_=function(t){this.data=t.data||(t.sourceFormat===gy?{}:[]),this.sourceFormat=t.sourceFormat||my,this.seriesLayoutBy=t.seriesLayoutBy||yy,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nc&&(c=d)}s[0]=l,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return U_(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Y_(t){var e,n;return gl.A(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function X_(t){return new $_(t)}var $_=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.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&&(e=this._plan(this.context));var o,a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;function u(t){return!(t>=1)&&(t=1),t}a===l&&s===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=c;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||p1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},tb=function(){function t(t,e){if(!Object(gl.z)(e)){0,Ny("")}this._opFn=J_[t],this._rvalFloat=gp(e)}return t.prototype.evaluate=function(t){return Object(gl.z)(t)?this._opFn(t,this._rvalFloat):this._opFn(gp(t),this._rvalFloat)},t}(),eb=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(gl.z)(t)?t:gp(t),i=Object(gl.z)(e)?e:gp(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(gl.C)(t),s=Object(gl.C)(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),nb=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=gp(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=gp(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function ib(t,e){return"eq"===t||"ne"===t?new nb("eq"===t,e):Object(gl.q)(J_,t)?new tb(t,e):null}var rb=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Z_(t,e)},t}();function ob(t){if(!hb(t.sourceFormat)){0,Ny("")}return t.data}function ab(t){var e=t.sourceFormat,n=t.data;if(!hb(e)){0,Ny("")}if(e===dy){for(var i=[],r=0,o=n.length;r65535?fb:gb}function bb(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function wb(t,e,n,i,r){var o=yb[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),c=0;cg[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(gl.H)(o,(function(t){return t.property})),c=0;cv[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,c=this.count();l=0&&a<0)&&(o=h,a=u,s=0),u===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=c&&_<=u||isNaN(_))&&(a[s++]=d),d++}p=!0}else if(2===r){f=h[i[0]];var v=h[i[1]],m=t[i[1]][0],y=t[i[1]][1];for(g=0;g=c&&_<=u||isNaN(_))&&(b>=m&&b<=y||isNaN(b))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g=c&&_<=u||isNaN(_))&&(a[s++]=w)}else for(g=0;gt[k][1])&&(x=!1)}x&&(a[s++]=e.getRawIndex(g))}return sv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,c=Math.floor(1/e),u=this.getRawIndex(0),h=new(_b(this._rawCount))(Math.min(2*(Math.ceil(s/c)+2),s));h[l++]=u;for(var p=1;pn&&(n=i,r=T)}k>0&&kc-d&&(s=c-d,a.length=s);for(var f=0;fu[1]&&(u[1]=v),h[p++]=m}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Z_(t[i],this._dimensions[i])}pb={arrayRows:t,objectRows:function(t,e,n,i){return Z_(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Z_(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),Sb=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Tb(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var c=i[0];c.prepareSource(),a=(l=c.getSource()).data,s=l.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(gl.E)(a)?vy:py,e=[];var u=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=Object(gl.P)(u.seriesLayoutBy,h.seriesLayoutBy)||null,d=Object(gl.P)(u.sourceHeader,h.sourceHeader),f=Object(gl.P)(u.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!d!==!!h.sourceHeader||f?[C_(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{t=[C_(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){1!==t.length&&Cb("")}var o,a=[],s=[];return Object(gl.k)(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Cb(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e,n){var i=Sp(t),r=i.length;r||Ny("");for(var o=0,a=r;o1||n>0&&!t.noHeader;return Object(gl.k)(t.blocks,(function(t){var n=Lb(t);n>=e&&(e=n+ +(i&&(!n||Pb(t)&&!t.noHeader)))})),e}return 0}function jb(t,e,n,i){var r,o=e.noHeader,a=(r=Lb(e),{html:Mb[r],richText:Ab[r]}),s=[],l=e.blocks||[];Object(gl.b)(!l||Object(gl.t)(l)),l=l||[];var c=t.orderMode;if(e.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(gl.q)(u,c)){var h=new eb(u[c],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===c&&l.reverse()}Object(gl.k)(l,(function(n,r){var o=e.valueFormatter,l=Eb(n)(o?Object(gl.m)(Object(gl.m)({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):Bb(s.join(""),o?n:a.html);if(o)return p;var d=Vm(e.header,"ordinal",t.useUTC),f=Ib(i,t.renderMode).nameStyle;return"richText"===t.renderMode?zb(t,d,f)+a.richText+p:Bb('
'+$l(d)+"
"+p,n)}function Rb(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,u=e.valueFormatter||t.valueFormatter||function(t){return t=Object(gl.t)(t)?t:[t],Object(gl.H)(t,(function(t,e){return Vm(t,Object(gl.t)(d)?d[e]:d,c)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Vm(l,"ordinal",c),d=e.valueType,f=a?[]:u(e.value),g=!s||!o,v=!s&&o,m=Ib(i,r),y=m.nameStyle,_=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":zb(t,p,y))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(gl.t)(e)?e.join(" "):e,o)}(t,f,g,v,_)):Bb((s?"":h)+(o?"":function(t,e,n){return''+$l(t)+""}(p,!s,y))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(gl.t)(t)?t:[t],''+Object(gl.H)(t,(function(t){return $l(t)})).join("  ")+""}(f,g,v,_)),n)}}function Nb(t,e,n,i,r,o){if(t)return Eb(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Bb(t,e){return'
'+t+'
'}function zb(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Fb(t,e){return Ym(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Hb(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Vb=function(){function t(){this.richTextStyles={},this._nextStyleNameId=mp()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=gl.C(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'':'':{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}}:""}({color:e,type:t,renderMode:n,markerId:i});return Object(gl.C)(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(gl.t)(e)?Object(gl.k)(e,(function(t){return Object(gl.m)(n,t)})):Object(gl.m)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Ub(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,h=o.getRawValue(a),p=Object(gl.t)(h),d=Fb(o,a);if(u>1||p&&!u){var f=function(t,e,n,i,r){var o=e.getData(),a=Object(gl.N)(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],c=[];function u(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(Db("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Object(gl.k)(i,(function(t){u(U_(o,n,t),t)})):Object(gl.k)(t,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}(h,o,a,c,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(u){var g=l.getDimensionInfo(c[0]);r=e=U_(l,a,c[0]),n=g.type}else r=e=p?h[0]:h;var v=Pp(o),m=v&&o.name||"",y=l.getName(a),_=s?m:y;return Db("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[Db("nameValue",{markerType:"item",markerColor:d,name:_,noName:!Object(gl.T)(_),value:e,valueType:n})].concat(i||[])})}var Gb=jp();function Wb(t,e){return t.getName(e)||t.getId(e)}var Yb="__universalTransitionEnabled",Xb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return dl(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=X_({count:qb,reset:Zb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Gb(this).sourceManager=new Sb(this)).prepareSource();var i=this.getInitialData(t,n);Qb(i,this),this.dataTask.context.data=i,Gb(this).dataBeforeProcessed=i,$b(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ey(this),i=n?iy(t):{},r=this.subType;sy.hasClass(r)&&(r+="Series"),gl.I(t,e.getTheme().get(this.subType)),gl.I(t,this.getDefaultOption()),kp(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ny(t,i,n)},e.prototype.mergeOption=function(t,e){t=gl.I(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ey(this);n&&ny(this.option,t,n);var i=Gb(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Qb(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Gb(this).dataBeforeProcessed=r,$b(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!gl.E(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Ay.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Wb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Yb])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){gl.A(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return sy.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(sy);function $b(t){var e=t.name;Pp(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return gl.k(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function qb(t){return t.model.getRawData().count()}function Zb(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Kb}function Kb(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Qb(t,e){gl.k(gl.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,gl.h(Jb,e))}))}function Jb(t,e){var n=tw(t);return n&&n.setOutputEnd((e||this).count()),e}function tw(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}gl.K(Xb,W_),gl.K(Xb,Ay),Zp(Xb,sy);var ew=Xb,nw=function(){function t(){this.group=new Wh,this.uid=Jv("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();qp(nw),td(nw);var iw=nw;function rw(){var t=jp();return function(e){var n=t(e),i=e.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 ow=hf.CMD,aw=[[],[],[]],sw=Math.sqrt,lw=Math.atan2;function cw(t,e){if(e){var n,i,r,o,a,s,l=t.data,c=t.len(),u=ow.M,h=ow.C,p=ow.L,d=ow.R,f=ow.A,g=ow.Q;for(r=0,o=0;r1&&(a*=uw(f),s*=uw(f));var g=(r===o?-1:1)*uw((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,m=g*-s*p/a,y=(t+n)/2+pw(h)*v-hw(h)*m,_=(e+i)/2+hw(h)*v+pw(h)*m,b=vw([1,0],[(p-v)/a,(d-m)/s]),w=[(p-v)/a,(d-m)/s],x=[(-1*p-v)/a,(-1*d-m)/s],S=vw(w,x);if(gw(w,x)<=-1&&(S=dw),gw(w,x)>=1&&(S=0),S<0){var k=Math.round(S/dw*1e6)/1e6;S=2*dw+k%2*dw}u.addData(c,y,_,a,s,b,S,h,o)}var yw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,_w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var bw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ml(e,t),e.prototype.applyTransform=function(t){},e}(Ef);function ww(t){return null!=t.setData}function xw(t,e){var n=function(t){var e=new hf;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=hf.CMD,l=t.match(yw);if(!l)return e;for(var c=0;cA*A+D*D&&(k=C,T=O),{cx:k,cy:T,x0:-u,y0:-h,x1:k*(r/w-1),y1:T*(r/w-1)}}function Uw(t,e){var n,i=zw(e.r,0),r=zw(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var c=e.cx,u=e.cy,h=!!e.clockwise,p=Nw(l-s),d=p>Pw&&p%Pw;if(d>Hw&&(p=d),i>Hw)if(p>Pw-Hw)t.moveTo(c+i*Lw(s),u+i*Ew(s)),t.arc(c,u,i,s,l,!h),r>Hw&&(t.moveTo(c+r*Lw(l),u+r*Ew(l)),t.arc(c,u,r,l,s,h));else{var f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,_=void 0,b=void 0,w=void 0,x=void 0,S=void 0,k=void 0,T=void 0,C=void 0,O=void 0,I=void 0,M=void 0,A=i*Lw(s),D=i*Ew(s),P=r*Lw(l),E=r*Ew(l),L=p>Hw;if(L){var j=e.cornerRadius;j&&(f=(n=function(t){var e;if(Object(gl.t)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(j))[0],g=n[1],v=n[2],m=n[3]);var R=Nw(i-r)/2;if(y=Fw(R,v),_=Fw(R,m),b=Fw(R,f),w=Fw(R,g),k=x=zw(y,_),T=S=zw(b,w),(x>Hw||S>Hw)&&(C=i*Lw(l),O=i*Ew(l),I=r*Lw(s),M=r*Ew(s),pHw){var G=Fw(v,k),W=Fw(m,k),Y=Vw(I,M,A,D,i,G,h),X=Vw(C,O,P,E,i,W,h);t.moveTo(c+Y.cx+Y.x0,u+Y.cy+Y.y0),k0&&t.arc(c+Y.cx,u+Y.cy,G,Rw(Y.y0,Y.x0),Rw(Y.y1,Y.x1),!h),t.arc(c,u,i,Rw(Y.cy+Y.y1,Y.cx+Y.x1),Rw(X.cy+X.y1,X.cx+X.x1),!h),W>0&&t.arc(c+X.cx,u+X.cy,W,Rw(X.y1,X.x1),Rw(X.y0,X.x0),!h))}else t.moveTo(c+A,u+D),t.arc(c,u,i,s,l,!h);else t.moveTo(c+A,u+D);if(r>Hw&&L)if(T>Hw){G=Fw(f,T),Y=Vw(P,E,C,O,r,-(W=Fw(g,T)),h),X=Vw(A,D,I,M,r,-G,h);t.lineTo(c+Y.cx+Y.x0,u+Y.cy+Y.y0),T0&&t.arc(c+Y.cx,u+Y.cy,W,Rw(Y.y0,Y.x0),Rw(Y.y1,Y.x1),!h),t.arc(c,u,r,Rw(Y.cy+Y.y1,Y.cx+Y.x1),Rw(X.cy+X.y1,X.cx+X.x1),h),G>0&&t.arc(c+X.cx,u+X.cy,G,Rw(X.y1,X.x1),Rw(X.y0,X.x0),!h))}else t.lineTo(c+P,u+E),t.arc(c,u,r,l,s,h);else t.lineTo(c+P,u+E)}else t.moveTo(c,u);t.closePath()}}}var Gw=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},Ww=function(t){function e(e){return t.call(this,e)||this}return ml(e,t),e.prototype.getDefaultShape=function(){return new Gw},e.prototype.buildPath=function(t,e){Uw(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ef);Ww.prototype.type="sector";var Yw=Ww,Xw=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},$w=function(t){function e(e){return t.call(this,e)||this}return ml(e,t),e.prototype.getDefaultShape=function(){return new Xw},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Ef);$w.prototype.type="ring";var qw=$w;function Zw(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],c=[],u=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;pwx[1]){if(a=!1,r)return a;var c=Math.abs(wx[0]-bx[1]),u=Math.abs(bx[0]-wx[1]);Math.min(c,u)>i.len()&&(cMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Xx(t){return!t.isGroup}function $x(t,e,n){if(t&&e){var i=function(t){var e={};return t.traverse((function(t){Xx(t)&&t.anid&&(e[t.anid]=t)})),e}(t);e.traverse((function(t){if(Xx(t)&&t.anid){var e=i[t.anid];if(e){var o=r(t);t.attr(r(e)),yv(t,o,n,hg(t).dataIndex)}}}))}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(gl.m)({},t.shape)),e}}function qx(t,e){return Object(gl.H)(t,(function(t){var n=t[0];n=Ix(n,e.x),n=Mx(n,e.x+e.width);var i=t[1];return i=Ix(i,e.y),[n,i=Mx(i,e.y+e.height)]}))}function Zx(t,e){var n=Ix(t.x,e.x),i=Mx(t.x+t.width,e.x+e.width),r=Ix(t.y,e.y),o=Mx(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Kx(t,e,n){var i=Object(gl.m)({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(gl.i)(r,n),new Ff(i)):Rx(t.replace("path://",""),i,n,"center")}function Qx(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,v=tS(f,g,c,u)/d;if(v<0||v>1)return!1;var m=tS(f,g,h,p)/d;return!(m<0||m>1)}function tS(t,e,n,i){return t*i-n*e}function eS(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(gl.C)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(gl.k)(Object(gl.F)(l),(function(t){Object(gl.q)(s,t)||(s[t]=l[t],s.$vars.push(t))}));var c=hg(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Object(gl.i)({content:i,formatterParams:s},r)}}function nS(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function iS(t,e){if(t)if(Object(gl.t)(t))for(var n=0;n=0?h():u=setTimeout(h,-r),l=i};return p.clear=function(){u&&(clearTimeout(u),u=null)},p.debounceNextCall=function(t){s=t},p}function mS(t,e,n,i){var r=t[e];if(r){var o=r[dS]||r,a=r[gS];if(r[fS]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=vS(o,n,"debounce"===i))[dS]=o,r[gS]=i,r[fS]=n}return r}}function yS(t,e){var n=t[e];n&&n[dS]&&(n.clear&&n.clear(),t[e]=n[dS])}var _S=jp(),bS={itemStyle:ed(Xv,!0),lineStyle:ed(Gv,!0)},wS={lineStyle:"stroke",itemStyle:"fill"};function xS(t,e){var n=t.visualStyleMapper||bS[e];return n||(console.warn("Unknown style type '"+e+"'."),bS.itemStyle)}function SS(t,e){var n=t.visualDrawType||wS[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var kS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=xS(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=SS(t,i),l=o[s],c=Object(gl.w)(l)?l:null,u="auto"===o.fill||"auto"===o.stroke;if(!o[s]||c||u){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(gl.w)(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||Object(gl.w)(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(gl.m)({},o);r[s]=c(i),e.setItemVisual(n,"style",r)}}}},TS=new Kv,CS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=xS(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){TS.option=n[i];var a=r(TS),s=t.ensureUniqueItemVisual(e,"style");Object(gl.m)(s,a),TS.option.decal&&(t.setItemVisual(e,"decal",TS.option.decal),TS.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},OS={performRawSeries:!0,overallReset:function(t){var e=Object(gl.f)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),_S(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=_S(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=SS(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",u=n.count();l[s]=e.getColorFromPalette(c,o,u)}}))}}))}},IS=Math.PI;var MS=function(){function t(t,e,n,i){this._stageTaskMap=Object(gl.f)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(gl.f)();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(gl.k)(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});Object(gl.b)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(gl.k)(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,p=u.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&u.dirty(),o.updatePayload(u,n);var d=o.getPerformArgs(u,i.block);p.each((function(t){t.perform(d)})),u.perform(d)&&(r=!0)}else c&&c.each((function(s,l){a(i,s)&&s.dirty();var c=o.getPerformArgs(s,i.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(gl.f)(),s=t.seriesType,l=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||X_({plan:LS,reset:jS,count:BS}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||X_({reset:AS});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Object(gl.f)(),l=t.seriesType,c=t.getTargetSeries,u=!0,h=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,X_({reset:DS,onDirty:ES})));n.context={model:t,overallProgress:u},n.agent=o,n.__block=u,r._pipe(t,n)}Object(gl.b)(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):c?c(n,i).each(p):(u=!1,Object(gl.k)(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(gl.w)(t)&&(t={overallReset:t,seriesType:zS(t)}),t.uid=Jv("stageHandler"),e&&(t.visualType=e),t},t}();function AS(t){t.overallReset(t.ecModel,t.api,t.payload)}function DS(t){return t.overallProgress&&PS}function PS(){this.agent.dirty(),this.getDownstream().dirty()}function ES(){this.agent&&this.agent.dirty()}function LS(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function jS(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Sp(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(gl.H)(e,(function(t,e){return NS(e)})):RS}var RS=NS(0);function NS(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(e.mainType=h,e[c.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){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=e.cptQuery,l=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function c(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),tk=["symbol","symbolSize","symbolRotate","symbolOffset"],ek=tk.concat(["symbolKeepAspect"]),nk={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&Tk(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.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=Tk(i)?i:0,r=Tk(r)?r:1,o=Tk(o)?o:0,a=Tk(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Object(gl.z)(e)?[e]:Object(gl.t)(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Object(gl.H)(r,(function(t){return t/a})),o/=a)}return[r,o]}var Ak=new hf(!0);function Dk(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Pk(t){return"string"===typeof t&&"none"!==t}function Ek(t){var e=t.fill;return null!=e&&"none"!==e}function Lk(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function jk(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Rk(t,e,n){var i=ad(e.image,e.__image,n);if(ld(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*gl.a),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Nk=["shadowBlur","shadowOffsetX","shadowOffsetY"],Bk=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zk(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Yk(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?xd.opacity:a}(i||e.blend!==n.blend)&&(o||(Yk(t,r),o=!0),t.globalCompositeOperation=e.blend||xd.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[cT])if(this._disposed)FT(this.id);else{var i,r,o;if(Object(gl.A)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[cT]=!0,!this._model||e){var a=new Ky(this._api),s=this._theme,l=this._model=new Uy;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},GT);var c={seriesTransition:o,optionChanged:!0};if(n)this[uT]={silent:i,updateParams:c},this[cT]=!1,this.getZr().wakeUp();else{try{mT(this),bT.update.call(this,null,c)}catch(u){throw this[uT]=null,this[cT]=!1,u}this._ssr||this._zr.flush(),this[uT]=null,this[cT]=!1,kT.call(this,i),TT.call(this,i)}}},e.prototype.setTheme=function(){Ry()},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||fl.a.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(fl.a.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(gl.k)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Object(gl.k)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(gl.k)(i,(function(t){t.group.ignore=!1})),o}FT(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(qT[n]){var a=o,s=o,l=-1/0,c=-1/0,u=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(gl.k)($T,(function(o,h){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(gl.d)(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),c=r(d.bottom,c),u.push({dom:p,left:d.left,top:d.top})}}));var p=(l*=h)-(a*=h),d=(c*=h)-(s*=h),f=Sh.d.createCanvas(),g=qh(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),e){var v="";return Object(gl.k)(u,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new $f({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),Object(gl.k)(u,(function(t){var e=new Ff({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}FT(this.id)},e.prototype.convertToPixel=function(t,e){return wT(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return wT(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=Np(this._model,t);return Object(gl.k)(i,(function(t,i){i.indexOf("Models")>=0&&Object(gl.k)(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}FT(this.id)},e.prototype.getVisual=function(t,e){var n=Np(this._model,t,{defaultMainType:"series"});var i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?rk(i,r,e):ok(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;Object(gl.k)(zT,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&ck(o,(function(t){var e=hg(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=Object(gl.m)({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),c=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];0,n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:c},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),Object(gl.k)(VT,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),Object(gl.k)(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(lk("map","selectchanged",e,i,t),lk("pie","selectchanged",e,i,t)):"select"===t.fromAction?(lk("map","selected",e,i,t),lk("pie","selected",e,i,t)):"unselect"===t.fromAction&&(lk("map","unselected",e,i,t),lk("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?FT(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)FT(this.id);else{this._disposed=!0,this.getDom()&&Vp(this.getDom(),KT,"");var t=this,e=t._api,n=t._model;Object(gl.k)(t._componentsViews,(function(t){t.dispose(n,e)})),Object(gl.k)(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete $T[t.id]}},e.prototype.resize=function(t){if(!this[cT])if(this._disposed)FT(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[uT]&&(null==i&&(i=this[uT].silent),n=!0,this[uT]=null),this[cT]=!0;try{n&&mT(this),bT.update.call(this,{type:"resize",animation:Object(gl.m)({duration:0},t&&t.animation)})}catch(r){throw this[cT]=!1,r}this[cT]=!1,kT.call(this,i),TT.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)FT(this.id);else if(Object(gl.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),XT[t]){var n=XT[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?FT(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(gl.m)({},t);return e.type=VT[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)FT(this.id);else if(Object(gl.A)(e)||(e={silent:!!e}),HT[t.type]&&this._model)if(this[cT])this._pendingActions.push(t);else{var n=e.silent;ST.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&fl.a.browser.weChat&&this._throttledZrFlush(),kT.call(this,n),TT.call(this,n)}},e.prototype.updateLabelLayout=function(){iT.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)FT(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(bv(t))return;if(t instanceof Ef&&function(t){var e=gg(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.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)}}))}mT=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),yT(t,!0),yT(t,!1),e.plan()},yT=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!fl.a.node&&!fl.a.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),iT.trigger("series:afterupdate",e,i,s)},ET=function(t){t[hT]=!0,t.getZr().wakeUp()},LT=function(t){t[hT]&&(t.getZr().storage.traverse((function(t){bv(t)||e(t)})),t[hT]=!1)},DT=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return dl(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Yg(e,n),ET(t)},n.prototype.leaveEmphasis=function(e,n){Xg(e,n),ET(t)},n.prototype.enterBlur=function(e){$g(e),ET(t)},n.prototype.leaveBlur=function(e){qg(e),ET(t)},n.prototype.enterSelect=function(e){Zg(e),ET(t)},n.prototype.leaveSelect=function(e){Kg(e),ET(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Wy))(t)},PT=function(t){function e(t,e){for(var n=0;n=0)){aC.push(n);var o=GS.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function lC(t,e){XT[t]=e}var cC=function(t){var e=(t=Object(gl.d)(t)).type;e||Ny("");var n=e.split(":");2!==n.length&&Ny("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,cb.set(e,t)};oC(aT,kS),oC(sT,CS),oC(sT,OS),oC(aT,nk),oC(sT,ik),oC(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Jk(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=Jk(r,e)}}))})),eC(m_),nC(900,(function(t){var e=Object(gl.f)();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.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:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(y_)})),lC("default",(function(t,e){e=e||{},gl.i(e,{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 Wh,i=new $f({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new ug({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new $f({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new fx({shape:{startAngle:-IS/2,endAngle:-IS/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*IS/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*IS/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),c=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),rC({type:kg,event:kg,update:kg},gl.L),rC({type:Tg,event:Tg,update:Tg},gl.L),rC({type:Cg,event:Cg,update:Cg},gl.L),rC({type:Og,event:Og,update:Og},gl.L),rC({type:Ig,event:Ig,update:Ig},gl.L),tC("light",YS),tC("dark",QS);var uC=[],hC={registerPreprocessor:eC,registerProcessor:nC,registerPostInit:function(t){iC("afterinit",t)},registerPostUpdate:function(t){iC("afterupdate",t)},registerUpdateLifecycle:iC,registerAction:rC,registerCoordinateSystem:function(t,e){$y.register(t,e)},registerLayout:function(t,e){sC(WT,t,e,1e3,"layout")},registerVisual:oC,registerTransform:cC,registerLoading:lC,registerMap:function(t,e,n){var i=oT("registerMap");i&&i(t,e,n)},registerImpl:function(t,e){rT[t]=e},PRIORITY:lT,ComponentModel:sy,ComponentView:iw,SeriesModel:ew,ChartView:pS,registerComponentModel:function(t){sy.registerClass(t)},registerComponentView:function(t){iw.registerClass(t)},registerSeriesModel:function(t){ew.registerClass(t)},registerChartView:function(t){pS.registerClass(t)},registerSubTypeDefaulter:function(t,e){sy.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Yh[t]=n}};function pC(t){Object(gl.t)(t)?Object(gl.k)(t,(function(t){pC(t)})):Object(gl.r)(uC,t)>=0||(uC.push(t),Object(gl.w)(t)&&(t={install:t}),t.install(hC))}var dC=2*Math.PI,fC=Math.PI/180;function gC(t,e){return Jm(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function vC(t,e){var n=gC(t,e),i=t.get("center"),r=t.get("radius");gl.t(r)||(r=[0,r]);var o,a,s=Jh(n.width,e.getWidth()),l=Jh(n.height,e.getHeight()),c=Math.min(s,l),u=Jh(r[0],c/2),h=Jh(r[1],c/2),p=t.coordinateSystem;if(p){var d=p.dataToPoint(i);o=d[0]||0,a=d[1]||0}else gl.t(i)||(i=[i,i]),o=Jh(i[0],s)+n.x,a=Jh(i[1],l)+n.y;return{cx:o,cy:a,r0:u,r:h}}function mC(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=gC(t,n),o=vC(t,n),a=o.cx,s=o.cy,l=o.r,c=o.r0,u=-t.get("startAngle")*fC,h=t.get("minAngle")*fC,p=0;e.each(i,(function(t){!isNaN(t)&&p++}));var d=e.getSum(i),f=Math.PI/(d||p)*2,g=t.get("clockwise"),v=t.get("roseType"),m=t.get("stillShowZeroSum"),y=e.getDataExtent(i);y[0]=0;var _=dC,b=0,w=u,x=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:c,r:v?NaN:l});else{(i="area"!==v?0===d&&m?f:t*f:dC/p)r&&(r+=_C);var d=Math.atan2(s,a);if(d<0&&(d+=_C),d>=i&&d<=r||d+_C>=i&&d+_C<=r)return l[0]=u,l[1]=h,c-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,v=n*Math.cos(r)+t,m=n*Math.sin(r)+e,y=(f-a)*(f-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(m-s)*(m-s);return y<_?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(_))}function kC(t,e,n,i,r,o,a,s){var l=r-t,c=o-e,u=n-t,h=i-e,p=Math.sqrt(u*u+h*h),d=(l*(u/=p)+c*(h/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=t+d*u,g=a[1]=e+d*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function TC(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,c=a[0]=Math.min(Math.max(r,t),s),u=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((c-r)*(c-r)+(u-o)*(u-o))}var CC=[];function OC(t,e,n){var i=TC(e.x,e.y,e.width,e.height,t.x,t.y,CC);return n.set(CC[0],CC[1]),i}function IC(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,c=1/0,u=e.data,h=t.x,p=t.y,d=0;d0){e=e/180*Math.PI,MC.fromArray(t[0]),AC.fromArray(t[1]),DC.fromArray(t[2]),gc.sub(PC,MC,AC),gc.sub(EC,DC,AC);var n=PC.len(),i=EC.len();if(!(n<.001||i<.001)){PC.scale(1/n),EC.scale(1/i);var r=PC.dot(EC);if(Math.cos(e)1&&gc.copy(RC,DC),RC.toArray(t[1])}}}}function BC(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,MC.fromArray(t[0]),AC.fromArray(t[1]),DC.fromArray(t[2]),gc.sub(PC,AC,MC),gc.sub(EC,DC,AC);var i=PC.len(),r=EC.len();if(!(i<.001||r<.001))if(PC.scale(1/i),EC.scale(1/r),PC.dot(e)=a)gc.copy(RC,DC);else{RC.scaleAndAdd(EC,o/Math.tan(Math.PI/2-s));var l=DC.x!==AC.x?(RC.x-AC.x)/(DC.x-AC.x):(RC.y-AC.y)/(DC.y-AC.y);if(isNaN(l))return;l<0?gc.copy(RC,AC):l>1&&gc.copy(RC,DC)}RC.toArray(t[1])}}}function zC(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;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?t.useStyle(s):o.style=s}function FC(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Ml(i[0],i[1]),o=Ml(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Dl([],i[1],i[0],a/r),l=Dl([],i[1],i[2],a/o),c=Dl([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u0&&o&&x(-h/a,0,a);var v,m,y=t[0],_=t[a-1];return b(),v<0&&S(-v,.8),m<0&&S(m,.8),b(),w(v,m,1),w(m,v,-1),b(),v<0&&k(-v),m<0&&k(m),c}function b(){v=y.rect[e]-i,m=r-_.rect[e]-_.rect[n]}function w(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){x(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function x(n,i,r){0!==n&&(c=!0);for(var o=i;o0)for(l=0;l0;l--){x(-(o[l-1]*h),l,a)}}}function k(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?x(n,0,i+1):x(-n,a-i-1,a),(t-=n)<=0)return}}function WC(t,e,n,i){return GC(t,"y","height",e,n,i)}function YC(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new kc(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;rn?a:o,u=Math.abs(l.label.y-n);if(u>=c.maxY){var h=l.label.x-e-l.len2*r,p=i+l.len,f=Math.abs(h)t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function ZC(t){return"center"===t.position}function KC(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*XC,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,u=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),v=g.getModel("label"),m=v.get("position")||g.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),_=v.get("alignTo"),b=Jh(v.get("edgeDistance"),c),w=v.get("bleedMargin"),x=g.getModel("labelLine"),S=x.get("length");S=Jh(S,c);var k=x.get("length2");if(k=Jh(k,c),Math.abs(h.endAngle-h.startAngle)0?"right":"left":A>0?"left":"right"}var B=Math.PI,z=0,F=v.get("rotate");if(Object(gl.z)(F))z=F*(B/180);else if("center"===m)z=0;else if("radial"===F||!0===F){z=A<0?-M+B:-M}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var H=Math.atan2(A,D);H<0&&(H=2*B+H),D>0&&(H=B+H),z=H-B}if(o=!!z,p.x=T,p.y=C,p.rotation=z,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:I});var V=p.states.select;V&&(V.x+=p.x,V.y+=p.y)}else{var U=p.getBoundingRect().clone();U.applyTransform(p.getComputedTransform());var G=(p.style.margin||0)+2.1;U.y-=G/2,U.height+=G,r.push({label:p,labelLine:f,position:m,len:S,len2:k,minTurnAngle:x.get("minTurnAngle"),maxSurfaceAngle:x.get("maxSurfaceAngle"),surfaceNormal:new gc(A,D),linePoints:O,textAlign:I,labelDistance:y,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:U,unconstrainedWidth:U.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=n.r0}},e.type="pie",e}(pS),eO=tO,nO=function(t){this.otherDims={},null!=t&&gl.m(this,t)},iO=jp(),rO={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},oO=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=lO(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(gl.P)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=D_(this.source),n=!cO(t),i="",r=[],o=0,a=0;o30}function uO(t,e){T_(t)||(t=O_(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(gl.f)(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(gl.k)(e,(function(t){var e;Object(gl.A)(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&cO(a),l=i===t.dimensionsDefine,c=l?lO(t):sO(i),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(t,a));for(var h=Object(gl.f)(u),p=new vb(a),d=0;d0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new oO({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function hO(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function pO(t){return null==t?0:t.length||1}function dO(t){return t}var fO=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||dO,this._newKeyGetter=i||dO,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),i[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var p=0;p1)for(var a=0;a=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===py&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),gl.t(r)?r=r.slice():TO(r)&&(r=gl.m({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,TO(e)?gl.m(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){TO(t)?gl.m(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?gl.m(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;pg(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){gl.k(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:CO(this.dimensions,this._getDimInfo,this),this.hostModel)),xO(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];gl.w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(gl.S(arguments)))})},t.internalField=(yO=function(t){var e=t._invertedIndicesMap;gl.k(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new OO(o.categories.length);for(var s=0;s1&&(s+="__ec__"+c),i[e]=s}})),t}(),DO=AO;function PO(t,e,n){e=Object(gl.t)(e)&&{coordDimensions:e}||Object(gl.m)({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=uO(i,e).dimensions,o=new DO(r,t);return o.initData(i,n),o}var EO=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),LO=EO,jO=jp(),RO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LO(gl.c(this.getData,this),gl.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return PO(this,{coordDimensions:["value"],encodeDefaulter:gl.h(Sy,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=jO(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=rp(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){kp(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(ew),NO=RO;function BO(t){t.registerChartView(eO),t.registerSeriesModel(NO),sk("pie",t.registerAction),t.registerLayout(Object(gl.h)(mC,"pie")),t.registerProcessor(yC("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(gl.z)(i)&&!isNaN(i)&&i<0)}))}})}function zO(t){if(t){for(var e=[],n=0;n=0&&n.attr(d.oldLayoutSelect),Object(gl.r)(c,"emphasis")>=0&&n.attr(d.oldLayoutEmphasis)),yv(n,s,e,a)}else if(n.attr(s),!Nv(n).valueAnimation){var u=Object(gl.P)(n.style.opacity,1);n.style.opacity=0,_v(n,{style:{opacity:u}},e,a)}if(d.oldLayout=s,n.states.select){var h=d.oldLayoutSelect={};WO(h,s,YO),WO(h,n.states.select,YO)}if(n.states.emphasis){var p=d.oldLayoutEmphasis={};WO(p,s,YO),WO(p,n.states.emphasis,YO)}zv(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(d=GO(i)).oldLayout;var d,f={points:i.shape.points};r?(i.attr({shape:r}),yv(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,_v(i,{style:{strokePercent:1}},e)),d.oldLayout=f}},t}(),$O=jp();function qO(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=$O(e).labelManager;i||(i=$O(e).labelManager=new XO),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=$O(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function ZO(t,e,n){var i=Sh.d.createCanvas(),r=e.getWidth(),o=e.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",t)),i.width=r*n,i.height=o*n,i}var KO=function(t){function e(e,n,i){var r,o=t.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||lh,"string"===typeof e?r=ZO(e,n,i):gl.A(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(gl.j(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return ml(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=ZO("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new kc(0,0,0,0);function c(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new kc(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,c=0;c=a)}}for(var u=this.__startIndex;u15)break}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var b=p.dpr,w=0;w0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?tI:0),this._needsManuallyCompositing),c.__builtin__||gl.G("ZLevel "+l+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==r&&(c.__dirty=!0),c.__startIndex=r,c.incremental?c.__drawIndex=-1:c.__drawIndex=r,e(r),o=c),s.__dirty&Gc&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,gl.k(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?gl.I(n[t],e,!0):n[t]=e;for(var i=0;iNumber(t.value2)?"score-hl-left":Number(t.value1)===Number(t.value2)?"score-hl-left score-hl-right":"score-hl-right"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"recent-list-block"},[n("ul",t._l(t.data,(function(e,i){return n("li",{key:i,staticClass:"recent-list-item",on:{click:function(t){return e.handleClick(e)}}},[n("span",{staticClass:"item-icon",style:e.tip1Style},[t._v(t._s(e.tip1))]),n("div",[n("p",{staticClass:"item-main",class:t.heighLight(e)},[n("span",{staticClass:"value-left"},[t._v(t._s(e.value1))]),n("span",[t._v("-")]),n("span",{staticClass:"value-right"},[t._v(t._s(e.value2))])]),n("div",{staticClass:"item-sec"},[e&&e.tip2img&&"left"===e.tip2Position?n("img",{style:{"margin-right":".04rem"},attrs:{src:e.tip2img}}):t._e(),n("p",[t._v(t._s(e.center))]),e&&e.tip2img&&"left"!==e.tip2Position?n("img",{style:{"margin-left":".04rem"},attrs:{src:e.tip2img}}):t._e()])])])})),0)])}),[],!1,null,null,null),oI=rI.exports,aI=D({name:"list",props:{data:{type:Object,default:function(){return{}}}},components:{item:oI},data:function(){return{list1:this.data&&this.data.list1||[],list2:this.data&&this.data.list2||[]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"recent-list-wrap"},[n("item",{attrs:{data:t.data.list1||[]}}),n("item",{attrs:{data:t.data.list2||[]}})],1)}),[],!1,null,null,null),sI=D({name:"pre-recent",components:{InfoBlock:al,CircleChart:iI,List:aI.exports,Title:rl},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{teams:this.data&&this.data.teams||{},stats:this.data&&this.data.stats||{},lists:this.data&&this.data.lists||{}}},beforeMount:function(){}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"page-seperator"},[n("Title",{attrs:{title:"\u8fd1\u671f\u6218\u7ee9"}}),n("info-block",{attrs:{data:t.data.teams||{}}}),n("section",{staticClass:"recent-chart-wrap"},[t.data.stats?n("circle-chart",{attrs:{data:t.data.stats.stat1}}):t._e(),t.data.stats?n("circle-chart",{attrs:{data:t.data.stats.stat2}}):t._e()],1),n("list",{attrs:{data:t.data.lists||{}}})],1)}),[],!1,null,null,null),lI=sI.exports,cI=D({name:"pre-team",components:{InfoBlock:al,BarChart:cl,Title:rl},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{lists:this.data.lists||[],teams:this.data.teams||[]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("Title",{attrs:{title:"\u8d5b\u5b63\u6570\u636e"}}),n("info-block",{attrs:{data:t.data.teams||[]}}),n("section",{staticStyle:{padding:"0 0.32rem 0.2rem"}},[n("bar-chart",{attrs:{data:t.data.lists||[]}})],1)],1)}),[],!1,null,null,null),uI=cI.exports,hI=D({name:"vimage",props:{defaultSrc:{type:String,default:"//n2.sinaimg.cn/sports/logos/basket_default_logo.png"},src:{type:String,default:""},alt:{type:String,default:""}},data:function(){return{url:""}},beforeMount:function(){var t=this,e=this.src,n=new Image;n.onload=function(){t.url=e},n.onerror=function(){t.url=t.defaultSrc},n.src=e}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("img",{attrs:{src:t.url,alt:t.alt}})}),[],!1,null,null,null).exports,pI={name:"item",props:{item:{type:Object,default:null}},data:function(){return{list1:this.item.list1||{},list2:this.item.list2||{},option:this.item.option||{}}},watch:{item:function(){this.list1=this.item.list1||{},this.list2=this.item.list2||{},this.option=this.item.option||{},this.initH()}},components:{vimage:hI},beforeMount:function(){this.initH()},methods:{initH:function(){var t=this.getVal(Number(this.list1.value),Number(this.list2.value),this.option.height),e=t.h1,n=t.h2;this.h1=e,this.h2=n},getVal:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.28,i=n,r=n;return 0==t&&0==e?i=r=0:t>e?r=e/t*n:i=t/e*n,{h1:i,h2:r}}}},dI=D(pI,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"column-chart-item"},[n("div",{staticClass:"column-chart-left",on:{click:function(e){return t.list1.handleClick(t.list1)}}},[n("img",{staticClass:"chart-bg",attrs:{src:t.list1.background||"//n.sinaimg.cn/sports/livedata/column-bg-left.png",alt:""}}),n("div",{staticClass:"column-chart-img"},[n("vimage",{attrs:{src:t.list1.img,art:""}})],1),n("div",{staticClass:"column-chart-txt"},[n("span",[t._v(t._s(t.list1.tip))]),n("span",{staticClass:"ellipsis"},[t._v(t._s(t.list1.name))])])]),n("div",{staticClass:"column-chart-center"},[n("div",{staticClass:"center-left"},[n("span",[t._v(t._s(t.list1.value))]),n("div",{staticClass:"column",style:{height:t.h1?t.h1+"rem":"auto"}})]),n("div",[n("vimage",{attrs:{src:t.list1.center}})],1),n("div",{staticClass:"center-right"},[n("span",[t._v(t._s(t.list2.value))]),n("div",{staticClass:"column",style:{height:t.h2?t.h2+"rem":"auto"}})])]),n("div",{staticClass:"column-chart-right",on:{click:function(e){return t.list2.handleClick(t.list2)}}},[n("img",{staticClass:"chart-bg",attrs:{src:t.list2.background||"//n.sinaimg.cn/sports/livedata/column-bg-right.png",alt:""}}),n("div",{staticClass:"column-chart-txt"},[n("span",[t._v(t._s(t.list2.tip))]),n("span",{staticClass:"ellipsis"},[t._v(t._s(t.list2.name))])]),n("div",{staticClass:"column-chart-img"},[n("vimage",{attrs:{src:t.list2.img}})],1)])])}),[],!1,null,null,null),fI=D({name:"column-chart",components:{Item:dI.exports},props:{data:{type:Array,default:null}},beforeMount:function(){}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._l(t.data,(function(t,e){return n("item",{key:e,attrs:{item:t}})})),1)}),[],!1,null,null,null),gI=fI.exports,vI=D({name:"star",props:{title:{type:String,default:""},data:{type:Object,default:null}},components:{Title:rl,ColumnChart:gI}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"page-seperator",staticStyle:{"padding-bottom":"0.36rem"}},[n("Title",{attrs:{title:t.title}}),n("column-chart",{attrs:{data:t.data.lists}})],1)}),[],!1,null,null,null),mI=vI.exports,yI=D({name:"score",props:{data:{type:Object,default:function(){return{}}}},watch:{data:function(){this.values=this.data.values||{},this.team1=this.data.teams&&this.data.teams.team1||{},this.team2=this.data.teams&&this.data.teams.team2||{},this.update()}},data:function(){return{swiper_warp_width:0,values:this.data.values||{},team1:this.data.teams&&this.data.teams.team1||{},team2:this.data.teams&&this.data.teams.team2||{}}},components:{Title:rl},mounted:function(){this.initSwiper()},methods:{update:function(){this.swiper&&this.swiper.update&&this.swiper.update()},initSwiper:function(){var t=this.$refs.swiper_ref;this.swiper_warp_width=t.offsetWidth||0,this.swiper=new _i(t,{spaceBetween:0,resistanceRatio:this.values.values.length<=4?0:.7,slidesPerView:"auto",slidesPerGroup:1,loop:!1})},touchstart:function(t){this.values&&this.values.length>=5&&t.stopPropagation()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"page-seperator"},[n("Title",{attrs:{title:"\u8be6\u7ec6\u6bd4\u5206"}}),n("section",{staticClass:"score-main"},[n("div",{staticClass:"score-fixed-left"},[n("span",{staticClass:"item-title"},[t._v("\u7403\u961f")]),n("div",{staticClass:"item-item"},[n("img",{staticClass:"item-img",attrs:{src:t.team1.img,alt:""},on:{click:function(e){return t.team1.handleClick(t.team1)}}})]),n("div",{staticClass:"item-item"},[n("img",{staticClass:"item-img",attrs:{src:t.team2.img,alt:""},on:{click:function(e){return t.team2.handleClick(t.team2)}}})])]),n("div",{ref:"swiper_ref",staticClass:"swiper-container score-stat-swiper",on:{touchstart:t.touchstart}},[n("div",{staticClass:"swiper-wrapper"},t._l(t.values.values,(function(e,i){return n("div",{key:i,staticClass:"swiper-slide",style:{width:t.swiper_warp_width?t.swiper_warp_width/4+"px!important":"1.27rem!important"}},[n("span",{staticClass:"item-title"},[t._v(t._s(e.title))]),n("span",{staticClass:"item-item"},[t._v(t._s(e.value1))]),n("span",{staticClass:"item-item"},[t._v(t._s(e.value2))])])})),0)]),n("div",{staticClass:"score-fixed-right"},[n("span",{staticClass:"item-title"},[t._v("\u603b\u5206")]),n("span",{staticClass:"item-item"},[t._v(t._s(t.values.sum1))]),n("span",{staticClass:"item-item"},[t._v(t._s(t.values.sum2))])])])],1)}),[],!1,null,null,null),_I=yI.exports,bI=D({name:"item",props:{data:{type:Object,default:function(){return{}}},map:{type:Object,default:null},title:{type:Object,default:null}},deta:function(){return{lists:[],other:{}}},beforeMount:function(){this.lists=this.data.lists||[],this.other=this.data.other||{}},mounted:function(){var t=this.$refs.swiper_ref;this.swiper=new _i(t,{spaceBetween:0,slidesPerView:"auto",slidesPerGroup:1,loop:!1})}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"match-stat-list"},[n("div",{staticClass:"match-stat-fixed"},[n("div",{staticClass:"stat-head",on:{click:function(e){return t.title.handleClick(t.title)}}},[t._v(" "+t._s(t.title.name)+" ")]),t._l(t.data.lists||[],(function(e,i){return n("div",{key:i,class:e.onCourt?"stat-item stat-on":5===i?"border-1px-top stat-item":"stat-item",on:{click:function(t){return e.handleClick(e)}}},[n("span",{staticClass:"stat-num"},[t._v(t._s(e.number))]),n("span",{staticClass:"stat-txt ellipsis"},[t._v(t._s(e.name))])])})),t._l(t.data.other||{},(function(e,i){return n("div",{key:i,staticClass:"stat-item"},[n("span",{staticClass:"stat-other"},[t._v(t._s(i))])])}))],2),n("div",{ref:"swiper_ref",staticClass:"swiper-container match-stat-swiper",on:{touchstart:function(t){t.stopPropagation()}}},[n("div",{staticClass:"swiper-wrapper"},t._l(t.map,(function(e,i){return n("div",{key:i,staticClass:"swiper-slide stat-column"},[n("div",{staticClass:"stat-head"},[t._v(t._s(e))]),t._l(t.data.lists||[],(function(e,r){return n("div",{key:r,class:5===r?"border-1px-top stat-item":"stat-item"},[n("span",{staticClass:"stat-txt"},[t._v(t._s(e[i]))])])})),t._l(t.data.other||{},(function(e,r){return n("div",{key:r,staticClass:"stat-item"},[n("span",{staticClass:"stat-txt"},[t._v(t._s(e[i]))])])}))],2)})),0)])])}),[],!1,null,null,null),wI=bI.exports,xI=D({props:{data:{type:Object,default:function(){return{}}},map:{type:Object,default:null},teams:{type:Object,default:null}},data:function(){return{player1:this.data.players.player1||{},player2:this.data.players.player2||{}}},beforeMount:function(){},components:{Title:rl,Item:wI}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{ref:"play_ref",staticClass:"page-seperator"},[n("Title",{attrs:{title:"\u7403\u5458\u7edf\u8ba1"}}),n("section",[t.data.players&&t.data.players.player1.lists?n("Item",{attrs:{data:t.data.players.player1,map:t.map,title:t.teams.team1}}):t._e(),t.data.players&&t.data.players.player2.lists?n("Item",{attrs:{data:t.data.players.player2,map:t.map,title:t.teams.team2}}):t._e()],1)],1)}),[],!1,null,null,null),SI=xI.exports,kI=D({name:"team",components:{Title:rl,InfoBlock:al,BarChart:cl},props:{data:{type:Object,default:null}},data:function(){return{lists:this.data.lists||[],teams:this.data.teams||{}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"page-seperator"},[n("Title",{attrs:{title:"\u7403\u961f\u7edf\u8ba1"}}),n("info-block",{attrs:{data:t.teams}}),n("section",{staticStyle:{padding:"0 0.32rem 0.2rem"}},[n("bar-chart",{attrs:{data:t.lists}})],1)],1)}),[],!1,null,null,null),TI=kI.exports,CI=D({name:"selector",props:{position:{type:Number,default:0},name:{type:String,default:""},lists:{type:Object,default:null},handleClick:{type:Function,default:function(){}}},watch:{position:function(t){console.log(t)}},data:function(){return{show:!1,values:[]}},beforeMount:function(){var t=this.lists.values,e=void 0===t?[]:t;this.values=e},methods:{handleChange:function(t){this.handleClick(t),this.show=!1},handleToggle:function(){this.show=!this.show}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"selector-wrap"},[n("div",{staticClass:"selector-title"},[n("p",{staticClass:"selector-txt ellipsis",on:{click:t.handleToggle}},[t._v(" "+t._s(t.values[t.position])+" ")]),n("i",{staticClass:"selector-icon"})]),n("ul",{staticClass:"selector-content",style:{display:t.show?"block":"none"}},t._l(t.values,(function(e,i){return n("li",{key:i,class:{cur:i===t.position},on:{click:function(e){return t.handleChange({position:i,name:t.name})}}},[t._v(" "+t._s(e)+" ")])})),0)])}),[],!1,null,null,null),OI=D({name:"my-select",components:{Selector:CI.exports},props:{lists:{type:Object,default:null},info:{type:Object,default:null},position:{type:Number,default:0},name:{type:String,default:""},handleChange:{type:Function,default:function(){}}},data:function(){return{values:this.lists.values||[]}},beforeMount:function(){}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"select-item"},[n("div",{staticClass:"select-info",on:{click:function(e){return t.info.handleClick(t.info)}}},[n("img",{staticClass:"info-img",attrs:{src:t.info.img,alt:""}}),n("span",{staticClass:"info-name ellipsis"},[t._v(t._s(t.info.name))])]),n("selector",{attrs:{name:t.name,position:t.position,lists:t.lists,handleClick:t.handleChange}})],1)}),[],!1,null,null,null),II=OI.exports,MI=D({name:"spot-chart",props:{spots:{type:Array,default:null},type:{type:String,default:""}},data:function(){return{spot_width:0}},beforeMount:function(){},mounted:function(){this.spot_chart_wrap=this.$refs.spot_chart_wrap,this.spot_chart_wrap&&(this.spot_width=this.spot_chart_wrap.offsetWidth)}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{ref:"spot_chart_wrap"},[n("div",{staticClass:"spot-chart-wrap",style:{transform:"scale(1)"}},[n("img",{staticClass:"spot-chart-bg",attrs:{src:"cba"===t.type?"//n.sinaimg.cn/sports/livedata/cba-hotmap-bg.png":"nba"===t.type?"//n.sinaimg.cn/sports/livedata/nba-hotmap-bg.png":"",alt:""}}),n("ol",t._l(t.spots,(function(t,e){return n("li",{key:e,class:t.className,style:t.style,attrs:{desc:t.desc}})})),0)]),t._m(0)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"spot-chart-tip"},[n("li",[n("span",[t._v("\u547d\u4e2d")]),n("img",{staticClass:"tip-icon",attrs:{src:"//n.sinaimg.cn/sports/4adcff08/20220308/yes.png"}})]),n("li",[n("span",[t._v("\u6253\u94c1")]),n("img",{staticClass:"tip-icon",attrs:{src:"//n.sinaimg.cn/sports/livedata/no.png"}})])])}],!1,null,null,null),AI=D({name:"hot-map",components:{Title:rl,MySelect:II,SpotChat:MI.exports},props:{type:{type:String,default:""},selects:{type:Object,default:null},teams:{type:Object,default:null},spots:{type:Array,default:null},filter:{type:Function,default:function(){}}},data:function(){return{select1:this.selects.select1||[],select2:this.selects.select2||[],team1:this.teams.team1||{},team2:this.teams.team2||{},pos1:0,pos2:0,filtedSpots:[]}},watch:{pos1:function(){this.setFiltedSports()},pos2:function(){this.setFiltedSports()},spots:function(){this.setFiltedSports()}},beforeMount:function(){this.setFiltedSports()},methods:{setFiltedSports:function(){var t=this.filter&&this.filter(this.spots,this.select1.keys&&this.select1.keys[this.pos1],this.select2.keys&&this.select2.keys[this.pos2],this.team1.tid);this.filtedSports=t},handleChange:function(t){var e=t.name,n=t.position;"1"==e&&(this.pos1=n),"2"==e&&(this.pos2=n)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"hot-map-wrap"},[n("Title",{attrs:{title:"\u6295\u7bee\u70ed\u56fe"}}),n("section",{staticClass:"hot-map-select"},[n("my-select",{attrs:{lists:t.select1,info:t.team1,position:t.pos1,name:"1",handleChange:t.handleChange}}),n("my-select",{attrs:{lists:t.select2,info:t.team2,position:t.pos2,name:"2",handleChange:t.handleChange}})],1),n("spot-chat",{attrs:{spots:t.filtedSports,type:t.type}})],1)}),[],!1,null,null,null),DI=AI.exports,PI={1:"CBA\u5e38\u89c4\u8d5b",2:"CBA\u5b63\u540e\u8d5b",3:"CBA\u5b63\u524d\u8d5b",4:"CBA\u5168\u660e\u661f"},EI={PointsAverage:"\u573a\u5747\u5f97\u5206",OpponentPointsAverage:"\u573a\u5747\u5931\u5206",ReboundsAverage:"\u573a\u5747\u7bee\u677f",AssistsAverage:"\u573a\u5747\u52a9\u653b",BlockedAverage:"\u573a\u5747\u76d6\u5e3d",StealsAverage:"\u573a\u5747\u62a2\u65ad",TurnoversAverage:"\u573a\u5747\u5931\u8bef"},LI={PointsAverage:"\u5f97\u5206",ReboundsAverage:"\u7bee\u677f",AssistsAverage:"\u52a9\u653b"},jI={Points:"\u5f97\u5206",Rebounds:"\u7bee\u677f",Assists:"\u52a9\u653b"},RI={1:"Q1",2:"Q2",3:"Q3",4:"Q4",5:"Q5",6:"Q6",7:"Q7",8:"Q8",9:"Q9",10:"Q10"},NI={Minutes:"\u65f6\u95f4",Points:"\u5f97\u5206",Rebounds:"\u7bee\u677f",Assists:"\u52a9\u653b",goalsRat:"\u6295\u7bee",threeRat:"\u4e09\u5206",freeRat:"\u7f5a\u7403",ReboundsOffensive:"\u524d\u573a\u677f",ReboundsDefensive:"\u540e\u573a\u677f",Steals:"\u62a2\u65ad",Blocked:"\u76d6\u5e3d",Turnovers:"\u5931\u8bef",PersonalFouls:"\u72af\u89c4",PlusMinus:"\u6b63\u8d1f\u503c"},BI={Points:"\u5f97\u5206",Rebounds:"\u7bee\u677f",Assists:"\u52a9\u653b",Steals:"\u62a2\u65ad",Blocked:"\u76d6\u5e3d",Turnovers:"\u5931\u8bef",FreeThrows:"\u7f5a\u7403",ThreePointGoals:"\u4e09\u5206",PersonalFouls:"\u72af\u89c4",FieldGoalsPercentage:"\u6295\u7bee\u547d\u4e2d\u7387",ThreePointPercentage:"\u4e09\u5206\u547d\u4e2d\u7387",FreeThrowsPercentage:"\u7f5a\u7403\u547d\u4e2d\u7387",FastBreakPoints:"\u5feb\u653b\u5f97\u5206",SecondChancePoints:"\u4e8c\u6b21\u8fdb\u653b\u5f97\u5206"},zI=function(t){var e="",n=!1;for(var i in t){if("dpc"===i){n=!0;break}var r=void 0!==t[i]?t[i]:"";e+="&".concat(i,"=").concat(encodeURIComponent(r))}return n?"".concat(e,"&dpc=1"):e},FI=0;function HI(){}var VI=function(t,e,n){"function"==typeof e&&(n=e,e={}),e||(e={});var i,r,o=e.prefix||"__jp",a=e.name||o+FI++,s=e.param||"callback",l=null!=e.timeout?e.timeout:6e4,c=document.getElementsByTagName("script")[0]||document.head;function u(){i.parentNode&&i.parentNode.removeChild(i),window[a]=HI,r&&clearTimeout(r)}return l&&(r=setTimeout((function(){u(),n&&n(new Error("Timeout"))}),l)),window[a]=function(t){u(),n&&n(null,t)},t=(t+=(~t.indexOf("?")?"&":"?")+"callback="+a+s).replace("?&","?"),(i=document.createElement("script")).src=t,c.parentNode.insertBefore(i,c),function(){window[a]&&u()}},UI=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,n=void 0===e?"":e,i=t.params,r=void 0===i?"":i,o=t.timeout,a=void 0===o?6e4:o,s=t.prefix,l=void 0===s?"__jp":s,c=t.callback,u=void 0===c?"jsonpcallback":c,h=t.isRight,p=void 0===h?function(t){return 0===t.result.status.code}:h;return new Promise((function(t,e){VI(n,{param:zI(r),timeout:a,prefix:l,name:u},(function(n,i){p(i)&&t(i),e(n)}))}))},GI=window.PAGEDATA||{};GI.APIS=GI.APIS||{};var WI=GI.APIS,YI={dpc:1};function XI(t){if(t.Info){var e=t.Info,n=function(t,e){function n(t){return{tid:t.tid,callId:t.callId,name:t.name,score:t.score||0,img:t.img,handleClick:function(t){Zs(t.callId)}}}return{team1:n(t),team2:n(e)}}({name:e.HomeTeamSSYPet,tid:e.HomeTeamID,callId:e.HomeTeamSSYID,img:e.HomeTeamSSYAvatar,handleClick:function(t){Zs(t.callId)}},{name:e.VisitingTeamSSYPet,tid:e.VisitingTeamID,callId:e.VisitingTeamSSYID,img:e.VisitingTeamSSYAvatar,handleClick:function(t){return Zs(t.callId)}});return e.teams=n,e.value1=e.VisitingTeamScore,e.value2=e.HomeTeamScore,e}return null}function $I(t,e){try{if(t&&e&&e.length){var n=t.HomeTeamID,i=t.VisitingTeamID,r=e.map((function(t){return t.value1=t.HomeTeamID===n?t.HomeTeamScore:t.VisitingTeamScore,t.value2=t.VisitingTeamID===i?t.VisitingTeamScore:t.HomeTeamScore,t.center="".concat(t.MatchGTM8Time.split(" ")[0].replace(/-/," ")," ").concat(PI[t.ScheduleTypeID]),t.id=t.mid,t.handleClick=function(t){return qs(t.LivecastID)},t}));return e.lists=r,e}return null}catch(o){return null}}function qI(t){try{if(t.HomeTeamRecord&&t.VisitingTeamRecord&&t.HomeTeamRecord.Last&&t.VisitingTeamRecord.Last){var e=t.HomeTeamRecord,n=t.VisitingTeamRecord,i=function(t,e){return{data:[{value:t.Last5Win,name:"".concat(t.Last5Win,"\u80dc")},{value:t.Last5Losses,name:"".concat(t.Last5Losses,"\u8d1f")}],opt:{color:e}}},r={stat1:i(e,["#ff3934","#f5f5f5"]),stat2:i(n,["#1980f8","#f5f5f5"])};t.stats=r;var o=function(t,i){return t&&t.length&&t.map((function(t){t.value1=t.HomeTeamScore,t.value2=t.VisitingTeamScore,"home"===i?(t.tip1=t.HomeTeamID===e.TeamID&&Number(t.HomeTeamScore)>Number(t.VisitingTeamScore)||t.VisitingTeamID===e.TeamID&&Number(t.HomeTeamScore)Number(t.VisitingTeamScore)||t.VisitingTeamID===n.TeamID&&Number(t.HomeTeamScore)4?Number(t.quarter):4,r=1;r<=i;r++)n.push({title:SM[r],value1:t["away_score"+r]||"-",value2:t["home_score"+r]||"-"});t.values={values:n,sum1:t.away_score||0,sum2:t.home_score||0}}t.teams=function(t,e){var n=t.tid||t.id,i=e.tid||e.id;return{team1:{tid:n,name:t.name,score:t.score||0,img:t.img||OM(n),handleClick:t.handleClick||function(){}},team2:{tid:i,name:e.team_name||e.name,score:e.score||0,img:e.img||OM(i),handleClick:e.handleClick||function(){}}}}({name:t.away_name,tid:t.away_tid,handleClick:function(){return tl(t.away_tid)}},{name:t.home_name,tid:t.home_tid,handleClick:function(){return tl(t.home_tid)}}),t.value1=t.away_score||"0",t.value2=t.home_score||"0"}return t}function MM(t,e,n,i,r,o){if(t&&t.length&&e&&e.length){var s=[];return t.map((function(t){s.push({list1:PM(Object(a.a)(Object(a.a)(Object(a.a)({},t.item),t.players[0]),{},{tid:n,mid:r,status:o,handleClick:function(t){return Js(t.id,t.tid,t.mid,t.status)}}))})})),e.map((function(t,e){s[e].list2=PM(Object(a.a)(Object(a.a)(Object(a.a)({},t.item),t.players[0]),{},{tid:i,mid:r,status:o,handleClick:function(t){return Js(t.id,t.tid,t.mid,t.status)}}))})),s}return null}function AM(t,e){var n=t.tid===e,i=t.made?"bscore01":"bunscore01",r=n?"visit":"host",o=6.86*t.x/1128,a=3.7*t.y/600;t.q<3&&(o=6.86-o),n?(o-=.049,a=3.7-a):o+=.049,t.desc=t.desc||"",t.className="".concat(i," ").concat(i,"_").concat(r),t.style={left:o+"rem",top:a+"rem"}}function DM(t,e,n,i){for(var r=[],o=0,a=t.length;oNumber(t.home_score)||e.tid===t.home_tid&&Number(t.away_score)Number(t.home_score)?"\u80dc":"\u8d1f",t.tip1Style="\u80dc"===t.tip1?{color:"#1980f8",background:"#e8f2fe"}:{},t.tip2img=t.home_name===n.team?"//n.sinaimg.cn/sports/livedata/icon_home.png":""),t.center="".concat(t.away_name," vs ").concat(t.home_name),t.handleClick=function(t){return Qs(t.livecast_id,t.live_url)}})),t};return t.lists={list1:o(e.games,"away"),list2:o(n.games,"home")},t}return null}(e)})).catch((function(t){console.log(t)}))},getPrePlayer:function(t,e,n,i){var r=this;return vn(fn().mark((function o(){var a,s,l,c,u,h;return fn().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,a=r.beforeApi.player,o.next=4,bM({season_type:"reg",tid:t,limit:1},a);case 4:return s=o.sent,o.next=7,bM({season_type:"reg",tid:e,limit:1},a);case 7:l=o.sent,c=s.result&&s.result.data?s.result.data.items:[],u=l.result&&l.result.data?l.result.data.items:[],console.log("\u8d5b\u524d\u7403\u5458",s,l),(h=MM(c,u,t,e,n,i))&&(r.prePlayer={lists:h}),o.next=18;break;case 15:o.prev=15,o.t0=o.catch(0),console.log(o.t0);case 18:case"end":return o.stop()}}),o,null,[[0,15]])})))()},getPreTeam:function(t,e){var n,i,r=this;(n={tid:"".concat(t,",").concat(e)},i=this.beforeApi.team,UI({url:i||vM.team,params:Object.assign({},n,dM),callback:"before_team"})).then((function(t){console.log("\u8d5b\u524d\u7403\u961f\u7edf\u8ba1",t);var e=t.result&&t.result.data?t.result.data.teams:{};r.preTeam=function(t){if(t&&t.length){var e=t[0]||{},n=t[1]||{},i={},r={};e.stats&&e.stats.length&&e.stats.map((function(t){i[t.item]=t})),n.stats&&n.stats.length&&n.stats.map((function(t){r[t.item]=t}));var o=[];return Object.keys(xM).map((function(t){o.push({value1:i[t].score,value2:r[t].score,tip1:"\u8054\u76df\u7b2c".concat(i[t].rank,"\u540d"),tip2:"\u8054\u76df\u7b2c".concat(r[t].rank,"\u540d"),center:xM[i[t].item],id:t})})),t.lists=o,t}return null}(e)})).catch((function(t){return console.log(t)}))},getData:function(t,e){this.getBest(t,e),this.getTeamAndPlayer(t,e)},getBest:function(t,e){var n,i,r=this;return(n={mid:t},i=this.afterApi.best,UI({url:i||mM.best,params:Object.assign({},n,dM),callback:"after_best"})).then((function(n){console.log("\u6700\u4f73\u7403\u5458",n);var i=n.result.data;i=function(t,e,n){if(t.away.items.length&&t.home.items.length){var i=[],r=t.away,o=t.home,s={},l={};return r.items.map((function(t){s[t.item]=t})),o.items.map((function(t){l[t.item]=t})),Object.keys(kM).map((function(t){i.push({list1:PM(Object(a.a)(Object(a.a)({},s[t]),{},{name:t,tid:r.tid,mid:e,sta:n})),list2:PM(Object(a.a)(Object(a.a)({},l[t]),{},{name:t,tid:r.tid,mid:e,sta:n}))})})),i}return null}(i,t,e),i&&(r.bestData={lists:i})})).catch((function(t){console.log(t)}))},getTeamAndPlayer:function(t,e){var n,i,r=this;(n={mid:t},i=this.afterApi.sta,UI({url:i||mM.sta,params:Object.assign({},n,dM),callback:"after_players"})).then((function(n){console.log("\u7403\u961f\u7403\u5458\u7edf\u8ba1",n);var i=n.result.data;r.statData=function(t,e,n){if(t.away.players&&t.home.players&&t.away.total&&t.home.total){var i=t.home,r=t.away,o=r.total,a=r.players,s=i.total,l=i.players,c=[],u=function(t,e){return"field_goals_pct"===e||"three_points_pct"===e||"free_throws_pct"===e?"".concat(t,"%"):t};for(var h in CM)c.push({center:CM[h],id:h,value1:u(o[h],h),value2:u(s[h],h)});t.lists=c;var p=function(t){t.goalsRat="".concat(t.field_goals_made,"/").concat(t.field_goals_att),t.threeRat="".concat(t.three_points_made,"/").concat(t.three_points_att),t.freeRat="".concat(t.free_throws_made,"/").concat(t.free_throws_att)},d=function(t,i){return t.map((function(t){p(t);var r=t.minutes.split(":");t.minutes="".concat(r[0],"'").concat(r[1],"''"),t.number=t.jersey_number,t.name=t.last_name,t.tid=i.tid,t.mid=e,t.status=n,t.onCourt=t.on_court&&2===n,t.handleClick=function(t){}})),t},f=function(t){var e=Object.assign({},t,{});return p(e),e.points=e.score,e.minutes="-",Object.keys(TM).map((function(t){e[t]=e[t]||"-"})),e},g=function(t){var e=Object.assign({},t,{});return Object.keys(TM).map((function(t){e[t]="-"})),e.goalsRat=LM(e.field_goals_made,e.field_goals_att),e.threeRat=LM(e.three_points_made,e.three_points_att),e.freeRat=LM(e.free_throws_made,e.free_throws_att),e};return t.players={player1:{lists:d(a,o),other:{"\u603b\u8ba1":f(o),"\u547d\u4e2d\u7387":g(o)}},player2:{lists:d(l,s),other:{"\u603b\u8ba1":f(s),"\u547d\u4e2d\u7387":g(s)}}},t.selects={select1:EM(a),select2:EM(l)},t}return null}(i,t,e),console.log("\u7403\u5458\u7edf\u8ba1",r.statData)})).catch((function(t){return console.log(t)}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.skeletonShow?n("Skeleton"):n("article",[1===t.status?n("section",{staticClass:"page-content-wrap"},[t.preHistory?n("PreHistory",{attrs:{data:t.getObjectAssign(t.preHistory,{teams:t.teamInfo})}}):t._e(),t.preRecent?n("PreRecent",{attrs:{data:t.getObjectAssign(t.preRecent,{teams:t.teamInfo})}}):t._e(),t.prePlayer?n("Star",{attrs:{title:"\u7403\u661f\u6570\u636e",data:t.prePlayer}}):t._e(),t.preTeam?n("PreTeam",{attrs:{data:t.getObjectAssign(t.preTeam,{teams:t.teamInfo})}}):t._e(),t.preHistory||t.preRecent||t.prePlayer||t.preTeam?t._e():n("Empty")],1):n("section",{staticClass:"page-content-wrap"},[t.matchInfo?n("Score",{attrs:{data:t.matchInfo}}):t._e(),t.bestData?n("Star",{attrs:{title:"\u672c\u573a\u6700\u4f73",data:t.bestData}}):t._e(),t.statData?n("Player",{ref:"content",attrs:{data:t.statData,map:t.afterPlayerMap,teams:t.teamInfo}}):t._e(),t.statData?n("Team",{attrs:{data:t.getObjectAssign(t.statData,{teams:t.teamInfo})}}):t._e(),t.matchInfo||t.bestData||t.statData||t.hotmapData?t._e():n("Empty")],1)])],1)}),[],!1,null,null,null),xD=wD.exports,SD=(jM=Ce()({components:{}}),RM=bn(),NM=bn({type:Boolean,default:!1}),BM=bn({type:String,default:"\u67e5\u770b\u5168\u90e8"}),zM=bn({type:Number,default:0}),FM=bn({type:Number,default:0}),jM((VM=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o-1){var e="".concat(t.Time,"-").concat(t.TeamID);i[e]=i[e]||[],i[e].push(t)}else{var n="".concat(t.Time,"-other");i[n]=i[n]||[],i[n].push(t)}})),console.log(i);var o=[];Object.keys(i).forEach((function(t){t.indexOf("other")>-1?o.push.apply(o,Object(K.a)(i[t])):o.push(i[t])}));var a=[];return o.map((function(t){if(t.length&&r.indexOf(t[0].Code)>-1){var e=n.getAxisMapIt(t);a.push.apply(a,Object(K.a)(e))}else t.length?a.push.apply(a,Object(K.a)(t)):a.push(t)})),a}return t}},{key:"getAxisMapIt",value:function(t){var e=[],n=[];t.forEach((function(t){"15"===t.Code?e.push(t):n.push(t)}));var i=e.length=4}},[n("div",{staticClass:"statistics_item_top"},[n("span",[t._v(t._s(t.formateDataLi(t.statsLists.Chart.Stats1[e.key])||"-"))]),n("div",{staticClass:"item_icon"},[n("i"),n("p",[t._v(t._s(e.text))])]),n("span",[t._v(t._s(t.formateDataLi(t.statsLists.Chart.Stats2[e.key])||"-"))])]),n("div",{staticClass:"statistics_item_bottom"},[n("div",{staticClass:"item_left item_li_warp"},[n("i"),n("span",{style:{width:t.handlePraseWidth(t.statsLists.Chart,e.key,1)}})]),n("div",{staticClass:"item_right item_li_warp"},[n("i"),n("span",{style:{width:t.handlePraseWidth(t.statsLists.Chart,e.key,2)}})])])])})),0):t._e(),t.StatsFull?n("div",{on:{click:t.moreClick}},[n("moreTem",{attrs:{pt:0,pb:.2,showMore:t.showMore}})],1):t._e()]):t._e()}),[],!1,null,null,null),DD=AD.exports,PD=D({name:"vimage",props:{defaultSrc:{type:String,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAIVBMVEXp6enIyMjNzc3Z2dnm5ubg4ODd3d3T09Pi4uLV1dXQ0NCFvxqfAAABUElEQVRYw+2UsU7DMBRFLQhtYeKaECudsBSB2JIWAWNBoqwNC2srYGAEJOZGDKztHzTiR4lbYxRl8LPEgFqfwfJy8uzn+8I8Ho/Hs47cPPSfBi5C0EMFP3NQ7rCEj8hGC+Bv/VcgIisFjtU9hhJTqiL56ubXOCIaHYS6CzgkKruY6d08Jip7+OlU3iUqW78KpyqmUQX/V1UyU6VASlOkYJo28S0D7Js9wr9WDNLEZIcasrlKpc7ljKZcIdFHlBhQJ8yEnzxjGRJdJKUPsli9SsTI5BiZlTxki2otBaMTINQLnTJSN1q4KNkBY9tInZRYXchB+SixrIKvKU0YvgBaAd4piflExYk604UEIOyFbgGcPupeP0tA2OoEEvySGTo9ILEobYh6Su4hrLMyZnUmtpmZdJt/6LH12WsQQpDFzkrerGKbmlbzk+fM4/F4PJvNN783KrTvCKbgAAAAAElFTkSuQmCC"},src:{type:String,default:""},alt:{type:String,default:""}},data:function(){return{url:"https://n.sinaimg.cn/products/live/latest/images/d.gif"}},beforeMount:function(){var t=this,e=this.src,n=new Image;n.onload=function(){t.url=e},n.onerror=function(){t.url=t.defaultSrc},n.src=e},methods:{handleClick:function(){this.$emit("click")}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("img",{attrs:{src:t.url,alt:t.alt,"data-src":t.src},on:{click:t.handleClick}})}),[],!1,null,null,null).exports,ED=(pA=Ce()({components:{vImage:PD}}),dA=bn({type:Object,default:function(){return{}}}),fA=bn(Object),pA((vA=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=2?n("time-axis",{attrs:{data:t.FB_Litse.Axis,AxisFull:t.FB_Litse.AxisFull,matchInfo:t.matchInfo}}):t._e(),t.FB_Litse.Stats&&t.FB_Litse.Stats.Chart?n("game-statistics",{attrs:{data:t.FB_Litse.Stats,StatsFull:t.FB_Litse.StatsFull}}):t._e(),t.FB_Litse.Starting&&t.FB_Litse.Starting.Chart?n("battle",{attrs:{data:t.FB_Litse.Starting,League:t.FB_Litse.League}}):t._e(),t.FB_Litse.Slide&&t.FB_Litse.Slide.Chart&&t.FB_Litse.Slide.Chart.length?n("standings",{attrs:{data:t.FB_Litse.Slide,Conferences:t.FB_Litse.Conferences,matchInfo:t.matchInfo}}):t._e(),t.FB_Litse.Encounter||t.FB_Litse.Record||t.FB_Litse.Willbe?n("team-summary",{attrs:{data:t.FB_Litse}}):t._e()],1):n("LoadingTem")],1)}),[],!1,null,"37097e54",null),ZD=qD.exports,KD=(QA=Ce()({components:{NBA:xD,CBA:pM,FootballData:ZD,empty:UD}}),JA=bn({type:Object,default:function(){return{}}}),tD=bn({type:String,default:""}),eD=bn({}),QA((iD=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o-1&&location.href.indexOf("appEnv=test")>-1}},{key:"dataExposure",value:function(){this.$sudaLog("exposure",{eventKey:"CN_7528",title:"\u4f53\u80b2\u76f4\u64ad\u95f4-\u6570\u636etab",index:0,channel:""})}}]),n}(o.a),rD=ke(iD.prototype,"data",[JA],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oD=ke(iD.prototype,"status",[tD],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),aD=ke(iD.prototype,"tabActive",[eD],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nD=iD))||nD),QD=D(KD,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"exposure",rawName:"v-exposure",value:t.dataExposure,expression:"dataExposure"}],staticClass:"live_data_wrap",style:{height:t.tabPageHeight?t.tabPageHeight+"px":"auto"}},[t.data.League&&"CBA"===t.data.League.toLocaleUpperCase()?n("CBA",{attrs:{mid:t.data.LivecastID}}):t.data.League&&"NBA"===t.data.League.toLocaleUpperCase()?n("NBA",{attrs:{mid:t.data.MatchID}}):t.data.League&&t.data.LivecastID?n("FootballData",{attrs:{id:t.data.LivecastID,matchInfo:t.data,status:t.status,tabActive:t.tabActive}}):n("empty",{attrs:{title:t.errorData.title,subtitle:t.errorData.subtitle}})],1)}),[],!1,null,"b9c1cfa8",null),JD=QD.exports,tP=new o.a,eP=window.lottie,nP=(sD=Ce()({components:{}}),lD=bn({type:String,default:"svg"}),cD=bn(String),uD=bn(Boolean),hD=bn(Boolean),pD=bn(Object),sD((fD=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0,bP=function(){if("string"===typeof mP){var t=/os (\d\d?_\d(_\d)?)/.exec(mP);if(!t)return!1;var e=t[1].split("_").map((function(t){return parseInt(t,10)}));return!!(13===e[0]&&e[1]>=4)}return!1}(),wP=!1;if(vP){try{var xP={};Object.defineProperty(xP,"passive",{get:function(){wP=!0}}),window.addEventListener("test-passive",(function(){}),xP)}catch(q7){}}function SP(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var kP=function(t,e){for(var n in e)t[n]=e[n];return t};function TP(t){return void 0===t||null===t}function CP(t,e,n){return tn?n:t}function OP(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some((function(t,i,r){var o=e(t,i,r);if(o)return n=i,o})),n}var IP=vP&&document.createElement("div").style,MP=function(){if(!vP)return!1;for(var t=0,e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}];tdocument.documentElement.clientWidth-l||s>document.documentElement.clientHeight-l||a0?-1:n<0?1:0},o=r(e.x,t.x),a=r(e.y,t.y),s=n.x-i.x,l=n.y-i.y;return o*s<=0&&a*l<=0})(t,e,o,i)&&n.hooks.trigger(n.hooks.eventTypes.move,o),n.pending||(n.callStopWhenPending?n.callStopWhenPending=!1:n.hooks.trigger(n.hooks.eventTypes.end,o)),i=o,n.pending&&(n.timer=QP(r))}()},e.prototype.transitionTime=function(t){void 0===t&&(t=0),this.style[VP.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[VP.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.transitionProperty=function(){this.style[VP.transitionProperty]=VP.transform},e.prototype.move=function(t,e,n,i){this.setPending(n>0),this.transitionTimingFunction(i),this.transitionProperty(),this.transitionTime(n),this.translate(e);var r=3===this.options.probeType;n&&r&&this.startProbe(t,e),n||(this._reflow=this.content.offsetHeight,r&&this.hooks.trigger(this.hooks.eventTypes.move,e),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),JP(this.timer);var e=this.translater.getComputedPosition(),n=e.x,i=e.y;this.transitionTime(),this.translate({x:n,y:i}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:n,y:i})}return t},e.prototype.stop=function(){this.doStop()&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(lE),uE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lP(e,t),e.prototype.move=function(t,e,n,i){if(!n)return this.translate(e),3===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.move,e),void this.hooks.trigger(this.hooks.eventTypes.end,e);this.animate(t,e,n,i)},e.prototype.animate=function(t,e,n,i){var r=this,o=SP(),a=o+n,s=3===this.options.probeType;this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),JP(this.timer),function l(){var c=SP();if(c>=a)return r.translate(e),s&&r.hooks.trigger(r.hooks.eventTypes.move,e),void r.hooks.trigger(r.hooks.eventTypes.end,e);var u=i(c=(c-o)/n),h={};Object.keys(e).forEach((function(n){var i=t[n],r=e[n];h[n]=(r-i)*u+i})),r.translate(h),s&&r.hooks.trigger(r.hooks.eventTypes.move,h),r.pending&&(r.timer=QP(l)),r.pending||(r.callStopWhenPending?r.callStopWhenPending=!1:r.hooks.trigger(r.hooks.eventTypes.end,e))}()},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),JP(this.timer);var e=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,e)}return t},e.prototype.stop=function(){this.doStop()&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(lE);var hE,pE,dE,fE,gE=function(){function t(t,e,n){this.wrapper=t,this.options=n,this.hooks=new nE(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(e)}return t.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},t.prototype.move=function(t){return t=this.hasScroll?t:0,this.setMovingDirection(t),this.performDampingAlgorithm(t,this.options.outOfBoundaryDampingFactor)},t.prototype.setMovingDirection=function(t){this.movingDirection=t>0?-1:t<0?1:0},t.prototype.setDirection=function(t){this.direction=t>0?-1:t<0?1:0},t.prototype.performDampingAlgorithm=function(t,e){var n=this.currentPos+t;return(n>this.minScrollPos||nthis.minScrollPos&&this.options.bounces[0]||nthis.minScrollPos?this.minScrollPos:this.maxScrollPos),n},t.prototype.end=function(t){var e={duration:0},n=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&tthis.options.momentumLimitDistance){var i=-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},t.prototype.momentum=function(t,e,n,i,r,o,a){void 0===a&&(a=this.options);var s=t-e,l=Math.abs(s)/n,c=a.deceleration,u=a.swipeBounceTime,h=a.swipeTime,p={destination:t+l*l/c*(s<0?-1:1),duration:Math.min(h,2*l/c),rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,p,s),p.destinationr&&(p.destination=o?Math.min(r+o/4,r+o/p.rate*l):r,p.duration=u),p.destination=Math.round(p.destination),p},t.prototype.updateDirection=function(){var t=this.currentPos-this.absStartPos;this.setDirection(t)},t.prototype.refresh=function(t){var e=this.options.rect,n=e.size,i=e.position,r="static"===window.getComputedStyle(this.wrapper,null).position,o=GP(this.wrapper);this.wrapperSize=this.wrapper["width"===n?"clientWidth":"clientHeight"],this.setContent(t);var a=GP(this.content);this.contentSize=a[n],this.relativeOffset=a[i],r&&(this.relativeOffset-=o[i]),this.computeBoundary(),this.setDirection(0)},t.prototype.setContent=function(t){t!==this.content&&(this.content=t,this.resetState())},t.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},t.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var t={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};t.maxScrollPos<0&&(t.maxScrollPos-=this.relativeOffset,0===this.options.specifiedIndexAsContent&&(t.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,t),this.minScrollPos=t.minScrollPos,this.maxScrollPos=t.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPosthis.minScrollPos?t=this.minScrollPos:te+this.directionLockThreshold?this.directionLocked="horizontal":e>=t+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},t.prototype.handleEventPassthrough=function(t){var e=mE[this.directionLocked];if(e){if(this.eventPassthrough===e.yes)return vE.yes(t);if(this.eventPassthrough===e.no)return vE.no(t)}return!1},t}(),_E=function(){function t(t,e,n,i,r){this.hooks=new nE(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=n,this.animater=i,this.options=r,this.directionLockAction=new yE(r.directionLockThreshold,r.freeScroll,r.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return t.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,(function(e){return!t.enabled||t.handleStart(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,(function(e){var n=e.deltaX,i=e.deltaY,r=e.e;if(!t.enabled)return!0;var o=function(t,e,n){return 2===n?[e,-t]:3===n?[-t,-e]:4===n?[-e,t]:[t,e]}(n,i,t.options.quadrant),a={deltaX:o[0],deltaY:o[1]};return t.hooks.trigger(t.hooks.eventTypes.coordinateTransformation,a),t.handleMove(a.deltaX,a.deltaY,r)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,(function(e){return!t.enabled||t.handleEnd(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,(function(e){t.enabled&&!e._constructed&&t.handleClick(e)}))},t.prototype.handleStart=function(t){var e=SP();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},t.prototype.handleMove=function(t,e,n){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,n)){var i=this.scrollBehaviorX.getAbsDist(t),r=this.scrollBehaviorY.getAbsDist(e),o=SP();if(this.checkMomentum(i,r,o))return!0;if(this.directionLockAction.checkMovingDirection(i,r,n))return this.actionsHandler.setInitiated(),!0;var a=this.directionLockAction.adjustDelta(t,e),s=this.scrollBehaviorX.getCurrentPos(),l=this.scrollBehaviorX.move(a.deltaX),c=this.scrollBehaviorY.getCurrentPos(),u=this.scrollBehaviorY.move(a.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var h=l!==s||u!==c;this.contentMoved||h||this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&h&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&h&&(this.animater.translate({x:l,y:u}),this.dispatchScroll(o))}}},t.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},t.prototype.checkMomentum=function(t,e,n){return n-this.endTime>this.options.momentumLimitTime&&e0?Math.ceil(e):Math.floor(e),n=n>0?Math.ceil(n):Math.floor(n),{x:e=CP(e,o,r),y:n=CP(n,l,s)}},t.prototype.handleClick=function(t){WP(t.target,this.options.preventDefaultException)||(LP(t),t.stopPropagation())},t.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},t.prototype.refresh=function(){this.endTime=0},t.prototype.destroy=function(){this.hooks.destroy()},t}();function bE(t,e,n,i){var r=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce((function(e,n){return e[n]=t[n],e}),{});return r.scrollable=!!t[e],r.bounces=n,r.rect=i,r}function wE(t,e,n){n.forEach((function(n){var i,r;"string"===typeof n?i=r=n:(i=n.source,r=n.target),t.on(i,(function(){for(var t=[],n=0;n1&&t1||e>1))return!0},t.prototype.momentum=function(t,e){var n={time:0,easing:qP.swiper,newX:t.x,newY:t.y},i=this.scrollBehaviorX.end(e),r=this.scrollBehaviorY.end(e);if(n.newX=TP(i.destination)?n.newX:i.destination,n.newY=TP(r.destination)?n.newY:r.destination,n.time=Math.max(i.duration,r.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,n,this),n.newX!==t.x||n.newY!==t.y)return(n.newX>this.scrollBehaviorX.minScrollPos||n.newXthis.scrollBehaviorY.minScrollPos||n.newYMath.abs(i)&&(i=r),r=0),this.scroll.hasHorizontalScroll||(i=0),{x:i,y:r,directionX:i>0?-1:i<0?1:0,directionY:r>0?-1:r<0?1:0}},t.prototype.beforeHandler=function(t){var e=this.scroll.options,n=e.preventDefault,i=e.stopPropagation,r=e.preventDefaultException;n&&!WP(t.target,r)&&LP(t),i&&t.stopPropagation()},t.prototype.getEaseTime=function(){var t=this.mouseWheelOpt.easeTime;return t<100&&fP("easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times."),Math.max(t,100)},t.prototype.destroy=function(){this.eventRegister.destroy(),window.clearTimeout(this.wheelEndTimer),window.clearTimeout(this.wheelMoveTimer),this.hooksFn.forEach((function(t){var e=t[0],n=t[1],i=t[2];e.off(n,i)}))},t.pluginName="mouseWheel",t.applyOrder="pre",t}(),OE=function(){function t(t){this.scroll=t,this.stopObserver=!1,this.init()}return t.prototype.init=function(){this.handleMutationObserver(),this.handleHooks()},t.prototype.handleMutationObserver=function(){var t=this;if("undefined"!==typeof MutationObserver){this.observer=new MutationObserver((function(e){t.mutationObserverHandler(e,0)})),this.startObserve(this.observer)}else this.checkDOMUpdate()},t.prototype.handleHooks=function(){var t=this;this.hooksFn=[],this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){t.stopObserve(),t.handleMutationObserver()})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.enable,(function(){t.stopObserver&&t.handleMutationObserver()})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.disable,(function(){t.stopObserve()})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.destroy,(function(){t.destroy()}))},t.prototype.mutationObserverHandler=function(t,e){var n=this;if(!this.shouldNotRefresh()){for(var i=!1,r=!1,o=0;oe.minScrollPos||e.currentPosn.minScrollPos||n.currentPos0&&(e.maxScrollPos=-1),e.minScrollPos=t.currentMinScrollY})),this.hasMouseWheelPlugin()&&(this.registerHooks(this.scroll,this.scroll.eventTypes.alterOptions,(function(t){t.discreteTime=300,t.easeTime=350})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(){e.hooks.trigger(e.hooks.eventTypes.end)})))},t.prototype.registerHooks=function(t,e,n){t.on(e,n,this),this.hooksFn.push([t,e,n])},t.prototype.hasMouseWheelPlugin=function(){return!!this.scroll.eventTypes.alterOptions},t.prototype.watch=function(){var t=this.scroll.scroller;this.watching=!0,this.registerHooks(t.hooks,t.hooks.eventTypes.end,this.checkPullDown),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollStart,this.resetStateBeforeScrollStart),this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},t.prototype.resetStateBeforeScrollStart=function(){this.isFetchingStatus()||(this.setPulling(1),this.setThresholdBoundary(0))},t.prototype.checkLocationOfThresholdBoundary=function(){if(1===this.pulling){var t=this.scroll,e=1!==this.thresholdBoundary&&this.locateInsideThresholdBoundary(),n=2!==this.thresholdBoundary&&!this.locateInsideThresholdBoundary();e&&(this.setThresholdBoundary(1),t.trigger(AE)),n&&(this.setThresholdBoundary(2),t.trigger(DE))}},t.prototype.locateInsideThresholdBoundary=function(){return this.scroll.y<=this.options.threshold},t.prototype.unwatch=function(){var t=this.scroll,e=t.scroller;this.watching=!1,e.hooks.off(e.hooks.eventTypes.end,this.checkPullDown),t.off(t.eventTypes.scrollStart,this.resetStateBeforeScrollStart),t.off(t.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&t.off(t.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},t.prototype.checkPullDown=function(){var t=this.options,e=t.threshold,n=t.stop;return!(this.scroll.y0&&(t.maxScrollPos=-1)}))},t.prototype.registerHooks=function(t,e,n){t.on(e,n,this),this.hooksFn.push([t,e,n])},t.prototype.watch=function(){this.watching||(this.watching=!0,this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkPullUp))},t.prototype.unwatch=function(){this.watching=!1,this.scroll.off(this.scroll.eventTypes.scroll,this.checkPullUp)},t.prototype.checkPullUp=function(t){var e=this,n=this.options.threshold;1===this.scroll.movingDirectionY&&t.y<=this.scroll.maxScrollY+n&&(this.pulling=!0,this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){e.pulling=!1})),this.unwatch(),this.scroll.trigger(LE))},t.prototype.finishPullUp=function(){var t=this;this.scroll.scroller.scrollBehaviorY.setMovingDirection(0),this.pulling?this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){t.watch()})):this.watch()},t.prototype.openPullUp=function(t){void 0===t&&(t={}),this.handleOptions(t),this.watch()},t.prototype.closePullUp=function(){this.unwatch()},t.prototype.autoPullUpLoad=function(){var t=this.options.threshold,e=this.scroll.scroller.scrollBehaviorY;if(!this.pulling&&this.watching){var n=e.maxScrollPos+t+-1;this.scroll.scroller.scrollBehaviorY.setMovingDirection(-1),this.scroll.scrollTo(this.scroll.x,n,this.scroll.options.bounceTime)}},t.pluginName="pullUpLoad",t}(),RE=function(){function t(t,e){this.indicator=t,this.options=e,this.hooks=new nE(["touchStart","touchMove","touchEnd"]),this.registerEvents()}return t.prototype.registerEvents=function(){var t=this.options,e=t.disableMouse,n=t.disableTouch,i=[],r=[],o=[];e||(i.push({name:"mousedown",handler:this.start.bind(this)}),r.push({name:"mousemove",handler:this.move.bind(this)}),o.push({name:"mouseup",handler:this.end.bind(this)})),n||(i.push({name:"touchstart",handler:this.start.bind(this)}),r.push({name:"touchmove",handler:this.move.bind(this)}),o.push({name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),this.startEventRegister=new iE(this.indicator.indicatorEl,i),this.moveEventRegister=new iE(window,r),this.endEventRegister=new iE(window,o)},t.prototype.BScrollIsDisabled=function(){return!this.indicator.scroll.enabled},t.prototype.start=function(t){if(!this.BScrollIsDisabled()){var e=t.touches?t.touches[0]:t;LP(t),t.stopPropagation(),this.initiated=!0,this.lastPoint=e[this.indicator.keysMap.point],this.hooks.trigger(this.hooks.eventTypes.touchStart)}},t.prototype.move=function(t){if(this.initiated){var e=(t.touches?t.touches[0]:t)[this.indicator.keysMap.point];LP(t),t.stopPropagation();var n=e-this.lastPoint;this.lastPoint=e,this.hooks.trigger(this.hooks.eventTypes.touchMove,n)}},t.prototype.end=function(t){this.initiated&&(this.initiated=!1,LP(t),t.stopPropagation(),this.hooks.trigger(this.hooks.eventTypes.touchEnd))},t.prototype.destroy=function(){this.startEventRegister.destroy(),this.moveEventRegister.destroy(),this.endEventRegister.destroy()},t}(),NE=function(){function t(t,e){this.scroll=t,this.options=e,this.hooksFn=[],this.wrapper=e.wrapper,this.direction=e.direction,this.indicatorEl=this.wrapper.children[0],this.keysMap=this.getKeysMap(),this.handleFade(),this.handleHooks()}return t.prototype.handleFade=function(){this.options.fade&&(this.wrapper.style.opacity="0")},t.prototype.handleHooks=function(){var t=this,e=this.options,n=e.fade,i=e.interactive,r=e.scrollbarTrackClickable,o=this.scroll,a=o.hooks,s=o.scroller.translater.hooks,l=o.scroller.animater.hooks;if(this.registerHooks(a,a.eventTypes.refresh,this.refresh),this.registerHooks(s,s.eventTypes.translate,(function(e){var n=t.keysMap.hasScroll;t.scroll[n]&&t.updatePosition(e)})),this.registerHooks(l,l.eventTypes.time,this.transitionTime),this.registerHooks(l,l.eventTypes.timeFunction,this.transitionTimingFunction),n&&(this.registerHooks(o,o.eventTypes.scrollEnd,(function(){t.fade()})),this.registerHooks(o,o.eventTypes.scrollStart,(function(){t.fade(!0)})),o.eventTypes.mousewheelStart&&o.eventTypes.mousewheelEnd&&(this.registerHooks(o,o.eventTypes.mousewheelStart,(function(){t.fade(!0)})),this.registerHooks(o,o.eventTypes.mousewheelMove,(function(){t.fade(!0)})),this.registerHooks(o,o.eventTypes.mousewheelEnd,(function(){t.fade()})))),i){var c=this.scroll.options,u=c.disableMouse,h=c.disableTouch;this.eventHandler=new RE(this,{disableMouse:u,disableTouch:h});var p=this.eventHandler.hooks;this.registerHooks(p,p.eventTypes.touchStart,this.startHandler),this.registerHooks(p,p.eventTypes.touchMove,this.moveHandler),this.registerHooks(p,p.eventTypes.touchEnd,this.endHandler)}r&&this.bindClick()},t.prototype.registerHooks=function(t,e,n){t.on(e,n,this),this.hooksFn.push([t,e,n])},t.prototype.bindClick=function(){var t=this.wrapper;this.clickEventRegister=new iE(t,[{name:"click",handler:this.handleClick.bind(this)}])},t.prototype.handleClick=function(t){var e=this.calculateclickOffsetPos(t),n=this.scroll,i=n.x,r=n.y;i="horizontal"===this.direction?e:i,r="vertical"===this.direction?e:r,this.scroll.scrollTo(i,r,this.options.scrollbarTrackOffsetTime)},t.prototype.calculateclickOffsetPos=function(t){var e=this.keysMap,n=e.point,i=e.domRect,r=this.options.scrollbarTrackOffsetType,o=t[n]-this.wrapperRect[i],a=oa?c=a+o-(n=Math.max(o-3*(c-a),l)):n=o,{pos:c,size:n}},t.prototype.refreshStyle=function(t,e){var n=this.keysMap,i=n.translateProperty,r=n.size,o=this.scroll.options.translateZ;this.indicatorEl.style[r]=t+"px",this.indicatorEl.style[VP.transform]=i+"("+e+"px)"+o},t.prototype.startHandler=function(){this.moved=!1,this.startTime=SP(),this.transitionTime(),this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.beforeScrollStart)},t.prototype.moveHandler=function(t){if(this.moved||this.indicatorNotMoved(t)||(this.moved=!0,this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollStart)),this.moved){var e=this.newPos(this.currentPos,t,this.scrollInfo);this.syncBScroll(e)}},t.prototype.endHandler=function(){if(this.moved){var t=this.scroll,e=t.x,n=t.y;this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollEnd,{x:e,y:n})}},t.prototype.indicatorNotMoved=function(t){var e=this.currentPos,n=this.scrollInfo,i=n.maxScrollPos;return e===n.minScrollPos&&t<=0||e===i&&t>=0},t.prototype.syncBScroll=function(t){var e=SP(),n=this.scroll,i=n.x,r=n.y,o=n.options,a=n.scroller,s=n.maxScrollY,l=n.minScrollY,c=n.maxScrollX,u=n.minScrollX,h=o.probeType,p=o.momentumLimitTime,d={x:i,y:r};"vertical"===this.direction?d.y=CP(t,s,l):d.x=CP(t,c,u),a.translater.translate(d),e-this.startTime>p&&(this.startTime=e,1===h&&a.hooks.trigger(a.hooks.eventTypes.scroll,d)),h>1&&a.hooks.trigger(a.hooks.eventTypes.scroll,d)},t.prototype.newPos=function(t,e,n){var i=n.maxScrollPos,r=n.sizeRatio,o=t+e;return o=CP(o,n.minScrollPos,i),Math.round(o/r)},t.prototype.destroy=function(){var t=this.options,e=t.interactive,n=t.scrollbarTrackClickable,i=t.isCustom;e&&this.eventHandler.destroy(),n&&this.clickEventRegister.destroy(),i||this.wrapper.parentNode.removeChild(this.wrapper),this.hooksFn.forEach((function(t){var e=t[0],n=t[1],i=t[2];e.off(n,i)})),this.hooksFn.length=0},t}(),BE=function(){function t(t){this.scroll=t,this.handleOptions(),this.createIndicators(),this.handleHooks()}return t.prototype.handleHooks=function(){var t=this,e=this.scroll;e.hooks.on(e.hooks.eventTypes.destroy,(function(){for(var e=0,n=t.indicators;e=this.pages[n][0].cx);n++);for(r=this.pages[n]?this.pages[n].length:0;i=this.pages[0][i].cy);i++);return{pageX:n,pageY:i}},t.prototype.buildPagesMatrix=function(t,e){var n,i,r,o,a=[],s=0,l=0,c=this.scroll.scroller.scrollBehaviorX.maxScrollPos,u=this.scroll.scroller.scrollBehaviorY.maxScrollPos;for(i=Math.round(t/2),r=Math.round(e/2);s>-this.scrollerWidth;){for(a[l]=[],o=0,n=0;n>-this.scrollerHeight;)a[l][o]={x:Math.max(s,c),y:Math.max(n,u),width:t,height:e,cx:s-i,cy:n-r},n-=e,o++;s-=t,l++}return a},t}(),VE=function(){function t(t,e){this.scroll=t,this.slideOptions=e,this.slideX=!1,this.slideY=!1,this.currentPage=kP({},zE)}return t.prototype.refresh=function(){this.pagesMatrix=new HE(this.scroll),this.checkSlideLoop(),this.currentPage=this.getAdjustedCurrentPage()},t.prototype.getAdjustedCurrentPage=function(){var t=this.currentPage,e=t.pageX,n=t.pageY;e=Math.min(e,this.pagesMatrix.pageLengthOfX-1),n=Math.min(n,this.pagesMatrix.pageLengthOfY-1),this.loopX&&(e=Math.min(e,this.pagesMatrix.pageLengthOfX-2)),this.loopY&&(n=Math.min(n,this.pagesMatrix.pageLengthOfY-2));var i=this.pagesMatrix.getPageStats(e,n);return{pageX:e,pageY:n,x:i.x,y:i.y}},t.prototype.setCurrentPage=function(t){this.currentPage=t},t.prototype.getInternalPage=function(t,e){t>=this.pagesMatrix.pageLengthOfX?t=this.pagesMatrix.pageLengthOfX-1:t<0&&(t=0),e>=this.pagesMatrix.pageLengthOfY?e=this.pagesMatrix.pageLengthOfY-1:e<0&&(e=0);var n=this.pagesMatrix.getPageStats(t,e);return{pageX:t,pageY:e,x:n.x,y:n.y}},t.prototype.getInitialPage=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=this.slideOptions,i=n.startPageXIndex,r=n.startPageYIndex,o=this.loopX?1:0,a=this.loopY?1:0,s=t?o:this.currentPage.pageX,l=t?a:this.currentPage.pageY;e?(s=this.loopX?i+1:i,l=this.loopY?r+1:r):(s=t?o:this.currentPage.pageX,l=t?a:this.currentPage.pageY);var c=this.pagesMatrix.getPageStats(s,l);return{pageX:s,pageY:l,x:c.x,y:c.y}},t.prototype.getExposedPage=function(t){var e=kP({},t);return this.loopX&&(e.pageX=this.fixedPage(e.pageX,this.pagesMatrix.pageLengthOfX-2)),this.loopY&&(e.pageY=this.fixedPage(e.pageY,this.pagesMatrix.pageLengthOfY-2)),e},t.prototype.getExposedPageByPageIndex=function(t,e){var n={pageX:t,pageY:e};this.loopX&&(n.pageX=t+1),this.loopY&&(n.pageY=e+1);var i=this.pagesMatrix.getPageStats(n.pageX,n.pageY);return{x:i.x,y:i.y,pageX:t,pageY:e}},t.prototype.getWillChangedPage=function(t){return t=kP({},t),this.loopX&&(t.pageX=this.fixedPage(t.pageX,this.pagesMatrix.pageLengthOfX-2),t.x=this.pagesMatrix.getPageStats(t.pageX+1,0).x),this.loopY&&(t.pageY=this.fixedPage(t.pageY,this.pagesMatrix.pageLengthOfY-2),t.y=this.pagesMatrix.getPageStats(0,t.pageY+1).y),t},t.prototype.fixedPage=function(t,e){for(var n=[],i=0;i1?this.slideX=!0:this.slideX=!1,this.pagesMatrix.pages[0]&&this.pagesMatrix.pageLengthOfY>1?this.slideY=!0:this.slideY=!1,this.loopX=this.wannaLoop&&this.slideX,this.loopY=this.wannaLoop&&this.slideY,this.slideX&&this.slideY&&fP("slide does not support two direction at the same time.")},t}(),UE=[{key:"next",name:"next"},{key:"prev",name:"prev"},{key:"goToPage",name:"goToPage"},{key:"getCurrentPage",name:"getCurrentPage"},{key:"startPlay",name:"startPlay"},{key:"pausePlay",name:"pausePlay"}].map((function(t){return{key:t.key,sourceKey:"plugins.slide."+t.name}})),GE=function(){function t(t){this.scroll=t,this.cachedClonedPageDOM=[],this.resetLooping=!1,this.autoplayTimer=0,this.satisfyInitialization()&&this.init()}return t.prototype.satisfyInitialization=function(){return!(this.scroll.scroller.content.children.length<=0)||(fP("slide need at least one slide page to be initialised.please check your DOM layout."),!1)},t.prototype.init=function(){this.willChangeToPage=kP({},zE),this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.createPages()},t.prototype.createPages=function(){this.pages=new VE(this.scroll,this.options)},t.prototype.handleBScroll=function(){this.scroll.registerType(["slideWillChange","slidePageChanged"]),this.scroll.proxy(UE)},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.slide?{}:this.scroll.options.slide,e={loop:!0,threshold:.1,speed:400,easing:qP.bounce,listenFlick:!0,autoplay:!0,interval:3e3,startPageXIndex:0,startPageYIndex:0};this.options=kP(e,t)},t.prototype.handleLoop=function(t){var e=this.options.loop,n=this.scroll.scroller.content,i=n.children.length;e&&(n!==t?(this.resetLoopChangedStatus(),this.removeClonedSlidePage(t),i>1&&this.cloneFirstAndLastSlidePage(n)):3===i&&this.initialised?(this.removeClonedSlidePage(n),this.moreToOnePageInLoop=!0,this.oneToMorePagesInLoop=!1):i>1?(this.initialised&&0===this.cachedClonedPageDOM.length?(this.oneToMorePagesInLoop=!0,this.moreToOnePageInLoop=!1):(this.removeClonedSlidePage(n),this.resetLoopChangedStatus()),this.cloneFirstAndLastSlidePage(n)):this.resetLoopChangedStatus())},t.prototype.resetLoopChangedStatus=function(){this.moreToOnePageInLoop=!1,this.oneToMorePagesInLoop=!1},t.prototype.handleHooks=function(){var t=this,e=this.scroll.hooks,n=this.scroll.scroller.hooks,i=this.options.listenFlick;this.prevContent=this.scroll.scroller.content,this.hooksFn=[],this.registerHooks(this.scroll,this.scroll.eventTypes.beforeScrollStart,this.pausePlay),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollEnd,this.modifyCurrentPage),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollEnd,this.startPlay),this.scroll.eventTypes.mousewheelMove&&(this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelMove,(function(){return!0})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(e){1!==e.directionX&&1!==e.directionY||t.next(),-1!==e.directionX&&-1!==e.directionY||t.prev()}))),this.registerHooks(e,e.eventTypes.refresh,this.refreshHandler),this.registerHooks(e,e.eventTypes.destroy,this.destroy),this.registerHooks(n,n.eventTypes.beforeRefresh,(function(){t.handleLoop(t.prevContent),t.setSlideInlineStyle()})),this.registerHooks(n,n.eventTypes.momentum,this.modifyScrollMetaHandler),this.registerHooks(n,n.eventTypes.scroll,this.scrollHandler),this.registerHooks(n,n.eventTypes.checkClick,this.startPlay),i&&this.registerHooks(n,n.eventTypes.flick,this.flickHandler)},t.prototype.startPlay=function(){var t=this,e=this.options,n=e.interval;e.autoplay&&(clearTimeout(this.autoplayTimer),this.autoplayTimer=window.setTimeout((function(){t.next()}),n))},t.prototype.pausePlay=function(){this.options.autoplay&&clearTimeout(this.autoplayTimer)},t.prototype.setSlideInlineStyle=function(){var t=this.scroll.scroller,e=t.content,n=t.wrapper,i=this.scroll.options;[{direction:"scrollX",sizeType:"offsetWidth",styleType:"width"},{direction:"scrollY",sizeType:"offsetHeight",styleType:"height"}].forEach((function(t){var r=t.direction,o=t.sizeType,a=t.styleType;if(i[r]){for(var s=n[o],l=e.children,c=l.length,u=0;u0?o.contentSize/t.items.length:0,e.maxScrollPos=-t.itemHeight*(t.items.length-1),e.minScrollPos=0})),o.hooks.on(o.hooks.eventTypes.momentum,(function(e){e.rate=XE,e.destination=t.findNearestValidWheel(e.destination).y})),o.hooks.on(o.hooks.eventTypes.end,(function(e){var n=t.findNearestValidWheel(o.currentPos);e.destination=n.y,e.duration=t.options.adjustTime})),a.hooks.on(a.hooks.eventTypes.time,(function(e){t.transitionDuration(e)})),a.hooks.on(a.hooks.eventTypes.timeFunction,(function(e){t.timeFunction(e)})),a.hooks.on(a.hooks.eventTypes.callStop,(function(){var e=t.findNearestValidWheel(t.scroll.y).index;t.isAdjustingPosition=!0,t.wheelTo(e,0)})),a.translater.hooks.on(a.translater.hooks.eventTypes.translate,(function(e){t.rotateX(e.y)}))},t.prototype.refreshBoundary=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,n=t.scrollBehaviorY,i=t.content;e.refresh(i),n.refresh(i)},t.prototype.setSelectedIndex=function(t,e){void 0===e&&(e=!1);var n=this.selectedIndex;this.selectedIndex=t,n===t||e||this.scroll.trigger(YE,t)},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.wheelTo=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0);var i=-t*this.itemHeight;this.scroll.scrollTo(0,i,e,n)},t.prototype.restorePosition=function(){if(this.scroll.pending){var t=this.getSelectedIndex();this.scroll.scroller.animater.clearTimer(),this.wheelTo(t,0)}},t.prototype.transitionDuration=function(t){for(var e=0;e0?0:t=0&&$P(i[e],r);)e--;if(e<0)for(e=n;e<=i.length-1&&$P(i[e],r);)e++;return e===i.length&&(e=n),{index:this.wheelItemsAllDisabled?-1:e,y:-e*this.itemHeight}},t.prototype.checkWheelAllDisabled=function(){var t=this.options.wheelDisabledItemClass,e=this.items;this.wheelItemsAllDisabled=!0;for(var n=0;n0){var t,e=SP(),i=e+n;!function o(){var a=SP();if(a>=i)return r.scroll.trigger(r.scroll.eventTypes.zooming,{scale:c}),void JP(t);var s=qP.bounce.fn((a-e)/n)*(c-l)+l;r.scroll.trigger(r.scroll.eventTypes.zooming,{scale:s}),t=QP(o)}()}}else r.scroll.trigger(r.scroll.eventTypes.zooming,{scale:c})}(),this.fingersOperation(2),this._zoomTo(c,l,e,n,i)},t.prototype._zoomTo=function(t,e,n,i,r){void 0===r&&(r=!1);var o=t/n.baseScale;this.setScale(t);var a=this.scroll.scroller,s=a.scrollBehaviorX,l=a.scrollBehaviorY;this.resetBoundaries([s,l]);var c=this.getNewPos(n.x,o,s,!0,r),u=this.getNewPos(n.y,o,l,!0,r);s.currentPos===Math.round(c)&&l.currentPos===Math.round(u)&&t===e||a.scrollTo(c,u,i,qP.bounce,{start:{scale:e},end:{scale:t}})},t.prototype.resolveOrigin=function(t,e){var n=this.scroll.scroller,i=n.scrollBehaviorX,r=n.scrollBehaviorY,o={left:function(){return 0},top:function(){return 0},right:function(){return i.contentSize},bottom:function(){return r.contentSize},center:function(t){return(0===t?i.contentSize:r.contentSize)/2}};return{originX:"number"===typeof t?t:o[t](0),originY:"number"===typeof e?e:o[e](1)}},t.prototype.zoomStart=function(t){var e=t.touches[0],n=t.touches[1];this.startDistance=this.getFingerDistance(t),this.startScale=this.scale;var i=function(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}(this.wrapper),r=i.left,o=i.top;this.origin={x:Math.abs(e.pageX+n.pageX)/2+r-this.scroll.x,y:Math.abs(e.pageY+n.pageY)/2+o-this.scroll.y,baseScale:this.startScale},this.scroll.trigger(this.scroll.eventTypes.beforeZoomStart)},t.prototype.zoom=function(t){var e=this.getFingerDistance(t);if(this.zoomed||!(Math.abs(e-this.startDistance)i&&(t=2*i*Math.pow(.5,i/t)),t},t.prototype.setScale=function(t){this.scale=t},t.prototype.resetBoundaries=function(t){t.forEach((function(t){return t.computeBoundary()}))},t.prototype.getNewPos=function(t,e,n,i,r){void 0===r&&(r=!1);var o=t-t*e+(r?n.currentPos:n.startPos);return i&&(o=CP(o,n.maxScrollPos,n.minScrollPos)),o>0?Math.floor(o):Math.ceil(o)},t.prototype.registerHooks=function(t,e,n){t.on(e,n,this),this.hooksFn.push([t,e,n])},t.prototype.destroy=function(){this.hooksFn.forEach((function(t){var e=t[0],n=t[1],i=t[2];e.off(n,i)})),this.hooksFn.length=0},t.pluginName="zoom",t}(),KE=function(){function t(t){this.ancestors=[],this.descendants=[],this.hooksManager=[],this.analyzed=!1,this.selfScroll=t}return t.create=function(e){return new t(e)},t.prototype.hasAncestors=function(t){return OP(this.ancestors,(function(e){return e[0]===t}))>-1},t.prototype.hasDescendants=function(t){return OP(this.descendants,(function(e){return e[0]===t}))>-1},t.prototype.addAncestor=function(t,e){var n=this.ancestors;n.push([t,e]),n.sort((function(t,e){return t[1]-e[1]}))},t.prototype.addDescendant=function(t,e){var n=this.descendants;n.push([t,e]),n.sort((function(t,e){return t[1]-e[1]}))},t.prototype.removeAncestor=function(t){var e=this.ancestors;if(e.length){var n=OP(this.ancestors,(function(e){return e[0]===t}));if(n>-1)return e.splice(n,1)}},t.prototype.removeDescendant=function(t){var e=this.descendants;if(e.length){var n=OP(this.descendants,(function(e){return e[0]===t}));if(n>-1)return e.splice(n,1)}},t.prototype.registerHooks=function(t,e,n){t.on(e,n),this.hooksManager.push([t,e,n])},t.prototype.setAnalyzed=function(t){void 0===t&&(t=!1),this.analyzed=t},t.prototype.purge=function(){var t=this;this.ancestors.forEach((function(e){e[0].removeDescendant(t)})),this.descendants.forEach((function(e){e[0].removeAncestor(t)})),this.hooksManager.forEach((function(t){var e=t[0],n=t[1],i=t[2];e.off(n,i)})),this.hooksManager=[]},t}(),QE=[{key:"purgeNestedScroll",name:"purgeNestedScroll"}].map((function(t){return{key:t.key,sourceKey:"plugins.nestedScroll."+t.name}})),JE=function(t){t.forEach((function(t){t.enable()}))},tL=function(t,e){t.forEach((function(t){t.hasHorizontalScroll!==e.hasHorizontalScroll&&t.hasVerticalScroll!==e.hasVerticalScroll||t.disable()}))},eL=function(t,e){for(var n=0,i=t.parentNode;i&&i!==e;)n++,i=i.parentNode;return n},nL=function(){function t(e){var n=this.handleOptions(e),i=t.instancesMap[n];return i||((i=t.instancesMap[n]=this).store=[],i.hooksFn=[]),i.init(e),i}return t.getAllNestedScrolls=function(){var e=t.instancesMap;return Object.keys(e).map((function(t){return e[t]}))},t.purgeAllNestedScrolls=function(){t.getAllNestedScrolls().forEach((function(t){return t.purgeNestedScroll()}))},t.prototype.handleOptions=function(t){var e=!0===t.options.nestedScroll?{}:t.options.nestedScroll,n={groupId:"INTERNAL_NESTED_SCROLL"};this.options=kP(n,e);var i=typeof this.options.groupId;return"string"!==i&&"number"!==i&&fP("groupId must be string or number for NestedScroll plugin"),this.options.groupId},t.prototype.init=function(t){t.proxy(QE),this.addBScroll(t),this.buildBScrollGraph(),this.analyzeBScrollGraph(),this.ensureEventInvokeSequence(),this.handleHooks(t)},t.prototype.handleHooks=function(t){var e=this;this.registerHooks(t.hooks,t.hooks.eventTypes.destroy,(function(){e.deleteScroll(t)}))},t.prototype.deleteScroll=function(t){t.wrapper.isBScrollContainer=void 0;var e=this.store,n=this.hooksFn,i=OP(e,(function(e){return e.selfScroll===t}));i>-1&&(e[i].purge(),e.splice(i,1));var r=OP(n,(function(e){return e[0]===t.hooks}));if(r>-1){var o=n[r],a=o[0],s=o[1],l=o[2];a.off(s,l),n.splice(r,1)}},t.prototype.addBScroll=function(t){this.store.push(KE.create(t))},t.prototype.buildBScrollGraph=function(){for(var t,e,n,i,r=this.store,o=this.store.length,a=0;as||ro||i=s&&-1===u||r<=l&&1===u:e&&(h=i>=o&&-1===c||i<=a&&1===c),h}(i))return tL([i],i),n&&JE([n]),tL(r,i),!0})),t.setAnalyzed(!0)}}))},t.prototype.ensureEventInvokeSequence=function(){this.store.slice().sort((function(t,e){return t.descendants.length-e.descendants.length})).forEach((function(t){t.selfScroll.scroller.actionsHandler.rebindDOMEvents()}))},t.prototype.registerHooks=function(t,e,n){t.on(e,n,this),this.hooksFn.push([t,e,n])},t.prototype.purgeNestedScroll=function(){var e=this.options.groupId;this.store.forEach((function(t){t.purge()})),this.store=[],this.hooksFn.forEach((function(t){var e=t[0],n=t[1],i=t[2];e.off(n,i)})),this.hooksFn=[],delete t.instancesMap[e]},t.pluginName="nestedScroll",t.instancesMap={},t}(),iL=function(){function t(t,e){this.wrapperHeight=t,this.tombstoneHeight=e,this.lastDirection=1,this.lastPos=0}return t.prototype.calculate=function(t,e){var n=t-this.lastPos;this.lastPos=t;var i=this.getDirection(n),r=this.calculateIndex(0,t,e),o=this.calculateIndex(r,t+this.wrapperHeight,e);return 1===i?(r-=10,o+=30):(r-=30,o+=10),r<0&&(r=0),{start:r,end:o}},t.prototype.getDirection=function(t){var e;if(t>0)e=1;else{if(!(t<0))return this.lastDirection;e=0}return this.lastDirection=e,e},t.prototype.calculateIndex=function(t,e,n){if(e<=0)return t;for(var i=t,r=n[i]&&-1!==n[i].pos?n[i].pos:0,o=0;ithis.list.length&&(e=t-this.list.length,this.addEmptyData(e)),[2,this.checkToFetch(t)]}))}))},t.prototype.add=function(t){for(var e=0;e=t.length&&(e=t.length-1),n>t.length&&(n=t.length),this.collectUnusedDom(t,e,n),this.createDom(t,e,n),this.cacheHeight(t,e,n);var i=this.positionDom(t,e,n);return{start:e,startPos:i.startPos,startDelta:i.startDelta,end:n,endPos:i.endPos}},t.prototype.collectUnusedDom=function(t,e,n){for(var i=0;ie;)i-=t[s-1].height,s--;return{start:i,delta:a-i}},t.prototype.removeTombstone=function(){for(var t=this.content.querySelectorAll(".tombstone"),e=t.length-1;e>=0;e--)this.content.removeChild(t[e])},t.prototype.setContent=function(t){t!==this.content&&(this.content=t)},t.prototype.destroy=function(){this.removeTombstone(),this.timers.forEach((function(t){clearTimeout(t)}))},t.prototype.resetState=function(){this.destroy(),this.timers=[],this.unusedDom=[]},t}(),lL=function(){function t(t){this.scroll=t,this.start=0,this.end=0,this.init()}return t.prototype.init=function(){var t=this;this.handleOptions();var e=this.options,n=e.fetch,i=e.render,r=e.createTombstone;this.tombstone=new aL(r),this.indexCalculator=new iL(this.scroll.scroller.scrollBehaviorY.wrapperSize,this.tombstone.height),this.domManager=new sL(this.scroll.scroller.content,i,this.tombstone),this.dataManager=new oL([],n,this.onFetchFinish.bind(this)),this.scroll.on(this.scroll.eventTypes.destroy,this.destroy,this),this.scroll.on(this.scroll.eventTypes.scroll,this.update,this),this.scroll.on(this.scroll.eventTypes.contentChanged,(function(e){t.domManager.setContent(e),t.indexCalculator.resetState(),t.domManager.resetState(),t.dataManager.resetState(),t.update({y:0})}));var o=this.scroll.scroller.scrollBehaviorY;o.hooks.on(o.hooks.eventTypes.computeBoundary,this.modifyBoundary,this),this.update({y:0})},t.prototype.modifyBoundary=function(t){t.maxScrollPos=-2e3},t.prototype.handleOptions=function(){var t=this.scroll.options.infinity;t&&("function"!==typeof t.fetch&&fP("Infinity plugin need fetch Function to new data."),"function"!==typeof t.render&&fP("Infinity plugin need render Function to render each item."),"function"!==typeof t.render&&fP("Infinity plugin need createTombstone Function to create tombstone."),this.options=t),this.scroll.options.probeType=3},t.prototype.update=function(t){var e=Math.round(-t.y),n=this.indexCalculator.calculate(e,this.dataManager.getList()),i=n.start,r=n.end;this.start=i,this.end=r,this.dataManager.update(r),this.updateDom(this.dataManager.getList())},t.prototype.onFetchFinish=function(t,e){var n=this.updateDom(t).end;return e||(this.domManager.removeTombstone(),this.scroll.scroller.animater.stop(),this.scroll.resetPosition()),n},t.prototype.updateDom=function(t){var e=this.domManager.update(t,this.start,this.end),n=e.end,i=e.startPos,r=e.endPos,o=e.startDelta;return o&&(this.scroll.minScrollY=o),r>this.scroll.maxScrollY&&(this.scroll.maxScrollY=-(r-this.scroll.scroller.scrollBehaviorY.wrapperSize)),{end:n,startPos:i,endPos:r}},t.prototype.destroy=function(){for(var t=this.scroll.scroller,e=t.content,n=t.scrollBehaviorY;e.firstChild;)e.removeChild(e.firstChild);this.domManager.destroy(),this.scroll.off("scroll",this.update),this.scroll.off("destroy",this.destroy),n.hooks.off(n.hooks.eventTypes.computeBoundary)},t.pluginName="infinity",t}(),cL=[{key:"putAt",name:"putAt"}].map((function(t){return{key:t.key,sourceKey:"plugins.movable."+t.name}})),uL=function(){function t(t){this.scroll=t,this.handleBScroll(),this.handleHooks()}return t.prototype.handleBScroll=function(){this.scroll.proxy(cL)},t.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller,n=e.scrollBehaviorX,i=e.scrollBehaviorY,r=function(t,e){t.maxScrollPos>0&&(t.minScrollPos=e.wrapperSize-e.contentSize,t.maxScrollPos=0)};this.registerHooks(n.hooks,n.hooks.eventTypes.ignoreHasScroll,(function(){return!0})),this.registerHooks(n.hooks,n.hooks.eventTypes.computeBoundary,(function(t){r(t,n)})),this.registerHooks(i.hooks,i.hooks.eventTypes.ignoreHasScroll,(function(){return!0})),this.registerHooks(i.hooks,i.hooks.eventTypes.computeBoundary,(function(t){r(t,i)})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.destroy,(function(){t.destroy()}))},t.prototype.putAt=function(t,e,n,i){void 0===n&&(n=this.scroll.options.bounceTime),void 0===i&&(i=qP.bounce);var r=this.resolvePostion(t,e);this.scroll.scrollTo(r.x,r.y,n,i)},t.prototype.resolvePostion=function(t,e){var n=this.scroll.scroller,i=n.scrollBehaviorX,r=n.scrollBehaviorY,o={left:function(){return 0},top:function(){return 0},right:function(){return i.minScrollPos},bottom:function(){return r.minScrollPos},center:function(t){return(0===t?i.minScrollPos:r.minScrollPos)/2}};return{x:"number"===typeof t?t:o[t](0),y:"number"===typeof e?e:o[e](1)}},t.prototype.destroy=function(){this.hooksFn.forEach((function(t){var e=t[0],n=t[1],i=t[2];e.off(n,i)})),this.hooksFn.length=0},t.prototype.registerHooks=function(t,e,n){t.on(e,n,this),this.hooksFn.push([t,e,n])},t.pluginName="movable",t.applyOrder="pre",t}(),hL=function(){function t(t){this.scroll=t,this.refreshTimer=0,this.init()}return t.prototype.init=function(){this.handleOptions(this.scroll.options.observeImage),this.bindEventsToWrapper()},t.prototype.handleOptions=function(t){void 0===t&&(t={}),t=!0===t?{}:t;this.options=kP({debounceTime:100},t)},t.prototype.bindEventsToWrapper=function(){var t=this.scroll.scroller.wrapper;this.imageLoadEventRegister=new iE(t,[{name:"load",handler:this.load.bind(this),capture:!0}]),this.imageErrorEventRegister=new iE(t,[{name:"error",handler:this.load.bind(this),capture:!0}])},t.prototype.load=function(t){var e=this,n=t.target,i=this.options.debounceTime;n&&"img"===n.tagName.toLowerCase()&&(0===i?this.scroll.refresh():(clearTimeout(this.refreshTimer),this.refreshTimer=window.setTimeout((function(){e.scroll.refresh()}),this.options.debounceTime)))},t.pluginName="observeImage",t}(),pL=function(t){LP(t),t.stopPropagation()},dL=function(){function t(t,e){this.scroll=t,this.options=e,this.currentPos={x:0,y:0},this.hooksFn=[],this.handleDOM(),this.handleHooks(),this.handleInteractive()}return t.prototype.handleDOM=function(){var t=this.options,e=t.relationElement,n=t.relationElementHandleElementIndex,i=void 0===n?0:n;this.wrapper=e,this.indicatorEl=this.wrapper.children[i]},t.prototype.handleHooks=function(){var t=this,e=this.scroll,n=e.hooks,i=e.scroller.translater.hooks,r=e.scroller.animater.hooks;this.registerHooks(n,n.eventTypes.refresh,this.refresh),this.registerHooks(i,i.eventTypes.translate,(function(e){t.updatePosition(e)})),this.registerHooks(r,r.eventTypes.time,this.transitionTime),this.registerHooks(r,r.eventTypes.timeFunction,this.transitionTimingFunction)},t.prototype.transitionTime=function(t){void 0===t&&(t=0),this.indicatorEl.style[VP.transitionDuration]=t+"ms"},t.prototype.transitionTimingFunction=function(t){this.indicatorEl.style[VP.transitionTimingFunction]=t},t.prototype.handleInteractive=function(){!1!==this.options.interactive&&this.registerEvents()},t.prototype.registerHooks=function(t,e,n){t.on(e,n,this),this.hooksFn.push([t,e,n])},t.prototype.registerEvents=function(){var t=this.scroll.options,e=t.disableMouse,n=t.disableTouch,i=[],r=[],o=[];e||(i.push({name:"mousedown",handler:this.start.bind(this)}),r.push({name:"mousemove",handler:this.move.bind(this)}),o.push({name:"mouseup",handler:this.end.bind(this)})),n||(i.push({name:"touchstart",handler:this.start.bind(this)}),r.push({name:"touchmove",handler:this.move.bind(this)}),o.push({name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),this.startEventRegister=new iE(this.indicatorEl,i),this.moveEventRegister=new iE(window,r),this.endEventRegister=new iE(window,o)},t.prototype.refresh=function(){var t,e=this.scroll,n=e.x,i=e.y,r=e.hasHorizontalScroll,o=e.hasVerticalScroll,a=e.maxScrollX,s=e.maxScrollY,l=function(t){var e={ratioX:0,ratioY:0};return t?("number"===typeof t?e.ratioX=e.ratioY=t:"object"===typeof t&&t&&(e.ratioX=t.x||0,e.ratioY=t.y||0),e):e}(this.options.ratio),c=l.ratioX,u=l.ratioY,h={width:(t=this.wrapper).clientWidth,height:t.clientHeight},p=h.width,d=h.height,f=GP(this.indicatorEl),g=f.width,v=f.height;r&&(this.maxScrollX=p-g,this.translateXSign=this.maxScrollX>0?-1:1,this.minScrollX=0,this.ratioX=c||Math.abs(this.maxScrollX/a)),o&&(this.maxScrollY=d-v,this.translateYSign=this.maxScrollY>0?-1:1,this.minScrollY=0,this.ratioY=u||Math.abs(this.maxScrollY/s)),this.updatePosition({x:n,y:i})},t.prototype.start=function(t){if(!this.BScrollIsDisabled()){var e=t.touches?t.touches[0]:t;pL(t),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=SP(),this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.beforeScrollStart)}},t.prototype.BScrollIsDisabled=function(){return!this.scroll.enabled},t.prototype.move=function(t){if(this.initiated){var e=t.touches?t.touches[0]:t,n=e.pageX,i=e.pageY;pL(t);var r=n-this.lastPointX,o=i-this.lastPointY;if(this.lastPointX=n,this.lastPointY=i,this.moved||this.indicatorNotMoved(r,o)||(this.moved=!0,this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollStart)),this.moved){var a=this.getBScrollPosByRatio(this.currentPos,r,o);this.syncBScroll(a)}}},t.prototype.end=function(t){if(this.initiated&&(this.initiated=!1,pL(t),this.moved)){var e=this.scroll,n=e.x,i=e.y;this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollEnd,{x:n,y:i})}},t.prototype.getBScrollPosByRatio=function(t,e,n){var i=t.x,r=t.y,o=this.scroll,a=o.hasHorizontalScroll,s=o.hasVerticalScroll,l=o.minScrollX,c=o.maxScrollX,u=o.minScrollY,h=o.maxScrollY,p=this.scroll,d=p.x,f=p.y;if(a){var g=CP(i+e,Math.min(this.minScrollX,this.maxScrollX),Math.max(this.minScrollX,this.maxScrollX));d=CP(Math.round(g/this.ratioX*this.translateXSign),c,l)}if(s){var v=CP(r+n,Math.min(this.minScrollY,this.maxScrollY),Math.max(this.minScrollY,this.maxScrollY));f=CP(Math.round(v/this.ratioY*this.translateYSign),h,u)}return{x:d,y:f}},t.prototype.indicatorNotMoved=function(t,e){var n=this.currentPos,i=n.x,r=n.y,o=i===this.minScrollX&&t<=0||i===this.maxScrollX&&t>=0,a=r===this.minScrollY&&e<=0||r===this.maxScrollY&&e>=0;return o&&a},t.prototype.syncBScroll=function(t){var e=SP(),n=this.scroll,i=n.options,r=n.scroller,o=i.probeType,a=i.momentumLimitTime;r.translater.translate(t),e-this.startTime>a&&(this.startTime=e,1===o&&r.hooks.trigger(r.hooks.eventTypes.scroll,t)),o>1&&r.hooks.trigger(r.hooks.eventTypes.scroll,t)},t.prototype.updatePosition=function(t){var e=this.getIndicatorPosByRatio(t);this.applyTransformProperty(e),this.currentPos=cP({},e)},t.prototype.applyTransformProperty=function(t){var e=this.scroll.options.translateZ,n=["translateX("+t.x+"px)","translateY("+t.y+"px)",""+e];this.indicatorEl.style[VP.transform]=n.join(" ")},t.prototype.getIndicatorPosByRatio=function(t){var e=t.x,n=t.y,i=this.scroll,r=i.hasHorizontalScroll,o=i.hasVerticalScroll,a=cP({},this.currentPos);if(r){var s=Math.round(this.ratioX*e*this.translateXSign);a.x=CP(s,Math.min(this.minScrollX,this.maxScrollX),Math.max(this.minScrollX,this.maxScrollX))}if(o){var l=Math.round(this.ratioY*n*this.translateYSign);a.y=CP(l,Math.min(this.minScrollY,this.maxScrollY),Math.max(this.minScrollY,this.maxScrollY))}return a},t.prototype.destroy=function(){!1!==this.options.interactive&&(this.startEventRegister.destroy(),this.moveEventRegister.destroy(),this.endEventRegister.destroy()),this.hooksFn.forEach((function(t){var e=t[0],n=t[1],i=t[2];e.off(n,i)})),this.hooksFn.length=0},t}(),fL=function(){function t(t){this.scroll=t,this.options=[],this.indicators=[],this.handleOptions(),this.handleHooks()}return t.prototype.handleOptions=function(){var t=this.scroll.options.indicators;gP(Array.isArray(t),"'indicators' must be an array.");for(var e=0,n=t;e50&&!t.isPullingDown&&((e.y-this.startY)/((new Date).getTime()-this.startTime)<.5&&this.startY<10&&(t.isPullingDown=!0))})),this.scroller.on("pullingDown",(function(){t.isPullingDown=!0,t.$emit("drawRefresh",t._closePullDown),t.__pullslideDown(6e3)})),this.scroller.on("scrollEnd",(function(){(t.startY||0-t.scroller.y>0)&&t.scroller.y<=t.scroller.maxScrollY+50&&t.reachBottom()}))},__pullslideDown:function(t){var e=this;this.slideDown&&clearTimeout(this.slideDown),this.slideDown=setTimeout((function(){e.scroller&&e.scroller.finishPullDown(),e.isPullingDown=!1}),t||900)},_closePullDown:function(){this.__pullslideDown()},scrollTo:function(){this.scroller&&this.scroller.scrollTo.apply(this.scroller,arguments)},enable:function(){this.scroller&&this.scroller.enable()},disable:function(){this.scroller&&this.scroller.disable()},refresh:function(){var t=this;t.refreshTimer&&clearTimeout(t.refreshTimer),t.refreshTimer=setTimeout((function(){t.scroller&&t.scroller.refresh()}),t.refreshDelay)},hideLoading:function(){this.loading=!1,this.hideLoadingTimer&&clearTimeout(this.hideLoadingTimer)},vscroll:function(t,e,n){var i=n.scrollTop||0;this.$emit("vscroll",i)},reachBottom:function(){var t=this;if(this.loading)return!1;this.loading=!0,this.$emit("reachBottom",this.hideLoading),this.hideLoadingTimer&&clearTimeout(this.hideLoadingTimer),this.hideLoadingTimer=setTimeout((function(){t.hideLoading()}),4e3)}}},yR=mR,_R=D(yR,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"pullref",staticClass:"scroll_load_warp",class:{scroll_load_wa:"svg"!==t.config.type,scroll_load_bt:t.data&&t.data.length}},[n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isPullingDown,expression:"isPullingDown"}],staticClass:"pull_loading_warp"},[n("pull-templ",{attrs:{config:t.config,upClass:t.upClass,loading:t.pullLoading,type:t.config.type,pullText:t.pullText}})],1),t._t("default"),t.config.hasloading?n("div",{staticClass:"scroll_loading_warp"},[n("loading",{attrs:{show:t.loading}})],1):t._e()],2)])}),[],!1,null,"61143fae",null),bR=_R.exports,wR={1:"#1E1E1E",2:"#1d0fff",3:"#258000",4:"#f40000",5:"#999"},xR=(gL=Ce()({components:{}}),vL=bn(Object),gL((yL=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o0){var e=t-0,n=Math.floor(e/60),i=e%60,r=i>9?i:"0".concat(i);return"".concat(n,"'").concat(r,'"')}return""}}]),n}(o.a),_L=ke(yL.prototype,"cardData",[vL],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mL=yL))||mL),SR=xR,kR=D(SR,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"live_section_row",class:"live_section_row_"+t.c_data.type},[n("h2",{staticClass:"live_section_timing"},[n("b",[t._v(t._s(t.c_data.liver.nickname||"\u76f4\u64ad\u5458")+" "+t._s(t.initTime(t.c_data.match.time)))]),t.c_data.match&&t.c_data.match.lscore&&t.c_data.match.rscore?n("span",{staticClass:"live_section_score"},[n("b",{class:{win:t.c_data.match.lscore-t.c_data.match.rscore>=0,loss:t.c_data.match.lscore-t.c_data.match.rscore<0}},[t._v(" "+t._s(t.c_data.match.lscore)+" ")]),t._v(" - "),n("b",{class:{win:t.c_data.match.rscore-t.c_data.match.lscore>=0,loss:t.c_data.match.rscore-t.c_data.match.lscore<0}},[t._v(" "+t._s(t.c_data.match.rscore)+" ")])]):t._e()]),t.c_data?n("p",{staticClass:"live_section_p"},[t.c_data.text&&"101"!==t.c_data.type&&"2"!==t.c_data.type&&t.c_data.l_wap?n("a",{style:{color:t.colorMap[t.c_data.color]},attrs:{href:t.c_data.l_wap}},[t._v(" "+t._s(t.c_data.text)+" ")]):t.c_data.text&&"101"!==t.c_data.type?n("span",{style:{color:t.colorMap[t.c_data.color]}},[t._v(" "+t._s(t.c_data.text)+" ")]):t._e()]):t._e(),t._t("default")],2)}),[],!1,null,"196ca928",null),TR=kR.exports,CR=(bL=Ce()({components:{CardTempl:TR}}),wL=bn(Object),bL((SL=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;on&&(n=t.percent,e)})),n}}]),n}(o.a),oj=ke(rj.prototype,"cardData",[nj],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ij=rj))||ij),ZR=D(qR,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("card-templ",{attrs:{cardData:t.cardData}},[t.cardData.vote?n("div",{staticClass:"textlive__media",class:"media_"+t.cardData.type},[n("p",{staticClass:"vote_title"},[t._v(t._s(t.cardData.text))]),n("div",{staticClass:"textlive__vote"},t._l(t.cardData.vote.options,(function(e,i){return n("div",{key:e.id||i,staticClass:"textlive__vb",class:{textlive__vb_ichoose:e.percent>=t.getIchoose(i,t.cardData.vote.options)}},[n("p",{staticClass:"textlive__vb-it"},[n("span",{staticClass:"textlive__vb-itl"},[t._v(t._s(e.text))]),n("span",{staticClass:"textlive__vb-itr"},[t._v(t._s(e.percent)+"%")])]),n("p",{staticClass:"textlive__vb-ip"},[n("span",{staticClass:"textlive__vb-ipin",style:{width:e.percent+"%"}})])])})),0)]):t._e()])}),[],!1,null,"60a94a1a",null),KR=ZR.exports,QR=(aj=Ce()({components:{}}),sj=bn({type:Boolean,default:!0}),lj=bn(Array),cj=bn({type:Number,default:0}),aj((hj=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=0,right_win:t.data.data[t.index].r_width[i]&&t.data.data[t.index].r_width[i]-t.data.data[t.index].l_width[i]>=0}},[n("h2",{staticClass:"pk_data_title"},[n("span",[t._v(t._s(t.data.data[t.index].l[i]))]),n("span",[t._v(t._s(e))]),n("span",[t._v(t._s(t.data.data[t.index].r[i]))])]),n("div",{staticClass:"flex_row bar"},[n("div",{staticClass:"flex_1"},[n("div",{staticClass:"pk_data_line",style:{width:t.data.data[t.index].l_width[i]&&t.data.data[t.index].l_width[i]+"%"}})]),n("div",{staticClass:"flex_1"},[n("div",{staticClass:"pk_data_line",style:{width:t.data.data[t.index].r_width[i]&&t.data.data[t.index].r_width[i]+"%"}})])])])}))],2)}),[],!1,null,"443a48ce",null),rN=iN.exports,oN=(xj=Ce()({components:{CardTable:tN,PkTempl:rN}}),Sj=bn(Object),kj=bn(String),xj((Cj=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o=jN:-l>=jN),p=l>0?l%jN:l%jN+jN,d=!1;d=!!h||!Object(Ou.j)(u)&&p>=LN===!!c;var f=t+n*EN(o),g=e+i*PN(o);this._start&&this._add("M",f,g);var v=Math.round(r*RN);if(h){var m=1/this._p,y=(c?1:-1)*(jN-m);this._add("A",n,i,v,1,+c,t+n*EN(o+y),e+i*PN(o+y)),m>.01&&this._add("A",n,i,v,0,+c,f,g)}else{var _=t+n*EN(a),b=e+i*PN(a);this._add("A",n,i,v,+d,+c,_,b)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var c=[],u=this._p,h=1;h"}(r,o)+("style"!==r?$l(a):a||"")+(i?""+n+Object(gl.H)(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function KN(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function QN(t,e,n,i){return qN("svg","root",{width:t,height:e,xmlns:GN,"xmlns:xlink":WN,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var JN={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tB="transform-origin";function eB(t,e,n){var i=Object(gl.m)({},t.shape);Object(gl.m)(i,e),t.buildPath(n,i);var r=new BN;return r.reset(Object(Ou.f)(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function nB(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[tB]=n+"px "+i+"px")}var iB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function rB(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function oB(t){return Object(gl.C)(t)?JN[t]?"cubic-bezier("+JN[t]+")":ku(t)?t:"":""}function aB(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof vx){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(Object(gl.k)(o,(function(t){var e=KN(n.zrId);e.animation=!0,aB(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Object(gl.F)(o),c=l.length;if(c){var u=o[r=l[c-1]];for(var h in u){var p=u[h];a[h]=a[h]||{d:""},a[h].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=rB(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},c=0;c0})).length)return rB(u,n)+" "+r[0]+" both"}for(var v in l){(s=g(l[v]))&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},e.class=m}}var sB=Math.round;function lB(t){return t&&Object(gl.C)(t.src)}function cB(t){return t&&Object(gl.w)(t.toDataURL)}function uB(t,e,n,i){UN((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(Ou.k)(o)?yB(e,t,r,i):a&&Object(Ou.n)(o)?_B(n,t,r,i):t[r]=o}),e,n,!1),function(t,e,n){var i=t.style;if(Object(Ou.i)(i)){var r=Object(Ou.h)(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=i.shadowOffsetX||0,h=i.shadowOffsetY||0,p=i.shadowBlur,d=Object(Ou.p)(i.shadowColor),f=d.opacity,g=d.color,v=p/2/l+" "+p/2/c;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=qN("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[qN("feDropShadow","",{dx:u/l,dy:h/c,stdDeviation:v,"flood-color":g,"flood-opacity":f})]),o[r]=a}e.filter=Object(Ou.d)(a)}}(n,t,i)}function hB(t){return Object(Ou.j)(t[0]-1)&&Object(Ou.j)(t[1])&&Object(Ou.j)(t[2])&&Object(Ou.j)(t[3]-1)}function pB(t,e,n){if(e&&(!function(t){return Object(Ou.j)(t[4])&&Object(Ou.j)(t[5])}(e)||!hB(e))){var i=n?10:1e4;t.transform=hB(e)?"translate("+sB(e[4]*i)/i+" "+sB(e[5]*i)/i+")":Object(Ou.e)(e)}}function dB(t,e,n){for(var i=t.points,r=[],o=0;ol?RB(t,null==n[h+1]?null:n[h+1].elm,n,s,h):NB(t,e,a,l))}(n,i,r):PB(r)?(PB(t.text)&&OB(n,""),RB(n,null,r,0,r.length-1)):PB(i)?NB(n,i,0,i.length-1):PB(t.text)&&OB(n,""):t.text!==e.text&&(PB(i)&&NB(n,i,0,i.length-1),OB(n,e.text)))}var FB=0;var HB=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=Object(gl.m)({},n),this.root=t,this._id="zr"+FB++,this._oldVNode=QN(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=$N("svg");BB(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(LB(t,e))zB(t,e);else{var n=t.elm,i=TB(n);jB(e),null!==i&&(xB(i,e.elm,CB(n)),NB(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return mB(t,KN(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=KN(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=qN("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Object(Ou.k)(n))yB({fill:n},r.attrs,"fill",i);else if(Object(Ou.n)(n))_B({style:{fill:n},dirty:gl.L,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=Object(Ou.p)(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=qN("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=Object(gl.H)(Object(gl.F)(r.defs),(function(t){return r.defs[t]}));if(l.length&&o.push(qN("defs","defs",{},l)),t.animation){var c=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=Object(gl.H)(Object(gl.F)(t),(function(e){return e+r+Object(gl.H)(Object(gl.F)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=Object(gl.H)(Object(gl.F)(e),(function(t){return"@keyframes "+t+r+Object(gl.H)(Object(gl.F)(e[t]),(function(n){return n+r+Object(gl.H)(Object(gl.F)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(c){var u=qN("style","stl",{},[],c);o.push(u)}}return QN(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},ZN(this.renderToVNode({animation:Object(gl.P)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(gl.P)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,c=0;c=0&&(!h||!r||h[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var v=f+1;v-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(ew),ZB=qB;function KB(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=U_(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}function JB(t,e){this.parent.drift(t,e)}var tz=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return dl(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=xk(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=JB,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Yg(this.childAt(0))},e.prototype.downplay=function(){Xg(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,u)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};c?p.attr(h):yv(p,h,a,n),kv(p)}if(this._updateCommon(t,n,s,i,r),l){var p=this.childAt(0);if(!c){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,_v(p,h,a,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,c,u,h,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,u=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),c=m.get("blurScope"),u=m.get("disabled"),h=Mv(v),p=m.getShallow("scale"),d=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var _=kk(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var b=t.getItemVisual(e,"style"),w=b.fill;if(f instanceof Ff){var x=f.style;f.useStyle(Object(gl.m)({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},b))}else f.__isEmptyBrush?f.useStyle(Object(gl.m)({},b)):f.useStyle(b),f.style.decal=null,f.setColor(w,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var T=r&&r.useNameLabel;Iv(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):KB(t,e)},inheritColor:w,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var O=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;C.scaleX=this._sizeX*O,C.scaleY=this._sizeY*O,this.setSymbolScale(1),av(this,l,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=hg(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&wv(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();wv(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Sk(t.getItemVisual(e,"symbolSize"))},e}(Wh);function ez(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function nz(t){return null==t||Object(gl.A)(t)||(t={isIgnore:t}),t||{}}function iz(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Mv(e),cursorStyle:e.get("cursor")}}var rz=function(){function t(t){this.group=new Wh,this._SymbolCtor=t||tz}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=nz(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=iz(t),l={disableAnimation:a},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=c(i);if(ez(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(u,h){var p=r.getItemGraphicEl(h),d=c(u);if(ez(t,d,u,e)){var f=t.getItemVisual(u,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,u,s,l)).setPosition(d);else{p.updateData(t,u,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):yv(p,v,i)}n.add(p),t.setItemGraphicEl(u,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=iz(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=nz(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),c=e.mapDimension(a),u="x"===s||"radius"===s?1:0,h=Object(gl.H)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return YB(e,h[0])&&(p=!0,h[0]=d),YB(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function az(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var sz="undefined"!==typeof Float32Array,lz=sz?Float32Array:Array;function cz(t){return Object(gl.t)(t)?sz?new Float32Array(t):t:new lz(t)}var uz=Math.min,hz=Math.max;function pz(t,e){return isNaN(t)||isNaN(e)}function dz(t,e,n,i,r,o,a,s,l){for(var c,u,h,p,d,f,g=n,v=0;v=r||g<0)break;if(pz(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,p=y;else{var _=m-c,b=y-u;if(_*_+b*b<.5){g+=o;continue}if(a>0){for(var w=g+o,x=e[2*w],S=e[2*w+1];x===m&&S===y&&v=i||pz(x,S))d=m,f=y;else{C=x-c,O=S-u;var A=m-c,D=x-m,P=y-u,E=S-y,L=void 0,j=void 0;if("x"===s){var R=C>0?1:-1;d=m-R*(L=Math.abs(A))*a,f=y,I=m+R*(j=Math.abs(D))*a,M=y}else if("y"===s){var N=O>0?1:-1;d=m,f=y-N*(L=Math.abs(P))*a,I=m,M=y+N*(j=Math.abs(E))*a}else L=Math.sqrt(A*A+P*P),d=m-C*a*(1-(T=(j=Math.sqrt(D*D+E*E))/(j+L))),f=y-O*a*(1-T),M=y+O*a*T,I=uz(I=m+C*a*T,hz(x,m)),M=uz(M,hz(S,y)),I=hz(I,uz(x,m)),f=y-(O=(M=hz(M,uz(S,y)))-y)*L/j,d=uz(d=m-(C=I-m)*L/j,hz(c,m)),f=uz(f,hz(u,y)),I=m+(C=m-(d=hz(d,uz(c,m))))*j/L,M=y+(O=y-(f=hz(f,uz(u,y))))*j/L}t.bezierCurveTo(h,p,d,f,m,y),h=I,p=M}else t.lineTo(m,y)}c=m,u=y,g+=o}return v}var fz=function(){this.smooth=0,this.smoothConstraint=!0},gz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return dl(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fz},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&pz(n[2*r-2],n[2*r-1]);r--);for(;i=0){var v=a?(u-i)*g+i:(c-n)*g+n;return a?[t,v]:[v,t]}n=c,i=u;break;case o.C:c=r[l++],u=r[l++],h=r[l++],p=r[l++],d=r[l++],f=r[l++];var m=a?pu(n,c,h,d,t,s):pu(i,u,p,f,t,s);if(m>0)for(var y=0;y=0){v=a?uu(i,u,p,f,_):uu(n,c,h,d,_);return a?[t,v]:[v,t]}}n=d,i=f}}},e}(Ef),vz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e}(fz),mz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return dl(e,t),e.prototype.getDefaultShape=function(){return new vz},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&pz(n[2*o-2],n[2*o-1]);o--);for(;r=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),c=gl.H(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),u=c.length,h=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i);return{coord:n,color:Object(Cu.b)(r,[t.color,e.color])}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(c,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,v=g-f;if(v<.001)return"transparent";gl.k(p,(function(t){t.offset=(t.coord-f)/v})),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var m=new yx(0,0,0,0,p,!0);return m[r]=f,m[r+"2"]=g,m}}}function Iz(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return gl.k(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Mz(t,e){return[t[2*e],t[2*e+1]]}function Az(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);hg(d).seriesIndex=t.seriesIndex,av(d,A,D,P);var E=Tz(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:L,connectNulls:x}),f){var j=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(gl.i(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),j&&(R=Tz(j.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:R,smoothMonotone:L,connectNulls:x}),uv(f,t,"areaStyle"),hg(f).seriesIndex=t.seriesIndex,av(f,A,D,P)}var N=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=N)})),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=c,this._step=C,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){hg(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Lp(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],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel")||0,h=t.get("z")||0;(s=new tz(r,o)).x=l,s.y=c,s.setZ(u,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=u,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else pS.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Lp(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 pS.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Hg(this._polyline,t),e&&Hg(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new gz({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new mz({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");gl.w(l)&&(l=l(null));var c=s.get("animationDelay")||0,u=gl.w(c)?c(null):c;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(p=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(p=g.r0,d=g.r,f=v[0])}else{var m=n;i?(p=m.x,d=m.x+m.width,f=t.x):(p=m.y+m.height,d=m.y,f=t.y)}var y=d===p?0:(f-p)/(d-p);a&&(y=1-y);var _=gl.w(c)?c(o):l*y+u,b=s.getSymbolPath(),w=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Az(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new ug({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(Iv(o,Mv(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?QB(r,n):KB(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?d:0)*(v?-1:1),b=(g?0:-d)*(v?-1:1),w=g?"x":"y",x=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c=e||i>=e&&r<=e){l=c;break}s=c,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(c,y,w),S=x.range,k=S[1]-S[0],T=void 0;if(k>=1){if(k>1&&!h){var C=Mz(c,S[0]);s.attr({x:C[0]+_,y:C[1]+b}),r&&(T=u.getRawValue(S[0]))}else{(C=l.getPointOn(y,w))&&s.attr({x:C[0]+_,y:C[1]+b});var O=u.getRawValue(S[0]),I=u.getRawValue(S[1]);r&&(T=Gp(n,p,O,I,x.t))}i.lastFrameIndex=S[0]}else{var M=1===t||i.lastFrameIndex>0?S[0]:0;C=Mz(c,M);r&&(T=u.getRawValue(M)),s.attr({x:C[0]+_,y:C[1]+b})}r&&Nv(s).setLabelText(T)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,c=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),c=[],u=[],h=[],p=[],d=[],f=[],g=[],v=oz(r,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_3e3||l&&kz(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:d}};u.current!==h&&(g.shape.__points=u.next),s.stopAnimation(),yv(s,g,c),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),yv(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=u.status,y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;Object(gl.C)(r)?d=jz[r]:Object(gl.w)(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,Rz))}}}}}var Bz="__ec_stack_";function zz(t){return t.get("stack")||Bz+t.seriesIndex}function Fz(t){return t.dim+t.index}function Hz(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Yz(t)&&n.push(t)})),n}function Vz(t){var e=function(t){var e={};Object(gl.k)(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return Object(gl.k)(t,(function(t){var i,r=t.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=e[a],l=Math.abs(o[1]-o[0]),c=r.scale.getExtent(),u=Math.abs(c[1]-c[0]);i=s?l/u*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var p=Jh(t.get("barWidth"),i),d=Jh(t.get("barMaxWidth"),i),f=Jh(t.get("barMinWidth")||(Xz(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:Fz(r),stackId:zz(t)})})),Uz(n)}function Uz(t){var e={};Object(gl.k)(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=t.barMaxWidth;c&&(a[s].maxWidth=c);var u=t.barMinWidth;u&&(a[s].minWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return Object(gl.k)(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(gl.F)(i).length;o=Math.max(35-4*a,15)+"%"}var s=Jh(o,r),l=Jh(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),Object(gl.k)(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+l*i,u--}else{var i=h;e&&ei&&(i=n),i!==h&&(t.width=i,c-=i+l*i,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var p,d=0;Object(gl.k)(i,(function(t,e){t.width||(t.width=h),p=t,d+=t.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;Object(gl.k)(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Gz(t,e){var n=Hz(t,e),i=Vz(n);Object(gl.k)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=zz(t),o=i[Fz(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function Wz(t){return{seriesType:t,plan:rw(),reset:function(t){if(Yz(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),c=e.getCalculationInfo("stackResultDimension"),u=YB(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),d=Xz(t),f=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&cz(3*r),c=d&&s&&cz(3*r),y=d&&cz(r),_=n.master.getRect(),b=h?_.width:_.height,w=e.getStore(),x=0;null!=(i=t.next());){var S=w.get(u?g:o,i),k=w.get(a,i),T=p,C=void 0;u&&(C=+S-w.get(o,i));var O=void 0,I=void 0,M=void 0,A=void 0;if(h){var D=n.dataToPoint([S,k]);if(u)T=n.dataToPoint([C,k])[0];O=T,I=D[1]+m,M=D[0]-T,A=v,Math.abs(M)a){c=(p+l)/2;break}1===h&&(u=d-i[0].tickValue)}null==c&&(l?l&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;o[c]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(ew);ew.registerClass($z);var qz=$z,Zz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.getInitialData=function(){return $B(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=tm(qz.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}),e}(qz),Kz=Zz,Qz=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Jz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return dl(e,t),e.prototype.getDefaultShape=function(){return new Qz},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=2*Math.PI,p=u?c-lo)return!0;o=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Sv(e,t,hg(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(pS),oF={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=nF(e.x,t.x),s=iF(e.x+e.width,r),l=nF(e.y,t.y),c=iF(e.y+e.height,o),u=sr?s:a,e.y=h&&l>o?c:l,e.width=u?0:s-a,e.height=h?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=iF(e.r,t.r),o=nF(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},aF={cartesian2d:function(t,e,n,i,r,o,a,s,l){var c=new $f({shape:Object(gl.m)({},i),z2:1});(c.__dataIndex=n,c.name="item",o)&&(c.shape[r?"height":"width"]=0);return c},polar:function(t,e,n,i,r,o,a,s,l){var c=!r&&l?Jz:Yw,u=new c({shape:i,z2:1});u.name="item";var h=dF(r);if(u.calculateTextPosition=function(t,e){var n=(e=e||{}).isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return Ph(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,c=l.cx,u=l.cy,h=l.r,p=l.r0,d=(h+p)/2,f=l.startAngle,g=l.endAngle,v=(f+g)/2,m=n?Math.abs(h-p)/2:0,y=Math.cos,_=Math.sin,b=c+h*y(f),w=u+h*_(f),x="left",S="top";switch(a){case"startArc":b=c+(p-s)*y(v),w=u+(p-s)*_(v),x="center",S="top";break;case"insideStartArc":b=c+(p+s)*y(v),w=u+(p+s)*_(v),x="center",S="bottom";break;case"startAngle":b=c+d*y(f)+tF(f,s+m,!1),w=u+d*_(f)+eF(f,s+m,!1),x="right",S="middle";break;case"insideStartAngle":b=c+d*y(f)+tF(f,-s+m,!1),w=u+d*_(f)+eF(f,-s+m,!1),x="left",S="middle";break;case"middle":b=c+d*y(v),w=u+d*_(v),x="center",S="middle";break;case"endArc":b=c+(h+s)*y(v),w=u+(h+s)*_(v),x="center",S="bottom";break;case"insideEndArc":b=c+(h-s)*y(v),w=u+(h-s)*_(v),x="center",S="top";break;case"endAngle":b=c+d*y(g)+tF(g,s+m,!0),w=u+d*_(g)+eF(g,s+m,!0),x="left",S="middle";break;case"insideEndAngle":b=c+d*y(g)+tF(g,-s+m,!0),w=u+d*_(g)+eF(g,-s+m,!0),x="right",S="middle";break;default:return Ph(e,i,r)}return(e=e||{}).x=b,e.y=w,e.align=x,e.verticalAlign=S,e}}(h,{isRoundCap:c===Jz}),o){var p=r?"r":"endAngle",d={};u.shape[p]=r?i.r0:i.startAngle,d[p]=i[p],(s?yv:_v)(u,{shape:d},o)}return u}};function sF(t,e,n,i,r,o,a,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?yv:_v)(n,{shape:l},e,r,null),(a?yv:_v)(n,{shape:c},e?t.baseAxis.model:null,r)}function lF(t,e){for(var n=0;n0?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(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function dF(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function fF(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=t.shape,u=QC(i.getModel("itemStyle"),c,!0);Object(gl.m)(c,u),t.setShape(c)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var d=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",f=Mv(i);Iv(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:KB(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=t.getTextContent();if(s&&g){var v=i.get(["label","position"]);t.textConfig.inside="middle"===v||null,function(t,e,n,i){if(Object(gl.z)(i))t.setTextConfig({rotation:i});else if(Object(gl.t)(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,c=n(e);switch(c){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 t.setTextConfig({rotation:0})}var u=1.5*Math.PI-r;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}}(t,"outside"===v?d:v,dF(a),i.get(["label","rotate"]))}Bv(g,f,o.getRawValue(n),(function(t){return QB(e,t)}));var m=i.getModel(["emphasis"]);av(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),uv(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",Object(gl.k)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var gF=function(){},vF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return dl(e,t),e.prototype.getDefaultShape=function(){return new gF},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}(this,t.offsetX,t.offsetY);hg(this).dataIndex=e>=0?e:null}),30,!1);function _F(t,e,n){if(wz(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var bF=rF;var wF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return dl(e,t),e.prototype.getInitialData=function(t,e){return $B(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(ew),xF=wF,SF=function(){},kF=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return dl(e,t),e.prototype.getDefaultShape=function(){return new SF},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,c=i[l]-o/2,u=i[l+1]-a/2;if(t>=c&&e>=u&&t<=c+o&&e<=u+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),CF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Lz("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new TF:new rz,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(pS),OF=CF,IF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(sy),MF=IF,AF=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),DF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zp).models[0]},e.type="cartesian2dAxis",e}(sy);gl.K(DF,AF);var PF={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},EF=gl.I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},PF),LF=gl.I({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},PF),jF={category:EF,value:LF,time:gl.I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},LF),log:gl.i({logBase:10},LF)},RF=0;function NF(t){return Object(gl.A)(t)&&null!=t.value?t.value:t+""}var BF=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++RF}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Object(gl.H)(i,NF);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(gl.C)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(gl.f)(this.categories))},t}(),zF={value:1,category:1,time:1,log:1};function FF(t,e,n,i){Object(gl.k)(zF,(function(r,o){var a=Object(gl.I)(Object(gl.I)({},jF[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return dl(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=ey(this),i=n?iy(t):{},r=e.getTheme();Object(gl.I)(t,r.get(o+"Axis")),Object(gl.I)(t,this.getDefaultOption()),t.type=HF(t),n&&ny(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=BF.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",HF)}function HF(t){return t.type||(t.data?"category":"value")}var VF=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();td(VF);var UF=VF;function GF(t){return"interval"===t.type||"log"===t.type}function WF(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=pp(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=XF(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),$F(t,0,e),$F(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[tp(Math.ceil(t[0]/a)*a,s),tp(Math.floor(t[1]/a)*a,s)],t),r}function YF(t){var e=Math.pow(10,hp(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,tp(n*e)}function XF(t){return np(t)+2}function $F(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function qF(t,e){return t>=e[0]&&t<=e[1]}function ZF(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function KF(t,e){return t*(e[1]-e[0])+e[0]}var QF=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new BF({})),Object(gl.t)(i)&&(i=new BF({categories:Object(gl.H)(i,(function(t){return Object(gl.A)(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return dl(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(gl.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return qF(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return ZF(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(KF(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(UF);UF.registerClass(QF);var JF=QF,tH=tp,eH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return dl(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return qF(t,this._extent)},e.prototype.normalize=function(t){return ZF(t,this._extent)},e.prototype.scale=function(t){return KF(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=XF(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:tH(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&u0)for(var s=0;s=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(gl.t(o)){var u=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[u=Math.min(u,o.length-1)]}}return xm(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=ym,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),c=e,u=l[r]();c1&&0===c&&o.unshift({value:o[0].value-p})}}for(c=0;c=i[0]&&m<=i[1]&&h++)}var y=(i[1]-i[0])/e;if(h>1.5*y&&p>y/1.5)break;if(c.push(g),h>y||t===o[d])break}u=[]}}0;var _=Object(gl.n)(Object(gl.H)(c,(function(t){return Object(gl.n)(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),b=[],w=_.length-1;for(d=0;d<_.length;++d)for(var x=_[d],S=0;Sn&&(this._approxInterval=n);var o=rH.length,a=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function aH(t){return(t/=30*pm)>6?6:t>3?3:t>2?2:1}function sH(t){return(t/=hm)>12?12:t>6?6:t>3.5?4:t>2?2:1}function lH(t,e){return(t/=e?um:cm)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function cH(t){return pp(t,!0)}function uH(t,e,n){var i=new Date(t);switch(bm(e)){case"year":case"month":i[Em(n)](0);case"day":i[Lm(n)](1);case"hour":i[jm(n)](0);case"minute":i[Rm(n)](0);case"second":i[Nm(n)](0),i[Bm(n)](0)}return i.getTime()}UF.registerClass(iH);var hH=iH,pH=UF.prototype,dH=nH.prototype,fH=tp,gH=Math.floor,vH=Math.ceil,mH=Math.pow,yH=Math.log,_H=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new nH,e._interval=0,e}return dl(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=dH.getTicks.call(this,t);return gl.H(r,(function(t){var e=t.value,r=tp(mH(this.base,e));return r=e===n[0]&&this._fixMin?wH(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?wH(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=yH(this.base);t=yH(Math.max(0,t))/n,e=yH(Math.max(0,e))/n,dH.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=pH.getExtent.call(this);e[0]=mH(t,e[0]),e[1]=mH(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=wH(e[0],n[0])),this._fixMax&&(e[1]=wH(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=yH(t[0])/yH(e),t[1]=yH(t[1])/yH(e),pH.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i,r=(i=n,Math.pow(10,hp(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[tp(vH(e[0]/r)*r),tp(gH(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){dH.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return qF(t=yH(t)/yH(this.base),this._extent)},e.prototype.normalize=function(t){return ZF(t=yH(t)/yH(this.base),this._extent)},e.prototype.scale=function(t){return t=KF(t,this._extent),mH(this.base,t)},e.type="log",e}(UF),bH=_H.prototype;function wH(t,e){return fH(t,np(e))}bH.getMinorTicks=dH.getMinorTicks,bH.getLabel=dH.getLabel,UF.registerClass(_H);var xH=_H,SH=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[TH[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[kH[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),kH={min:"_determinedMin",max:"_determinedMax"},TH={min:"_dataMin",max:"_dataMax"};function CH(t,e,n){var i=t.rawExtentInfo;return i||(i=new SH(t,e,n),t.rawExtentInfo=i,i)}function OH(t,e){return null==e?null:Object(gl.l)(e)?NaN:t.parse(e)}function IH(t,e){var n=t.type,i=CH(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Hz("bar",a),l=!1;if(gl.k(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var c=Vz(s),u=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[Fz(e)];return null!=i&&null!=n?i[zz(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;gl.k(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;gl.k(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,h=u/(1-(s+l)/o)-u;return e+=h*(l/c),t-=h*(s/c),{min:t,max:e}}(r,o,e,c);r=u.min,o=u.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function MH(t,e){var n=e,i=IH(t,n),r=i.extent,o=n.get("splitNumber");t instanceof xH&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function AH(t,e){if(e=e||t.get("type"))switch(e){case"category":return new JF({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new hH({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(UF.getClass(e)||nH)}}function DH(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):gl.C(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):gl.w(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(PH(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function PH(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function EH(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new kc(t.x,t.y,o,a)}function LH(t){var e=t.get("interval");return null==e?"auto":e}function jH(t){return"category"===t.type&&0===LH(t.getLabelModel())}function RH(t,e){var n={};return gl.k(t.mapDimensionsAll(e),(function(e){n[XB(t,e)]=!0})),gl.F(n)}var NH=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return gl.H(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),gl.n(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),BH=["x","y"];function zH(t){return"interval"===t.type||"time"===t.type}var FH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=BH,e}return dl(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(zH(t)&&zH(e)){var n=t.getExtent(),i=e.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,c=(o[1]-r[1])/s,u=r[0]-n[0]*l,h=r[1]-i[0]*c,p=this._transform=[l,0,0,c,u,h];this._invTransform=fc([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new kc(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Pl(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Pl(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new kc(n,i,r,o)},e}(NH),HH=FH,VH=jp();function UH(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=WH(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=DH(t);return{labels:gl.H(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function GH(t,e){return"category"===t.type?function(t,e){var n,i,r=YH(t,"ticks"),o=LH(e),a=XH(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(gl.w(o))n=ZH(t,o,!0);else if("auto"===o){var s=WH(t,t.getLabelModel());i=s.labelCategoryInterval,n=gl.H(s.labels,(function(t){return t.tickValue}))}else n=qH(t,i=o,!0);return $H(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:gl.H(t.scale.getTicks(),(function(t){return t.value}))}}function WH(t,e){var n,i,r=YH(t,"labels"),o=LH(e),a=XH(r,o);return a||(gl.w(o)?n=ZH(t,o):(i="auto"===o?function(t){var e=VH(t).autoInterval;return null!=e?e:VH(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=qH(t,i)),$H(r,o,{labels:n,labelCategoryInterval:i}))}function YH(t,e){return VH(t)[e]||(VH(t)[e]=[])}function XH(t,e){for(var n=0;n1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=jH(t),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&c!==o[0]&&g(o[0]);for(var f=c;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function ZH(t,e,n){var i=t.scale,r=DH(t),o=[];return gl.k(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var KH=[0,1];function QH(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var JH=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return ip(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&QH(n=n.slice(),i.count()),Qh(t,KH,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&QH(n=n.slice(),i.count());var r=Qh(t,n,KH,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=GH(this,e).ticks,i=Object(gl.H)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[r-1].tickValue-e[0].tickValue,c=(e[r-1].coord-e[0].coord)/l;Object(gl.k)(e,(function(t){t.coord-=c/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+c*a},e.push(o)}var u=s[0]>s[1];h(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=tp(t),e=tp(e),u?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(gl.H)(e,(function(t){return Object(gl.H)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return UH(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=DH(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.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],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(i)),h=Math.abs(c*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f,g,v=Oh(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var m=p/u,y=d/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=VH(t.model),w=t.getExtent(),x=b.lastAutoInterval,S=b.lastTickCount;return null!=x&&null!=S&&Math.abs(x-_)<=1&&Math.abs(S-a)<=1&&x>_&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?_=x:(b.lastTickCount=a,b.lastAutoInterval=_,b.axisExtent0=w[0],b.axisExtent1=w[1]),_}(this)},t}(),tV=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return dl(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(JH),eV=tV;function nV(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,c=r.dim,u=i.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===c?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===c?f[p[l]]:h[0],"x"===c?f[p[l]]:h[3]],o.rotation=Math.PI/2*("x"===c?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),gl.O(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function iV(t){return"cartesian2d"===t.get("coordinateSystem")}function rV(t){var e={xAxisModel:null,yAxisModel:null};return gl.k(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,zp).models[0];e[i]=o})),e}var oV=Math.log;function aV(t,e,n){var i=nH.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=IH(t,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===t.type){var p=oV(t.base);c=[oV(c[0])/p,oV(c[1])/p]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:h});var d=i.getExtent.call(t);u&&(c[0]=d[0]),h&&(c[1]=d[1]);var f=i.getInterval.call(t),g=c[0],v=c[1];if(u&&h)f=(v-g)/a;else if(u)for(v=c[0]+f*a;vc[0]&&isFinite(g)&&isFinite(c[0]);)f=YF(f),g=c[1]-f*a;else{t.getTicks().length-1>a&&(f=YF(f));var m=f*a;(g=tp((v=Math.ceil(c[1]/f)*f)-m))<0&&c[0]>=0?(g=0,v=tp(m)):v>0&&c[1]<=0&&(v=0,g=-tp(m))}var y=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*y,v+f*_),i.setInterval.call(t,f),(y||_)&&i.setNiceExtent.call(t,g+f,v-f)}function sV(t,e){return t.getCoordSysModel()===e}function lV(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)cV(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&cV(o[c])&&!i[u(o[c])]){r=o[c];break}r&&(i[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function cV(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var uV=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=BH,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(gl.F)(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;GF(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(MH(l,s),GF(l)&&(e=a))}r.length&&(e||MH((e=r.pop()).scale,e.model),Object(gl.k)(r,(function(t){aV(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Object(gl.k)(n.x,(function(t){lV(n,"y",t,r)})),Object(gl.k)(n.y,(function(t){lV(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Jm(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(gl.k)(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(Object(gl.k)(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof JF?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=DH(t),c=1;r>40&&(c=Math.ceil(r/40));for(var u=0;u0?"top":"bottom",i="center"):lp(o-hV)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),dV={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Pl(s,s,a),Pl(l,l,a));var u=Object(gl.m)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ax({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Hx(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);Object(gl.C)(p)&&(p=[p,p]),(Object(gl.C)(d)||Object(gl.z)(d))&&(d=[d,d]);var f=kk(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],v=d[1];Object(gl.k)([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.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(e,i){if("none"!==p[i]&&null!=p[i]){var r=xk(p[i],-g/2,-v/2,g,v,u.stroke,!0),o=e.r+e.offset,a=c?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,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"),c=mV(r.getTicksCoords(),e.transform,l,Object(gl.i)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;uh[1]?-1:1,d=["start"===s?h[0]-p*u:"end"===s?h[1]+p*u:(h[0]+h[1])/2,vV(s)?t.labelOffset+l*u:0],f=e.get("nameRotate");null!=f&&(f=f*hV/180),vV(s)?o=pV.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=sp(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;lp(a-hV/2)?(o=l?"bottom":"top",r="center"):lp(a-1.5*hV)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*hV&&a>hV/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=Object(gl.O)(t.nameTruncateMaxWidth,v.maxWidth,a),_=new ug({x:d[0],y:d[1],rotation:o.rotation,silent:pV.isLabelSilent(e),style:Av(c,{text:r,font:g,overflow:"truncate",width:y,ellipsis:m,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(eS({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var b=pV.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,hg(_).eventData=b}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function fV(t){t&&(t.ignore=!0)}function gV(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=lc([]);return pc(r,r,-t.rotation),n.applyTransform(uc([],r,t.getLocalTransform())),i.applyTransform(uc([],r,e.getLocalTransform())),n.intersect(i)}}function vV(t){return"middle"===t||"center"===t}function mV(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function wV(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[SV(t)]}function xV(t){return!!t.get(["handle","show"])}function SV(t){return t.type+"||"+t.id}var kV={},TV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=wV(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=xV(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]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var p=a;null!=h.color&&(p=gl.i({color:h.color},a));var d=gl.I(gl.d(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:u},!1);if(gl.C(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else gl.w(l)&&(d.name=l(d.name,d));var g=new Kv(d,null,this.ecModel);return gl.K(g,AF.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:gl.I({lineStyle:{color:"#bbb"}},XV.axisLine),axisLabel:$V(XV.axisLabel,!1),axisTick:$V(XV.axisTick,!1),splitLine:$V(XV.splitLine,!0),splitArea:$V(XV.splitArea,!0),indicator:[]},e}(sy),ZV=qV,KV=["axisLine","axisTickLabel","axisName"],QV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=gl.H(n,(function(t){var n=t.model.get("showName")?t.name:"";return new yV(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));gl.k(i,(function(t){gl.k(KV,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),c=o.get("show"),u=a.get("color"),h=s.get("color"),p=gl.t(u)?u:[u],d=gl.t(h)?h:[h],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=e.cx,y=e.cy,_=0;_3?1.4:r>1?1.2:1.1;aU(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);aU(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){rU(this._zr,"globalPan")||aU(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Bl);function uU(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function hU(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(c-1),r.y-=(i-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var pU,dU={axisPointer:1,tooltip:1,brush:1};function fU(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!dU.hasOwnProperty(i.mainType)&&r&&r.model!==n}function gU(t){Object(gl.C)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var vU={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"},mU=Object(gl.F)(vU),yU={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_U=Object(gl.F)(yU),bU=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=gU(t);this._defsUsePending=[];var i=new Wh;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),CU(n,i,null,!0,!1);for(var l,c,u=n.firstChild;u;)this._parseNode(u,i,r,null,!1,!1),u=u.nextSibling;if(function(t,e){for(var n=0;n=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&&(c=jU(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;(i=new Wh).add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new $f({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var c=pU[s];if(c&&Object(gl.q)(pU,s)){a=c.call(this,t,e);var u=t.getAttribute("name");if(u){var h={name:u,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});e.add(a)}}var p=wU[s];if(p&&Object(gl.q)(wU,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Rf({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});kU(e,n),CU(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__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",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);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,e.add(n),n},t.internalField=void(pU={g:function(t,e){var n=new Wh;return kU(e,n),CU(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new $f;return kU(e,n),CU(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Ow;return kU(e,n),CU(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new ax;return kU(e,n),CU(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Aw;return kU(e,n),CU(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=TU(i));var r=new Jw({shape:{points:n||[]},silent:!0});return kU(e,r),CU(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=TU(i));var r=new nx({shape:{points:n||[]},silent:!0});return kU(e,r),CU(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Ff;return kU(e,n),CU(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Wh;return kU(e,a),CU(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Wh;return kU(e,a),CU(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=Sw(t.getAttribute("d")||"");return kU(e,n),CU(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),wU={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new yx(e,n,i,r);return xU(t,o),SU(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new _x(e,n,i);return xU(t,r),SU(t,r),r}};function xU(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function SU(t,e){for(var n=t.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={};LU(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function kU(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(gl.i)(e.__inheritedStyle,t.__inheritedStyle))}function TU(t){for(var e=AU(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=AU(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":hc(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dc(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":pc(r,r,-parseFloat(l[0])*PU);break;case"skewX":uc(r,[1,0,Math.tan(parseFloat(l[0])*PU),1,0,0],r);break;case"skewY":uc(r,[1,Math.tan(parseFloat(l[0])*PU),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])}}e.setLocalTransform(r)}}(t,e),LU(t,a,s),i||function(t,e,n){for(var i=0;in&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function KU(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return gl.k(i,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=ZU(r,i,n);break;case"Polygon":case"MultiLineString":qU(r,i,n);break;case"MultiPolygon":gl.k(r,(function(t,e){return qU(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t),gl.H(gl.n(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new UU(o[0],o.slice(1)));break;case"MultiPolygon":gl.k(i.coordinates,(function(t){t[0]&&r.push(new UU(t[0],t.slice(1)))}));break;case"LineString":r.push(new GU([i.coordinates]));break;case"MultiLineString":r.push(new GU(i.coordinates))}var a=new WU(n[e||"name"],r,n.cp);return a.properties=n,a}))}for(var QU=[126,25],JU="\u5357\u6d77\u8bf8\u5c9b",tG=[[[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]]],eG=0;eG0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=gl.f(),n=gl.f(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function u(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Iv(e,Mv(i),{labelFetcher:p,labelDataIndex:h,defaultText:n},d);var f=e.getTextContent();if(f&&(dG(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function _G(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):hg(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function bG(t,e,n,i,r){t.data||eS({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function wG(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return av(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=hg(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function xG(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),gl.k(t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(ew),OG=CG;function IG(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),gl.k(e,(function(t,e){for(var n=function(t,e){var n={};return gl.k(t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o="ec-"+t[0].getName(r),a=0,s=1/0,l=-1/0,c=n[o].length,u=0;u1?(d.width=p,d.height=p/_):(d.height=p,d.width=p*_),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{var w=t.getBoxLayoutParams();w.aspect=_,d=Jm(w,{width:m,height:y})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var zG=function(){function t(){this.dimensions=LG}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new NG(o+r,o,gl.m({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=BG,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),gl.k(r,(function(t,r){var o=gl.H(t,(function(t){return t.get("nameMap")})),a=new NG(r,r,gl.m({nameMap:gl.J(o)},i(t[0])));a.zoomLimit=gl.O.apply(null,gl.H(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=BG,a.resize(t[0],e),gl.k(t,(function(t){t.coordinateSystem=a,function(t,e){gl.k(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=gl.f(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,h=s.hierNode.modifier;s=JG(s),o=tW(o),s&&o;){r=JG(r),a=tW(a),r.hierNode.ancestor=t;var p=s.hierNode.prelim+h-o.hierNode.prelim-c+i(s,o);p>0&&(nW(eW(s,t,n),t,p),c+=p,l+=p),h+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!JG(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!tW(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function ZG(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function KG(t){return arguments.length?t:iW}function QG(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function JG(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function tW(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function eW(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function nW(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function iW(t,e){return t.parentNode===e.parentNode?1:2}var rW=function(){this.parentPoint=[],this.childPoints=[]},oW=function(t){function e(e){return t.call(this,e)||this}return dl(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rW},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Jh(e.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(a[c]-r[c])*u,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var p=1;py.x)||(b-=Math.PI);var S=w?"left":"right",k=s.getModel("label"),T=k.get("rotate"),C=T*(Math.PI/180),O=v.getTextContent();O&&(v.setTextConfig({position:k.get("position")||S,rotation:null==T?-b:C,origin:"center"}),O.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),M="relative"===I?gl.e(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():null;M&&(hg(n).focus=M),function(t,e,n,i,r,o,a,s){var l=e.getModel(),c=t.get("edgeShape"),u=t.get("layout"),h=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new hx({shape:pW(u,h,p,r,r)})),yv(g,{shape:pW(u,h,p,o,a)},t));else if("polyline"===c)if("orthogonal"===u){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,m=[],y=0;ye&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,r=t.targetNode;if(gl.C(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function CW(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function OW(t,e){var n=CW(t);return gl.r(n,e)>=0}function IW(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var MW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return dl(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Kv(n,this,this.ecModel),r=kW.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return Db("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=IW(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(ew),AW=MW;function DW(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function PW(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Jm(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=KG((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=KG());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];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(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;su.getLayout().x&&(u=t),t.depth>h.depth&&(h=t)}));var p=c===u?1:a(c,u)/2,d=p-c.getLayout().x,f=0,g=0,v=0,m=0;if("radial"===i)f=r/(u.getLayout().x+p+d),g=o/(h.depth-1||1),DW(l,(function(t){v=(t.getLayout().x+d)*f,m=(t.depth-1)*g;var e=QG(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(u.getLayout().x+p+d),f=r/(h.depth-1||1),DW(l,(function(t){m=(t.getLayout().x+d)*g,v="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:v,y:m},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(u.getLayout().x+p+d),g=o/(h.depth-1||1),DW(l,(function(t){v=(t.getLayout().x+d)*f,m="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)})))}}}(t,e)}))}function EW(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(gl.m)(i,n)}))}))}var LW=["treemapZoomToNode","treemapRender","treemapMove"];function jW(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=Dy(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}var RW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return dl(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};NW(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Kv({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=Sp(e.get("color")),o=Sp(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],gl.k(t,(function(t){var e=new Kv(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e);var a=gl.H(i||[],(function(t){return new Kv(t,o,e)}),this),s=kW.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return Db("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=IW(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},gl.m(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=gl.f(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){jW(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(ew);function NW(t){var e=0;gl.k(t.children,(function(t){NW(t);var n=t.value;gl.t(n)&&(n=n[0]),e+=n}));var n=t.value;gl.t(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),gl.t(t.value)?t.value[0]=n:t.value=n}var BW=RW;function zW(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function FW(t,e,n){hg(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&IW(n,e)}}var HW=function(){function t(t){this.group=new Wh,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,a,s,l,c,i),ty(o,u.pos,u.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Dp(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s=0,l=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),u=function(t,e,n){var i=e.width,r=e.height,o=Jh(t.left,i),a=Jh(t.top,r),s=Jh(t.right,i),l=Jh(t.bottom,r);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),n=Hm(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}(e.pos,e.box),h=e.totalWidth,p=e.renderList,d=i.getModel("itemStyle").getItemStyle(),f=p.length-1;f>=0;f--){var g=p[f],v=g.node,m=g.width,y=g.text;h>u.width&&(h-=m-l,m=l,y=null);var _=new Jw({shape:{points:zW(s,0,m,c,f===p.length-1,0===f)},style:Object(gl.i)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ug({style:Av(r,{text:y})}),textConfig:{position:"inside"},z2:1e4*xg,onclick:Object(gl.h)(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Av(o,{text:y}),_.ensureState("emphasis").style=d,av(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),FW(_,t,v),s+=m+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),VW=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.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 kc(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];hc(s,s,[-(e-=a.x),-(n-=a.y)]),dc(s,s,[t.scale,t.scale]),hc(s,s,[e,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}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._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&&Xm(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new HW(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(OW(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){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(t,e),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},e.type="treemap",e}(pS);var tY=JW,eY=gl.k,nY=gl.A,iY=-1,rY=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=gl.d(e);this.type=i,this.mappingMethod=n,this._normalizeData=fY[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(oY(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,gl.k(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(eY(e,(function(t,e){n[t]=e})),!gl.t(i)){var r=[];gl.A(i)?eY(i,(function(t,e){var i=n[e];r[null!=i?i:iY]=t})):r[iY]=i,i=dY(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):oY(r,!0):(gl.b("linear"!==n||r.dataExtent),oY(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return gl.c(this._normalizeData,this)},t.listVisualTypes=function(){return gl.F(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){gl.A(t)?gl.k(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=gl.t(e)?[]:gl.A(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&eY(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(gl.t(t))t=t.slice();else{if(!nY(t))return[];var e=[];eY(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;oc[1]&&(c[1]=l);var u=e.get("colorMappingBy"),h={type:a.name,dataExtent:c,visual:a.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var p=new vY(h);return mY(p).drColorMappingBy=u,p}(0,r,o,0,c,d);Object(gl.k)(d,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=Object(gl.m)({},e);if(r){var s=r.type,l="color"===s&&mY(r).drColorMappingBy,c="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(c)}return a}(r,c,t,e,f,i);_Y(t,o,n,i)}}))}else s=bY(c),u.fill=s}}function bY(t){var e=wY(t,"color");if(e){var n=wY(t,"colorAlpha"),i=wY(t,"colorSaturation");return i&&(e=Object(Cu.f)(e,null,null,i)),n&&(e=Object(Cu.e)(e,n)),e}}function wY(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function xY(t,e){var n=t.get(e);return Object(gl.t)(n)&&n.length?{name:e,range:n}:null}var SY=Math.max,kY=Math.min,TY=gl.O,CY=gl.k,OY=["itemStyle","borderWidth"],IY=["itemStyle","gapWidth"],MY=["upperLabel","show"],AY=["upperLabel","height"],DY={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Jm(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],c=Jh(TY(s.width,l[0]),r),u=Jh(TY(s.height,l[1]),o),h=i&&i.type,p=TW(i,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),g=CW(f);if("treemapMove"!==h){var v="treemapZoomToNode"===h?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,c=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var u=0,h=o.children,p=0,d=h.length;pap&&(c=ap),a=o}ca[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var c=r["asc"===i?a-l-1:l].getValue();c/n*ei&&(i=a));var l=t.area*t.area,c=e*e*n;return l?SY(c*i/l,l/(c*r)):1/0}function LY(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=e?t.area/e:0;(r||u>n[l[a]])&&(u=n[l[a]]);for(var h=0,p=t.length;hi&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var b=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var w=-Math.atan2(m[1],m[0]);c[0].8?"left":u[0]<-.8?"right":"center",p=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*f+l[0],i.y=-u[1]*g+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",p=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*b+l[0],i.y=l[1]+x,h=m[0]<0?"right":"left",i.originX=-f*b,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+x,h="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*b+c[0],i.y=c[1]+x,h=m[0]>=0?"right":"left",i.originX=f*b,i.originY=-x}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(Wh);function bX(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Mv(e)}}function wX(t){return isNaN(t[0])||isNaN(t[1])}function xX(t){return t&&!wX(t[0])&&!wX(t[1])}var SX=function(){function t(t){this.group=new Wh,this._LineCtor=t||_X}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=bX(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=bX(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i=0?i+=c:i-=c:f>=0?i-=c:i+=c}return i}function DX(t,e){var n=[],i=bu,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),c=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");l.__original||(l.__original=[bl(l[0]),bl(l[1])],l[2]&&l.__original.push(bl(l[2])));var h=l.__original;if(null!=l[2]){if(_l(r[0],h[0]),_l(r[1],h[2]),_l(r[2],h[1]),c&&"none"!==c){var p=tX(t.node1),d=AX(r,h[0],p*e);i(r[0][0],r[1][0],r[2][0],d,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],d,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&"none"!==u){p=tX(t.node2),d=AX(r,h[1],p*e);i(r[0][0],r[1][0],r[2][0],d,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],d,n),r[1][1]=n[1],r[2][1]=n[2]}_l(l[0],r[0]),_l(l[1],r[2]),_l(l[2],r[1])}else{if(_l(o[0],h[0]),_l(o[1],h[1]),Sl(a,o[1],o[0]),Ol(a,a),c&&"none"!==c){p=tX(t.node1);xl(o[0],o[0],a,p*e)}if(u&&"none"!==u){p=tX(t.node2);xl(o[1],o[1],a,-p*e)}_l(l[0],o[0]),_l(l[1],o[1])}}))}function PX(t){return"view"===t.type}var EX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.init=function(t,e){var n=new rz,i=new SX,r=this.group;this._controller=new cU(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(PX(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):yv(s,l,t)}DX(t.getGraph(),JY(t));var c=t.getData();o.updateData(c);var u=t.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var d=t.get("layout");c.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(n),c.setItemLayout(n,[r.x,r.y]);break;case"circular":c.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),iX(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:c.setItemLayout(n,[r.x,r.y]),KY(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(hg(r).focus=e.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(hg(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=c.getLayout("cx"),v=c.getLayout("cy");c.graph.eachNode((function(t){oX(t,f,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!fU(e,n,t)})),PX(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){uU(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){hU(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),DX(t.getGraph(),JY(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=JY(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){DX(t.getGraph(),JY(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(pS),LX=EX;function jX(t){return"_EC_"+t}var RX=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[jX(t)]){var i=new NX(t,e);return i.hostGraph=this,this.nodes.push(i),n[jX(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[jX(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(gl.z(t)&&(t=this.nodes[t]),gl.z(e)&&(e=this.nodes[e]),t instanceof NX||(t=i[jX(t)]),e instanceof NX||(e=i[jX(e)]),t&&e){var o=t.id+"-"+e.id,a=new BX(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof NX&&(t=t.id),e instanceof NX&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof NX||(e=this._nodesMap[jX(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}gl.K(NX,zX("hostGraph","data")),gl.K(BX,zX("hostGraph","edgeData"));var FX=RX;function HX(t,e,n,i,r){for(var o=new FX(i),a=0;a "+p)),c++)}var d,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)d=$B(t,n);else{var g=$y.get(f),v=g&&g.dimensions||[];gl.r(v,"value")<0&&v.concat(["value"]);var m=uO(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;(d=new DO(m,n)).initData(t)}var y=new DO(["value"],n);return y.initData(l,s),r&&r(d,y),xW({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var VX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return dl(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new LO(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),kp(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){VY(n=this)&&(n.__curvenessList=[],n.__edgeMap={},UY(n));var a=HX(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Kv.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return gl.k(a.edges,(function(t){!function(t,e,n,i){if(VY(n)){var r=GY(t,e,n),o=n.__edgeMap,a=o[WY(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)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Db("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Ub({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=gl.H(this.option.categories||[],(function(t){return null!=t.value?t:gl.m({value:0},t)})),e=new DO(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(ew),UX=VX,GX={type:"graphRoam",event:"graphRoam",update:"none"};var WX=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},YX=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return dl(e,t),e.prototype.getDefaultShape=function(){return new WX},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(Ef);function XX(t,e){var n=null==t?"":t+"";return e&&(Object(gl.C)(e)?n=e.replace("{value}",n):Object(gl.w)(e)&&(n=e(t))),n}var $X=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:Jh(n[0],e.getWidth()),cy:Jh(n[1],e.getHeight()),r:Jh(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),u=c.get("roundCap")?Jz:Yw,h=c.get("show"),p=c.getModel("lineStyle"),d=p.get("width"),f=[s,l];cf(f,!a);for(var g=(l=f[1])-(s=f[0]),v=s,m=[],y=0;h&&y=t&&(0===e?0:i[e-1][0])Math.PI/2&&(B+=Math.PI):"tangential"===N?B=-k-Math.PI/2:Object(gl.z)(N)&&(B=N*Math.PI/180),0===B?h.add(new ug({style:Av(_,{text:E,x:j,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:L}),silent:!0})):h.add(new ug({style:Av(_,{text:E,x:j,y:R,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:j,originY:R,rotation:B}))}if(y.get("show")&&A!==b){P=(P=y.get("distance"))?P+l:l;for(var z=0;z<=w;z++){c=Math.cos(k),u=Math.sin(k);var F=new ax({shape:{x1:c*(f-P)+p,y1:u*(f-P)+d,x2:c*(f-S-P)+p,y2:u*(f-S-P)+d},silent:!0,style:I});"auto"===I.stroke&&F.setStyle({stroke:i((A+z/w)/b)}),h.add(F),k+=C}k-=C}else k+=T}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var c=this.group,u=this._data,h=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),v=t.getData(),m=v.mapDimension("value"),y=+t.get("min"),_=+t.get("max"),b=[y,_],w=[o,a];function x(e,n){var i,o=v.getItemModel(e).getModel("pointer"),a=Jh(o.get("width"),r.r),s=Jh(o.get("length"),r.r),l=t.get(["pointer","icon"]),c=o.get("offsetCenter"),u=Jh(c[0],r.r),h=Jh(c[1],r.r),p=o.get("keepAspect");return(i=l?xk(l,u-a/2,h-s,a,s,null,p):new YX({shape:{angle:-Math.PI/2,width:a,r:s,x:u,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?Jz:Yw,i=f.get("overlap"),a=i?f.get("width"):l/v.count(),c=i?r.r-a:r.r-(t+1)*a,u=i?r.r:r.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:u}});return i&&(h.z2=_-v.get(m,t)%_),h}(g||d)&&(v.diff(u).add((function(e){var n=v.get(m,e);if(d){var i=x(e,o);_v(i,{rotation:-((isNaN(+n)?w[0]:Qh(n,b,w,!0))+Math.PI/2)},t),c.add(i),v.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");_v(r,{shape:{endAngle:Qh(n,b,w,a)}},t),c.add(r),pg(t.seriesIndex,v.dataType,e,r),p[e]=r}})).update((function(e,n){var i=v.get(m,e);if(d){var r=u.getItemGraphicEl(n),a=r?r.rotation:o,s=x(e,a);s.rotation=a,yv(s,{rotation:-((isNaN(+i)?w[0]:Qh(i,b,w,!0))+Math.PI/2)},t),c.add(s),v.setItemGraphicEl(e,s)}if(g){var l=h[n],y=S(e,l?l.shape.endAngle:o),_=f.get("clip");yv(y,{shape:{endAngle:Qh(i,b,w,_)}},t),c.add(y),pg(t.seriesIndex,v.dataType,e,y),p[e]=y}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),c=l.fill;if(s instanceof Ff){var u=s.style;s.useStyle(Object(gl.m)({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Qh(v.get(m,t),b,[0,1],!0))),s.z2EmphasisLift=0,uv(s,e),av(s,r,o,a)}if(g){var h=p[t];h.useStyle(v.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,uv(h,e),av(h,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=xk(r,e.cx-i/2+Jh(o[0],e.r),e.cy-i/2+Jh(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),u=new Wh,h=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new ug({silent:!0}),p[t]=new ug({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Wh,v=i(Qh(o,[l,c],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),_=r.cx+Jh(y[0],r.r),b=r.cy+Jh(y[1],r.r);(I=h[e]).attr({z2:f?0:2,style:Av(m,{x:_,y:b,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(I)}var w=n.getModel("detail");if(w.get("show")){var x=w.get("offsetCenter"),S=r.cx+Jh(x[0],r.r),k=r.cy+Jh(x[1],r.r),T=Jh(w.get("width"),r.r),C=Jh(w.get("height"),r.r),O=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,I=p[e],M=w.get("formatter");I.attr({z2:f?0:2,style:Av(w,{x:S,y:k,text:XX(o,M),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:O})}),Bv(I,{normal:w},o,(function(t){return XX(t,M)})),d&&zv(I,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return XX(a?a.interpolatedValue:o,M)}}),g.add(I)}u.add(g)})),this.group.add(u),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(pS),qX=$X,ZX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return dl(e,t),e.prototype.getInitialData=function(t,e){return PO(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(ew),KX=ZX;var QX=["itemStyle","opacity"],JX=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new nx,a=new ug;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return dl(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(QX);l=null==l?1:l,n||kv(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,_v(i,{style:{opacity:l}},r,e)):yv(i,{style:{opacity:l},shape:{points:a.points}},r,e),uv(i,o),this._updateLabel(t,e),av(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),c=l.fill;Iv(r,Mv(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:c,outsideFill:c});var u=s.linePoints;i.setShape({points:u}),n.textGuideLineConfig={anchor:u?new gc(u[0][0],u[0][1]):null},yv(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),HC(n,VC(a),{stroke:c})},e}(Jw),t$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return dl(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new JX(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){Sv(r.getItemGraphicEl(e),t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(pS),e$=t$,n$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LO(gl.c(this.getData,this),gl.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return PO(this,{coordDimensions:["value"],encodeDefaulter:gl.h(Sy,this)})},e.prototype._defaultLabelLine=function(t){kp(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(ew),i$=n$;function r$(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return Jm(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,c=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&_$(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function _$(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var b$=m$,w$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&gl.I(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){gl.k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=gl.n(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);gl.k(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(sy),x$=w$,S$=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return dl(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(JH);function k$(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=C$(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=C$(s,[0,a]),r=o=C$(s,[r,o]),i=0}e[0]=C$(e[0],n),e[1]=C$(e[1],n);var l=T$(e,i);e[i]+=t;var c,u=r||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,e[i]=C$(e[i],h),c=T$(e,i),null!=r&&(c.sign!==l.sign||c.spano&&(e[1-i]=e[i]+c.sign*o),e}function T$(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function C$(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var O$=gl.k,I$=Math.min,M$=Math.max,A$=Math.floor,D$=Math.ceil,P$=tp,E$=Math.PI;function L$(t,e){return I$(M$(t,e[0]),e[1])}function j$(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function R$(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();O$(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),MH(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Jm(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],c=this.dimensions.length,u=L$(e.get("axisExpandWidth"),l),h=L$(e.get("axisExpandCount")||0,[0,c]),p=e.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,d=e.get("axisExpandWindow");d?(t=L$(d[1]-d[0],l),d[1]=d[0]+t):(t=L$(u*(h-1),l),(d=[u*(e.get("axisExpandCenter")||A$(c/2))-t/2])[1]=d[0]+t);var f=(s-t)/(c-h);f<3&&(f=0);var g=[A$(P$(d[0]/u,1))+1,D$(P$(d[1]/u,1))-1],v=f/u*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:d,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),O$(n,(function(e,n){var o=(i.axisExpandable?R$:j$)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:E$/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],c=s[r],u=[1,0,0,1,0,0];pc(u,u,c),hc(u,u,l),this._axesLayout[e]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];gl.k(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),c=n;cr*(1-u[0])?(l="jump",a=s-r*(1-u[2])):(a=s-r*u[1])>=0&&(a=s-r*(1-u[1]))<=0&&(a=0),(a*=e.axisExpandWidth/c)?k$(a,i,o,"all"):l="none";else{var p=i[1]-i[0];(i=[M$(0,o[1]*s/p-p/2)])[1]=I$(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},t}();var B$={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new N$(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",zp).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},z$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return dl(e,t),e.prototype.getAreaSelectStyle=function(){return ed([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=gl.d(t);if(e)for(var n=e.length-1;n>=0;n--)ep(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;iY$}(t)||o){if(a&&!o){"single"===s.brushMode&&lq(t);var l=Object(gl.d)(s);l.brushType=Tq(l.brushType,a),l.panelId=a===H$?null:a.panelId,o=t._creatingCover=tq(t,l),t._covers.push(o)}if(o){var c=Iq[Tq(t._brushType,a)];o.__brushOption.range=c.getCreatingRange(wq(t,o,t._track)),i&&(eq(t,o),c.updateCommon(t,o)),nq(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&aq(t,e,n)&&lq(t)&&(r={isEnd:i,removeOnClick:!0});return r}function Tq(t,e){return"auto"===t?e.defaultBrushType:t}var Cq={mousedown:function(t){if(this._dragging)Oq(this,t);else if(!t.target||!t.target.draggable){xq(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=aq(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=aq(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new Kv(r[a],this,e));if(i&&n)return HX(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return Db("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return Db("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,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},e}(ew),Yq=Wq;function Xq(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return Jm(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,c=s.edges;!function(t){gl.k(t,(function(t){var e=iZ(t.outEdges,nZ),n=iZ(t.inEdges,nZ),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],c=[],u=[],h=0,p=0;p=0;m&&v.depth>d&&(d=v.depth),g.setLayout({depth:m?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yh-1?d:h-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)Zq(s,l*=.99,a),qq(s,r,n,i,a),rZ(s,l,a),qq(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";gl.k(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),gl.k(t,(function(t){var e=0,n=0;gl.k(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),gl.k(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,c,n,i,o,a,0!==gl.n(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function $q(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function qq(t,e,n,i,r){var o="vertical"===r?"x":"y";gl.k(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var c=0,u=t.length,h="vertical"===r?"dx":"dy",p=0;p0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[h]+e;if((l=c-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(p=u-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[h]+e-c)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}}))}function Zq(t,e,n){gl.k(t.slice().reverse(),(function(t){gl.k(t,(function(t){if(t.outEdges.length){var i=iZ(t.outEdges,Kq,n)/iZ(t.outEdges,nZ);if(isNaN(i)){var r=t.outEdges.length;i=r?iZ(t.outEdges,Qq,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-eZ(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-eZ(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Kq(t,e){return eZ(t.node2,e)*t.getValue()}function Qq(t,e){return eZ(t.node2,e)}function Jq(t,e){return eZ(t.node1,e)*t.getValue()}function tZ(t,e){return eZ(t.node1,e)}function eZ(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function nZ(t){return t.getValue()}function iZ(t,e,n){for(var i=0,r=t.length,o=-1;++oo&&(o=e)})),gl.k(n,(function(e){var n=new vY({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&gl.k(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var aZ=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],c="horizontal"===t.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],p=[r,o],d=p[c].get("type"),f=p[1-c].get("type"),g=t.data;if(g&&i){var v=[];gl.k(g,(function(t,e){var n;gl.t(t)?(n=t.slice(),t.unshift(e)):gl.t(t.value)?((n=gl.m({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,y=[{name:u,type:mO(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:mO(f),dimsDef:m.slice()}];return PO(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:gl.h(xy,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),sZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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 dl(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(ew);Object(gl.K)(sZ,aZ,!0);var lZ=sZ,cZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=pZ(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(kv(n),dZ(s,n,i,t)):n=pZ(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(pS),uZ=function(){},hZ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return dl(e,t),e.prototype.getDefaultShape=function(){return new uZ},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig){var b=[m,_];i.push(b)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var _Z=["color","borderColor"],bZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){iS(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&kZ(s,a))return;var l=SZ(a,n,!0);_v(l,{shape:{points:a.ends}},t,n),TZ(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var c=n.getItemGraphicEl(l);if(e.hasValue(a)){var u=e.getItemLayout(a);o&&kZ(s,u)?i.remove(c):(c?(yv(c,{shape:{points:u.ends}},t,a),kv(c)):c=SZ(u,a),TZ(c,e,a,r),i.add(c),e.setItemGraphicEl(a,c))}else i.remove(c)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),MZ(t,this.group);var e=t.get("clip",!0)?bz(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=SZ(i.getItemLayout(n),n);TZ(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){MZ(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(pS),wZ=function(){},xZ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return dl(e,t),e.prototype.getDefaultShape=function(){return new wZ},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Ef);function SZ(t,e,n){var i=t.ends;return new xZ({shape:{points:n?CZ(i,t):i},z2:100})}function kZ(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(_Z);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var DZ=bZ,PZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return dl(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,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},e}(ew);Object(gl.K)(PZ,aZ,!0);var EZ=PZ;function LZ(t){t&&gl.t(t.series)&&gl.k(t.series,(function(t){gl.A(t)&&"k"===t.type&&(t.type="candlestick")}))}var jZ=["itemStyle","borderColor"],RZ=["itemStyle","borderColor0"],NZ=["itemStyle","borderColorDoji"],BZ=["itemStyle","color"],zZ=["itemStyle","color0"],FZ={seriesType:"candlestick",plan:rw(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?BZ:zZ)}function i(t,e){return e.get(0===t?NZ:t>0?jZ:RZ)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");Object(gl.m)(l,s)}}}}};function HZ(t,e,n,i,r,o){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}var VZ={seriesType:"candlestick",plan:rw(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Jh(Object(gl.P)(t.get("barMaxWidth"),r),r),a=Jh(Object(gl.P)(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Jh(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=Object(gl.H)(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],c=a[2],u=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,i){var r,a,h=cz(4*n.count),p=0,d=[],f=[],g=i.getStore(),v=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var m=g.get(o,a),y=g.get(s,a),_=g.get(l,a),b=g.get(c,a),w=g.get(u,a);isNaN(m)||isNaN(b)||isNaN(w)?(h[p++]=NaN,p+=3):(h[p++]=HZ(g,a,y,_,l,v),d[0]=m,d[1]=b,r=e.dataToPoint(d,null,f),h[p++]=r?r[0]:NaN,h[p++]=r?r[1]:NaN,d[1]=w,r=e.dataToPoint(d,null,f),h[p++]=r?r[1]:NaN)}i.setLayout("largePoints",h)}:function(t,n){var r,a=n.getStore();for(;null!=(r=t.next());){var h=a.get(o,r),p=a.get(s,r),d=a.get(l,r),f=a.get(c,r),g=a.get(u,r),v=Math.min(p,d),m=Math.max(p,d),y=k(v,h),_=k(m,h),b=k(f,h),w=k(g,h),x=[];T(x,_,0),T(x,y,1),x.push(O(w),O(_),O(b),O(y));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:HZ(a,r,p,d,l,S),initBaseline:p>d?_[1]:y[1],ends:x,brushRect:C(f,g,h)})}function k(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function T(t,e,n){var r=e.slice(),o=e.slice();r[0]=Ux(r[0]+i/2,1,!1),o[0]=Ux(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function C(t,e,n){var r=k(t,n),o=k(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function O(t){return t[0]=Ux(t[0],1),t}}}}};function UZ(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var GZ=function(t){function e(e,n){var i=t.call(this)||this,r=new tz(e,n),o=new Wh;return i.add(r),i.add(o),i.updateData(e,n),i}return dl(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=gl.w(c)?c(n):c,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return Ml(t.__p1,t.__cp1)+Ml(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=mu,l=yu;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var c=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),u=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],c=n[o+1];t.x=l[0]*(1-s)+s*c[0],t.y=l[1]*(1-s)+s*c[1];var u=t.__t<1?c[0]-l[0]:l[0]-c[0],h=t.__t<1?c[1]-l[1]:l[1]-c[1];t.rotation=-Math.atan2(h,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(qZ),QZ=KZ,JZ=function(){this.polyline=!1,this.curveness=0,this.segs=[]},tK=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return dl(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JZ},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var h=(s+c)/2-(l-u)*r,p=(l+u)/2-(c-s)*r;t.quadraticCurveTo(h,p,c,u)}else t.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var c=i[s++],u=i[s++],h=1;h0){if(ff(c,u,(c+p)/2-(u-d)*r,(u+d)/2-(p-c)*r,p,d,o,t,e))return a}else if(pf(c,u,p,d,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),nK={seriesType:"lines",plan:rw(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var c=0,u=r.start;u0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var c=t.get("clip",!0)&&bz(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=nK.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new eK:new SX(r?i?QZ:ZZ:i?qZ:_X),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(pS),rK=iK,oK="undefined"===typeof Uint32Array?Array:Uint32Array,aK="undefined"===typeof Float64Array?Array:Float64Array;function sK(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(gl.H)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Object(gl.J)([e,t[0],t[1]])})))}var lK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return dl(e,t),e.prototype.init=function(e){e.data=e.data||[],sK(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(sK(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(gl.e)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(gl.e)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(ew),cK=lK;function uK(t){return t instanceof Array||(t=[t,t]),t}var hK={seriesType:"lines",reset:function(t){var e=uK(t.get("symbol")),n=uK(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=uK(n.getShallow("symbol",!0)),r=uK(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var pK=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Sh.d.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),p=t.length;u.width=e,u.height=n;for(var d=0;d0){var T=o(m)?s:l;m>0&&(m=m*S+x),_[b++]=T[k],_[b++]=T[k+1],_[b++]=T[k+2],_[b++]=T[k+3]*m*256}else b+=4}return h.putImageData(y,0,0),u},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Sh.d.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),dK=pK;function fK(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var gK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):fK(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(fK(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){iS(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,c=t.coordinateSystem,u=wz(c,"cartesian2d");if(u){var h=c.getAxis("x"),p=c.getAxis("y");0,o=h.getBandWidth()+.5,a=p.getBandWidth()+.5,s=h.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),_=Mv(t),b=t.getModel("emphasis"),w=b.get("focus"),x=b.get("blurScope"),S=b.get("disabled"),k=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],T=n;Ts[1]||Ml[1])continue;var A=c.dataToPoint([I,M]);C=new $f({shape:{x:A[0]-o/2,y:A[1]-a/2,width:o,height:a},style:O})}else{if(isNaN(f.get(k[1],T)))continue;C=new $f({z2:1,shape:c.dataToRect([f.get(k[0],T)]).contentShape,style:O})}if(f.hasItemOption){var D=f.getItemModel(T),P=D.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=D.getModel(["blur","itemStyle"]).getItemStyle(),m=D.getModel(["select","itemStyle"]).getItemStyle(),y=D.get(["itemStyle","borderRadius"]),w=P.get("focus"),x=P.get("blurScope"),S=P.get("disabled"),_=Mv(D)}C.shape.r=y;var E=t.getRawValue(T),L="-";E&&null!=E[2]&&(L=E[2]+""),Iv(C,_,{labelFetcher:t,labelDataIndex:T,defaultOpacity:O.opacity,defaultText:L}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=v,C.ensureState("select").style=m,av(C,w,x,S),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),d.add(C),f.setItemGraphicEl(T,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new dK;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),c=t.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),d=Math.min(l.height+l.y,i.getHeight()),f=p-u,g=d-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(v,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=u,r[1]-=h,r.push(i),r})),y=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=gl.H(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:-1}(n,o,r,i,h),function(t,e,n,i,r,o,a,s,l,c){var u,h=l.valueDim,p=l.categoryDim,d=Math.abs(n[p.wh]),f=t.getItemVisual(e,"symbolSize");u=gl.t(f)?f.slice():null==f?["100%","100%"]:[f,f];u[p.index]=Jh(u[p.index],d),u[h.index]=Jh(u[h.index],i?d:Math.abs(o)),c.symbolSize=u;var g=c.symbolScale=[u[0]/s,u[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,h.boundingLength,h.pxSign,c,i,h),function(t,e,n,i,r){var o=t.get(_K)||0;o&&(wK.attr({scaleX:e[0],scaleY:e[1],rotation:n}),wK.updateTransform(),o/=wK.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,h.symbolScale,l,i,h);var p=h.symbolSize,d=kk(n.get("symbolOffset"),p);return function(t,e,n,i,r,o,a,s,l,c,u,h){var p=u.categoryDim,d=u.valueDim,f=h.pxSign,g=Math.max(e[d.index]+s,0),v=g;if(i){var m=Math.abs(l),y=gl.O(t.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=Jh(y,e[d.index]),w=Math.max(g+2*b,0),x=_?0:2*b,S=vp(i),k=S?i:zK((m+x)/w);w=g+2*(b=(m-k*g)/2/(_?k:Math.max(k-1,1))),x=_?0:2*b,S||"fixed"===i||(k=c?zK((Math.abs(c)+x)/w):0),v=k*w-x,h.repeatTimes=k,h.symbolMargin=b}var T=f*(v/2),C=h.pathPosition=[];C[p.index]=n[p.wh]/2,C[d.index]="start"===a?T:"end"===a?l-T:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var O=h.bundlePosition=[];O[p.index]=n[p.xy],O[d.index]=n[d.xy];var I=h.barRectShape=gl.m({},n);I[d.wh]=f*Math.max(Math.abs(n[d.wh]),Math.abs(C[d.index]+T)),I[p.wh]=n[p.wh];var M=h.clipShape={};M[p.xy]=-n[p.xy],M[p.wh]=u.ecSize[p.wh],M[d.xy]=0,M[d.wh]=n[d.wh]}(n,p,r,o,0,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function kK(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function TK(t){var e=t.symbolPatternSize,n=xk(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function CK(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,c=n.repeatTimes||0,u=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(RK(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u0:i<0)&&(r=c-1-t),e[l.index]=h*(r-c/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function OK(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?NK(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=TK(n),r.add(o),NK(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 IK(t,e,n){var i=gl.m({},e.barRectShape),r=t.__pictorialBarRect;r?NK(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new $f({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function MK(t,e,n,r){if(n.symbolClip){var o=t.__pictorialClipPath,a=gl.m({},n.clipShape),s=e.valueDim,l=n.animationModel,c=n.dataIndex;if(o)yv(o,{shape:a},l,c);else{a[s.wh]=0,o=new $f({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var u={};u[s.wh]=n.clipShape[s.wh],i[r?"updateProps":"initProps"](o,{shape:u},l,c)}}}function AK(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=DK,n.isAnimationEnabled=PK,n}function DK(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function PK(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function EK(t,e,n,i){var r=new Wh,o=new Wh;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?CK(r,e,n):OK(r,0,n),IK(r,n,i),MK(r,e,n,i),r.__pictorialShapeStr=jK(t,n),r.__pictorialSymbolMeta=n,r}function LK(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];RK(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),gl.k(o,(function(t){wv(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function jK(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function RK(t,e,n){gl.k(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function NK(t,e,n,r,o,a){e&&t.attr(e),r.symbolClip&&!o?n&&t.attr(n):n&&i[o?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,a)}function BK(t,e,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(),c=r.getShallow("cursor"),u=o.get("focus"),h=o.get("blurScope"),p=o.get("scale");RK(t,(function(t){if(t instanceof Ff){var e=t.style;t.useStyle(gl.m({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,c&&(t.cursor=c),t.z2=n.z2}));var d=e.valueDim.posDesc[+(n.boundingLength>0)];Iv(t.__pictorialBarRect,Mv(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:KB(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),av(t,u,h,o.get("disabled"))}function zK(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var FK=xK,HK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return dl(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=tm(qz.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"}}}),e}(qz),VK=HK;var UK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return dl(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(t){return t.name}o.x=0,o.y=l.y+c[0];var h=new fO(this._layersSeries||[],a,u,u),p=[];function d(e,n,s){var l=r._layers;if("remove"!==e){for(var c,u,h=[],d=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var c=0;co&&(o=h)}return{y0:r,max:o}}(l),u=c.y0,h=n/c.max,p=o.length,d=o[0].indices.length,f=0;fMath.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+x,a>Math.PI/2&&(S="right")):"right"===S&&(y=r.r-x,a>Math.PI/2&&(S="left")):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(p,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var k=f(p,"rotate"),T=0;"radial"===k?(T=vf(-a))>Math.PI/2&&T<1.5*Math.PI&&(T+=Math.PI):"tangential"===k?(T=Math.PI/2-a)>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI):gl.z(k)&&(T=k*Math.PI/180),g.rotation=T})),u.dirtyStyle()},e}(Yw),ZK="sunburstRootToNode",KK="sunburstHighlight",QK="sunburstUnhighlight";var JK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,c=t.get("renderLabelForZeroData"),u=[];s.eachNode((function(t){u.push(t)}));var h=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(t){return t.getId()}function u(s,u){!function(i,r){c||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new qK(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==u?null:r[u])}new fO(r,i,s,s).add(u).update(u).remove(gl.h(u,null)).execute()}(u,h),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new qK(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=u},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a)Xm(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ZK,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(pS),tQ=JK,eQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return dl(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};nQ(n);var i=this._levelModels=gl.H(t.levels||[],(function(t){return new Kv(t,this,e)}),this),r=kW.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=IW(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){jW(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(ew);function nQ(t){var e=0;gl.k(t.children,(function(t){nQ(t);var n=t.value;gl.t(n)&&(n=n[0]),e+=n}));var n=t.value;gl.t(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),gl.t(t.value)?t.value[0]=n:t.value=n}var iQ=eQ,rQ=Math.PI/180;function oQ(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");gl.t(i)||(i=[0,i]),gl.t(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Jh(e[0],r),l=Jh(e[1],o),c=Jh(i[0],a/2),u=Jh(i[1],a/2),h=-t.get("startAngle")*rQ,p=t.get("minAngle")*rQ,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get("sort");null!=v&&aQ(f,v);var m=0;gl.k(f.children,(function(t){!isNaN(t.getValue())&&m++}));var y=f.getValue(),_=Math.PI/(y||m)*2,b=f.depth>0,w=f.height-(b?-1:1),x=(u-c)/(w||1),S=t.get("clockwise"),k=t.get("stillShowZeroSum"),T=S?1:-1;if(b){var C=c,O=c+x,I=2*Math.PI;d.setLayout({angle:I,startAngle:h,endAngle:h+I,clockwise:S,cx:s,cy:l,r0:C,r:O})}!function e(n,i){if(n){var r=i;if(n!==d){var o=n.getValue(),u=0===y&&k?_:o*_;u1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(gl.C)(o)&&(o=Object(Cu.c)(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height));var a=n.ensureUniqueItemVisual(r.dataIndex,"style");Object(gl.m)(a,o)}))}))}var lQ={color:"fill",borderColor:"stroke"},cQ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},uQ=jp(),hQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return $B(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=uQ(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(ew),pQ=hQ;function dQ(t,e){return e=e||[0,0],gl.H(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function fQ(t,e){return e=e||[0,0],gl.H([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function gQ(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function vQ(t,e){return e=e||[0,0],gl.H(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[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 mQ(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(gl.q)(t,"text")))}function yQ(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Object(gl.q)(a,"text")&&(o.text=a.text),Object(gl.q)(a,"rich")&&(o.rich=a.rich),Object(gl.q)(a,"textFill")&&(o.fill=a.textFill),Object(gl.q)(a,"textStroke")&&(o.stroke=a.textStroke),Object(gl.q)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(gl.q)(a,"fontSize")&&(o.fontSize=a.fontSize),Object(gl.q)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(gl.q)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Object(gl.q)(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Object(gl.q)(a,"textPosition")&&(i.position=a.textPosition),Object(gl.q)(a,"textOffset")&&(i.offset=a.textOffset),Object(gl.q)(a,"textRotation")&&(i.rotation=a.textRotation),Object(gl.q)(a,"textDistance")&&(i.distance=a.textDistance)}return _Q(o,t),Object(gl.k)(o.rich,(function(t){_Q(t,t)})),{textConfig:i,textContent:r}}function _Q(t,e){e&&(e.font=e.textFont||e.font,Object(gl.q)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(gl.q)(e,"textAlign")&&(t.align=e.textAlign),Object(gl.q)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(gl.q)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(gl.q)(e,"textWidth")&&(t.width=e.textWidth),Object(gl.q)(e,"textHeight")&&(t.height=e.textHeight),Object(gl.q)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(gl.q)(e,"textPadding")&&(t.padding=e.textPadding),Object(gl.q)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(gl.q)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(gl.q)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(gl.q)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(gl.q)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(gl.q)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(gl.q)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function bQ(t,e,n){var i=t;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=t.fill||"#000";wQ(i,e);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=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(gl.k)(e.rich,(function(t){wQ(t,t)})),i}function wQ(t,e){e&&(Object(gl.q)(e,"fill")&&(t.textFill=e.fill),Object(gl.q)(e,"stroke")&&(t.textStroke=e.fill),Object(gl.q)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(gl.q)(e,"font")&&(t.font=e.font),Object(gl.q)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(gl.q)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(gl.q)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(gl.q)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(gl.q)(e,"align")&&(t.textAlign=e.align),Object(gl.q)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(gl.q)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(gl.q)(e,"width")&&(t.textWidth=e.width),Object(gl.q)(e,"height")&&(t.textHeight=e.height),Object(gl.q)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(gl.q)(e,"padding")&&(t.textPadding=e.padding),Object(gl.q)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(gl.q)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(gl.q)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(gl.q)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(gl.q)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(gl.q)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(gl.q)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(gl.q)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(gl.q)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(gl.q)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(gl.q)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var xQ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},SQ=Object(gl.F)(xQ),kQ=(Object(gl.N)(_h,(function(t,e){return t[e]=1,t}),{}),_h.join(", "),["","style","shape","extra"]),TQ=jp();function CQ(t,e,n,i,r){var o=t+"Animation",a=vv(t,i,r)||{},s=TQ(e).userDuring;return a.duration>0&&(a.during=s?Object(gl.c)(EQ,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(gl.m)(a,n[o]),a}function OQ(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=TQ(t),c=e.style;l.userDuring=e.during;var u={},h={};if(function(t,e,n){for(var i=0;i=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var d=Object(gl.F)(n);for(c=0;c0&&t.animateFrom(p,d)}else!function(t,e,n,i,r){if(r){var o=CQ("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,u);IQ(t,e),c?t.dirty():t.markRedraw()}function IQ(t,e){for(var n=TQ(t).leaveToProps,i=0;i=0){!o&&(o=i[t]={});var p=Object(gl.F)(a);for(u=0;ui[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:gl.c(vQ,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function QQ(t){return t instanceof Ef}function JQ(t){return t instanceof Md}var tJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=aJ(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){lJ(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&MQ(n,uQ(n).option,t)})).update((function(e,l){var c=r.getItemGraphicEl(l);lJ(n,c,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?bz(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=aJ(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c=0?e.getStore().get(r,n):void 0}var o=e.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=y(i,HQ).getItemStyle(),o=_(i,HQ),a=Av(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(gl.Q)(t.getFormattedLabel(i,HQ),t.getFormattedLabel(i,VQ),KB(e,i)):null;var l=Dv(o,null,!0);return w(n,r),r=bQ(r,a,l),n&&b(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),Object(gl.q)(lQ,t)){var i=e.getItemVisual(n,"style");return i?i[lQ[t]]:null}if(Object(gl.q)(cQ,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=h;f--){var g=e.childAt(f);fJ(e,g,r)}}(t,h,n,i,r),a>=0?o.replaceAt(h,a):o.add(h),h}function uJ(t,e,n){var i,r=uQ(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(Object(gl.q)(i,"pathData")||Object(gl.q)(i,"d")))&&yJ(a)!==r.customPathData||"image"===o&&Object(gl.q)(s,"image")&&s.image!==r.customImagePath}function hJ(t,e,n){var i=e?pJ(t,e):t,r=e?dJ(t,i,HQ):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?pJ(s,e):s:null;if(r&&(n.isLegacy||mQ(r,o,!!a,!!l))){n.isLegacy=!0;var c=yQ(r,o,!e);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!e&&l){var u=l;!u.type&&(u.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function pJ(t,e){return e?t?t[e]:null:t}function dJ(t,e,n){var i=e&&e.style;return null==i&&n===HQ&&t&&(i=t.styleEmphasis),i}function fJ(t,e,n){e&&MQ(e,uQ(t).option,n)}function gJ(t,e){var n=t&&t.name;return null!=n?n:qQ+e}function vJ(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;cJ(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function mJ(t){var e=this.context,n=e.oldChildren[t];n&&MQ(n,uQ(n).option,e.seriesModel)}function yJ(t){return t&&(t.pathData||t.d)}var _J=jp(),bJ=gl.d,wJ=gl.c,xJ=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,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,t,e,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=gl.h(SJ,e,u);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Wh,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);OJ(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.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=wV(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,r){var o=e.pointer;if(o){var a=_J(t).pointerEl=new i[o.type](bJ(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=_J(t).labelEl=new ug(bJ(e.label));t.add(r),TJ(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=_J(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=_J(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),TJ(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,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||(e=!0,r=this._handle=Kx(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ic(t.event)},onmousedown:wJ(this._onHandleDragMove,this,0,0),drift:wJ(this._onHandleDragMove,this),ondragend:wJ(this._onHandleDragEnd,this)}),i.add(r)),OJ(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");gl.t(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,mS(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){SJ(this._axisPointerModel,!e&&this._moveAnimation,this._handle,CJ(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(CJ(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(CJ(i)),_J(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),yS(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function SJ(t,e,n,i){kJ(_J(n).lastProp,i)||(_J(n).lastProp=i,e?yv(n,i,t):(n.stopAnimation(),n.attr(i)))}function kJ(t,e){if(gl.A(t)&&gl.A(e)){var n=!0;return gl.k(e,(function(e,i){n=n&&kJ(t[i],e)})),!!n}return t===e}function TJ(t,e){t[e.get(["label","show"])?"show":"hide"]()}function CJ(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function OJ(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var IJ=xJ;function MJ(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function AJ(t,e,n,i,r){var o=DJ(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Hm(a.get("padding")||0),l=a.getFont(),c=Oh(o,l),u=r.position,h=c.width+s[1]+s[3],p=c.height+s[0]+s[2],d=r.align;"right"===d&&(u[0]-=h),"center"===d&&(u[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(u[1]-=p),"middle"===f&&(u[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(u,h,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Av(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function DJ(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:PH(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};gl.k(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),gl.C(a)?o=a.replace("{value}",o):gl.w(a)&&(o=a(s))}return o}function PJ(t,e,n){var i=[1,0,0,1,0,0];return pc(i,i,n.rotation),hc(i,i,n.position),Wx([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function EJ(t,e,n,i,r,o){var a=yV.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),AJ(e,i,r,o,{position:PJ(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function LJ(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function jJ(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function RJ(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var NJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=BJ(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var u=MJ(i),h=zJ[s](o,c,l);h.style=u,t.graphicKey=h.type,t.pointer=h}EJ(e,t,nV(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=nV(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=PJ(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=BJ(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(IJ);function BJ(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var zJ={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:LJ([e,n[0]],[e,n[1]],FJ(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:jJ([e-i/2,n[0]],[i,r],FJ(t))}}};function FJ(t){return"x"===t.dim?0:1}var HJ=NJ,VJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(sy),UJ=VJ,GJ=jp(),WJ=gl.k;function YJ(t,e,n){if(!fl.a.node){var i=e.getZr();GJ(i).records||(GJ(i).records={}),function(t,e){if(GJ(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);WJ(GJ(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}GJ(t).initialized=!0,n("click",gl.h($J,"click")),n("mousemove",gl.h($J,"mousemove")),n("globalout",XJ)}(i,e),(GJ(i).records[t]||(GJ(i).records[t]={})).handler=n}}function XJ(t,e,n){t.handler("leave",null,n)}function $J(t,e,n,i){e.handler(t,n,i)}function qJ(t,e){if(!fl.a.node){var n=e.getZr();(GJ(n).records||{})[t]&&(GJ(n).records[t]=null)}}var ZJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";YJ("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){qJ("axisPointer",e)},e.prototype.dispose=function(t,e){qJ("axisPointer",e)},e.type="axisPointer",e}(iw),KJ=ZJ;function QJ(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Lp(o,t);if(null==a||a<0||gl.t(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c).dim,h=c.dim,p="x"===u||"radius"===u?1:0,d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(gl.H(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var JJ=jp();function t0(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(gl.c)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){o0(r)&&(r=QJ({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=o0(r),c=o.axesInfo,u=s.axesInfo,h="leave"===i||o0(r),p={},d={},f={list:[],map:{}},g={showPointer:Object(gl.h)(n0,d),showTooltip:Object(gl.h)(i0,f)};Object(gl.k)(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Object(gl.k)(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);if(!h&&n&&(!c||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&e0(t,a,g,!1,p)}}))}));var v={};return Object(gl.k)(u,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(gl.k)(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,r0(e),r0(t)))),v[t.key]=o}}))})),Object(gl.k)(v,(function(t,e){e0(u[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];Object(gl.k)(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(d,u,p),function(t,e,n,i){if(o0(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=JJ(i)[r]||{},a=JJ(i)[r]={};Object(gl.k)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(gl.k)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(gl.k)(o,(function(t,e){!a[e]&&l.push(t)})),Object(gl.k)(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(u,0,n),p}}function e0(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(gl.k)(e.seriesModels,(function(e,l){var c,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);u=p.dataIndices,c=p.nestestValue}else{if(!(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var d=t-c,f=Math.abs(d);f<=a&&((f=0&&s<0)&&(a=f,s=d,r=c,o.length=0),Object(gl.k)(u,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(gl.m)(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function n0(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function i0(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,c=SV(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.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 r0(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function o0(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function a0(t){CV.registerAxisPointerClass("CartesianAxisPointer",HJ),t.registerComponentModel(UJ),t.registerComponentView(KJ),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(gl.t)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=_V(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},t0)}var s0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.makeElOption=function(t,e,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(e),c=i.get("type");if(c&&"none"!==c){var u=MJ(i),h=l0[c](o,a,l,s);h.style=u,t.graphicKey=h.type,t.pointer=h}var p=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var p=[1,0,0,1,0,0];pc(p,p,s),hc(p,p,[i.cx,i.cy]),l=Wx([a,-r],p);var d=e.getModel("axisLabel").get("rotate")||0,f=yV.innerTextLayout(s,d*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var v=i.cx,m=i.cy;c=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",u=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}(e,n,0,a,i.get(["label","margin"]));AJ(t,n,i,r,p)},e}(IJ);var l0={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:LJ(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:RJ(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:RJ(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},c0=s0,u0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(sy),h0=u0,p0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",zp).models[0]},e.type="polarAxis",e}(sy);gl.K(p0,AF);var d0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="angleAxis",e}(p0),f0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="radiusAxis",e}(p0),g0=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return dl(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(JH);g0.prototype.dataToRadius=JH.prototype.dataToCoord,g0.prototype.radiusToData=JH.prototype.coordToData;var v0=g0,m0=jp(),y0=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return dl(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Oh(null==o?"":o+"",e.getFont(),"center","top"),c=Math.max(l.height,7)/s;isNaN(c)&&(c=1/0);var u=Math.max(0,Math.floor(c)),h=m0(t.model),p=h.lastAutoInterval,d=h.lastTickCount;return null!=p&&null!=d&&Math.abs(p-u)<=1&&Math.abs(d-r)<=1&&p>u?u=p:(h.lastTickCount=r,h.lastAutoInterval=u),u},e}(JH);y0.prototype.dataToAngle=JH.prototype.dataToCoord,y0.prototype.angleToData=JH.prototype.coordToData;var _0=y0,b0=["radius","angle"];function w0(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var x0=function(){function t(t){this.dimensions=b0,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new v0,this._angleAxis=new _0,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[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(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,c=la;)l+=360*c;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return w0(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return w0(e)===this?this.pointToData(n):null},t}();function S0(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();gl.k(RH(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),gl.k(RH(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),MH(i.scale,i.model),MH(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 k0(t,e){if(t.type=e.get("type"),t.scale=AH(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var T0={dimensions:b0,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new x0(i+"");r.update=S0;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");k0(o,s),k0(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Jh(i[0],r),t.cy=Jh(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:gl.t(l)||(l=[0,l]);var c=[Jh(l[0],s),Jh(l[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",zp).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},C0=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function O0(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function I0(t){return t.getRadiusAxis().inverse?0:1}function M0(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var A0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return dl(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=gl.H(n.getViewLabels(),(function(t){t=gl.d(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));M0(s),M0(o),gl.k(C0,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||D0[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(CV),D0={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=I0(n),c=l?0:1;(a=0===o[c]?new Ow({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new qw({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[I0(n)],c=gl.H(i,(function(t){return new ax({shape:O0(n,[l,l+s],t.coord)})}));t.add(zx(c,{style:gl.i(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),c=o[I0(n)],u=[],h=0;hf?"left":"right",m=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];gl.A(y)&&y.textStyle&&(a=new Kv(y.textStyle,l,l.ecModel))}var _=new ug({silent:yV.isLabelSilent(e),style:Av(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:m})});if(t.add(_),u){var b=yV.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=i.rawLabel,hg(_).eventData=b}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=0;u=0?"p":"n",C=b;y&&(i[s][k]||(i[s][k]={p:b,n:b}),C=i[s][k][T]);var O=void 0,I=void 0,M=void 0,A=void 0;if("radius"===h.dim){var D=h.dataToCoord(S)-b,P=o.dataToCoord(k);Math.abs(D)=A})}}}))},H0={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},V0={splitNumber:5},U0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="polar",e}(iw);function G0(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?c.vertical[o]:l[0],"horizontal"===a?c.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],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),gl.O(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var u=e.rotate;return null==u&&(u=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-u:u,r.z2=1,r}var W0=["axisLine","axisTickLabel","axisName"],Y0=["splitArea","splitLine"],X0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return dl(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Wh;var s=G0(e),l=new yV(e,s);gl.k(W0,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),gl.k(Y0,(function(t){e.get([t,"show"])&&$0[t](this,this.group,this._axisGroup,e)}),this),$x(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){MV(this)},e.type="singleAxis",e}(CV),$0={splitLine:function(t,e,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=a.get("width"),c=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=[],p=0,d=r.getTicksCoords({tickModel:o}),f=[],g=[],v=0;v=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return t1(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return t1(e)===this?this.pointToData(n):null},t}();var n1={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new e1(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",zp).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:J0},i1=["x","y"],r1=["width","height"],o1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=l1(a,1-s1(o)),l=a.dataToPoint(e)[0],c=i.get("type");if(c&&"none"!==c){var u=MJ(i),h=a1[c](o,l,s);h.style=u,t.graphicKey=h.type,t.pointer=h}EJ(e,t,G0(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=G0(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=PJ(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=s1(r),s=l1(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=l1(o,1-a),u=(c[1]+c[0])/2,h=[u,u];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(IJ),a1={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:LJ([e,n[0]],[e,n[1]],s1(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:jJ([e-i/2,n[0]],[i,r],s1(t))}}};function s1(t){return t.isHorizontal()?0:1}function l1(t,e){var n=t.getRect();return[n[i1[e]],n[i1[e]]+n[r1[e]]]}var c1=o1,u1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="single",e}(iw);var h1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.init=function(e,n,i){var r=iy(e);t.prototype.init.apply(this,arguments),p1(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),p1(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(sy);function p1(t,e){var n,i=t.cellSize;1===(n=gl.t(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=gl.H([0,1],(function(t){return function(t,e){return null!=t[Zm[e][0]]||null!=t[Zm[e][1]]&&null!=t[Zm[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));ny(t,e,{type:"box",ignoreSize:r})}var d1=h1,f1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new $f({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(c)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){p(c.formatedDate),0===u&&(c=o.getDateInfo(e.start.y+"-"+e.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function p(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}p(o.getNextNDay(e.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)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new nx({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),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},e.prototype._formatterLabel=function(t,e){return Object(gl.C)(t)&&t?(n=t,i=e,gl.k(i,(function(t,e){n=n.replace("{"+e+"}",r?$l(t):t)})),n):Object(gl.w)(t)?t(e):e.nameMap;var n,i,r},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[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]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.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,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(d,f),v=new ug({z2:30,style:Av(r,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),i.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(gl.C)(o)||(o&&(e=lm(o)||e),o=e.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,d=0;d=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/v1)-Math.floor(n[0].time/v1)+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 c=Math.floor((i+n[0].day+6)/7),u=e?1-c:c-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function _1(t,e){var n;return gl.k(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var b1=["transition","enterFrom","leaveTo"],w1=b1.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function x1(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?b1:w1,r=0;r=0;l--){var p,d,f;if(f=null!=(d=Dp((p=n[l]).id,null))?r.get(d):null){var g=f.parent,v=(h=T1(g),{}),m=ty(f,p,g===i?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:p.hv,boundingMode:p.bounding},v);if(!T1(f).isNew&&m){for(var y=p.transition,_={},b=0;b=0)?_[w]=x:f[w]=x}yv(f,_,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){M1(n,T1(n).option,e,t._lastGraphicModel)})),this._elMap=gl.f()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(iw);function O1(t){var e=new(gl.q(k1,t)?k1[t]:jx(t))({});return T1(e).type=t,e}function I1(t,e,n,i){var r=O1(n);return e.add(r),i.set(t,r),T1(r).id=t,T1(r).isNew=!0,r}function M1(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){M1(t,e,n,i)})),MQ(t,e,i),n.removeKey(T1(t).id))}function A1(t,e,n,i){t.isGroup||gl.k([["cursor",Md.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];gl.q(e,i)?t[i]=gl.P(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),gl.k(gl.F(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=gl.w(i)?i:null}})),gl.q(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var D1=["x","y","radius","angle","single"],P1=["cartesian2d","polar","singleAxis"];function E1(t){return t+"Axis"}function L1(t,e){var n,i=Object(gl.f)(),r=[],o=Object(gl.f)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function j1(t){var e=t.ecModel,n={infoList:[],infoMap:Object(gl.f)()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(E1(t),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 R1=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),N1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return dl(e,t),e.prototype.init=function(t,e,n){var i=B1(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=B1(t);Object(gl.I)(this.option,t,!0),Object(gl.I)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(gl.k)([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(gl.f)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(gl.k)(D1,(function(n){var i=this.getReferringComponents(E1(n),Fp);if(i.specified){e=!0;var r=new R1;Object(gl.k)(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new R1;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",zp).models[0];a&&Object(gl.k)(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",zp).models[0]&&o.add(t.componentIndex)}))}}}i&&Object(gl.k)(D1,(function(e){if(i){var r=n.findComponents({mainType:E1(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new R1;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(gl.k)([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(E1(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(gl.k)(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(E1(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(gl.k)([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(gl.k)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=E1(this._dimName),i=e.getReferringComponents(n,zp).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return gl.d(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];Y1(["start","end"],(function(l,c){var u=t[l],h=t[l+"Value"];"percent"===r[c]?(null==u&&(u=o[c]),h=i.parse(Qh(u,o,n))):(e=!0,u=Qh(h=null==h?n[c]:i.parse(h),n,o)),s[c]=null==h||isNaN(h)?n[c]:h,a[c]=null==u||isNaN(u)?o[c]:u})),X1(s),X1(a);var l=this._minMaxSpan;function c(t,e,n,r,o){var a=o?"Span":"ValueSpan";k$(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Qh(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?c(s,a,n,o,!1):c(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];Y1(n,(function(t){!function(t,e,n){e&&gl.k(RH(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])}))}(i,t.getData(),e)}));var r=t.getAxisModel(),o=CH(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&Y1(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=gl.H(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;lo[1];if(u&&!h&&!p)return!0;u&&(r=!0),h&&(e=!0),p&&(n=!0)}return r&&e&&n}))}else Y1(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));Y1(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;Y1(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Qh(n[0]+o,n,[0,100],!0):null!=r&&(o=Qh(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=ip(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}(),q1={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(E1(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new $1(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=Object(gl.f)();return Object(gl.k)(n,(function(t){Object(gl.k)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var Z1=!1;function K1(t){Z1||(Z1=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,q1),function(t){t.registerAction("dataZoom",(function(t,e){var n=L1(e,t);Object(gl.k)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Q1(t){t.registerComponentModel(H1),t.registerComponentView(W1),K1(t)}var J1=function(){},t2={};function e2(t,e){t2[t]=e}function n2(t){return t2[t]}var i2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;gl.k(this.option.feature,(function(t,n){var i=n2(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),gl.I(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(sy),r2=i2;function o2(t,e){var n=Hm(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new $f({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var a2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];gl.k(s,(function(t,e){c.push(e)})),new fO(this._featureNames||[],c).add(u).update(u).remove(gl.h(u,null)).execute(),this._featureNames=c,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Jm(i,o,r);Qm(e.get("orient"),t,e.get("itemGap"),a.width,a.height),ty(t,i,o,r)}(r,t,n),r.add(o2(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!gl.w(l)&&e){var c=l.style||(l.style={}),u=Oh(e,ug.makeFont(c)),h=t.x+r.x,p=!1;t.y+r.y+o+u.height>n.getHeight()&&(a.position="top",p=!0);var d=p?-5-u.height:o+10;h+u.width/2>n.getWidth()?(a.position=["100%",d],c.align="right"):h-u.width/2<0&&(a.position=[0,d],c.align="left")}}))}function u(u,h){var p,d=c[u],f=c[h],g=s[d],v=new Kv(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(g.title=i.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))p={onclick:v.option.onclick,featureName:d};else{var m=n2(d);if(!m)return;p=new m}l[d]=p}else if(!(p=l[f]))return;p.uid=Jv("toolbox-feature"),p.model=v,p.ecModel=e,p.api=n;var y=p instanceof J1;d||!f?!v.get("show")||y&&p.unusable?y&&p.remove&&p.remove(e,n):(!function(i,s,l){var c,u,h=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),d=s instanceof J1&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};gl.C(d)?(c={})[l]=d:c=d;gl.C(f)?(u={})[l]=f:u=f;var g=i.iconPaths={};gl.k(c,(function(l,c){var d=Kx(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(h.getItemStyle()),d.ensureState("emphasis").style=p.getItemStyle();var f=new ug({style:{text:u[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});d.setTextContent(f),eS({el:d,componentModel:t,itemName:c,formatterParamsExtra:{title:u[c]}}),d.__title=u[c],d.on("mouseover",(function(){var e=p.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),d.setTextConfig({position:p.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",c])?Yg:Xg)(d),r.add(d),d.on("click",gl.c(s.onclick,s,e,n,c)),g[c]=d}))}(v,p,d),v.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Yg:Xg)(i[t])},p instanceof J1&&p.render&&p.render(v,e,n,i)):y&&p.dispose&&p.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){gl.k(this._features,(function(t){t instanceof J1&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){gl.k(this._features,(function(n){n instanceof J1&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){gl.k(this._features,(function(n){n instanceof J1&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(iw);var s2=a2,l2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=fl.a.browser;if(Object(gl.w)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||r){var u=a.split(","),h=u[0].indexOf("base64")>-1,p=r?decodeURIComponent(u[1]):u[1];h&&(p=window.atob(p));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var f=p.length,g=new Uint8Array(f);f--;)g[f]=p.charCodeAt(f);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var y=m.contentWindow,_=y.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),y.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var b=n.get("lang"),w='',x=window.open();x.document.write(w),x.document.title=i}},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(J1),c2=l2,u2="__ec_magicType_stack__",h2=[["line","bar"],["stack"]],p2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return gl.k(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(d2[n]){var o,a={series:[]};gl.k(h2,(function(t){gl.r(t,n)>=0&&gl.k(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=d2[n](e,r,t,i);o&&(gl.i(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",u=t.getReferringComponents(c,zp).models[0].componentIndex;a[c]=a[c]||[];for(var h=0;h<=u;h++)a[c][u]=a[c][u]||{};a[c][u].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=gl.I({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(J1),d2={line:function(t,e,n,i){if("bar"===t)return gl.I({id:e,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(t,e,n,i){if("line"===t)return gl.I({id:e,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(t,e,n,i){var r=n.get("stack")===u2;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),gl.I({id:e,stack:r?"":u2},i.get(["option","stack"])||{},!0)}};rC({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var f2=p2,g2=new Array(60).join("-"),v2="\t";function m2(t){var e=[];return gl.k(t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(gl.H(t.series,(function(t){return t.name}))),a=[i.model.getCategories()];gl.k(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var s=[o.join(v2)],l=0;l=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=y2(e.shift()).split(_2),i=[],r=gl.H(n,(function(t){return{name:t,data:[]}})),o=0;o=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=R2[t.brushType](0,n,e);t.__rangeOffset={offset:B2[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(gl.k)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(gl.k)(i.coordSyses,(function(i){var r=R2[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(gl.k)(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=R2[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?B2[t.brushType](i.values,r.offset,function(t,e){var n=F2(t),i=F2(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(gl.H)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Dq(i),isTargetByCursor:Eq(i,t,n.coordSysModel),getLinearBrushOtherExtent:Pq(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(gl.r)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=P2(e,t),r=0;rt[1]&&t.reverse(),t}function P2(t,e){return Np(t,e,{includeMainTypes:M2})}var E2={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Object(gl.f)(),a={},s={};(n||i||r)&&(Object(gl.k)(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(gl.k)(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Object(gl.k)(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Object(gl.k)(r.getCartesians(),(function(t,e){(Object(gl.r)(n,t.getAxis("x").model)>=0||Object(gl.r)(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:j2.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(gl.k)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:j2.geo})}))}},L2=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],j2={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Gx(t)),e}},R2={lineX:Object(gl.h)(N2,0),lineY:Object(gl.h)(N2,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[D2([r[0],o[0]]),D2([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(gl.H)(n,(function(n){var o=t?e.pointToData(n,i):e.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 N2(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=D2(Object(gl.H)([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var B2={lineX:Object(gl.h)(z2,0),lineY:Object(gl.h)(z2,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(gl.H)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function z2(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function F2(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var H2,V2,U2=A2,G2=gl.k,W2=xp+"toolbox-dataZoom_",Y2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new Aq(n.getZr()),this._brushController.on("brush",gl.c(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new U2($2(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return C2(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){X2[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new U2($2(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=C2(t);k2(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.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(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=k$(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];G2(t,(function(t,n){e.push(gl.d(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(J1),X2={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=C2(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return k2(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function $2(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}H2="dataZoom",V2=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Np(t,$2(i));return G2(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),G2(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:W2+e+o};a[n]=o,r.push(a)}},Object(gl.b)(null==Oy.get(H2)&&V2),Oy.set(H2,V2);var q2=Y2;var Z2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(sy),K2=Z2;function Q2(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function J2(t){if(fl.a.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(c+="top:50%",u+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,p=l+r,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'
'}(n,i,r)),Object(gl.C)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(gl.t)(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!fl.a.node&&n.getDom()){var r=v5(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=Bp(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=Hp(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=hg(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,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=d5;l.x=i.x,l.y=i.y,l.update(),hg(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(t,e,n,i))return;var c=QJ(i,e),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.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))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(v5(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===g5([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}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,ck(n,(function(t){return null!=hg(t).dataIndex?(r=t,!0):null!=hg(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(gl.c)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=g5([e.tooltipOption],i),a=this._renderMode,s=[],l=Db("section",{blocks:[],noHeader:!0}),c=[],u=new Vb;Object(gl.k)(t,(function(t){Object(gl.k)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=DJ(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Db("section",{header:o,noHeader:!Object(gl.T)(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(gl.k)(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=PH(e.axis,{value:r}),f.axisValueLabel=o,f.marker=u.makeTooltipMarker("item",Ym(f.color),a);var g=Y_(p.formatTooltip(d,!0,null)),v=g.frag;if(v){var m=g5([p],i).get("valueFormatter");h.blocks.push(m?Object(gl.m)({valueFormatter:m},v):v)}g.text&&c.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),c.reverse();var h=e.position,p=o.get("order"),d=Nb(l,u,a,p,n.get("useUTC"),o.get("textStyle"));d&&c.unshift(d);var f="richText"===a?"\n\n":"
",g=c.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,u)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=hg(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,c=r.dataType,u=s.getData(c),h=this._renderMode,p=t.positionDefault,d=g5([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,c),v=new Vb;g.marker=v.makeTooltipMarker("item",Ym(g.color),h);var m=Y_(s.formatTooltip(l,!1,c)),y=d.get("order"),_=d.get("valueFormatter"),b=m.frag,w=b?Nb(_?Object(gl.m)({valueFormatter:_},b):b,v,h,y,i.get("useUTC"),d.get("textStyle")):m.text,x="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,w,g,x,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=hg(e),r=i.tooltipConfig.option||{};if(Object(gl.C)(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=t.positionDefault,l=g5(o,this._tooltipModel,s?{position:s}:null),c=l.get("content"),u=Math.random()+"",h=new Vb;this._showOrMove(l,(function(){var n=Object(gl.d)(l.get("formatterParams")||{});this._showTooltipContent(l,c,n,u,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var u=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(u)if(Object(gl.C)(u)){var d=t.ecModel.get("useUTC"),f=Object(gl.t)(n)?n[0]:n;h=u,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=xm(f.axisValue,h,d)),h=Wm(h,n,!0)}else if(Object(gl.w)(u)){var g=Object(gl.c)((function(e,i){e===this._ticket&&(c.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,c,n,s))}),this);this._ticket=i,h=u(n,i,g)}else h=u;c.setContent(h,l,t,p,a),c.show(t,p),this._updatePosition(t,a,r,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(gl.t)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(gl.t)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),u=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Object(gl.w)(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:c.slice()})),Object(gl.t)(e))n=Jh(e[0],s),i=Jh(e[1],l);else if(Object(gl.A)(e)){var d=e;d.width=c[0],d.height=c[1];var f=Jm(d,{width:s,height:l});n=f.x,i=f.y,u=null,h=null}else if(Object(gl.C)(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a,l=e.y+u/2-o/2}return[s,l]}(e,p,c,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],c=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+c+a>r?e-=c+a:e+=a);return[t,e]}(n,i,r,s,l,u?null:20,h?null:20);n=g[0],i=g[1]}if(u&&(n-=m5(u)?c[0]/2:"right"===u?c[0]:0),h&&(i-=m5(h)?c[1]/2:"bottom"===h?c[1]:0),Q2(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(gl.k)(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&Object(gl.k)(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Object(gl.k)(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(gl.k)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!fl.a.node&&e.getDom()&&(yS(this,"_updatePosition"),this._tooltipContent.dispose(),qJ("itemTooltip",e))},e.type="tooltip",e}(iw);function g5(t,e,n){var i,r=e.ecModel;n?(i=new Kv(n,r,r),i=new Kv(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Kv&&(a=a.get("tooltip",!0)),Object(gl.C)(a)&&(a={formatter:a}),a&&(i=new Kv(a,i,r)))}return i}function v5(t,e){return t.dispatchAction||Object(gl.c)(e.dispatchAction,e)}function m5(t){return"center"===t||"middle"===t}var y5=f5;var _5=["rect","polygon","keep","clear"];function b5(t,e){var n=Sp(t?t.brush:[]);if(n.length){var i=[];gl.k(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;gl.t(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};gl.k(t,(function(t){e[t]=1})),t.length=0,gl.k(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,_5)}}var w5=gl.k;function x5(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function S5(t,e,n){var i={};return w5(e,(function(e){var r=i[e]=function(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}();w5(t[e],(function(t,i){if(vY.isValidType(i)){var o={type:i,visual:t};n&&n(o,e),r[i]=new vY(o),"opacity"===i&&((o=gl.d(o)).type="colorAlpha",r.__hidden.__alphaForOpacity=new vY(o))}}))})),i}function k5(t,e,n){var i;gl.k(n,(function(t){e.hasOwnProperty(t)&&x5(e[t])&&(i=!0)})),i&&gl.k(n,(function(n){e.hasOwnProperty(n)&&x5(e[n])?t[n]=gl.d(e[n]):delete t[n]}))}var T5={lineX:C5(0),lineY:C5(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&BU(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(BU(i,r,o)||BU(i,r+a,o)||BU(i,r,o+s)||BU(i,r+a,o+s)||kc.create(t).contain(l[0],l[1])||Qx(r,o,r+a,o,i)||Qx(r,o,r,o+s,i)||Qx(r+a,o,r+a,o+s,i)||Qx(r,o+s,r+a,o+s,i))||void 0}}};function C5(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return O5(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&R5(e)}};function R5(t){return new kc(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var N5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Aq(e.getZr())).on("brush",gl.c(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){D5(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:gl.d(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:gl.d(n),$from:e})},e.type="brush",e}(iw),B5=N5,z5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return dl(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&k5(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=gl.H(t,(function(t){return F5(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=F5(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.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},e}(sy);function F5(t,e){return gl.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Kv(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var H5=z5,V5=["rect","polygon","lineX","lineY","keep","clear"],U5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dl(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,gl.k(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return gl.k(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:V5.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:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(J1),G5=U5;var W5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return dl(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(sy),Y5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=gl.P(t.get("textBaseline"),t.get("textVerticalAlign")),l=new ug({style:Av(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=t.get("subtext"),h=new ug({style:Av(o,{text:u,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",(function(){Xm(p,"_"+t.get("target"))})),d&&h.on("click",(function(){Xm(d,"_"+t.get("subtarget"))})),hg(l).eventData=hg(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),u&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=Jm(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=m.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new $f({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(iw);var X5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return dl(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(gl.k)(n,(function(e,n){var i,o=Dp(Cp(e),"");Object(gl.A)(e)?(i=Object(gl.d)(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new DO([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(sy),$5=X5,q5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="timeline.slider",e.defaultOption=tm($5.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:[]}),e}($5);Object(gl.K)(q5,W_.prototype);var Z5=q5,K5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="timeline",e}(iw),Q5=K5,J5=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return dl(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(JH),t3=Math.PI,e3=jp(),n3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return Db("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Object(gl.k)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Jm(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),c={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:t3/2},p="vertical"===s?l.height:l.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,v=f?d.get("itemGap"):0,m=g+v,y=t.get(["label","rotate"])||0;y=y*t3/180;var _=d.get("position",!0),b=f&&d.get("showPlayBtn",!0),w=f&&d.get("showPrevBtn",!0),x=f&&d.get("showNextBtn",!0),S=0,k=p;"left"===_||"bottom"===_?(b&&(i=[0,0],S+=m),w&&(r=[S,0],S+=m),x&&(o=[k-g,0],k-=m)):(b&&(i=[k-g,0],k-=m),w&&(r=[0,0],S+=m),x&&(o=[k-g,0],k-=m));var T=[S,k];return t.get("inverse")&&T.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:h[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||c[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:T,controlSize:g,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;hc(o,o,[-a,-s]),pc(o,o,-t3/2),hc(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=v(r),c=v(n.getBoundingRect()),u=v(i.getBoundingRect()),h=[n.x,n.y],p=[i.x,i.y];p[0]=h[0]=l[0][0];var d,f=t.labelPosOpt;null==f||Object(gl.C)(f)?(m(h,c,l,1,d="+"===f?0:1),m(p,u,l,1,1-d)):(m(h,c,l,1,d=f>=0?0:1),p[1]=h[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(h),i.setPosition(p),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new JF({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new hH({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new nH}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new J5("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Wh;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new ax({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(gl.m)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new ax({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(gl.i)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(gl.k)(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Object(gl.c)(r._changeTimeline,r,t.value)},p=i3(s,l,e,h);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=u.getItemStyle(),ov(p);var d=hg(p);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=i):d.dataIndex=d.dataModel=null,r._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],Object(gl.k)(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),p=new ug({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(gl.c)(r._changeTimeline,r,a),silent:!1,style:Av(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=Av(c),p.ensureState("progress").style=Av(u),e.add(p),ov(p),e3(p).dataIndex=a,r._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(t,n,l,c){if(t){var u=Dh(Object(gl.P)(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(t,e,n,i){var r=i.style,o=Kx(t.get(["controlStyle",e]),i||{},new kc(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-u/2,u,u],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),ov(h)}}u(t.nextBtnPosition,"next",Object(gl.c)(this._changeTimeline,this,c?"-":"+")),u(t.prevBtnPosition,"prev",Object(gl.c)(this._changeTimeline,this,c?"+":"-")),u(t.playPosition,l?"stop":"play",Object(gl.c)(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(gl.c)(s._handlePointerDrag,s),t.ondragend=Object(gl.c)(s._handlePointerDragend,s),r3(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){r3(t,s._progressLine,o,n,i)}};this._currentPointer=i3(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=ep(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,u]}var y3={min:Object(gl.h)(m3,"min"),max:Object(gl.h)(m3,"max"),average:Object(gl.h)(m3,"average"),median:Object(gl.h)(m3,"median")};function _3(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(gl.t)(e.coord)&&Object(gl.t)(r)){var o=b3(e,n,i,t);if((e=Object(gl.d)(e)).type&&y3[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(gl.r)(r,o.baseAxis.dim),s=Object(gl.r)(r,o.valueAxis.dim),l=y3[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(gl.t)(r))for(var c=e.coord,u=0;u<2;u++)y3[c[u]]&&(c[u]=S3(n,n.mapDimension(r[u]),c[u]));else e.coord=[];return e}}function b3(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function w3(t,e){return!(t&&t.containData&&e.coord&&!v3(e))||t.containData(e.coord)}function x3(t,e){return t?function(t,n,i,r){return Z_(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Z_(t.value,e[r])}}function S3(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var k3=jp(),T3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.init=function(){this.markerGroupMap=Object(gl.f)()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){k3(t).keep=!1})),e.eachSeries((function(t){var r=d3.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!k3(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){k3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(gl.k)(t,(function(t){var i=d3.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?$g(t):qg(t))}))}))},e.type="marker",e}(iw),C3=T3;function O3(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Jh(a.get("x"),n.getWidth()),l=Jh(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var c=t.get(i.dimensions[0],r),u=t.get(i.dimensions[1],r);o=i.dataToPoint([c,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var I3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=d3.getMarkerModelFromSeries(t,"markPoint");e&&(O3(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new rz),c=function(t,e,n){var i;i=t?Object(gl.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(gl.m)(Object(gl.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new DO(i,n),o=Object(gl.H)(n.get("data"),Object(gl.h)(_3,e));t&&(o=Object(gl.n)(o,Object(gl.h)(w3,t)));var a=x3(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(c),O3(e.getData(),t,i),c.each((function(t){var n=c.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(gl.w)(i)||Object(gl.w)(r)||Object(gl.w)(o)||Object(gl.w)(s)){var u=e.getRawValue(t),h=e.getDataParams(t);Object(gl.w)(i)&&(i=i(u,h)),Object(gl.w)(r)&&(r=r(u,h)),Object(gl.w)(o)&&(o=o(u,h)),Object(gl.w)(s)&&(s=s(u,h))}var p=n.getModel("itemStyle").getItemStyle(),d=ok(a,"color");p.fill||(p.fill=d),c.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(t){t.traverse((function(t){hg(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(C3);var M3=I3;var A3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(d3),D3=A3,P3=jp(),E3=function(t,e,n,i){var r,o=t.getData();if(Object(gl.t)(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=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(gl.O)(i.yAxis,i.xAxis);else{var c=b3(i,o,e,t);s=c.valueAxis,l=S3(o,XB(o,c.valueDataDim),a)}var u="x"===s.dim?0:1,h=1-u,p=Object(gl.d)(i),d={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,d.coord[h]=1/0;var f=n.get("precision");f>=0&&Object(gl.z)(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[u]=d.coord[u]=l,r=[p,d,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[_3(t,r[0]),_3(t,r[1]),Object(gl.m)({},r[2])];return g[2].type=g[2].type||null,Object(gl.I)(g[2],g[0]),Object(gl.I)(g[2],g[1]),g};function L3(t){return!isNaN(t)&&!isFinite(t)}function j3(t,e,n,i){var r=1-t,o=i.dimensions[t];return L3(e[r])&&L3(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function R3(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(j3(1,n,i,t)||j3(0,n,i,t)))return!0}return w3(t,e[0])&&w3(t,e[1])}function N3(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Jh(s.get("x"),r.getWidth()),c=Jh(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=a.dimensions,h=t.get(u[0],e),p=t.get(u[1],e);o=a.dataToPoint([h,p])}if(wz(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y");u=a.dimensions;L3(t.get(u[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):L3(t.get(u[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];t.setItemLayout(e,o)}var B3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=d3.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=P3(e).from,o=P3(e).to;r.each((function(e){N3(r,e,!0,t,n),N3(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new SX);this.group.add(l.group);var c=function(t,e,n){var i;i=t?Object(gl.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(gl.m)(Object(gl.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new DO(i,n),o=new DO(i,n),a=new DO([],n),s=Object(gl.H)(n.get("data"),Object(gl.h)(E3,e,t,n));t&&(s=Object(gl.n)(s,Object(gl.h)(R3,t)));var l=x3(!!t,i);return r.initData(Object(gl.H)(s,(function(t){return t[0]})),null,l),o.initData(Object(gl.H)(s,(function(t){return t[1]})),null,l),a.initData(Object(gl.H)(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),u=c.from,h=c.to,p=c.line;P3(e).from=u,P3(e).to=h,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,r){var o=e.getItemModel(n);N3(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=ok(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(gl.P)(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:Object(gl.P)(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:Object(gl.P)(o.get("symbolSize"),f[r?0:1]),symbol:Object(gl.P)(o.get("symbol",!0),d[r?0:1]),style:s})}Object(gl.t)(d)||(d=[d,d]),Object(gl.t)(f)||(f=[f,f]),Object(gl.t)(g)||(g=[g,g]),Object(gl.t)(v)||(v=[v,v]),c.from.each((function(t){m(u,t,!0),m(h,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[u.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=u.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(t,"symbolOffset"),fromSymbolRotate:u.getItemVisual(t,"symbolRotate"),fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(p),c.line.eachItemGraphicEl((function(t){hg(t).dataModel=e,t.traverse((function(t){hg(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(C3);var z3=B3;var F3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(d3),H3=F3,V3=jp(),U3=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=_3(t,r),s=_3(t,o),l=a.coord,c=s.coord;l[0]=Object(gl.O)(l[0],-1/0),l[1]=Object(gl.O)(l[1],-1/0),c[0]=Object(gl.O)(c[0],1/0),c[1]=Object(gl.O)(c[1],1/0);var u=Object(gl.J)([{},a,s]);return u.coord=[a.coord,s.coord],u.x0=a.x,u.y0=a.y,u.x1=s.x,u.y1=s.y,u}};function G3(t){return!isNaN(t)&&!isFinite(t)}function W3(t,e,n,i){var r=1-t;return G3(e[r])&&G3(n[r])}function Y3(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return wz(t,"cartesian2d")?!(!n||!i||!W3(1,n,i)&&!W3(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!v3(e)&&!v3(n))||t.containZone(e.coord,n.coord)}(t,r,o):w3(t,r)||w3(t,o)}function X3(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Jh(s.get(n[0]),r.getWidth()),c=Jh(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),p=a.clampData(u),d=a.clampData(h),f=[];"x0"===n[0]?f[0]=p[0]>d[0]?h[0]:u[0]:f[0]=p[0]>d[0]?u[0]:h[0],"y0"===n[1]?f[1]=p[1]>d[1]?h[1]:u[1]:f[1]=p[1]>d[1]?u[1]:h[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[y=t.get(n[0],e),_=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(wz(a,"cartesian2d")){var v=a.getAxis("x"),m=a.getAxis("y"),y=t.get(n[0],e),_=t.get(n[1],e);G3(y)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):G3(_)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var $3=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],q3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=d3.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=Object(gl.H)($3,(function(r){return X3(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Wh});this.group.add(l.group),this.markKeep(l);var c=function(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=Object(gl.H)(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(gl.m)(Object(gl.m)({},i),{name:t,ordinalMeta:null})}));r=Object(gl.H)(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new DO(r,n)}else i=new DO(r=[{name:"value",type:"float"}],n);var s=Object(gl.H)(n.get("data"),Object(gl.h)(U3,e,t,n));t&&(s=Object(gl.n)(s,Object(gl.h)(Y3,t)));var l=t?function(t,e,n,i){return Z_(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return Z_(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,t,e);e.setData(c),c.each((function(e){var n=Object(gl.H)($3,(function(n){return X3(c,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),u=s.getExtent(),h=[o.parse(c.get("x0",e)),o.parse(c.get("x1",e))],p=[s.parse(c.get("y0",e)),s.parse(c.get("y1",e))];ep(h),ep(p);var d=!!(l[0]>h[1]||l[1]p[1]||u[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(sy),Q3=K3,J3=gl.h,t4=gl.k,e4=Wh,n4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return dl(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new e4),this.group.add(this._selectorGroup=new e4),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=t.get("padding"),h=Jm(l,c,u),p=this.layoutInner(t,r,h,i,a,s),d=Jm(gl.i({width:p.width,height:p.height},l),c,u);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=o2(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=gl.f(),c=e.get("selectedMode"),u=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&u.push(t.id)})),t4(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new e4;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style");this._createItem(p,a,o,r,e,t,f,v,g,c,i).on("click",J3(i4,a,null,i,u)).on("mouseover",J3(o4,p.name,null,i,u)).on("mouseout",J3(a4,p.name,null,i,u)),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),p=s.getItemVisual(h,"style"),d=s.getItemVisual(h,"legendIcon"),f=Object(Cu.g)(p.fill);f&&0===f[3]&&(f[3]=.2,p=gl.m(gl.m({},p),{fill:Object(Cu.h)(f,"rgba")})),this._createItem(n,a,o,r,e,t,{},p,d,c,i).on("click",J3(i4,null,a,i,u)).on("mouseover",J3(o4,null,a,i,u)).on("mouseout",J3(a4,null,a,i,u)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();t4(t,(function(t){var i=t.type,r=new ug({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),Iv(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),ov(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,c,u){var h=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),t4(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Jk(h,a):i.decal,"inherit"===c.fill&&(c.fill=i[r]);"inherit"===c.stroke&&(c.stroke=i[u]);"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity);s(c,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:d}}(l=m||l||"roundRect",i,a,s,h,f,u),_=new e4,b=i.getModel("textStyle");if(!gl.w(t.getLegendIcon)||m&&"inherit"!==m){var w="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(function(t){var e=t.icon||"roundRect",n=xk(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:w,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var x="left"===o?p+5:-5,S=o,k=r.get("formatter"),T=e;gl.C(k)&&k?T=k.replace("{name}",null!=e?e:""):gl.w(k)&&(T=k(e));var C=i.get("inactiveColor");_.add(new ug({style:Av(b,{text:T,x:x,y:d/2,fill:f?b.getTextColor():C,align:S,verticalAlign:"middle"})}));var O=new $f({shape:_.getBoundingRect(),invisible:!0}),I=i.getModel("tooltip");return I.get("show")&&eS({el:O,componentModel:r,itemName:e,itemTooltipOption:I.option}),_.add(O),_.eachChild((function(t){t.silent=!0})),O.silent=!c,this.getContentGroup().add(_),ov(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Qm(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Qm("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?h[d]+=l[f]+p:c[d]+=u[f]+p,h[1-d]+=l[g]/2-u[g]/2,s.x=h[0],s.y=h[1],a.x=c[0],a.y=c[1];var m={x:0,y:0};return m[f]=l[f]+p+u[f],m[g]=Math.max(l[g],u[g]),m[v]=Math.min(0,u[v]+h[1-d]),m}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(iw);function i4(t,e,n,i){a4(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),o4(t,e,n,i)}function r4(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],m=gl.P(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+m);v[1-i]+=h[o]/2-p[o]/2,l.setPosition(f),c.setPosition(g),u.setPosition(v);var y={x:0,y:0};if(y[r]=d?n[r]:h[r],y[o]=Math.max(h[o],p[o]),y[a]=Math.min(0,p[a]+v[1-i]),c.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-m,0),_[o]=y[o],c.setClipPath(new $f({shape:_})),c.__rectSize=_[r]}else u.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(t);return null!=b.pageIndex&&yv(l,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;gl.k(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",gl.C(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=g4[r],a=v4[r],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,h=u?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var d=y(c);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,v=d,m=null;f<=u;++f)(!(m=y(l[f]))&&v.e>g.s+i||m&&!_(m,g.s))&&(g=v.i>g.i?v:m)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=m;for(f=s-1,g=d,v=d,m=null;f>=-1;--f)(m=y(l[f]))&&_(v,m.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(s4),y4=m4;function _4(t){pC(u4),t.registerComponentModel(d4),t.registerComponentView(y4),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}var b4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="dataZoom.inside",e.defaultOption=tm(z1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(z1),w4=b4,x4=jp();function S4(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function k4(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function T4(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function C4(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=x4(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(gl.f)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=j1(t);Object(gl.k)(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:Object(gl.h)(T4,e),dispatchAction:Object(gl.h)(k4,t),dataZoomInfoMap:null,controller:null},i=n.controller=new cU(t.getZr());return Object(gl.k)(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(gl.f)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),mS(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else S4(i,t)}))}))}var O4=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return dl(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){x4(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:Object(gl.c)(I4.pan,this),zoom:Object(gl.c)(I4.zoom,this),scrollMove:Object(gl.c)(I4.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=x4(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return k$(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:M4((function(t,e,n,i,r,o){var a=A4[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:M4((function(t,e,n,i,r,o){return A4[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function M4(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return k$(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var A4={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},D4=O4;function P4(t){K1(t),t.registerComponentModel(w4),t.registerComponentView(D4),C4(t)}var E4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=tm(z1.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"}}}),e}(z1),L4=E4,j4=$f,R4="horizontal",N4="vertical",B4=["line","bar","candlestick","scatter"],z4={easing:"cubicOut",duration:100,delay:0},F4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return dl(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(gl.c)(this._onBrush,this),this._onBrushEnd=Object(gl.c)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),mS(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){yS(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Wh;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===R4?{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=iy(t.option);Object(gl.k)(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Jm(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===N4&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=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!==R4||r?n===R4&&r?{scaleY:a?1:-1,scaleX:-1}:n!==N4||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=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new j4({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new j4({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(gl.c)(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)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var c=r.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,p=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],g=[],v=d[1]/(r.count()-1),m=0,y=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(y>0&&e%y)m+=v;else{var n=null==t||isNaN(t)||""===t,i=n?0:Qh(t,c,p,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([m,0]),g.push([m,0])),f.push([m,i]),g.push([m,i]),m+=v,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,b=0;b<3;b++){var w=x(1===b);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function x(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new Wh,i=new Jw({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new nx({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(gl.k)(a,(function(t){if(!n&&!(!0!==e&&Object(gl.r)(B4,t.get("type"))<0)){var a,s=i.getComponent(E1(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],c=t.coordinateSystem;null!=l&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,c=a.get("brushSelect"),u=e.filler=new j4({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(u),r.add(new j4({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)"}})),Object(gl.k)([0,1],(function(e){var o=a.get("handleIcon");!_k[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=xk(o,-1,0,2,2,null,!0);s.attr({cursor:H4(this._orient),draggable:!0,drift:Object(gl.c)(this._onDragMove,this,e),ondragend:Object(gl.c)(this._onDragEnd,this),onmouseover:Object(gl.c)(this._showDataInfo,this,!0),onmouseout:Object(gl.c)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=Jh(c,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(),ov(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new ug({silent:!0,invisible:!0,style:Av(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=u;if(c){var p=Jh(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new $f({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=xk(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));(h=e.moveZone=new $f({invisible:!0,shape:{y:o[1]-v,height:p+v}})).on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),r.add(d),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:H4(this._orient),drift:Object(gl.c)(this._onDragMove,this,"all"),ondragstart:Object(gl.c)(this._showDataInfo,this,!0),ondragend:Object(gl.c)(this._onDragEnd,this),onmouseover:Object(gl.c)(this._showDataInfo,this,!0),onmouseout:Object(gl.c)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Qh(t[0],[0,100],e,!0),Qh(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];k$(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?Qh(o.minSpan,a,r,!0):null,null!=o.maxSpan?Qh(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=ep([Qh(i[0],r,a,!0),Qh(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=ep(n.slice()),r=this._size;Object(gl.k)([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.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]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new gc(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=ep([Qh(n.x,i,r,!0),Qh(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ic(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new j4({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(t,e),l=a.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?z4:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=j1(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(U1);function H4(t){return"vertical"===t?"ns-resize":"ew-resize"}var V4=F4;function U4(t){t.registerComponentModel(L4),t.registerComponentView(V4),K1(t)}var G4={get:function(t,e,n){var i=gl.d((W4[t]||{})[e]);return n&&gl.t(i)?i[i.length-1]:i}},W4={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]}},Y4=G4,X4=vY.mapVisual,$4=vY.eachVisual,q4=gl.t,Z4=gl.k,K4=ep,Q4=Qh,J4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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 dl(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&k5(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=gl.c(t,this),this.controllerVisuals=S5(this.option.controller,e,t),this.targetVisuals=S5(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Sp(t),e},e.prototype.eachTargetSeries=function(t,e){gl.k(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],gl.t(t)&&(t=t.slice(),i=!0);var l=e?t:i?[c(t[0]),c(t[1])]:c(t);return gl.C(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):gl.w(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=K4([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});gl.I(i,n),gl.I(r,n);var o=this.isCategory();function a(n){q4(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},Z4(i,(function(t,e){if(vY.isValidType(e)){var n=Y4.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";Z4(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&gl.d(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&gl.d(n)||(o?s[0]:[s[0],s[0]])),l.symbol=X4(l.symbol,(function(t){return"none"===t?r:t}));var c=l.symbolSize;if(null!=c){var u=-1/0;$4(c,(function(t){t>u&&(u=t)})),l.symbolSize=X4(c,(function(t){return Q4(t,[0,u],[0,s[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(sy),t6=J4,e6=[20,140],n6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=e6[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=e6[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):gl.t(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),gl.k(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ep((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=i6(this,"outOfRange",this.getExtent()),n=i6(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Wh("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();h6([0,1],(function(l){var c=r[l];c.setStyle("fill",e.handlesColor[l]),c.y=t[l];var u=u6(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/a[0],c.x=a[0]-h/2;var p=Wx(n.handleLabelPoints[l],Gx(c,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),p=u6(t,o,s,!0),d=a[0]-h/2,f={x:c.x,y:c.y};c.y=p,c.x=d;var g=Wx(l.indicatorLabelPoint,Gx(c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?m:"middle",align:y?"center":m});var _={x:d,y:p,style:{fill:u}},b={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(_,w),v.animateTo(b,w)}else c.attr(_),v.attr(b);this._firstShowIndicator=!1;var x=this._shapes.handleLabels;if(x)for(var S=0;Sr[1]&&(c[1]=1/0),e&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"\u2248 ",a));var u=this._hoverLinkDataIndices,h=[];(e||v6(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function x6(t,e,n,i){for(var r=e.targetVisuals[i],o=vY.prepareVisualTypes(r),a={color:ok(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(_6,b6),Object(gl.k)(w6,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(k6))}function I6(t){t.registerComponentModel(r6),t.registerComponentView(y6),O6(t)}var M6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return dl(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],A6[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=gl.d(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=gl.H(this._pieceList,(function(t){return t=gl.d(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=vY.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}gl.k(e.pieces,(function(t){gl.k(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),gl.k(n,(function(t,n){var i=!1;gl.k(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&gl.k(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=Y4.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,gl.k(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;gl.k(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=gl.d(t)},e.prototype.getValueState=function(t){var e=vY.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){vY.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],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 gl.k(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=tm(t6.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}),e}(t6),A6={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","\u2265"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function D6(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var P6=M6,E6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return dl(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),c=l.endsText,u=gl.O(e.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],s,u,a),gl.k(l.viewPieceList,(function(i){var l=i.piece,c=new Wh;c.onclick=gl.c(this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]]),u){var p=this.visualMapModel.getValueState(h);c.add(new ug({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"===p?.5:1}}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],s,u,a),Qm(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:c6(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l6(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new Wh,a=this.visualMapModel.textStyleModel;o.add(new ug({style:Av(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=gl.H(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(xk(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=gl.d(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,gl.k(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(a6),L6=E6;function j6(t){t.registerComponentModel(P6),t.registerComponentView(L6),O6(t)}var R6={label:{enabled:!0},decal:{show:!1}},N6=jp(),B6={};function z6(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=gl.d(R6);gl.I(i.label,t.getLocaleModel().get("aria"),!1),gl.I(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=gl.f();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),N6(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(gl.w(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Dy(e.ecModel,e.name,B6,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",c(r,i))}else{var o=e.getRawData(),a={},s=N6(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",u=Dy(e.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,u))}))}}function c(t,e){var n=t?gl.m(gl.m({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=gl.i(o.option,i),!o.get("enabled"))return;var a=e.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,l=t.getSeriesCount(),c=o.get(["data","maxCount"])||10,u=o.get(["series","maxCount"])||10,h=Math.min(l,u);if(l<1)return;var p=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=p?r(o.get(["general","withTitle"]),{title:p}):o.get(["general","withoutTitle"]);var d=[];s+=r(l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,t.getLocaleModel().get(["series","typeNames"])[_]||"\u81ea\u5b9a\u4e49\u56fe")});var s=e.getData();if(s.count()>c)i+=r(o.get(["data","partialData"]),{displayCnt:c});else i+=o.get(["data","allData"]);for(var u=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),f=[],g=0;g":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},V6=function(){function t(t){if(null==(this._condVal=Object(gl.C)(t)?new RegExp(t):Object(gl.B)(t)?t:null)){0,Ny("")}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(gl.C)(e)?this._condVal.test(t):!!Object(gl.z)(e)&&this._condVal.test(t+"")},t}(),U6=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),G6=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function f(t,n,i,r){i9(t,i)&&i9(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,c=nk:O2&&l.push(e),l}function o9(t,e,n,i,r,o,a,s,l,c){if(i9(t,n)&&i9(e,i)&&i9(r,a)&&i9(o,s))l.push(a,s);else{var u=2/c,h=u*u,p=a-t,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=n-t,v=i-e,m=r-a,y=o-s,_=g*g+v*v,b=m*m+y*y;if(_=0&&b-x*x=0)l.push(a,s);else{var S=[],k=[];fu(t,n,r,a,.5,S),fu(e,i,o,s,.5,k),o9(S[0],k[0],S[1],k[1],S[2],k[2],S[3],k[3],l,c),o9(S[4],k[4],S[5],k[5],S[6],k[6],S[7],k[7],l,c)}}}}function a9(t,e,n){var i=t[e],r=t[1-e],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=[],c=0;c0)for(c=0;cMath.abs(c),h=a9([l,c],u?0:1,e),p=(u?s:c)/h.length,d=0;d1?null:new gc(d*l+t,d*c+e)}function u9(t,e,n){var i=new gc;gc.sub(i,n,e),i.normalize();var r=new gc;return gc.sub(r,t,e),r.dot(i)}function h9(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function p9(t){var e=t.points,n=[],i=[];Bd(e,n,i);var r=new kc(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,c=new gc,u=new gc;return o>a?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;or,a=a9([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=t[s]/a.length,p=0;p0)for(var w=i/n,x=-i/2;x<=i/2;x+=w){var S=Math.sin(x),k=Math.cos(x),T=0;for(_=0;_0;l/=2){var c=0,u=0;(t&l)>0&&(c=1),(e&l)>0&&(u=1),s+=l*l*(3*c^u),0===u&&(1===c&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function I9(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(gl.H)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return Object(gl.H)(o,(function(o,a){return{cp:o,z:O9(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function M9(t){return f9(t.path,t.count)}function A9(t){return Object(gl.t)(t[0])}function D9(t,e){for(var n=[],i=t.length,r=0;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 c=Math.ceil(o/2);n[r].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var P9={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);A9(t)&&(s=t,l=e),A9(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,p=s?D9(l,s):D9(h?e:t,[h?t:e]),d=0,f=0;fV9))for(var i=n.getIndices(),r=function(t){for(var e=t.dimensions,n=0;n0&&i.group.traverse((function(t){t instanceof Ef&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function Z9(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function K9(t){return Object(gl.t)(t)?t.sort().join(","):t}function Q9(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function J9(t,e){for(var n=0;n=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:Q9(e.oldData[n]),dim:t.dimension})})),Object(gl.k)(Sp(t.to),(function(t){var i=J9(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:Q9(r),dim:t.dimension})}})),r.length>0&&o.length>0&&q9(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=Object(gl.f)(),i=Object(gl.f)(),r=Object(gl.f)();return Object(gl.k)(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=Z9(e),l=K9(s);i.set(l,{dataGroupId:o,data:a}),Object(gl.t)(s)&&Object(gl.k)(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),Object(gl.k)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=Z9(t),s=K9(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Q9(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Q9(o),data:o}]});else if(Object(gl.t)(a)){var c=[];Object(gl.k)(a,(function(t){var e=i.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:Q9(e.data),data:e.data})})),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:e,data:o,divide:Q9(o)}]})}else{var u=r.get(a);if(u){var h=n.get(u.key);h||(h={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:Q9(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:Q9(o)})}}}})),n}(i,n);Object(gl.k)(o.keys(),(function(t){var n=o.get(t);q9(n.oldSeries,n.newSeries,e)}))}Object(gl.k)(n.updatedSeries,(function(t){t[Yb]&&(t[Yb]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u"}},{key:"escapeHtml",value:function(t){switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return t}}},{key:"initContent",value:function(t){var e,n,i=t.trim().replace(/[<>'"&]/g,this.escapeHtml).replace(/\n/g,this.replaceLineBreak);return i=i.replace(/(\[[^\[\]]+\])/g,(function(t){return ys[t]?e&&n?''.concat(t,''):''.concat(t,''):t}))}},{key:"updateComment",value:function(){var t=vn(fn().mark((function t(e){var n,i,r;return fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={cmntid:"".concat(this.chatTabData.Comment.Channel,":").concat(this.chatTabData.Comment.ID,":0"),matchid:this.chatTabData.Game.LivecastID,since:"up"===e?"":this.since},t.next=3,J8.getData(n);case 3:if(i=t.sent,"up"!==e){t.next=10;break}this.commonentsData=[],this.commonentsData=i.comments,this.since=i.since,t.next=14;break;case 10:if(0!==i.comments.length){t.next=12;break}return t.abrupt("return",!1);case 12:(r=this.commonentsData).push.apply(r,Object(K.a)(i.comments)),this.since=i.since;case 14:this.firstData=!1;case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),n}(o.a),L8=ke(E8.prototype,"chatTabData",[M8],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke(E8.prototype,"onChatTotalChange",[A8],Object.getOwnPropertyDescriptor(E8.prototype,"onChatTotalChange"),E8.prototype),ke(E8.prototype,"onCommonentsData",[D8],Object.getOwnPropertyDescriptor(E8.prototype,"onCommonentsData"),E8.prototype),P8=E8))||P8),n7=D(e7,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"exposure",rawName:"v-exposure"}],staticClass:"chat_all_box",class:{bscroll_warp:t.isBScroll},style:{height:t.tabPageHeight?t.tabPageHeight+"px":"auto"},attrs:{id:"lsroll_chat_ref"}},[t.hasData?n("lsroll",{ref:"lsroll",attrs:{data:t.commonentsData,config:t.scrollConfig},on:{reachBottom:t.reachBottom,drawRefresh:t.drawRefreshCall,vscroll:t.vscroll}},[n("section",{staticClass:"chat_box chat_box_v2"},[n("section",{staticClass:"chat_row_v2_con",staticStyle:{"flex-shrink":"0"}},t._l(t.renderData,(function(e,i){return n("div",{key:e.mid+""+e.uid,staticClass:"chat_row chat_row_v2",class:{oneself:t.myUid&&e.uid===t.myUid},attrs:{"data-uid":e.uid,"data-index":i,"data-key":e.mid+""+e.uid}},[n("div",{staticClass:"chat_user"},[t._v(t._s(e.nick)+"\uff1a")]),n("div",{staticClass:"chat_info_con"},[n("div",{staticClass:"chat_info",domProps:{innerHTML:t._s(t.initContent(e.content))}})])])})),0)])]):t.dataStatus===t.dataStatusEnum.NoData?n("empty",{style:{height:t.tabPageHeight?t.tabPageHeight+"px":"100%"},attrs:{type:"chat",title:"\u6b64\u65f6",subtitle:"\u4f60\u8bf4\u7684\u90fd\u662f\u8bdd\u9898"}}):t.dataStatus===t.dataStatusEnum.ErrorNetwork?n("error-network",{style:{height:t.tabPageHeight?t.tabPageHeight+"px":"100%"},attrs:{title:"\u7f51\u7edc\u95ee\u9898",showReloadBtn:!0,clickBtnFn:t.reloadClick}}):t._e(),t.wsMsgData&&t.wsMsgData.length?n("div",{staticClass:"live_msg_tip",on:{click:t.msgTipClick}},[n("i"),n("span",[t._v(t._s(t.wsMsgData.length)+"\u6761\u65b0\u6d88\u606f")])]):t._e()],1)}),[],!1,null,"bf3cb866",null),i7=n7.exports,r7=Ce()({components:{}})(j8=function(t){Rt(n,t);var e=Ft(n);function n(){var t;Object(l.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o0){if(r[i].action&&r[i].action(a),/exposure=1/.test(location.href))for(i=0;i=0&&a.top0||a.left-o=0||a.left>=0&&o-a.right>=0))return;if("scroll"==e)return!0;null!=t.startTop?(t.startEnd=s,i=t.startEnd-t.startTop):t.startTop=s}return i>n.threshold||void 0}},{key:"pushListeningEle",value:function(t,e,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=this,l={},c=[];this.threshold=r,this.height=o,a&&(c7.swiperType=a),this.swiperType=c7.swiperType,Array.from(t).forEach((function(t){i={ele:t,canRepeat:!!n,doneOnce:!1,startTop:null,endTop:null},l=s._clone(i),c.push(l)})),this._listeningEles.push({listeningEles:c,action:e,threshold:r}),this._checkExposeure("scroll")}},{key:"_scrollListener",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c7,e=this;if(!t)throw new Error("scrollListener needs a object parameter.");function n(t,n){e.scroll_lock||(e.scroll_lock=!0,e._checkExposeure(t,n))}t.addEventListener("scroll",(function(t){var e=t.target;n("timegap",e),clearTimeout(u7),u7=setTimeout((function(){n("timegap",e)}),500)}),!0),t.addEventListener("touchstart",(function(t){n("timegap",t.target)}),!1),t.addEventListener("touchmove",(function(t){n("timegap",t.target)}),!1),t.addEventListener("touchend",(function(t){var i=t.target;n("timegap",i),setTimeout((function(){e.scroll_lock=!0,e._checkExposeure("timegap",i)}),500),setTimeout((function(){e.scroll_lock=!0,e._checkExposeure("timegap",i)}),1e3)}),!1),t.addEventListener("touchcancel",(function(t){n("timegap",t.target)}),!1)}},{key:"_clone",value:function(t){var e,n=this;switch(this._getType(t)){case"object":e={},Object.keys(t).forEach((function(i){e[i]=n._clone(t[i])}));break;case"array":e=[],t.forEach((function(t){e&&e.push(n._clone(t))}));break;default:e=t}return e}},{key:"_getType",value:function(t){var e=typeof t;return"object"===e?Object.prototype.toString.call(t).match(/\[object (.*)\]/)?RegExp.$1.toLowerCase():"other":e}}]),t}(),p7=new h7;p7._init();var d7=p7,f7=function(){this.confInit()};f7.prototype.confInit=function(){this.conf={statistics:{data:{action:"",refer:"",t:1,uid:"",info:"",mod:"",cre:""},keywords:""}},this.attributeName="tyTrack"},f7.prototype.addup=function(t){var e=this;if(t.length>0){var n=this.checkDom(t.find("a"));d7.pushListeningEle(n,function(t){e.track.ElemExpose.call(e,$(t))}.bind(this)),t.data(this.attributeName)||(t.data(this.attributeName,"1"),this.track.ElemClick.call(this,t))}},f7.prototype.checkDom=function(t){for(var e=[],n=0;n0&&(t=t.find("a"));var n=this.conf.statistics,i=[];n.data.action=e||"exposure",t[0]&&(n.data.mod=this.track.getMod(t[0].href)||this.track.getMod(t[0].dataset.href)||n.data.mod,n.data.cre=this.track.getCre(t[0].href)||this.track.getCre(t[0].dataset.href)||n.data.cre),t.each((function(t){$(this).data("info")&&i.push($(this).data("info"))})),0!=i.length&&(n.data.uid=this.track.getUid(),n.data.t=parseInt(10*Math.random()),n.data.info=i.join(";"),window.SIMA({action:"_exposure",data:n.data}))},ElemClick:function(t,e){var n=this;t.on("click tap","a",(function(){if(this.getAttribute("data-info")){var t=n.conf.statistics;t.data.uid=n.track.getUid(),t.data.action=e||"click",t.data.info=this.getAttribute("data-info"),t.data.mod=n.track.getMod(this.href)||n.track.getMod(this.dataset.href)||t.data.mod,t.data.cre=n.track.getCre(this.href)||n.track.getCre(this.dataset.href)||t.data.cre,t.data.t=parseInt(10*Math.random()),t.data.info&&window.SIMA({action:"_click",data:t.data})}}))},getUid:function(){return function(){var t,e;return"function"===typeof window.getCookie&&(t=getCookie("ustat")||""),"object"===typeof window.userInfo&&(e=userInfo.uid||""),(e||"")+";"+(t||"")}()},getMod:function(t){return t?this.match(t,"mod"):""},getCre:function(t){return t?this.match(t,"cre"):""},match:function(t,e){var n=new RegExp(e+"=(.*?)&"),i=t.match(n);return null!=i?i[1]:""},log:function(t){"http:"==window.location.protocol&&((new Image).src=t)}};var g7=function(t){(new f7).addup(t)};window.tyTrack=g7;var v7=g7,m7=n(165),y7=n.n(m7),_7=window.__docConfig&&window.__docConfig.__tj_ch||"news",b7=window.__docConfig&&window.__docConfig.__callupId;function w7(t,e,n,i){if(!t||!e)return t;if(-1!=t.indexOf("sinaimg")&&!n&&!i||-1!=t.indexOf("leju.com")||-1!=t.indexOf("bsyimg3.cdn.krcom.cn"))return S7&&-1==t.indexOf("https")&&(t=t.replace("http:","https:")),t;var r="resize",o=(S7?"https":"http")+"://z0.sinaimg.cn",a=location.protocol;if(-1==t.indexOf("http")&&(t=a+t),n&&(r="crop"),-1!=t.indexOf("k.sinaimg.cn")||-1!=t.indexOf("ks.sinaimg.cn")){var s=t.split("/");t=t.replace(s[s.length-1],"original.jpg")}return o+"/auto/"+r+"?img="+encodeURIComponent(t)+"&size="+e}var x7,S7="https:"==window.location.protocol;window.location.protocol;var k7,T7,C7,O7,I7=window.navigator.userAgent.toLowerCase(),M7=(window.__docConfig&&window.__docConfig.__tj_ch,function(){function t(e){var n=this,i=e.url,r=e.callback,o=e.top,a=void 0===o?0:o,s=e.fg,c=void 0!==s&&s,u=e.suda,h=e.callup,p=e.position,d=void 0===p?"top":p,f=e.showLogo,g=void 0===f||f,v=e.swiperCount,m=void 0===v?3:v,y=e.animateTime,_=void 0===y?1500:y;Object(l.a)(this,t),this._NAVFIXABLETOP=a,this._CONFIGURL=i,this._callback=r,this._orientationChange=!1,this._autoPlay=!1,this._animateTime=_,this._swiperCount=m,this._showLogo=g,this._scrollHeight=Object(s7.$)(window).scrollTop(),this._currentDisFromTop=0,this._FG=c,this._position=d,this._CALLUPCONFIG=h?y7()({},h):{kid:void 0,calluptype:void 0,shouldCallup:!1},u&&(this._SUDA=u),s7.$.ajax({type:"GET",url:this._CONFIGURL,dataType:"jsonp",success:function(t){if(!t.data||!t.data.length||t.data.length<3)return console.log("\u63a5\u53e3\u6570\u636edata\u6709\u8bef"),void(n._CALLUPCONFIG.shouldCallup&&n._errorRenderStatic());t.data=t.data.slice(0,n._swiperCount),n.res=t,n.init()},error:function(t){console.log("\u63a5\u53e3\u9519\u8bef!!!"),n._CALLUPCONFIG.shouldCallup&&n._errorRenderStatic()}})}return Object(c.a)(t,[{key:"init",value:function(){var t=this;console.log(this.res);var e,n,i=this.res.data.map((function(e){return function(t,e){var n={url:t.surl||t.url,img:t.mthumbs&&t.mthumbs[0]||t.thumb||t.thumbs&&t.thumbs[0]||"",ltitle:t.title||t.mtitle||t.ltitle,info:t.info,isCallup:!1,callupid:"",calluptype:void 0,kid:void 0};n.callupid=Object(l7.a)(n.url),n.calluptype=e.calluptype?e.calluptype:"SN_0157",n.kid=e.kid?e.kid:"202",n.callupid&&-1==I7.indexOf("sinanews")&&(n.isCallup=!0);return n}(e,t._CALLUPCONFIG)}));this._FG&&(e=i,n=this._CALLUPCONFIG,e.forEach((function(t){t.url+="&fj=1",n.shouldCallup?t.isCallup=!0:t.isCallup=!1})));var r,o,a,s,l,c=A7(this._CALLUPCONFIG);this._container=Object(s7.$)((r=i,o=this._position,a=this._SUDA,s=c,l=this._showLogo,'\n
\n \n
\n '))),this._buttonEle=this._container[0].getElementsByClassName("app_call")[0],Object(s7.$)(document.body).prepend(this._container),this._container.removeClass("hide"),this._containerHeight=this._container.height(),this._container.addClass("hide"),v7(Object(s7.$)(".sw_c1")),this._show=!1,(0==this._NAVFIXABLETOP||Object(s7.$)(window).scrollTop()>=this._NAVFIXABLETOP)&&(this._initSwiper(),this._show=!0),Object(s7.$)(window).on("orientationchange",(function(e){t._orientationChange=!0,setTimeout((function(){t._swiper&&t._swiper.update(!0)}),400)})),document.addEventListener("visibilitychange",this._handleVisibilityChange.bind(this),!1),window.addEventListener("scroll",this._scrollHandler.bind(this))}},{key:"_handleVisibilityChange",value:function(){if(this._swiper){var t=this._swiper.activeIndex-1;this._swiper.destroy(),this._swiper=null,this._initSwiper(t)}}},{key:"_handleCallupConfigChange",value:function(t){var e=t.activeIndex,n=t.slides[e].getElementsByTagName("a")[0].dataset.callupid,i=this._buttonEle;i.dataset.callupid=n,i.dataset.type=n}},{key:"_errorRenderStatic",value:function(){var t,e,n,i=A7(this._CALLUPCONFIG),r=Object(s7.$)((t=i,e=this._position,n=this._SUDA,'\n
\n \n
\n ')));Object(s7.$)(document.body).prepend(r)}},{key:"_initSwiper",value:function(t){var e,n=this;t||(t=0),this._container.removeClass("hide"),this._swiper=Swiper(".sw_c1",(e={initialSlide:t,paginationType:"bullets",wrapperClass:"sw_c2",slideClass:"sw_c3",pagination:".sw_nav",bulletClass:"sw_nav_n",slideActiveClass:"jiabei-active",bulletActiveClass:"sw_nav_n_a",containerModifierClass:"jiabei-conta",autoplay:3e3,autoplayDisableOnInteraction:!1},Object(Xt.a)(e,"pagination",".sw_nav"),Object(Xt.a)(e,"lazyLoading",!0),Object(Xt.a)(e,"lazyLoadingInPrevNext",!0),Object(Xt.a)(e,"loop",!0),Object(Xt.a)(e,"onInit",(function(){n._callback&&n._callback(),setTimeout((function(){Object(s7.$)("#j_app_btn").addClass("an")}),n._animateTime),function(t){if(window._sinaCallEvent&&window._callEventCom.sina_bind_target)window._sinaCallEvent.trigger("sina_bind_target");else{var e=document.createElement("script");e.addEventListener("load",(function(){window._sinaCallEvent.trigger("sina_bind_target")}),!1),e.src=t,document.body&&document.body.appendChild(e)}}("//mjs.sinaimg.cn/wap/online/public/NPH/v5/nph.min.js")})),Object(Xt.a)(e,"onSlideChangeStart",(function(t){var e=t.activeIndex,i=t.slides[e].getElementsByTagName("a")[0].dataset.callupid,r=n._buttonEle;r.dataset.callupid=i,r.dataset.type=i})),e)),this._swiper.length&&(this._swiper=this._swiper[this._swiper.length-1])}},{key:"_scrollHandler",value:function(){var t=Object(s7.$)(window).scrollTop();this._scrollHeight;this._processComponentShow(t),this._scrollHeight=t}},{key:"_processTransision",value:function(t,e){if(t>=this._NAVFIXABLETOP){var n=this._currentDisFromTop+e;n>0?n=0:n<-this._containerHeight&&(n=-this._containerHeight),this._container.css({top:n}),this._currentDisFromTop=n}}},{key:"_processComponentShow",value:function(t){t>=this._NAVFIXABLETOP&&!this._show&&(this._swiper||this._initSwiper(),this._container.removeClass("hide"),0==this._autoPlay&&(this._swiper.startAutoplay(),this._autoPlay=!0),this._orientationChange&&(this._swiper.update(!0),this._orientationChange=!1),this._show=!0)}}]),t}());function A7(t){return{calluptype:t.calluptype,kid:t.kid}}var D7=window.$,P7=(k7=Ce()({components:{ErrorNetwork:E,TabComponent:sr,liveHeaderComponent:Gs,Live:Q8,LiveData:JD,Chat:i7,Header:a7}}),T7=wn("tabConfig"),k7((O7=function(t){Rt(i,t);var e=Ft(i);function i(){var t;Object(l.a)(this,i);for(var n=arguments.length,r=new Array(n),o=0;o-1,t.tabKey=cs(window.location.href,"tab"),t.uri_fragment=cs(window.location.href,"uri_fragment"),t.uriObj={liveRoomOld:"zb",liveRoomManual:"zb",liveRoomAuto:"zb",data:"sj",chat:"lt"},t.url_id="",t.gongBuTimer=null,t.gongBuCon={},t.bannerLogoPos="",t.routeuriSetTimer=null,t.routeuriSeted=!1,t}return Object(c.a)(i,[{key:"onH5Created",value:function(){this.initData(),window._sinaCallStrategy&&window._sinaCallStrategy.init(o.a,{needSwiperExposure:!1})}},{key:"beforeMount",value:function(){this.__GongBu(),this.__initBannerLogo()}},{key:"__GongBu",value:function(){var t=this;this.gongBuTimer&&clearTimeout(this.gongBuTimer),this.gongBuTimer=setTimeout((function(){t.gongBuCon&&!t.gongBuCon.showHeader&&(t.gongBuCon.showHeader="1")}),2e3),is("3226").then((function(e){if(e&&e[0]&&e[0].resp)return t.gongBuCon=e[0].conf||{},console.log("====GK3226====",t.gongBuCon),t.gongBuTimer&&clearTimeout(t.gongBuTimer),!1;t.gongBuCon.showHeader="1",t.gongBuTimer&&clearTimeout(t.gongBuTimer)})).catch((function(){t.gongBuCon.showHeader="1",t.gongBuTimer&&clearTimeout(t.gongBuTimer)}))}},{key:"__initBannerLogo",value:function(){var t,e=this,n=window.__bannerLogoInstance;n&&n.onSwiperInited((function(t){console.log("base-tools-top-banner-logo",t),t&&t.bannerConf&&t.bannerConf.position&&(e.bannerLogoPos=t.bannerConf.position),e.setRouteuri()}),null),!t.fg&&"tech.sina.cn"!==location.hostname&&location.search.indexOf("tech.sina.cn")<0?console.log("::::::\u975e\u79d1\u6280\u9891\u9053::::::"):x7||(x7=new M7(t))}},{key:"setRouteuri",value:function(){var t=this;this.routeuriSetTimer&&clearTimeout(this.routeuriSetTimer),this.routeuriSetTimer=setTimeout((function(){var e=D7('[data-real-index="0"]').find(".j_callST");if(e&&e.length&&t.liveTabData&&!t.routeuriSeted){t.liveTabData.LeagueID,"148"===t.liveTabData.LeagueID?e.attr("data-routeuri","sinanews://sina.cn/sports/sport.pg?sportUri=matchsdk%3A%2F%2Fmatch.detail%3Fid%3D".concat(t.url_id,"%26").concat("","&hostRoute=sinanews%3A%2F%2Fsina.cn%2Fmain%2Fmain.pg%3Ftab%3Dnews%26channel%3DHB-1-sp_hb_for_bottom%2Fworldcup_2022_index-desktop¯o_hostRoute_sportboth=sinanews%3A%2F%2Fsina.cn%2FsportHome%2Fmain.pg%3FtabId%3Dnews%26channelId%3DHB-1-sp_hb_for_bottom%252Fworldcup_2022_index-top_tab")):e.attr("data-routeuri","sinanews://sina.cn/sports/sport.pg?sportUri=matchsdk%3A%2F%2Fmatch.detail%3Fid%3D".concat(t.url_id,"%26").concat("")),t.routeuriSeted=!0}}),300)}},{key:"__initTestLogoBanner",value:function(t){(t||this.testEnv)&&(void 0)({url:"https://feeds.sina.cn/api/v2/tianyi?cateid=uM&mod=wmilbanner&app_type=110&cre=tianyi&merge=3&statics=1&up=0&down=0&action=0",isTinayi:!0,jumpType:"3",bannerConf:{className:"sina_worldCulp_logoPos",logoConf:{deeplink:"https://sports.sina.cn",title:"\u6253\u5f00\u65b0\u6d6a\u65b0\u95fb \u770b\u5168\u9762\u6570\u636e\u5206\u6790",routeUri:"sinanews://sina.cn/main/main.pg"},insert:!0,position:"top",swiperCount:"6"},callup:{sn:"SN_test",kid:"498"}})}},{key:"initData",value:function(){var t=vn(fn().mark((function t(){var e,n;return fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.pageState=1,e=cs(window.location.href,"id"),this.url_id=e,t.next=6,Ja.getFristScreen(e);case 6:n=t.sent,this.$store.dispatch("updatePageData",{isJump:(n.Hall&&n.Hall.League&&n.Hall.League.ID,!0)}),console.log("\u9996\u5c4f\u6570\u636e",n),this.handleData(n),this.initWSLive(),this.$appSNC.pageMonitor.completeComp("onFristAjax"),this.$appSNC.onRendered({success:function(t){}}),this.setRouteuri(),t.next=21;break;case 16:t.prev=16,t.t0=t.catch(0),this.pageState=2,this.$appSNC.pageError(),this.$appSNC.sendError({error:t.t0});case 21:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(){return t.apply(this,arguments)}}()},{key:"handleData",value:function(t){var e=this;if(t&&t.Hall){var n=t.Hall,i=n.League,r=n.Season,o=n.Game,a=n.Room,s=n.Team1,l=n.Team2,c=n.Praise,u=n.Labels,h=n.Comment,p=t.Share||t.Hall.Share||{};if(this.headerData={League:i,Season:r,Game:o,Team1:s,Team2:l,Praise:c},u){var d=this.tabConfig.tabBarActive||0,f=u.map((function(t,n){return(e.uri_fragment&&e.uriObj[e.uri_fragment]&&e.uriObj[e.uri_fragment]===t.TabType||t.TabType===e.tabKey)&&(d=n),{title:t.Title,tabType:t.TabType}}));this.tabConfig.navbarArr=f,d!==this.tabConfig.tabBarActive&&(this.tabConfig.tabBarActive=d)}this.shareInfo={title:p.Title,intro:p.Intro,pic:p.Pic180,link:p.Link},this.initShare(),this.Status=o.Status||this.Status,this.liveTabData={Status:o.Status,League:i.Name,LeagueID:i.ID,LivecastID:o.LivecastID,Room:a},this.dataTabData={League:i.Name,LivecastID:o.LivecastID,MatchID:o.MatchID,Team1:s,Team2:l},this.chatTabData={Comment:h,Game:o}}}},{key:"chatTotalChange",value:function(t){if(t&&this.tabConfig.navbarArr&&this.tabConfig.navbarArr.length){var e=Object(K.a)(this.tabConfig.navbarArr);this.tabConfig.navbarArr=e.map((function(e){var n=e;return"lt"===e.tabType&&(n.unReadNum=t),n}))}}},{key:"onGameState",value:function(t){this.Status=t.Status,this.Period_cn=t.Period||t.DisplayStatus}},{key:"updataWsMStatus",value:function(t){t&&t.matchPhase&&"\u672a\u5f00\u59cb"!=t.matchPhase&&"\u5df2\u7ed3\u675f"!=t.matchPhase&&"1"===this.Status&&(this.Status="2")}},{key:"initWSLive",value:function(){var t=this.liveTabData&&this.liveTabData.Room||{};t&&t.ID&&(this.liveAction=new ls({parame:{roomId:t.ID},url:{test:"ws://ably.sports.sina.com.cn",online:("https:"===location.protocol?"wss:":"ws:")+"//ably.sports.sina.com.cn"},closeOpt:!1,onConnected:function(){tP.$emit("rapidConnected")},onReConnect:function(){tP.$emit("rapidReConnect")},onMessage:function(t){tP.$emit("rapidMsg",t),"rapid:live"==t.b?tP.$emit("rapidLive",t):"rapid:chat"==t.b?tP.$emit("rapidChat",t):"bonus:rwd"==t.b&&tP.$emit("rapidRwd",t)}}))}},{key:"initShare",value:function(){var t=this;n.e(1).then(n.bind(null,337)).then((function(e){var n=e.default;t.$nextTick((function(){var e={title:t.shareInfo.title,link:t.shareInfo.link,imgUrl:js(t.shareInfo.pic),desc:t.shareInfo.intro};n.setInfo(e)}))}))}},{key:"tabConfigChange",value:function(){this.tabIndex=this.tabConfig.tabBarActive||0}},{key:"tabChange",value:function(t){this.tabIndex=t.index||0}}]),i}(Object(Te.mixins)(xn)),ke(O7.prototype,"tabConfigChange",[T7],Object.getOwnPropertyDescriptor(O7.prototype,"tabConfigChange"),O7.prototype),C7=O7))||C7),E7=D(P7,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{staticClass:"page_main",class:["page_main_gk",t.bannerLogoPos?"page_main_gk_"+t.bannerLogoPos:""]},[1===t.pageState?n("div",{staticClass:"page_main_view"},[n("div",{staticClass:"view_h_100"},[t.gongBuCon.showHeader&&"0"!==t.gongBuCon.showHeader?n("Header",{staticClass:"header_warp"}):t._e(),n("div",{staticClass:"view_flex_const"},[t.headerData&&t.headerData.Game?n("live-header-component",{attrs:{headerData:t.headerData},on:{GameState:t.onGameState}}):t._e()],1),n("div",{staticClass:"view_flex_1"},[t.tabConfig&&t.tabConfig.navbarArr.length?n("tab-component",{ref:"tabCComponent",attrs:{config:t.tabConfig},on:{tabChange:t.tabChange}},[n("template",{slot:"zb"},[t.liveTabData.LivecastID?n("live",{attrs:{data:t.liveTabData,status:t.Status,Period_cn:t.Period_cn,tabActive:"zb"===t.tabConfig.navbarArr[t.tabIndex].tabType}}):t._e()],1),n("template",{slot:"sj"},[t.dataTabData.LivecastID?n("live-data",{attrs:{status:t.Status,data:t.dataTabData,tabActive:"sj"===t.tabConfig.navbarArr[t.tabIndex].tabType}}):t._e()],1),n("template",{slot:"lt"},[t.chatTabData&&t.chatTabData.Comment?n("Chat",{attrs:{chatTabData:t.chatTabData,tabActive:"lt"===t.tabConfig.navbarArr[t.tabIndex].tabType},on:{chatTotalChange:t.chatTotalChange}}):t._e()],1)],2):t._e()],1)],1)]):n("error-network",{attrs:{title:"\u7f51\u7edc\u5f02\u5e38",showReloadBtn:!0}})],1)}),[],!1,null,null,null),L7=E7.exports;A.a.mountApi("wapApis",{pageError:function(){this.pageError=function(t){var e=t.success;return new Promise((function(t,n){e&&e(),t()}))}}});A.a.pageError;function j7(t,e){H.default.simaBizLog({ek:t,method:"CLICK",attribute:e})}var R7=window;function N7(t){var e=this;t=t||{},this.un=!1,this.debug=t.debug,this.status={0:"initing",1:"completed"},this.events={},this.handles={},this.comps=[],this.advanceComps=[],this.isEndReported=!1;window.addEventListener("unload",(function(){e.isEndReported||j7("PAGE_INIT_QUIT",{pagename:e.pagename,newsid:e.newsId,ua:navigator.userAgent,time:R7.sncMonitorStartTime?Date.now()-R7.sncMonitorStartTime:0})}))}R7.sncMonitorStartTime=Date.now(),N7.prototype={constructor:N7,ready:function(t){var e=this;if(0===this.events[t])for(var n in this.events[t]=1,this.log("".concat(this.pagename,"-event-").concat(t," ---- ready")),j7("PAGE_INIT_END",{pagename:"".concat(this.pagename,"-event-").concat(t),newsid:this.newsId,ua:navigator.userAgent}),this.handles)if(this.handles.hasOwnProperty(n))for(var i=n.split(";"),r=0;r9?parseInt(e[1]):"0"+e[1]))}(t.length>1?t[1]:"0.0.0")}function a(){var t=parseFloat(i.wbAllowVersion),e=parseFloat(i.wbIOSAllowVersion),n=o(),r=navigator.userAgent;return!!r.match(/weibo/gi)&&!!(r.match(/android/gi)&&n>=t||r.match(/iphone/gi)&&n>=e)}n&&(t.WeiboJSBridge={on:function(t,e){switch(t){case"downLoadAppInfo":e&&e({id:"0300000000000",name:"",progress:32,packageName:"com.sina.news",result:""});break;case"broadcastObserver:schemeDownloadEvent":e&&e({appId:i.appInfo,progress:32,status:"start"})}},invoke:function(t,e,n){switch(t){case"getAppInstallStates":n&&n({status:0},true,1);break;case"getNetworkType":n&&n({network_type:"wifi"},!0);break;case"schemeDownloadApk":n&&n({msg:"XXXX"},true,200)}}},_sinaCallEvent.on("weibo_ad_install",(function(t){r.a.showLog({title:"weibo_ad_install",txt:t})}))),t.wbDownloadAPI={APIValid:a,wbVersion:o,wbSchemeUrl:function(){return i.url},getProgress:function(t){var e=a();if(window.location.href.match(/debugProgress\=1/gi)&&alert("_wbAPIValid : "+e),!e)return!1;try{window.WeiboJSBridge.on("downLoadAppInfo",(function(e){var n="success"===e.result?"1":"fail"===e.result?"-1":"0",i={progress:e.progress||0,packageName:e.packageName,result:n,targetEl:t||null};window.location.href.match(/debugProgress\=1/gi)&&alert(JSON.stringify(e)),_sinaCallEvent&&_sinaCallEvent.trigger("weibo_ad_progress",i)}))}catch(n){r.a.showLog({title:"downLoadAppInfo",txt:n.message})}},getInstallInfo:function(e,n){if(!a())return e&&e(!1);try{window.WeiboJSBridge.invoke("getAppInstallStates",{packageName:i.packageName,version:i.appVersion,url:"sinanews://sina.cn"},(function(t,n,i){var r="";try{r=parseInt(t.status||0)}catch(o){r=0}e&&e({status:r})})),n&&t._sinaCallEvent.trigger("sina_suda_action","getAppInstallStatesSuc")}catch(o){e&&e({status:-1}),n&&t._sinaCallEvent.trigger("sina_suda_action","getAppInstallStatesErr"),r.a.showLog({title:"getAppInstallStates",txt:o.message})}},getIOSInstallInfo:function(t){try{window.WeiboJSBridge.invoke("checkCanOpenUrl",{url:"sinanews://"},(function(e,n){t&&t(e)}))}catch(e){t&&t({canOpenUrl:!1}),r.a.showLog({title:"checkCanOpenUrl",txt:e.message})}},schemeDownloadApk:function(t){var e=t.version,n=t.appId,o=t.pyid,a=t.app_wm,s=t.copy,l=t.copy_tip,c=t.control,u=t.cb;try{window.WeiboJSBridge.invoke("schemeDownloadApk",{version:e||"V1",appId:n||i.appId,pyid:o||i.pyid,app_wm:a||"",copy:s||"",copy_tip:l||"",control:c||"init"},(function(t,n,i){if(r.a.showLog({title:"schemeDownloadApk ".concat(e," ").concat(c," success"),txt:n}),r.a.showLog({title:"schemeDownloadApk ".concat(e," ").concat(c," code"),txt:i}),r.a.showLog({title:"schemeDownloadApk ".concat(e," ").concat(c),txt:JSON.stringify(t)}),n)return"init"==c&&(window.isSchemeDownloadApkInit=!0),t.schemeDownloadApk=!0,t.control=c,t.version=e,void(u&&u(t));u&&u({schemeDownloadApk:!1}),i==WeiboJSBridge.STATUS_CODE.MISSING_PARAMS?console.warn("\u6ca1\u6709\u4f20\u5165 appId"):403===i&&console.warn("\u4e8b\u4ef6\u4e0d\u652f\u6301"),u&&u({schemeDownloadApk:!1})}))}catch(h){u&&u({schemeDownloadApk:!1}),r.a.showLog({title:"schemeDownloadApk ".concat(e," ").concat(c),txt:h.message})}},broadcastObserver:function(t){var e=t.eventName,n=t.cb,o=t.action,a="broadcastObserver:".concat(e||"schemeDownloadEvent");function s(t){r.a.showLog({title:"".concat(a," ").concat(o),txt:JSON.stringify(t)}),t.appId==i.appId&&n&&n(t)}try{"on"==o&&window.WeiboJSBridge.on(a,s),"off"==o&&window.WeiboJSBridge.off(a,s)}catch(l){n&&n({broadcastObserver:!1}),r.a.showLog({title:"".concat(a).concat(o),txt:l.message})}}},_sinaCallEvent&&_sinaCallEvent.on("get_wb_progress",t.wbDownloadAPI.getProgress),window.location.href.match(/debugProgress\=1/gi)&&(alert("show debugProgress8"),setTimeout((function(){alert("getInstallInfo"),t.wbDownloadAPI.getInstallInfo((function(e){alert(JSON.stringify(e)),window.location.href="sinaweibo://appsdownload?APPID=84475&pyid=2028810631",t.wbDownloadAPI.getProgress()}))}),500))}(window,document);n(223);var c=n(64),u=n.n(c),h={WeiboJSBridgeReady_UserDO_before:"WeiboJSBridgeReady_UDO_0",WeiboJSBridgeReady_UserDO_after:"WeiboJSBridgeReady_UDO_1",Weibo_JSBridge_Download:"Weibo_JSBridge_Download",Weibo_Other_Download:"Weibo_Other_Download",WeiboJSBridgeReady_getAppInstallStates:"WeiboJSBridgeReady_getAppInstallStates",WeiboOpenPage_getAppInstallStates:"WeiboOpenPage_getAppInstallStates",WeiboJSBridgeReady_getAppInstallStatesChange:"WeiboJSBridgeReady_getAppInstallStatesChange"};window.tryGoAppMaxTimer=null,window.tryGoAppMaxTime=~~window.tryGoAppMaxTime||2e3,window.userDoTimes=0;var p={goAppInfo:null,downloadInfo:null,sendLog:function(t){if(!~~t.WeiboJSBridgeReady){var e=h.WeiboJSBridgeReady_UserDO_before;~~userDoTimes>0&&(e=h.WeiboJSBridgeReady_UserDO_after),window._sinaCallEvent.trigger("sina_suda_action",e),r.a.showLog({title:"\u5efa\u6865\u6210\u529f\uff0c\u53d1\u9001code",txt:e}),r.a.showLog({title:"\u5efa\u6865\u9700\u8981\u7684\u65f6\u95f4",txt:window.weiboJSBridgeReadyTime-window.weiboJSBridgeInitTime})}},goNative:function(t){t.cb},clearTwiceTimer:function(){tryGoAppMaxTimer&&(clearTimeout(tryGoAppMaxTimer),tryGoAppMaxTimer=null)},storeInfo:function(t){var e=t.WeiboJSBridgeReady,n=t.config,i=1;userDoTimes++,i=p.goAppInfo&&n.androidNativeUrl==p.goAppInfo.androidNativeUrl?0:1,1!=e&&2==userDoTimes&&1==i&&(p.clearTwiceTimer(),userDoTimes=1),p.goAppInfo=n,p.goAppInfo.isUDo=i,r.a.showLog({title:"\u5b58\u50a8\u547c\u8d77\u4fe1\u606f\uff0c\u5f53\u524d\u662f\u5426\u4e3a\u7528\u6237\u64cd\u4f5c",txt:i})},storeDownloadInfo:function(t){var e=t.url;p.clearTwiceTimer(),p.downloadInfo={url:e},p.downloadInfo.startTime=~~p.downloadInfo.startTime,r.a.showLog({title:"\u5b58\u50a8\u4e0b\u8f7d\u4fe1\u606f\uff0c\u4e0b\u8f7d\u5730\u5740",txt:e||null})},goDownload:function(t){var e=t.cb;if(tryGoAppMaxTimer)p.clearTwiceTimer();else{p.downloadInfo.nextTime=(new Date).getTime();var n=p.downloadInfo.nextTime-p.downloadInfo.startTime;if(!(p.downloadInfo.startTime&&n<1e4))return r.a.showLog({title:"\u8ddd\u79bb\u4e0a\u6b21\u4e0b\u8f7d\u65f6\u95f4\u95f4\u9694",txt:n}),tryGoAppMaxTimer=setTimeout((function(){p.downloadInfo.startTime=(new Date).getTime(),p.clearTwiceTimer(),r.a.showLog({title:"\u5f00\u59cb\u4e8c\u6b21\u91cd\u8bd5\u4e0b\u8f7d\uff0c\u5df2\u7b49\u5f85\u65f6\u95f4",txt:tryGoAppMaxTime}),e&&e({startTime:p.downloadInfo.startTime,url:p.downloadInfo.url})}),tryGoAppMaxTime),r.a.showLog({title:"\u8bbe\u7f6e\u4e8c\u6b21\u91cd\u8bd5",txt:"start"}),userDoTimes;r.a.showLog({title:"\u91cd\u8bd5\u903b\u8f91\u65f6\u95f4\u95f4\u9694\u5fc5\u987b\u5927\u4e8e10s\uff0c\u8ddd\u79bb\u4e0a\u6b21\u4e0b\u8f7d\u65f6\u95f4\u95f4\u9694",txt:n})}}},d=p,f=function(t){var e=-2,n=window,i="ios"===r.a._system();return new Promise((function(o,a){i?n.wbDownloadAPI.getIOSInstallInfo((function(t){try{e=~~t.canOpenUrl}catch(n){e=-1}r.a.showLog({title:"wbInstallInfo/re",txt:e+"/"+JSON.stringify(t)}),o(e)})):t?n.wbDownloadAPI.getInstallInfo((function(t){try{e=parseInt(t.status)}catch(n){e=-1}r.a.showLog({title:"wbInstallInfo/re",txt:e+"/"+t.status}),o(e)}),1):n._sinaCallEvent.trigger("sina_suda_action","WeiboJSBridgeUnReady_getAppInstallStates")}))},g=window.SM&&window.SM.data&&window.SM.data.callUpConfig&&window.SM.data.callUpConfig.path||"callup/ulink",v=function(t){return Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=t[e].replace(/\:\/\/sapi.sina.cn\/Callup.php/,"://sapi.sina.cn/".concat(g)))})),t},m="Exposure_CN_0928",y="Exposure_CN_0929",_="click_CN_0928",b="click_CN_0929",w="j_downs_layle",x="j_downs_close",S="j_downs_btn",k="j_downs_cover",T=function(t){document.querySelector(".".concat(w)).style.display=t?"":"none"},C=function(t){var e=document.createElement("section");e.className="".concat(w," downs_layle"),e.innerHTML=' \n
\n
\n \x3c!--\u9884\u7559\u4e8b\u4ef6 j_downs_close --\x3e\n \n
\n \n
\n

\u65b0\u6d6a\u65b0\u95fb\u5b98\u65b9

\n

\n \u70ed\u70b9\u8d44\u8baf \u7cbe\u5f69\u89c6\u9891\u62a2\u5148\u770b\n 5.0\u5206\u597d\u8bc4\n

\n
\n \u514d\u8d39 / \u7eff\u8272\u5e94\u7528 / \u4f18\u8d28\n
\n \n
\n
\n \x3c!--\u9884\u7559\u4e8b\u4ef6 j_downs_btn --\x3e\n
\u5b89\u88c5
\n
'),function(){var t=document.createElement("style");t.innerHTML=".layer_cover{position: fixed;left: 0;right: 0;bottom: 0; top: 0; background:rgba(0,0,0,.5);z-index:1000;}\n.downs_meta{position: fixed;left: 0;right: 0;bottom: 0;background:#F4F4F4;z-index: 1001;box-sizing: border-box;padding: .4rem;}\n.j_downs_close{ position: absolute; right: .2rem;top:.2rem; width: .3rem; height: .3rem; cursor: pointer; z-index: 1;background: url(http://n.sinaimg.cn/default/80905340/20200331/close.svg) no-repeat ; background-size: .3rem;background-position: center;padding: .2rem;}\n.downs_info_card{ display:block;clear: both; overflow: hidden;}\n.downs_logo{ float:left; width: 1.52rem;}\n.downs_info{overflow: hidden; padding-left:.2rem}\n.downs_info_h5{ display:block;font-size: .42rem; color: #1a1a1a; line-height: 36px;}\n.downs_info_from{ margin:0 0 .05rem .2rem; font-size: .2rem; color: #FE350E; border: 1px solid #FE350E; font-weight: normal; display: inline-block; border-radius: .04rem; line-height:1; padding:2px 4px; vertical-align: middle; }\n.downs_info_tit{font-size: .26rem; color:#444; line-height:20px; font-weight: normal; position: relative; padding-right: 1.2rem;}\n.downs_info_star{ position: absolute; color: #888; right: 0; font-size: .22rem;}\n.downs_info_tips{ clear: both; position: relative; padding-right: 1.2rem; font-size: .22rem; color: #5786D2; line-height: 20px;}\n.downs_info_appstar{ position: absolute; color: #888; top: .05rem; right: 0; font-size: .22rem; background: url(http://n.sinaimg.cn/default/80905340/20200331/star.png) repeat-x; background-size: .24rem; width: 1.16rem; height: .24rem;}\n.j_downs_btn{ margin-top: .38rem; clear: both; text-align: center; color: #fff; font-size: .34rem; height: .88rem; line-height: .88rem;background:linear-gradient(to right,#eb455b,#eb473b,#eb492b); border-radius: .44rem;}",document.body.appendChild(t)}(),document.body.appendChild(e),function(t){r.a.pageVisibility.visibilitychange((function(){"visible"!==document.visibilityState&&"hidden"!==document.visibilityState||T(!1)})),document.querySelector(".".concat(k)).onclick=function(){T(!1),_sinaCallEvent.trigger("sina_suda_action",b)},document.querySelector(".".concat(x)).onclick=function(){T(!1),_sinaCallEvent.trigger("sina_suda_action",b)},document.querySelector(".".concat(S)).onclick=function(){T(!1),_sinaCallEvent.trigger("sina_suda_action",_),t&&t.installUrl&&(window.location.href=t.installUrl)}}(t)},O=function(t){try{if(_sinaCallEvent.trigger("sina_suda_action",y),_sinaCallEvent.trigger("sina_suda_action",m),document.querySelector(".".concat(w)))return void T(!0);C(t)}catch(e){console.log(e)}};window.showLayerTest=O;var I=O,M="click_CN_0929-loading",A="j_wloading_layle",D="j_wloading_btn",P="j_wloading_cover",E=function(t){try{document.querySelector(".".concat(A)).style.display=t?"":"none"}catch(e){console.log(e.message)}},L=function(t){var e=document.createElement("section");e.className="".concat(A," wloading_layle"),e.innerHTML=' \n
\n
\n \x3c!--\u9884\u7559\u4e8b\u4ef6 j_wloading_close --\x3e\n
\n
\n \n

\u6253\u5f00\u65b0\u6d6a\u65b0\u95fb\uff0c\u9605\u8bfb\u66f4\u4f73

\n \x3c!--\u9884\u7559\u4e8b\u4ef6 j_wloading_btn --\x3e\n
\n
\u6b63\u5728\u8df3\u8f6c
\n
\n \n \n \n \n
\n
\n
\n \n
\n
'),function(){var t=document.createElement("style");t.innerHTML=".layer_cover {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: rgba(0, 0, 0, .5);\n z-index: 1000;\n}\n.sinanews_loading{\n display:block;\n}\n.wloading_meta {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n background: #F4F4F4;\n z-index: 1001;\n box-sizing: border-box;\n}\n\n.j_wloading_close {\n position: absolute;\n right: .2rem;\n top: .2rem;\n width: .3rem;\n height: .3rem;\n cursor: pointer;\n z-index: 1;\n background: url(http://n.sinaimg.cn/default/80905340/20200331/close.svg) no-repeat;\n background-size: .3rem;\n background-position: center;\n padding: .2rem;\n}\n\n.wloading_info_card {\n clear: both;\n overflow: hidden;\n text-align: center;padding:.3rem 0\n}\n\n.wloading_logo {\n width: 1.1rem;\n display:inline-block;\n vertical-align:center;\n}\n\n.wloading_info_h3 {\n font-size: .36rem;\n color: #1a1a1a;\n line-height: 1.1rem;\n margin: 0 10px!important;\n display: inline-block;\n}\n\n.wloading_btn {\n clear: both;\n text-align: center;\n color: #444444;\n font-size: .3rem; margin-top:-.1rem\n \n}\n.wloading_txt{}\n.wloading_dots{\n display:block;\n}\n.wloading_dots .wloading_dot {\n display: inline-block;\n height: 0.12rem;\n width: 0.12rem;\n background-color: #444444;\n border-radius: 100%;\n}\n\n.wloading_dots .wloading_dot:nth-of-type(0) {\n animation: myfirstDot 1.2s 0 infinite;\n}\n\n.wloading_dots .wloading_dot:nth-of-type(1) {\n animation: myfirstDot 1.2s 0.3s infinite;\n}\n\n.wloading_dots .wloading_dot:nth-of-type(2) {\n animation: myfirstDot 1.2s 0.6s infinite;\n}\n\n.wloading_dots .wloading_dot:nth-of-type(3) {\n animation: myfirstDot 1.2s 0.9s infinite;\n}\n\n@keyframes myfirstDot {\n 0% {\n transform: scale(1)\n }\n 50% {\n transform: scale(1.2)\n }\n 100% {\n transform: scale(1)\n }\n}",document.body.appendChild(t)}(),document.body.appendChild(e),r.a.pageVisibility.visibilitychange((function(){console.log("visibilityState :",r.a.pageVisibility.visibilityState),"visible"!==document.visibilityState&&"hidden"!==document.visibilityState||E(!1)})),setTimeout((function(){E(!1)}),2e3),document.querySelector(".".concat(P)).onclick=function(t){E(!1),_sinaCallEvent.trigger("sina_suda_action",M),t.preventDefault&&t.preventDefault()}},j=function(){E(!1)},R=function(t){try{if(document.querySelector(".".concat(A)))return void E(!0);L()}catch(e){console.log(e)}};window.showLoadingLayerTest=R,window.hideLoadingLayerTest=j;var N=R,B=j,z=n(15),F=n(48),H=n(37),V=window;V.getFromUrl=!1;var U=window.location.href.match(/isTestWB2Download/gi),G=window.location.href.match(/isMockBrowser/gi),W=new u.a,Y=0,X=r.a.isWeibo(),$=r.a.isSinaNews();function q(){window.weiboJSBridgeReadyTime=(new Date).getTime(),d.sendLog({WeiboJSBridgeReady:Y}),Z()}function Z(){f(Y=1).then((function(t){V.wbInstallInfo=t,V._sinaCallEvent.trigger("sina_suda_action",h.WeiboOpenPage_getAppInstallStates)}))}V.isTestUserDoTimes=0,window.isTestWB2Downloaded=0,V.wbInstallInfo=-2,X&&(document.addEventListener("DOMContentLoaded",(function(t){if("undefined"===typeof window.WeiboJSBridge){var e=document.createElement("iframe");e.id="__WeiboJSInvokeIframe",e.style.display="none",document.documentElement.appendChild(e),e.src="sinaweibo://bridge_initialize"}window.weiboJSBridgeInitTime=(new Date).getTime()})),window.WeiboJSBridge?Z():document.addEventListener("WeiboJSBridgeReady",q)),G&&setTimeout((function(){q()}),1500);var K={openTimer:null,onlyCopy:!1,init:function(t){var e=K,n=r.a.isWeixin(),i=(r.a.isIOS9(),!n&&r.a.isQQ(),r.a.isUC(),v(t)||{});d.storeInfo({WeiboJSBridgeReady:Y,config:i}),r.a.iAssign(e,t),e.platform&&(r.a.showLog({title:"sina_open_native_fullscheme",txt:JSON.stringify({nativeUrl:e.nativeUrl})}),_sinaCallEvent.trigger("sina_open_native_fullscheme",{nativeUrl:e.nativeUrl}),e._gotoNative())},_gotoNative:function(){var t=F.a,e=W.browser===t.Quark,n=this,i=r.a.isIOS9(),o=r.a.isUC(),a=Date.now(),s=r.a.isOriginalChrome();!i||!n.installUrl||n.isNotScheme||X||o||$||e?(n.nativeUrl&&(i&&X||n.isNotScheme?H.a.newLocation({config:window.iNPHConfig,url:n.nativeUrl}):$&&n.nativeUrl?window.location.href=n.nativeUrl:(s||o||e)&&!X&&n.nativeUrl?H.a.newLocation({config:window.iNPHConfig,url:n.nativeUrl}):n.goScheme(n.nativeUrl)),n._checkWBDownload()):n._gotoDownload(a)},goScheme:function(t){if(t){var e=document.body,n=document.createElement("iframe");r.a._system();n.className="J_RAF_"+Math.floor(1e11*Math.random(1)),n.style.display="none",n.style.width="1px",n.style.height="1px",n.border="none",setTimeout((function(){r.a.clearBox("."+n.className)}),2e3);var i=t;n.src=H.a.iCopyHack({config:window.iNPHConfig,url:i}),this.isNoLayer||this.callWay.type==z.a.intent||$||N(),r.a.showLog({title:"\u547c\u8d77scheme",txt:'

'.concat(n.src,"

")}),~~this.onlyCopy||(e?e.appendChild(n):setTimeout((function(){e.appendChild(n)}),0))}},_checkWBDownload:function(t){var e=this,n=Date.now(),i="ios"===r.a._system();V.wbDownloadAPI&&V.wbDownloadAPI.APIValid();V.wbDownloadAPI&&X&&f(Y).then((function(t){if(1==V.wbInstallInfo&&0==t&&V._sinaCallEvent.trigger("sina_suda_action",h.WeiboJSBridgeReady_getAppInstallStatesChange),1==(V.wbInstallInfo||t)&&wbInstallInfo*t==0){var e={current_installed:t,before_installed:V.wbInstallInfo};_sinaCallEvent.trigger("sina_install_change",e),r.a.showLog({title:"\u5b89\u88c5\u6001\u53d1\u751f\u53d8\u5316",txt:JSON.stringify(e)})}V.wbInstallInfo=t,V._sinaCallEvent.trigger("sina_suda_action",h.WeiboJSBridgeReady_getAppInstallStates)})),1==V.wbInstallInfo||t||$||(!V.isWBValid||i?(e.openTimer&&clearTimeout(e.openTimer),e.openTimer=setTimeout((function(){e._gotoDownload(n)}),e.openTime)):e._gotoDownload(n,""),d.storeDownloadInfo({url:""}))},_gotoDownload:function(t,e){var n=this,i=Date.now(),o=r.a._system(),a=r.a.isWeibo(),s=r.a.isWeiboJsbridgeWay(),l="android"==o&&i-t0){if(r.a.showLog({title:"===\u5168\u5c40\u4e0b\u8f7d\u5f00\u59cb====",txt:"_isNphDownloadPower:"+u}),V._sinaCallEvent.trigger("sina_suda_action","callfail_".concat(n.position)),V._sinaCallEvent.trigger("sina_callfail"),V.newsAppActivity&&V.newsAppActivity.trigger&&l&&a&&V.newsAppActivity.trigger("callupDownload",[]),l&&a&&s&&!n.isGolink){if(U&&!window.isTestWB2Downloaded)return r.a.showLog({title:"===\u9996\u6b21\u4e0b\u8f7d\u5f3a\u5236\u8d70\u91cd\u8bd5\u903b\u8f91====",txt:"\u5f00\u59cb\u5566"}),window.isTestWB2Downloaded=1,void d.goDownload({cb:function(t){var e=t.startTime,i=t.url;n._gotoDownload(e,i)}});if(r.a.showLog({title:"jsBridge\u65b9\u5f0f\u4e0b\u8f7d\u5ba2\u6237\u7aef",txt:"\u5f00\u59cb\u5566"}),Y){V._sinaCallEvent.trigger("sina_suda_action",h.Weibo_JSBridge_Download),r.a.showLog({title:"\u5f00\u59cb\u4f7f\u7528\u5fae\u535aschemeDownloadApk\u65b9\u6cd5\u4e0b\u8f7d\u5ba2\u6237\u7aef",txt:"\u6700\u7ec8\u4e0b\u8f7d\u4f7f\u7528\u7684jsbridge\u65b9\u5f0f\u4e0b\u8f7d"});try{!V.schemeDownloadApkStart&&V._sinaCallEvent.trigger("sina_suda_action","schemeDownloadApkStart"),V.schemeDownloadApkStart=0,window.wbDownloadAPI.schemeDownloadApk({version:window.isSchemeDownloadApkInit?"V2":"V1",control:"start",cb:function(t){t.schemeDownloadApk&&(H.a.iCopyHack({config:window.iNPHConfig,url:n.nativeUrl}),!V.schemeDownloadApkSuc&&V._sinaCallEvent.trigger("sina_suda_action","schemeDownloadApkSuc"),V.schemeDownloadApkSuc=0,r.a.showLog({title:"\u5df2\u5f00\u59cb\u4f7f\u7528\u5fae\u535aschemeDownloadApk\u65b9\u6cd5\u4e0b\u8f7d\u5ba2\u6237\u7aef",txt:""}))}})}catch(Q){V._sinaCallEvent.trigger("sina_suda_action","schemeDownloadApkErr"),r.a.showLog({title:"weiboJsbridge\u4e0d\u53ef\u7528",txt:"schemeDownloadApk"})}}else V._sinaCallEvent.trigger("sina_suda_action","WeiboJSBridgeUnReady_schemeDownloadApk"),r.a.showLog({title:"weiboJsbridge\u6ca1ready",txt:"\u4e0d\u6267\u884c\u4e0b\u8f7d"}),d.goDownload({cb:function(t){var e=t.startTime,i=t.url;n._gotoDownload(e,i)}})}else a&&V._sinaCallEvent.trigger("sina_suda_action",h.Weibo_Other_Download),r.a.showLog({title:"\u5f00\u59cb\u4f7f\u7528\u5fae\u535aschemeDownloadApk\u65b9\u6cd5\u4e0b\u8f7d\u5ba2\u6237\u7aef",txt:"\u6700\u7ec8\u4e0b\u8f7d\u4f7f\u7528\u7684jsbridge\u65b9\u5f0f\u4e0b\u8f7d"+(new Date).getTime()}),n.isNoLayer?setTimeout((function(){r.a.showLog({title:"\u5f00\u59cb\u4e0b\u8f7d",txt:(new Date).getTime()+"/"+n.installUrl}),document.hidden||document.webkitHidden||(V.location.href=!!e&&e||n.installUrl)}),50):(B(),I(n));_sinaCallEvent&&_sinaCallEvent.trigger("get_wb_progress",n.targetEl)}else V.wbInstallInfo=-2}};V.sinaOpenNative=function(t){var e=t||{};K.init(e)},_sinaCallEvent.on("sina_direct_open",sinaOpenNative);n(224)}]);