(self.webpackChunkyzreader=self.webpackChunkyzreader||[]).push([[998],{8333:function(t,e,n){"use strict";function i(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 r(t){for(var e=1;e=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),T(n),p}},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;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function a(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){a(o,i,r,s,l,"next",t)}function l(t){a(o,i,r,s,l,"throw",t)}s(void 0)}))}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.id,i=e.url,r=n||i;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=r,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(r);if(w(r))return r.replace("http:","https:");if(n)throw new TypeError("“".concat(n,"” is not a valid video id."));throw new TypeError("“".concat(r,"” is not a vimeo.com url."))}var T=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",o="string"==typeof e?[e]:e;return o.forEach((function(e){t[i](e,n)})),{cancel:function(){return o.forEach((function(e){return t[r](e,n)}))}}},C=void 0!==Array.prototype.indexOf,A="undefined"!=typeof window&&void 0!==window.postMessage;if(!(x||C&&A))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(t){}}(),i=function(t,e,i){n?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:i}):t[e]=i};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id","_WeakMap"+"_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(t,n){if(!r(t)||!e.call(t,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof t)}function o(){return Math.random().toString().substring(2)}return i(t.prototype,"delete",(function(t){if(n(this,"delete"),!r(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)&&(delete t[this._id],!0)})),i(t.prototype,"get",(function(t){if(n(this,"get"),r(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),i(t.prototype,"has",(function(t){if(n(this,"has"),!r(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),i(t.prototype,"set",(function(t,e){if(n(this,"set"),!r(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=e,this):(i(t,this._id,[t,e]),this)})),i(t,"_polyfill",!0),t}()}function r(t){return Object(t)===t}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:I);var k=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var e,n,i;i=function(){var t,e,n,i=Object.prototype.toString,r="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,n,i){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==i})}}catch(e){t=function(t,e,n){return t[e]=n,t}}function o(t,i){n.add(t,i),e||(e=r(n.drain))}function a(t){var e,n=typeof t;return null==t||"object"!=n&&"function"!=n||(e=t.then),"function"==typeof e&&e}function s(){for(var t=0;t0&&o(s,n))}catch(t){h.call(new p(n),t)}}}function h(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&o(s,e))}function c(t,e,n,i){for(var r=0;r=8&&r<10&&(i=JSON.stringify(i)),t.element.contentWindow.postMessage(i,t.origin)}}function N(t,e){var n,i=[];if((e=O(e)).event){if("error"===e.event)L(t,e.data.method).forEach((function(n){var i=new Error(e.data.message);i.name=e.data.name,n.reject(i),E(t,e.data.method,n)}));i=L(t,"event:".concat(e.event)),n=e.data}else if(e.method){var r=function(t,e){var n=L(t,e);if(n.length<1)return!1;var i=n.shift();return E(t,e,i),i}(t,e.method);r&&(i.push(r),n=e.value)}i.forEach((function(e){try{if("function"==typeof e)return void e.call(t,n);e.resolve(n)}catch(t){}}))}var F=["autopause","autoplay","background","byline","color","colors","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return F.reduce((function(e,n){var i=t.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(e[n]=""===i?1:i),e}),e)}function z(t,e){var n=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,e.appendChild(i.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function V(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(i,r){if(!w(t))throw new TypeError("“".concat(t,"” is not a vimeo.com url."));var o="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var a in e)e.hasOwnProperty(a)&&(o+="&".concat(a,"=").concat(encodeURIComponent(e[a])));var s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",o,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{var e=JSON.parse(s.responseText);if(403===e.domain_status_code)return z(e,n),void r(new Error("“".concat(t,"” is not embeddable.")));i(e)}catch(t){r(t)}else r(new Error("“".concat(t,"” is not embeddable.")));else r(new Error("“".concat(t,"” was not found.")))},s.onerror=function(){var t=s.status?" (".concat(s.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},s.send()}))}var j={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},G=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(u,t);var e,n,i,a=y(u);function u(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=arguments.length>3?arguments[3]:void 0;return l(this,u),c(v(n=a.call(this)),"logger",void 0),c(v(n),"speedAdjustment",0),c(v(n),"adjustSpeed",function(){var t=s(o().mark((function t(e,i){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.speedAdjustment!==i){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.getPlaybackRate();case 4:return t.t0=t.sent,t.t1=n.speedAdjustment,t.t2=t.t0-t.t1,t.t3=i,r=t.t2+t.t3,n.log("New playbackRate: ".concat(r)),t.next=12,e.setPlaybackRate(r);case 12:n.speedAdjustment=i;case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),n.logger=h,n.init(e,t,r(r({},j),i)),n}return h(u,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(i=s(o().mark((function t(e,n,i){var r,a,s,l=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.waitForTOReadyState(e,"open");case 2:if("viewer"!==i.role){t.next=10;break}return t.next=5,this.updatePlayer(e,n,i);case 5:r=T(e,"change",(function(){return l.updatePlayer(e,n,i)})),a=this.maintainPlaybackPosition(e,n,i),this.addEventListener("disconnect",(function(){a.cancel(),r.cancel()})),t.next=14;break;case 10:return t.next=12,this.updateTimingObject(e,n);case 12:s=T(n,["seeked","play","pause","ratechange"],(function(){return l.updateTimingObject(e,n)}),"on","off"),this.addEventListener("disconnect",(function(){return s.cancel()}));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"updateTimingObject",value:(n=s(o().mark((function t(e,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,n.getCurrentTime();case 3:return t.t1=t.sent,t.next=6,n.getPaused();case 6:if(!t.sent){t.next=10;break}t.t2=0,t.next=13;break;case 10:return t.next=12,n.getPlaybackRate();case 12:t.t2=t.sent;case 13:t.t3=t.t2,t.t4={position:t.t1,velocity:t.t3},t.t0.update.call(t.t0,t.t4);case 16:case"end":return t.stop()}}),t)}))),function(t,e){return n.apply(this,arguments)})},{key:"updatePlayer",value:(e=s(o().mark((function t(e,n,i){var r,a,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.query(),a=r.position,l=r.velocity,"number"==typeof a&&n.setCurrentTime(a),"number"!=typeof l){t.next=25;break}if(0!==l){t.next=11;break}return t.next=6,n.getPaused();case 6:if(t.t0=t.sent,!1!==t.t0){t.next=9;break}n.pause();case 9:t.next=25;break;case 11:if(!(l>0)){t.next=25;break}return t.next=14,n.getPaused();case 14:if(t.t1=t.sent,!0!==t.t1){t.next=19;break}return t.next=18,n.play().catch(function(){var t=s(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("NotAllowedError"!==e.name||!i.autoPlayMuted){t.next=5;break}return t.next=3,n.setMuted(!0);case 3:return t.next=5,n.play().catch((function(t){}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 18:this.updatePlayer(e,n,i);case 19:return t.next=21,n.getPlaybackRate();case 21:if(t.t2=t.sent,t.t3=l,t.t2===t.t3){t.next=25;break}n.setPlaybackRate(l);case 25:case"end":return t.stop()}}),t,this)}))),function(t,n,i){return e.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(t,e,n){var i=this,r=n.allowedDrift,a=n.maxAllowedDrift,l=n.minCheckInterval,u=n.maxRateAdjustment,h=n.maxTimeToCatchUp,c=1e3*Math.min(h,Math.max(l,a)),p=function(){var n=s(o().mark((function n(){var s,l,c,p,f;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===t.query().velocity,n.t0){n.next=6;break}return n.next=4,e.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=t.query().position,n.next=11,e.getCurrentTime();case 11:if(n.t3=n.sent,s=n.t2-n.t3,l=Math.abs(s),i.log("Drift: ".concat(s)),!(l>a)){n.next=22;break}return n.next=18,i.adjustSpeed(e,0);case 18:e.setCurrentTime(t.query().position),i.log("Resync by currentTime"),n.next=29;break;case 22:if(!(l>r)){n.next=29;break}return f=(c=l/h)<(p=u)?(p-c)/2:p,n.next=28,i.adjustSpeed(e,f*Math.sign(s));case 28:i.log("Resync by playbackRate");case 29:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),f=setInterval((function(){return p()}),c);return{cancel:function(){return clearInterval(f)}}}},{key:"log",value:function(t){var e;null===(e=this.logger)||void 0===e||e.call(this,"TimingSrcConnector: ".concat(t))}},{key:"waitForTOReadyState",value:function(t,e){return new Promise((function(n){!function i(){t.readyState===e?n():t.addEventListener("readystatechange",i,{once:!0})}()}))}}]),u}(m(EventTarget)),H=new WeakMap,W=new WeakMap,Z={},U=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn,e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(t){return Boolean(t&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var r=e.querySelector("iframe");r&&(e=r)}if("IFRAME"===e.nodeName&&!w(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(H.has(e))return H.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new k((function(t,r){if(n._onMessage=function(e){if(w(e.origin)&&n.element.contentWindow===e.source){"*"===n.origin&&(n.origin=e.origin);var i=O(e.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var o=new Error(i.data.message);return o.name=i.data.name,void r(o)}var a=i&&"ready"===i.event,s=i&&"ping"===i.method;if(a||s)return n.element.setAttribute("data-ready","true"),void t();N(n,i)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var o=B(e,i);V(M(o),o,e).then((function(t){var i,r,o,a=z(t,e);return n.element=a,n._originalElement=e,i=e,r=a,o=D.get(i),D.set(r,o),D.delete(i),H.set(n.element,n),t})).catch(r)}}));if(W.set(this,o),H.set(this.element,this),"IFRAME"===this.element.nodeName&&R(this,"ping"),Z.isEnabled){var a=function(){return Z.exit()};this.fullscreenchangeHandler=function(){Z.isFullscreen?P(n,"event:exitFullscreen",a):E(n,"event:exitFullscreen",a),n.ready().then((function(){R(n,"fullscreenchange",Z.isFullscreen)}))},Z.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var e;return h(t,[{key:"callMethod",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new k((function(i,r){return e.ready().then((function(){P(e,t,{resolve:i,reject:r}),R(e,t,n)})).catch(r)}))}},{key:"get",value:function(t){var e=this;return new k((function(n,i){return t=b(t,"get"),e.ready().then((function(){P(e,t,{resolve:n,reject:i}),R(e,t)})).catch(i)}))}},{key:"set",value:function(t,e){var n=this;return new k((function(i,r){if(t=b(t,"set"),null==e)throw new TypeError("There must be a value to set.");return n.ready().then((function(){P(n,t,{resolve:i,reject:r}),R(n,t,e)})).catch(r)}))}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===L(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch((function(){})),P(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");E(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch((function(t){}))}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=W.get(this)||new k((function(t,e){e(new Error("Unknown player. Probably unloaded."))}));return k.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Z.isEnabled?Z.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Z.isEnabled?Z.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Z.isEnabled?k.resolve(Z.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new k((function(e){if(W.delete(t),H.delete(t.element),t._originalElement&&(H.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&"DIV"===t.element.nodeName&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var n=t.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&t._originalElement&&t._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}t._window.removeEventListener("message",t._onMessage),Z.isEnabled&&Z.off("fullscreenchange",t.fullscreenchangeHandler),e()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return k.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new k((function(t,e){return e(new TypeError("Argument must be an array."))}));var e=new k((function(t){return t(null)})),n=[t[0]?this.set("colorOne",t[0]):e,t[1]?this.set("colorTwo",t[1]):e,t[2]?this.set("colorThree",t[2]):e,t[3]?this.set("colorFour",t[3]):e];return k.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(e=s(o().mark((function t(e,n){var i,r=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return t.next=4,this.ready();case 4:return i=new G(this,e,n),R(this,"notifyTimingObjectConnect"),i.addEventListener("disconnect",(function(){return R(r,"notifyTimingObjectDisconnect")})),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,this)}))),function(t,n){return e.apply(this,arguments)})}]),t}();x||(Z=function(){var t=function(){for(var t,e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=e.length,r={};n0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(t){"console"in window&&console.error};e.forEach((function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=B(t);V(M(e),e,t).then((function(e){return z(e,t)})).catch(n)}catch(t){n()}}))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",(function(e){if(w(e.origin)&&e.data&&"spacechange"===e.data.event)for(var n=t.querySelectorAll("iframe"),i=0;i0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",(function(e){if(w(e.origin)){var n=O(e.data);if(n&&"ready"===n.event)for(var i=t.querySelectorAll("iframe"),r=0;r0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(t){"console"in window&&console.error};window.addEventListener("message",(function(n){if(w(n.origin)){var i=O(n.data);if(i&&"ready"===i.event)for(var r=t.querySelectorAll("iframe"),o=function(){var t=r[a],i=t.contentWindow===n.source;if(S(t.src)&&i){var o=new U(t);o.getVideoId().then((function(t){var e=new RegExp("[?&]vimeo_t_".concat(t,"=([^&#]*)")).exec(window.location.href);if(e&&e[1]){var n=decodeURI(e[1]);o.setCurrentTime(n)}})).catch(e)}},a=0;an;)o[n]=e[n++];return o}},1318:function(t,e,n){"use strict";var i=n(5656),r=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,l=i(e),u=o(l),h=r(a,u);if(t&&n!=n){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===n)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9671:function(t,e,n){"use strict";var i=n(9974),r=n(8361),o=n(7908),a=n(6244),s=function(t){var e=1==t;return function(n,s,l){for(var u,h=o(n),c=r(h),p=i(s,l),f=a(c);f-- >0;)if(p(u=c[f],f,h))switch(t){case 0:return u;case 1:return f}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},3658:function(t,e,n){"use strict";var i=n(9781),r=n(3157),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},1843:function(t,e,n){"use strict";var i=n(6244);t.exports=function(t,e){for(var n=i(t),r=new e(n),o=0;o=s||u<0)throw o("Incorrect index");for(var h=new e(s),c=0;c9007199254740991)throw e("Maximum allowed index exceeded");return t}},3678:function(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8113:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){"use strict";var i,r,o=n(7854),a=n(8113),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,h=u&&u.v8;h&&(r=(i=h.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},748:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(t,e,n){"use strict";var i=n(1702),r=Error,o=i("".replace),a=String(r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)for(;e--;)t=o(t,s,"");return t}},5392:function(t,e,n){"use strict";var i=n(8880),r=n(1060),o=n(2914),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},2914:function(t,e,n){"use strict";var i=n(7293),r=n(9114);t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},2109:function(t,e,n){"use strict";var i=n(7854),r=n(1236).f,o=n(8880),a=n(8052),s=n(3072),l=n(9920),u=n(4705);t.exports=function(t,e){var n,h,c,p,f,d=t.target,g=t.global,m=t.stat;if(n=g?i:m?i[d]||s(d,{}):(i[d]||{}).prototype)for(h in e){if(p=e[h],c=t.dontCallGetSet?(f=r(n,h))&&f.value:n[h],!u(g?h:d+(m?".":"#")+h,t.forced)&&void 0!==c){if(typeof p==typeof c)continue;l(p,c)}(t.sham||c&&c.sham)&&o(p,"sham",!0),a(n,h,p,t)}}},7293:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},2104:function(t,e,n){"use strict";var i=n(4374),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},9974:function(t,e,n){"use strict";var i=n(1470),r=n(9662),o=n(4374),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)}}},4374:function(t,e,n){"use strict";var i=n(7293);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){"use strict";var i=n(4374),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,n){"use strict";var i=n(9781),r=n(2597),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},5668:function(t,e,n){"use strict";var i=n(1702),r=n(9662);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},1470:function(t,e,n){"use strict";var i=n(4326),r=n(1702);t.exports=function(t){if("Function"===i(t))return r(t)}},1702:function(t,e,n){"use strict";var i=n(4374),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)}}},5005:function(t,e,n){"use strict";var i=n(7854),r=n(614);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},8173:function(t,e,n){"use strict";var i=n(9662),r=n(8554);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},7854:function(t,e,n){"use strict";var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,n){"use strict";var i=n(1702),r=n(7908),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},3501:function(t){"use strict";t.exports={}},4664:function(t,e,n){"use strict";var i=n(9781),r=n(7293),o=n(317);t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){"use strict";var i=n(1702),r=n(7293),o=n(4326),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},9587:function(t,e,n){"use strict";var i=n(614),r=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:function(t,e,n){"use strict";var i=n(1702),r=n(614),o=n(5465),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},8340:function(t,e,n){"use strict";var i=n(111),r=n(8880);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},9909:function(t,e,n){"use strict";var i,r,o,a=n(4811),s=n(7854),l=n(111),u=n(8880),h=n(2597),c=n(5465),p=n(6200),f=n(3501),d="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||c.state){var v=c.state||(c.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw g(d);return e.facade=t,v.set(t,e),e},r=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var y=p("state");f[y]=!0,i=function(t,e){if(h(t,y))throw g(d);return e.facade=t,u(t,y,e),e},r=function(t){return h(t,y)?t[y]:{}},o=function(t){return h(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}}}},3157:function(t,e,n){"use strict";var i=n(4326);t.exports=Array.isArray||function(t){return"Array"==i(t)}},4067:function(t,e,n){"use strict";var i=n(648);t.exports=function(t){var e=i(t);return"BigInt64Array"==e||"BigUint64Array"==e}},614:function(t,e,n){"use strict";var i=n(4154),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4705:function(t,e,n){"use strict";var i=n(7293),r=n(614),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n==h||n!=u&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",h=a.POLYFILL="P";t.exports=a},8554:function(t){"use strict";t.exports=function(t){return null==t}},111:function(t,e,n){"use strict";var i=n(614),r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===o}:function(t){return"object"==typeof t?null!==t:i(t)}},1913:function(t){"use strict";t.exports=!1},2190:function(t,e,n){"use strict";var i=n(5005),r=n(614),o=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},6244:function(t,e,n){"use strict";var i=n(7466);t.exports=function(t){return i(t.length)}},6339:function(t,e,n){"use strict";var i=n(1702),r=n(7293),o=n(614),a=n(2597),s=n(9781),l=n(6530).CONFIGURABLE,u=n(2788),h=n(9909),c=h.enforce,p=h.get,f=String,d=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),y=s&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),_=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===g(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=c(t);return a(i,"source")||(i.source=v(_,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return o(this)&&p(this).source||u(this)}),"toString")},4758:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},6277:function(t,e,n){"use strict";var i=n(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},3070:function(t,e,n){"use strict";var i=n(9781),r=n(4664),o=n(3353),a=n(9670),s=n(4948),l=TypeError,u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,c="enumerable",p="configurable",f="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var i=h(t,e);i&&i[f]&&(t[e]=n.value,n={configurable:p in n?n[p]:i[p],enumerable:c in n?n[c]:i[c],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){"use strict";var i=n(9781),r=n(6916),o=n(5296),a=n(9114),s=n(5656),l=n(4948),u=n(2597),h=n(4664),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=s(t),e=l(e),h)try{return c(t,e)}catch(t){}if(u(t,e))return a(!r(o.f,t,e),t[e])}},8006:function(t,e,n){"use strict";var i=n(6324),r=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},5181:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){"use strict";var i=n(2597),r=n(614),o=n(7908),a=n(6200),s=n(8544),l=a("IE_PROTO"),u=Object,h=u.prototype;t.exports=s?u.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 u?h:null}},7976:function(t,e,n){"use strict";var i=n(1702);t.exports=i({}.isPrototypeOf)},6324:function(t,e,n){"use strict";var i=n(1702),r=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),l=i([].push);t.exports=function(t,e){var n,i=o(t),u=0,h=[];for(n in i)!r(s,n)&&r(i,n)&&l(h,n);for(;e.length>u;)r(i,n=e[u++])&&(~a(h,n)||l(h,n));return h}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){"use strict";var i=n(5668),r=n(9670),o=n(6077);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(t){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},2140:function(t,e,n){"use strict";var i=n(6916),r=n(614),o=n(111),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")}},3887:function(t,e,n){"use strict";var i=n(5005),r=n(1702),o=n(8006),a=n(5181),s=n(9670),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},2626:function(t,e,n){"use strict";var i=n(3070).f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},4488:function(t,e,n){"use strict";var i=n(8554),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},6200:function(t,e,n){"use strict";var i=n(2309),r=n(9711),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},5465:function(t,e,n){"use strict";var i=n(7854),r=n(3072),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},2309:function(t,e,n){"use strict";var i=n(1913),r=n(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){"use strict";var i=n(7392),r=n(7293),o=n(7854).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},1400:function(t,e,n){"use strict";var i=n(9303),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)}},4599:function(t,e,n){"use strict";var i=n(7593),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw r("Can't convert number to bigint");return BigInt(e)}},5656:function(t,e,n){"use strict";var i=n(8361),r=n(4488);t.exports=function(t){return i(r(t))}},9303:function(t,e,n){"use strict";var i=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},7466:function(t,e,n){"use strict";var i=n(9303),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},7908:function(t,e,n){"use strict";var i=n(4488),r=Object;t.exports=function(t){return r(i(t))}},2452:function(t,e,n){"use strict";var i=n(3002),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw r("Wrong offset");return n}},3002:function(t,e,n){"use strict";var i=n(9303),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw r("The argument can't be less than 0");return e}},7593:function(t,e,n){"use strict";var i=n(6916),r=n(111),o=n(2190),a=n(8173),s=n(2140),l=n(5112),u=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,h);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,n){"use strict";var i=n(7593),r=n(2190);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},1694:function(t,e,n){"use strict";var i={};i[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(i)},1340:function(t,e,n){"use strict";var i=n(648),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},6330:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,n){"use strict";var i=n(1702),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},3307:function(t,e,n){"use strict";var i=n(6293);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){"use strict";var i=n(9781),r=n(7293);t.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(ty&&p(i,arguments[y]),i}));if(M.prototype=w,"Error"!==x?s?s(M,S):l(M,S,{name:!0}):d&&v in b&&(u(M,b,v),u(M,b,"prepareStackTrace")),l(M,b),!g)try{w.name!==x&&o(w,"name",x),w.constructor=M}catch(t){}return M}}},7658:function(t,e,n){"use strict";var i=n(2109),r=n(7908),o=n(6244),a=n(3658),s=n(7207);i({target:"Array",proto:!0,arity:1,forced:n(7293)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l=0?i:n+i;return s<0||s>=n?void 0:e[s]}))},4590:function(t,e,n){"use strict";var i=n(260),r=n(9671).findLastIndex,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLastIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},3408:function(t,e,n){"use strict";var i=n(260),r=n(9671).findLast,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLast",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},3462:function(t,e,n){"use strict";var i=n(7854),r=n(6916),o=n(260),a=n(6244),s=n(2452),l=n(7908),u=n(7293),h=i.RangeError,c=i.Int8Array,p=c&&c.prototype,f=p&&p.set,d=o.aTypedArray,g=o.exportTypedArrayMethod,m=!u((function(){var t=new Uint8ClampedArray(2);return r(f,t,{length:1,0:3},1),3!==t[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new c(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){d(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=l(t);if(m)return r(f,this,n,e);var i=this.length,o=a(n),u=0;if(o+e>i)throw h("Wrong length");for(;u-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(s.generateId)()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(a.addClass)(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a.on)(e,"focusin",(function(){t.handleFocus();var n=e.__vue__;n&&"function"==typeof n.focus&&n.focus()})),Object(a.on)(n,"focusin",this.handleFocus),Object(a.on)(e,"focusout",this.handleBlur),Object(a.on)(n,"focusout",this.handleBlur)),Object(a.on)(e,"keydown",this.handleKeydown),Object(a.on)(e,"click",this.handleClick)),"click"===this.trigger?(Object(a.on)(e,"click",this.doToggle),Object(a.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a.on)(e,"mouseenter",this.handleMouseEnter),Object(a.on)(n,"mouseenter",this.handleMouseEnter),Object(a.on)(e,"mouseleave",this.handleMouseLeave),Object(a.on)(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex,e.querySelector("input, textarea")?(Object(a.on)(e,"focusin",this.doShow),Object(a.on)(e,"focusout",this.doClose)):(Object(a.on)(e,"mousedown",this.doShow),Object(a.on)(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(a.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(a.off)(t,"click",this.doToggle),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"focusin",this.doShow),Object(a.off)(t,"focusout",this.doClose),Object(a.off)(t,"mousedown",this.doShow),Object(a.off)(t,"mouseup",this.doClose),Object(a.off)(t,"mouseleave",this.handleMouseLeave),Object(a.off)(t,"mouseenter",this.handleMouseEnter),Object(a.off)(document,"click",this.handleDocumentClick)}},u=n(0),h=Object(u.a)(l,i,[],!1,null,null,null);h.options.__file="packages/popover/src/main.vue";var c=h.exports,p=function(t,e,n){var i=e.expression?e.value:e.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=t:r.$refs.reference=t)},f={bind:function(t,e,n){p(t,e,n)},inserted:function(t,e,n){p(t,e,n)}},d=n(7);n.n(d).a.directive("popover",f),c.install=function(t){t.directive("popover",f),t.component(c.name,c)},c.directive=f;e.default=c}})},4594:function(t,e,n){"use strict";e.__esModule=!0,e.isInContainer=e.getScrollContainer=e.isScroll=e.getStyle=e.once=e.off=e.on=void 0;var 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};e.hasClass=d,e.addClass=function(t,e){if(!t)return;for(var n=t.className,i=(e||"").split(" "),r=0,o=i.length;r-1}var g=e.getStyle=u<9?function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="styleFloat");try{if("opacity"===e)try{return t.filters.item("alpha").opacity/100}catch(t){return 1}return t.style[e]||t.currentStyle?t.currentStyle[e]:null}catch(n){return t.style[e]}}}:function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}};var m=e.isScroll=function(t,e){if(!a)return g(t,null!=e?e?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};e.getScrollContainer=function(t,e){if(!a){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(m(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(a||!t||!e)return!1;var n=t.getBoundingClientRect(),i=void 0;return i=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.topi.top&&n.right>i.left&&n.left1&&a instanceof Element==0&&(a=a[0]),a.appendChild(r),r;function s(t,e){e.forEach((function(e){t.classList.add(e)}))}function l(t,e){e.forEach((function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")}))}},n.prototype._getPosition=function(t,e){var n=l(e);return this._options.forceAbsolute?"absolute":h(e,n)?"fixed":"absolute"},n.prototype._getOffsets=function(t,e,n){n=n.split("-")[0];var r={};r.position=this.state.position;var o="fixed"===r.position,a=g(e,l(t),o),s=i(t);return-1!==["right","left"].indexOf(n)?(r.top=a.top+a.height/2-s.height/2,r.left="left"===n?a.left-s.width:a.right):(r.left=a.left+a.width/2-s.width/2,r.top="top"===n?a.top-s.height:a.bottom),r.width=s.width,r.height=s.height,{popper:r,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),t.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=u(this._reference);e!==t.document.body&&e!==t.document.documentElement||(e=t),e.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=e}},n.prototype._removeEventListeners=function(){t.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(e,n,i){var r,o={};if("window"===i){var a=t.document.body,s=t.document.documentElement;r=Math.max(a.scrollHeight,a.offsetHeight,s.clientHeight,s.scrollHeight,s.offsetHeight),o={top:0,right:Math.max(a.scrollWidth,a.offsetWidth,s.clientWidth,s.scrollWidth,s.offsetWidth),bottom:r,left:0}}else if("viewport"===i){var h=l(this._popper),c=u(this._popper),p=f(h),d=function(t){return t==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):t.scrollTop},g=function(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft},m="fixed"===e.offsets.popper.position?0:d(c),v="fixed"===e.offsets.popper.position?0:g(c);o={top:0-(p.top-m),right:t.document.documentElement.clientWidth-(p.left-v),bottom:t.document.documentElement.clientHeight-(p.top-m),left:0-(p.left-v)}}else o=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:f(i);return o.left+=n,o.right-=n,o.top=o.top+n,o.bottom=o.bottom-n,o},n.prototype.runModifiers=function(t,e,n){var i=e.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,a(this._options.modifiers,n))),i.forEach(function(e){p(e)&&(t=e.call(this,t))}.bind(this)),t},n.prototype.isModifierRequired=function(t,e){var n=a(this._options.modifiers,t);return!!this._options.modifiers.slice(0,n).filter((function(t){return t===e})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(t){var e,n={position:t.offsets.popper.position},i=Math.round(t.offsets.popper.left),r=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=m("transform"))?(n[e]="translate3d("+i+"px, "+r+"px, 0)",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,t.styles),c(this._popper,n),this._popper.setAttribute("x-placement",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&c(t.arrowElement,t.offsets.arrow),t},n.prototype.modifiers.shift=function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets.reference,a=o(t.offsets.popper),s={y:{start:{top:r.top},end:{top:r.top+r.height-a.height}},x:{start:{left:r.left},end:{left:r.left+r.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";t.offsets.popper=Object.assign(a,s[l][i])}return t},n.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,n=o(t.offsets.popper),i={left:function(){var e=n.left;return n.leftt.boundaries.right&&(e=Math.min(n.left,t.boundaries.right-n.width)),{left:e}},top:function(){var e=n.top;return n.topt.boundaries.bottom&&(e=Math.min(n.top,t.boundaries.bottom-n.height)),{top:e}}};return e.forEach((function(e){t.offsets.popper=Object.assign(n,i[e]())})),t},n.prototype.modifiers.keepTogether=function(t){var e=o(t.offsets.popper),n=t.offsets.reference,i=Math.floor;return e.righti(n.right)&&(t.offsets.popper.left=i(n.right)),e.bottomi(n.bottom)&&(t.offsets.popper.top=i(n.bottom)),t},n.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split("-")[0],n=r(e),i=t.placement.split("-")[1]||"",a=[];return(a="flip"===this._options.flipBehavior?[e,n]:this._options.flipBehavior).forEach(function(s,l){if(e===s&&a.length!==l+1){e=t.placement.split("-")[0],n=r(e);var u=o(t.offsets.popper),h=-1!==["right","bottom"].indexOf(e);(h&&Math.floor(t.offsets.reference[e])>Math.floor(u[n])||!h&&Math.floor(t.offsets.reference[e])s[f]&&(t.offsets.popper[c]+=l[c]+d-s[f]);var g=l[c]+(n||l[h]/2-d/2)-s[c];return g=Math.max(Math.min(s[h]-d-8,g),8),r[c]=g,r[p]="",t.offsets.arrow=r,t.arrowElement=e,t},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),i):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,i=t.zIndex;if(i&&(o.default.zIndex=i),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),h=(0,a.default)();var r=document.documentElement.clientHeight0&&(r||"scroll"===l)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+h+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},7562:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(144),o=(i=r)&&i.__esModule?i:{default:i},a=n(4594);var s=!1,l=!1,u=void 0,h=function(){if(!o.default.prototype.$isServer){var t=p.modalDom;return t?s=!0:(s=!1,t=document.createElement("div"),p.modalDom=t,t.addEventListener("touchmove",(function(t){t.preventDefault(),t.stopPropagation()})),t.addEventListener("click",(function(){p.doOnModalClick&&p.doOnModalClick()}))),t}},c={},p={modalFade:!0,getInstance:function(t){return c[t]},register:function(t,e){t&&e&&(c[t]=e)},deregister:function(t){t&&(c[t]=null,delete c[t])},nextZIndex:function(){return p.zIndex++},modalStack:[],doOnModalClick:function(){var t=p.modalStack[p.modalStack.length-1];if(t){var e=p.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,i,r){if(!o.default.prototype.$isServer&&t&&void 0!==e){this.modalFade=r;for(var l=this.modalStack,u=0,c=l.length;u0){var i=e[e.length-1];if(i.id===t){if(i.modalClass)i.modalClass.trim().split(/\s+/).forEach((function(t){return(0,a.removeClass)(n,t)}));e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var r=e.length-1;r>=0;r--)if(e[r].id===t){e.splice(r,1);break}}0===e.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout((function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",p.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(p,"zIndex",{configurable:!0,get:function(){return l||(u=u||(o.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(t){u=t}});o.default.prototype.$isServer||window.addEventListener("keydown",(function(t){if(27===t.keyCode){var e=function(){if(!o.default.prototype.$isServer&&p.modalStack.length>0){var t=p.modalStack[p.modalStack.length-1];if(!t)return;return p.getInstance(t.id)}}();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}})),e.default=p},1301:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(){if(o.default.prototype.$isServer)return 0;if(void 0!==a)return a;var t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var i=n.offsetWidth;return t.parentNode.removeChild(t),a=e-i};var i,r=n(144),o=(i=r)&&i.__esModule?i:{default:i};var a=void 0},5389:function(t,e,n){"use strict";e.__esModule=!0,e.isDefined=e.isUndefined=e.isFunction=void 0;var 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};e.isString=function(t){return"[object String]"===Object.prototype.toString.call(t)},e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.isHtmlElement=function(t){return t&&t.nodeType===Node.ELEMENT_NODE};var r,o=n(144),a=(r=o)&&r.__esModule?r:{default:r};var s=function(t){return t&&"[object Function]"==={}.toString.call(t)};"object"===("undefined"==typeof Int8Array?"undefined":i(Int8Array))||!a.default.prototype.$isServer&&"function"==typeof document.childNodes||(e.isFunction=s=function(t){return"function"==typeof t||!1}),e.isFunction=s;e.isUndefined=function(t){return void 0===t},e.isDefined=function(t){return null!=t}},3104:function(t,e,n){"use strict";e.__esModule=!0,e.isMac=e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var 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};e.noop=function(){},e.hasOwn=function(t,e){return l.call(t,e)},e.toObject=function(t){for(var e={},n=0;n0&&void 0!==arguments[0]?arguments[0]:"").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var h=e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1},c=(e.arrayFind=function(t,e){var n=h(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},e.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if("object"!==(void 0===t?"undefined":i(t)))return t;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(n){var i=t[n];n&&i&&e.forEach((function(e){t[e+n]=i}))})),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()},e.capitalize=function(t){return(0,s.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,s.isObject)(t),i=(0,s.isObject)(e);return n&&i?JSON.stringify(t)===JSON.stringify(e):!n&&!i&&String(t)===String(e)}),p=e.arrayEquals=function(t,e){if(e=e||[],(t=t||[]).length!==e.length)return!1;for(var n=0;n-1?"center "+e:e+" center"}},appendArrow:function(t){var e=void 0;if(!this.appended){for(var n in this.appended=!0,t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var i=document.createElement("div");e&&i.setAttribute(e,""),i.setAttribute("x-arrow",""),i.className="popper__arrow",t.appendChild(i)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},1530:function(t,e){var n;!function(i){var r,o,a="0.5.4",s="hasOwnProperty",l=/[\.\/]/,u=/\s*,\s*/,h=function(t,e){return t-e},c={n:{}},p=function(){for(var t=0,e=this.length;t1)for(var i=0,r=n.length;i-1;)"string"==typeof(p=t[s][e])&&"="===p.charAt(1)&&(t[s][e]=i[e]+Number(p.charAt(0)+p.substr(2)));if((r=t.length-2)<0)return f[0]=new h(t[0][e],0,0,t[0][e]),f;for(s=0;s1){for(_=t[t.length-1],y=!0,h=b.length;--h>-1;)if(c=b[h],Math.abs(w[c]-_[c])>.05){y=!1;break}y&&(t=t.concat(),u&&t.unshift(u),t.push(t[1]),u=t[t.length-3])}for(o.length=a.length=s.length=0,h=b.length;--h>-1;)c=b[h],l[c]=-1!==r.indexOf(","+c+","),x[c]=f(t,c,l[c],u);for(h=o.length;--h>-1;)o[h]=Math.sqrt(o[h]),a[h]=Math.sqrt(a[h]);if(!i){for(h=b.length;--h>-1;)if(l[c])for(v=(d=x[b[h]]).length-1,g=0;g-1;)s[h]=Math.sqrt(s[h])}for(h=b.length,g=n?4:1;--h>-1;)d=x[c=b[h]],p(d,e,n,i,l[c]),y&&(d.splice(0,g),d.splice(d.length-g,g));return x},g=function(t,e,n){for(var i,r,o,a,s,l,u,h,c,p,f,d=1/n,g=t.length;--g>-1;)for(o=(p=t[g]).a,a=p.d-o,s=p.c-o,l=p.b-o,i=r=0,h=1;h<=n;h++)i=r-(r=((u=d*h)*u*a+3*(c=1-u)*(u*s+c*l))*u),e[f=g*n+h-1]=(e[f]||0)+i*i},m=i.ML._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(t,e,n){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var i,r,o,a,s,l=e.values||[],u={},c=l[0],p=e.autoRotate||n.vars.orientToBezier;for(i in this._autoRotate=p?p instanceof Array?p:[["x","y","rotation",!0===p?0:Number(p)||0]]:null,c)this._props.push(i);for(o=this._props.length;--o>-1;)i=this._props[o],this._overwriteProps.push(i),r=this._func[i]="function"==typeof t[i],u[i]=r?t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(t[i]),s||u[i]!==l[0][i]&&(s=u);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?d(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,s):function(t,e,n){var i,r,o,a,s,l,u,c,p,f,d,g={},m="cubic"===(e=e||"soft")?3:2,v="soft"===e,y=[];if(v&&n&&(t=[n].concat(t)),null==t||t.length-1;){for(g[p=y[l]]=s=[],f=0,c=t.length,u=0;u1&&u>0||6)-1,c=[],p=[];for(n in t)g(t[n],a,e);for(r=a.length,i=0;i>0]=p,s[o]=u,l=0,p=[]);return{length:u,lengths:s,segments:c}}(this._beziers,this._timeRes);this._length=f.length,this._lengths=f.lengths,this._segments=f.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(p=this._autoRotate)for(this._initialRotations=[],p[0]instanceof Array||(this._autoRotate=p=[p]),o=p.length;--o>-1;){for(a=0;a<3;a++)i=p[o][a],this._func[i]="function"==typeof t[i]&&t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)];i=p[o][2],this._initialRotations[o]=(this._func[i]?this._func[i].call(this._target):this._target[i])||0,this._overwriteProps.push(i)}return this._startRatio=n.vars.runBackwards?1:0,!0},set:function(t){var e,n,i,o,a,s,l,u,h,c,p=this._segCount,f=this._func,d=this._target,g=t!==this._startRatio;if(this._timeRes){if(h=this._lengths,c=this._curSeg,t*=this._length,i=this._li,t>this._l2&&i0){for(;i>0&&(this._l1=h[--i])>=t;);0===i&&tthis._s2&&i0){for(;i>0&&(this._s1=c[--i])>=t;);0===i&&t=1?p-1:p*t>>0)*(1/p))*p;for(n=1-s,i=this._props.length;--i>-1;)o=this._props[i],l=(s*s*(a=this._beziers[o][e]).da+3*n*(s*a.ca+n*a.ba))*s+a.a,this._mod[o]&&(l=this._mod[o](l,d)),f[o]?d[o](l):d[o]=l;if(this._autoRotate){var m,v,y,_,x,b,w,S=this._autoRotate;for(i=S.length;--i>-1;)o=S[i][2],b=S[i][3]||0,w=!0===S[i][4]?1:r,a=this._beziers[S[i][0]],m=this._beziers[S[i][1]],a&&m&&(a=a[e],m=m[e],v=a.a+(a.b-a.a)*s,v+=((_=a.b+(a.c-a.b)*s)-v)*s,_+=(a.c+(a.d-a.c)*s-_)*s,y=m.a+(m.b-m.a)*s,y+=((x=m.b+(m.c-m.b)*s)-y)*s,x+=(m.c+(m.d-m.c)*s-x)*s,l=g?Math.atan2(x-y,_-v)*w+b:this._initialRotations[i],this._mod[o]&&(l=this._mod[o](l,d)),f[o]?d[o](l):d[o]=l)}}}),v=m.prototype;m.bezierThrough=d,m.cubicToQuadratic=c,m._autoCSS=!0,m.quadraticToCubic=function(t,e,n){return new h(t,(2*e+t)/3,(2*e+n)/3,n)},m._cssRegister=function(){var t=u.CSSPlugin;if(t){var e=t._internals,n=e._parseToProxy,i=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,o,a,s,l){e instanceof Array&&(e={values:e}),l=new m;var u,h,c,p=e.values,f=p.length-1,d=[],g={};if(f<0)return s;for(u=0;u<=f;u++)c=n(t,p[u],a,s,l,f!==u),d[u]=c.end;for(h in e)g[h]=e[h];return g.values=d,(s=new r(t,"bezier",0,0,c.pt,2)).data=c,s.plugin=l,s.setRatio=i,0===g.autoRotate&&(g.autoRotate=!0),!g.autoRotate||g.autoRotate instanceof Array||(u=!0===g.autoRotate?0:Number(g.autoRotate),g.autoRotate=null!=c.end.left?[["left","top","rotation",u,!1]]:null!=c.end.x&&[["x","y","rotation",u,!1]]),g.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(c.proxy,g,a._tween),s}})}},v._mod=function(t){for(var e,n=this._overwriteProps,i=n.length;--i>-1;)(e=t[n[i]])&&"function"==typeof e&&(this._mod[n[i]]=e)},v._kill=function(t){var e,n,i=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],n=i.length;--n>-1;)i[n]===e&&i.splice(n,1);if(i=this._autoRotate)for(n=i.length;--n>-1;)t[i[n][2]]&&i.splice(n,1);return this._super._kill.call(this,t)}},9975:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(5957);i.ML._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],(function(){var t,e,n,r,o=function(){i.VN.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},a=i.ML._gsDefine.globals,s={},l=o.prototype=new i.VN("css");l.constructor=o,o.version="2.0.2",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,l="px",o.suffixMap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontSize:l,padding:l,margin:l,perspective:l,lineHeight:""};var u,h,c,p,f,d,g,m,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,y=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,x=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,w=/opacity *= *([^)]*)/i,S=/opacity:([^;]*)/i,M=/alpha\(opacity *=.+?\)/i,T=/^(rgb|hsl)/,C=/([A-Z])/g,A=/-([a-z])/gi,I=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,k=function(t,e){return e.toUpperCase()},D=/(?:Left|Right|Width)/i,P=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,L=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,E=/,(?=[^\)]*(?:\(|$))/gi,O=/[\s,\(]/i,R=Math.PI/180,N=180/Math.PI,F={},B={style:{}},z=i.ML.document||{createElement:function(){return B}},V=function(t,e){return z.createElementNS?z.createElementNS(e||"http://www.w3.org/1999/xhtml",t):z.createElement(t)},j=V("div"),G=V("img"),H=o._internals={_specialProps:s},W=(i.ML.navigator||{}).userAgent||"",Z=function(){var t=W.indexOf("Android"),e=V("a");return c=-1!==W.indexOf("Safari")&&-1===W.indexOf("Chrome")&&(-1===t||parseFloat(W.substr(t+8,2))>3),f=c&&parseFloat(W.substr(W.indexOf("Version/")+8,2))<6,p=-1!==W.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(W)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(W))&&(d=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),U=function(t){return w.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},X=function(t){i.ML.console},$="",Y="",q=function(t,e){var n,i,r=(e=e||j).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===r[n[i]+t];);return i>=0?($="-"+(Y=3===i?"ms":n[i]).toLowerCase()+"-",Y+t):null},K=("undefined"!=typeof window?window:z.defaultView||{getComputedStyle:function(){}}).getComputedStyle,J=o.getStyle=function(t,e,n,i,r){var o;return Z||"opacity"!==e?(!i&&t.style[e]?o=t.style[e]:(n=n||K(t))?o=n[e]||n.getPropertyValue(e)||n.getPropertyValue(e.replace(C,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==r||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:r):U(t)},Q=H.convertToPixels=function(t,e,n,r,a){if("px"===r||!r&&"lineHeight"!==e)return n;if("auto"===r||!n)return 0;var s,l,u,h=D.test(e),c=t,p=j.style,f=n<0,d=1===n;if(f&&(n=-n),d&&(n*=100),"lineHeight"!==e||r)if("%"===r&&-1!==e.indexOf("border"))s=n/100*(h?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+J(t,"position")+";line-height:0;","%"!==r&&c.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)p[h?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(c=t.parentNode||z.body,-1!==J(c,"display").indexOf("flex")&&(p.position="absolute"),l=c._gsCache,u=i.ZP.ticker.frame,l&&h&&l.time===u)return l.width*n/100;p[h?"width":"height"]=n+r}c.appendChild(j),s=parseFloat(j[h?"offsetWidth":"offsetHeight"]),c.removeChild(j),h&&"%"===r&&!1!==o.cacheWidths&&((l=c._gsCache=c._gsCache||{}).time=u,l.width=s/n*100),0!==s||a||(s=Q(t,e,n,r,!0))}else l=K(t).lineHeight,t.style.lineHeight=n,s=parseFloat(K(t).lineHeight),t.style.lineHeight=l;return d&&(s/=100),f?-s:s},tt=H.calculateOffset=function(t,e,n){if("absolute"!==J(t,"position",n))return 0;var i="left"===e?"Left":"Top",r=J(t,"margin"+i,n);return t["offset"+i]-(Q(t,e,parseFloat(r),r.replace(b,""))||0)},et=function(t,e){var n,i,r,o={};if(e=e||K(t,null))if(n=e.length)for(;--n>-1;)-1!==(r=e[n]).indexOf("-transform")&&Lt!==r||(o[r.replace(A,k)]=e.getPropertyValue(r));else for(n in e)-1!==n.indexOf("Transform")&&Pt!==n||(o[n]=e[n]);else if(e=t.currentStyle||t.style)for(n in e)"string"==typeof n&&void 0===o[n]&&(o[n.replace(A,k)]=e[n]);return Z||(o.opacity=U(t)),i=Zt(t,e,!1),o.rotation=i.rotation,o.skewX=i.skewX,o.scaleX=i.scaleX,o.scaleY=i.scaleY,o.x=i.x,o.y=i.y,Ot&&(o.z=i.z,o.rotationX=i.rotationX,o.rotationY=i.rotationY,o.scaleZ=i.scaleZ),o.filters&&delete o.filters,o},nt=function(t,e,n,i,r){var o,a,s,l={},u=t.style;for(a in n)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(o=n[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(l[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[a]||""===e[a].replace(x,"")?o:0:tt(t,a),void 0!==u[a]&&(s=new vt(u,a,u[a],s))));if(i)for(a in i)"className"!==a&&(l[a]=i[a]);return{difs:l,firstMPT:s}},it={width:["Left","Right"],height:["Top","Bottom"]},rt=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(t,e,n){if("svg"===(t.nodeName+"").toLowerCase())return(n||K(t))[e]||0;if(t.getCTM&&Gt(t))return t.getBBox()[e]||0;var i=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=it[e],o=r.length;for(n=n||K(t,null);--o>-1;)i-=parseFloat(J(t,"padding"+r[o],n,!0))||0,i-=parseFloat(J(t,"border"+r[o]+"Width",n,!0))||0;return i},at=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var n,i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],o=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];if(i.length>3&&!e){for(i=t.split(", ").join(",").split(","),t=[],n=0;n2?" "+i[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==o.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(r.replace(x,"")),e.oy=parseFloat(o.replace(x,"")),e.v=t),e||t},st=function(t,e){return"function"==typeof t&&(t=t(m,g)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){"function"==typeof t&&(t=t(m,g));var n="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(n?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(n?t.substr(2):t)/100)),null==t?e:n?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ut=function(t,e,n,i){var r,o,a,s,l,u=1e-6;return"function"==typeof t&&(t=t(m,g)),null==t?s=e:"number"==typeof t?s=t:(r=360,o=t.split("_"),a=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(o[0].substr(2)):parseFloat(o[0]))*(-1===t.indexOf("rad")?1:N)-(l?0:e),o.length&&(i&&(i[n]=e+a),-1!==t.indexOf("short")&&(a%=r)!==a%180&&(a=a<0?a+r:a-r),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%r-(a/r|0)*r:-1!==t.indexOf("ccw")&&a>0&&(a=(a-3599999999640)%r-(a/r|0)*r)),s=e+a),s-u&&(s=0),s},ht={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ct=function(t,e,n){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0},pt=o.parseColor=function(t,e){var n,i,r,o,a,s,l,u,h,c,p;if(t)if("number"==typeof t)n=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ht[t])n=ht[t];else if("#"===t.charAt(0))4===t.length&&(i=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+i+i+r+r+o+o),n=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(n=p=t.match(v),e){if(-1!==t.indexOf("="))return t.match(y)}else a=Number(n[0])%360/360,s=Number(n[1])/100,i=2*(l=Number(n[2])/100)-(r=l<=.5?l*(s+1):l+s-l*s),n.length>3&&(n[3]=Number(n[3])),n[0]=ct(a+1/3,i,r),n[1]=ct(a,i,r),n[2]=ct(a-1/3,i,r);else n=t.match(v)||ht.transparent;n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3]))}else n=ht.black;return e&&!p&&(i=n[0]/255,r=n[1]/255,o=n[2]/255,l=((u=Math.max(i,r,o))+(h=Math.min(i,r,o)))/2,u===h?a=s=0:(c=u-h,s=l>.5?c/(2-u-h):c/(u+h),a=u===i?(r-o)/c+(r0?a[0].replace(v,""):"";return h?e?(r=function(t){var e,p,f,d;if("number"==typeof t)t+=c;else if(i&&E.test(t)){for(d=t.replace(E,"|").split("|"),f=0;ff--)for(;++fp--)for(;++p>0];return r.parse(e,s,o,a)}},vt=(H._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,n,i,r,o,a=this.data,s=a.proxy,l=a.firstMPT,u=1e-6;l;)e=s[l.v],l.r?e=l.r(e):e-u&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===t||0===t)for(l=a.firstMPT,o=1===t?"e":"b";l;){if((n=l.t).type){if(1===n.type){for(r=n.xs0+n.s+n.xs1,i=1;i0;)l="xn"+a,f[s=i.p+"_"+l]=i.data[l],p[s]=i[l],o||(u=new vt(i,l,s,u,i.rxp[l]));i=i._next}return{proxy:p,end:f,firstMPT:u,pt:h}},H.CSSPropTween=function(e,n,i,o,a,s,l,u,h,c,p){this.t=e,this.p=n,this.s=i,this.c=o,this.n=l||n,e instanceof yt||r.push(this.n),this.r=u?"function"==typeof u?u:Math.round:u,this.type=s||0,h&&(this.pr=h,t=!0),this.b=void 0===c?i:c,this.e=void 0===p?i+o:p,a&&(this._next=a,a._prev=this)}),_t=function(t,e,n,i,r,o){var a=new yt(t,e,n,i-n,r,-1,o);return a.b=n,a.e=a.xs0=i,a},xt=o.parseComplex=function(t,e,n,i,r,a,s,l,h,c){n=n||a||"","function"==typeof i&&(i=i(m,g)),s=new yt(t,e,0,0,s,c?2:1,null,!1,l,n,i),i+="",r&&dt.test(i+n)&&(i=[n,i],o.colorStringFilter(i),n=i[0],i=i[1]);var p,f,d,_,x,b,w,S,M,T,C,A,I,k=n.split(", ").join(",").split(" "),D=i.split(", ").join(",").split(" "),P=k.length,L=!1!==u;for(-1===i.indexOf(",")&&-1===n.indexOf(",")||(-1!==(i+n).indexOf("rgb")||-1!==(i+n).indexOf("hsl")?(k=k.join(" ").replace(E,", ").split(" "),D=D.join(" ").replace(E,", ").split(" ")):(k=k.join(" ").split(",").join(", ").split(" "),D=D.join(" ").split(",").join(", ").split(" ")),P=k.length),P!==D.length&&(P=(k=(a||"").split(" ")).length),s.plugin=h,s.setRatio=c,dt.lastIndex=0,p=0;p6)&&!Z&&0===x[3]?(s["xs"+s.l]+=s.l?" transparent":"transparent",s.e=s.e.split(D[p]).join("transparent")):(Z||(M=!1),I?s.appendXtra(T.substr(0,T.indexOf("hsl"))+(M?"hsla(":"hsl("),_[0],st(x[0],_[0]),",",!1,!0).appendXtra("",_[1],st(x[1],_[1]),"%,",!1).appendXtra("",_[2],st(x[2],_[2]),M?"%,":"%"+A,!1):s.appendXtra(T.substr(0,T.indexOf("rgb"))+(M?"rgba(":"rgb("),_[0],x[0]-_[0],",",Math.round,!0).appendXtra("",_[1],x[1]-_[1],",",Math.round).appendXtra("",_[2],x[2]-_[2],M?",":A,Math.round),M&&(_=_.length<4?1:_[3],s.appendXtra("",_,(x.length<4?1:x[3])-_,A,!1))),dt.lastIndex=0;else if(b=_.match(v)){if(!(w=x.match(y))||w.length!==b.length)return s;for(d=0,f=0;f0;)l["xn"+bt]=0,l["xs"+bt]="";l.xs0="",l._next=l._prev=l.xfirst=l.data=l.plugin=l.setRatio=l.rxp=null,l.appendXtra=function(t,e,n,i,r,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+t:t||"",n||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=i||"",s>0?(a.data["xn"+s]=e+n,a.rxp["xn"+s]=r,a["xn"+s]=e,a.plugin||(a.xfirst=new yt(a,"xn"+s,e,n,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+n},a.rxp={},a.s=e,a.c=n,a.r=r,a)):(a["xs"+s]+=e+(i||""),a)};var wt=function(t,e){e=e||{},this.p=e.prefix&&q(t)||t,s[t]=s[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},St=H._registerComplexSpecialProp=function(t,e,n){"object"!=typeof e&&(e={parser:n});var i,r=t.split(","),o=e.defaultValue;for(n=n||[o],i=0;is.length?l.length:s.length,a=0;a-1;)o=Number(r[bt]),r[bt]=(a=o-(o|=0))?(a*u+(a<0?-.5:.5)|0)/u+o:o;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Zt=H.getTransform=function(t,e,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var a,s,l,u,h,c,p=n&&t._gsTransform||new Rt,f=p.scaleX<0,d=2e-5,g=1e5,m=Ot&&(parseFloat(J(t,Et,e,!1,"0 0 0").split(" ")[2])||p.zOrigin)||0,v=parseFloat(o.defaultTransformPerspective)||0;if(p.svg=!(!t.getCTM||!Gt(t)),p.svg&&(Vt(t,J(t,Et,e,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),Tt=o.useSVGTransformAttr||zt),(a=Wt(t))!==Ht){if(16===a.length){var y,_,x,b,w,S=a[0],M=a[1],T=a[2],C=a[3],A=a[4],I=a[5],k=a[6],D=a[7],P=a[8],L=a[9],E=a[10],O=a[12],R=a[13],F=a[14],B=a[11],z=Math.atan2(k,E);p.zOrigin&&(O=P*(F=-p.zOrigin)-a[12],R=L*F-a[13],F=E*F+p.zOrigin-a[14]),p.rotationX=z*N,z&&(y=A*(b=Math.cos(-z))+P*(w=Math.sin(-z)),_=I*b+L*w,x=k*b+E*w,P=A*-w+P*b,L=I*-w+L*b,E=k*-w+E*b,B=D*-w+B*b,A=y,I=_,k=x),z=Math.atan2(-T,E),p.rotationY=z*N,z&&(_=M*(b=Math.cos(-z))-L*(w=Math.sin(-z)),x=T*b-E*w,L=M*w+L*b,E=T*w+E*b,B=C*w+B*b,S=y=S*b-P*w,M=_,T=x),z=Math.atan2(M,S),p.rotation=z*N,z&&(y=S*(b=Math.cos(z))+M*(w=Math.sin(z)),_=A*b+I*w,x=P*b+L*w,M=M*b-S*w,I=I*b-A*w,L=L*b-P*w,S=y,A=_,P=x),p.rotationX&&Math.abs(p.rotationX)+Math.abs(p.rotation)>359.9&&(p.rotationX=p.rotation=0,p.rotationY=180-p.rotationY),z=Math.atan2(A,I),p.scaleX=(Math.sqrt(S*S+M*M+T*T)*g+.5|0)/g,p.scaleY=(Math.sqrt(I*I+k*k)*g+.5|0)/g,p.scaleZ=(Math.sqrt(P*P+L*L+E*E)*g+.5|0)/g,S/=p.scaleX,A/=p.scaleY,M/=p.scaleX,I/=p.scaleY,Math.abs(z)>d?(p.skewX=z*N,A=0,"simple"!==p.skewType&&(p.scaleY*=1/Math.cos(z))):p.skewX=0,p.perspective=B?1/(B<0?-B:B):0,p.x=O,p.y=R,p.z=F,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*S-p.yOrigin*A),p.y-=p.yOrigin-(p.yOrigin*M-p.xOrigin*I))}else if(!Ot||r||!a.length||p.x!==a[4]||p.y!==a[5]||!p.rotationX&&!p.rotationY){var V=a.length>=6,j=V?a[0]:1,G=a[1]||0,H=a[2]||0,W=V?a[3]:1;p.x=a[4]||0,p.y=a[5]||0,l=Math.sqrt(j*j+G*G),u=Math.sqrt(W*W+H*H),h=j||G?Math.atan2(G,j)*N:p.rotation||0,c=H||W?Math.atan2(H,W)*N+h:p.skewX||0,p.scaleX=l,p.scaleY=u,p.rotation=h,p.skewX=c,Ot&&(p.rotationX=p.rotationY=p.z=0,p.perspective=v,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*j+p.yOrigin*H),p.y-=p.yOrigin-(p.xOrigin*G+p.yOrigin*W))}for(s in Math.abs(p.skewX)>90&&Math.abs(p.skewX)<270&&(f?(p.scaleX*=-1,p.skewX+=p.rotation<=0?180:-180,p.rotation+=p.rotation<=0?180:-180):(p.scaleY*=-1,p.skewX+=p.skewX<=0?180:-180)),p.zOrigin=m,p)p[s]-d&&(p[s]=0)}return n&&(t._gsTransform=p,p.svg&&(Tt&&t.style[Pt]?i.ZP.delayedCall(.001,(function(){Yt(t.style,Pt)})):!Tt&&t.getAttribute("transform")&&i.ZP.delayedCall(.001,(function(){t.removeAttribute("transform")})))),p},Ut=function(t){var e,n,i=this.data,r=-i.rotation*R,o=r+i.skewX*R,a=1e5,s=(Math.cos(r)*i.scaleX*a|0)/a,l=(Math.sin(r)*i.scaleX*a|0)/a,u=(Math.sin(o)*-i.scaleY*a|0)/a,h=(Math.cos(o)*i.scaleY*a|0)/a,c=this.t.style,p=this.t.currentStyle;if(p){n=l,l=-u,u=-n,e=p.filter,c.filter="";var f,g,m=this.t.offsetWidth,v=this.t.offsetHeight,y="absolute"!==p.position,_="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+l+", M21="+u+", M22="+h,x=i.x+m*i.xPercent/100,S=i.y+v*i.yPercent/100;if(null!=i.ox&&(x+=(f=(i.oxp?m*i.ox*.01:i.ox)-m/2)-(f*s+(g=(i.oyp?v*i.oy*.01:i.oy)-v/2)*l),S+=g-(f*u+g*h)),_+=y?", Dx="+((f=m/2)-(f*s+(g=v/2)*l)+x)+", Dy="+(g-(f*u+g*h)+S)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=e.replace(L,_):c.filter=_+" "+e,0!==t&&1!==t||1===s&&0===l&&0===u&&1===h&&(y&&-1===_.indexOf("Dx=0, Dy=0")||w.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&c.removeAttribute("filter")),!y){var M,T,C,A=d<8?1:-1;for(f=i.ieOffsetX||0,g=i.ieOffsetY||0,i.ieOffsetX=Math.round((m-((s<0?-s:s)*m+(l<0?-l:l)*v))/2+x),i.ieOffsetY=Math.round((v-((h<0?-h:h)*v+(u<0?-u:u)*m))/2+S),bt=0;bt<4;bt++)C=(n=-1!==(M=p[T=rt[bt]]).indexOf("px")?parseFloat(M):Q(this.t,T,parseFloat(M),M.replace(b,""))||0)!==i[T]?bt<2?-i.ieOffsetX:-i.ieOffsetY:bt<2?f-i.ieOffsetX:g-i.ieOffsetY,c[T]=(i[T]=Math.round(n-C*(0===bt||2===bt?1:A)))+"px"}}},Xt=H.set3DTransformRatio=H.setTransformRatio=function(t){var e,n,i,r,o,a,s,l,u,h,c,f,d,g,m,v,y,_,x,b,w,S,M,T=this.data,C=this.t.style,A=T.rotation,I=T.rotationX,k=T.rotationY,D=T.scaleX,P=T.scaleY,L=T.scaleZ,E=T.x,O=T.y,N=T.z,F=T.svg,B=T.perspective,z=T.force3D,V=T.skewY,j=T.skewX;if(V&&(j+=V,A+=V),!((1!==t&&0!==t||"auto"!==z||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&z||N||B||k||I||1!==L)||Tt&&F||!Ot)A||j||F?(A*=R,S=j*R,M=1e5,n=Math.cos(A)*D,o=Math.sin(A)*D,i=Math.sin(A-S)*-P,a=Math.cos(A-S)*P,S&&"simple"===T.skewType&&(e=Math.tan(S-V*R),i*=e=Math.sqrt(1+e*e),a*=e,V&&(e=Math.tan(V*R),n*=e=Math.sqrt(1+e*e),o*=e)),F&&(E+=T.xOrigin-(T.xOrigin*n+T.yOrigin*i)+T.xOffset,O+=T.yOrigin-(T.xOrigin*o+T.yOrigin*a)+T.yOffset,Tt&&(T.xPercent||T.yPercent)&&(m=this.t.getBBox(),E+=.01*T.xPercent*m.width,O+=.01*T.yPercent*m.height),E<(m=1e-6)&&E>-m&&(E=0),O-m&&(O=0)),x=(n*M|0)/M+","+(o*M|0)/M+","+(i*M|0)/M+","+(a*M|0)/M+","+E+","+O+")",F&&Tt?this.t.setAttribute("transform","matrix("+x):C[Pt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+x):C[Pt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+D+",0,0,"+P+","+E+","+O+")";else{if(p&&(D<(m=1e-4)&&D>-m&&(D=L=2e-5),P-m&&(P=L=2e-5),!B||T.z||T.rotationX||T.rotationY||(B=0)),A||j)A*=R,v=n=Math.cos(A),y=o=Math.sin(A),j&&(A-=j*R,v=Math.cos(A),y=Math.sin(A),"simple"===T.skewType&&(e=Math.tan((j-V)*R),v*=e=Math.sqrt(1+e*e),y*=e,T.skewY&&(e=Math.tan(V*R),n*=e=Math.sqrt(1+e*e),o*=e))),i=-y,a=v;else{if(!(k||I||1!==L||B||F))return void(C[Pt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) translate3d(":"translate3d(")+E+"px,"+O+"px,"+N+"px)"+(1!==D||1!==P?" scale("+D+","+P+")":""));n=a=1,i=o=0}h=1,r=s=l=u=c=f=0,d=B?-1/B:0,g=T.zOrigin,m=1e-6,b=",",w="0",(A=k*R)&&(v=Math.cos(A),l=-(y=Math.sin(A)),c=d*-y,r=n*y,s=o*y,h=v,d*=v,n*=v,o*=v),(A=I*R)&&(e=i*(v=Math.cos(A))+r*(y=Math.sin(A)),_=a*v+s*y,u=h*y,f=d*y,r=i*-y+r*v,s=a*-y+s*v,h*=v,d*=v,i=e,a=_),1!==L&&(r*=L,s*=L,h*=L,d*=L),1!==P&&(i*=P,a*=P,u*=P,f*=P),1!==D&&(n*=D,o*=D,l*=D,c*=D),(g||F)&&(g&&(E+=r*-g,O+=s*-g,N+=h*-g+g),F&&(E+=T.xOrigin-(T.xOrigin*n+T.yOrigin*i)+T.xOffset,O+=T.yOrigin-(T.xOrigin*o+T.yOrigin*a)+T.yOffset),E-m&&(E=w),O-m&&(O=w),N-m&&(N=0)),x=T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix3d(":"matrix3d(",x+=(n-m?w:n)+b+(o-m?w:o)+b+(l-m?w:l),x+=b+(c-m?w:c)+b+(i-m?w:i)+b+(a-m?w:a),I||k||1!==L?(x+=b+(u-m?w:u)+b+(f-m?w:f)+b+(r-m?w:r),x+=b+(s-m?w:s)+b+(h-m?w:h)+b+(d-m?w:d)+b):x+=",0,0,0,0,1,0,",x+=E+b+O+b+N+b+(B?1+-N/B:1)+")",C[Pt]=x}};(l=Rt.prototype).x=l.y=l.z=l.skewX=l.skewY=l.rotation=l.rotationX=l.rotationY=l.zOrigin=l.xPercent=l.yPercent=l.xOffset=l.yOffset=0,l.scaleX=l.scaleY=l.scaleZ=1,St("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,r,a,s,l){if(r._lastParsedTransform===l)return a;r._lastParsedTransform=l;var u,h=l.scale&&"function"==typeof l.scale?l.scale:0;"function"==typeof l[i]&&(u=l[i],l[i]=e),h&&(l.scale=h(m,t));var c,p,f,d,v,y,_,x,b,w=t._gsTransform,S=t.style,M=1e-6,T=Dt.length,C=l,A={},I="transformOrigin",k=Zt(t,n,!0,C.parseTransform),D=C.transform&&("function"==typeof C.transform?C.transform(m,g):C.transform);if(k.skewType=C.skewType||k.skewType||o.defaultSkewType,r._transform=k,"rotationZ"in C&&(C.rotation=C.rotationZ),D&&"string"==typeof D&&Pt)(p=j.style)[Pt]=D,p.display="block",p.position="absolute",-1!==D.indexOf("%")&&(p.width=J(t,"width"),p.height=J(t,"height")),z.body.appendChild(j),c=Zt(j,null,!1),"simple"===k.skewType&&(c.scaleY*=Math.cos(c.skewX*R)),k.svg&&(y=k.xOrigin,_=k.yOrigin,c.x-=k.xOffset,c.y-=k.yOffset,(C.transformOrigin||C.svgOrigin)&&(D={},Vt(t,at(C.transformOrigin),D,C.svgOrigin,C.smoothOrigin,!0),y=D.xOrigin,_=D.yOrigin,c.x-=D.xOffset-k.xOffset,c.y-=D.yOffset-k.yOffset),(y||_)&&(x=Wt(j,!0),c.x-=y-(y*x[0]+_*x[2]),c.y-=_-(y*x[1]+_*x[3]))),z.body.removeChild(j),c.perspective||(c.perspective=k.perspective),null!=C.xPercent&&(c.xPercent=lt(C.xPercent,k.xPercent)),null!=C.yPercent&&(c.yPercent=lt(C.yPercent,k.yPercent));else if("object"==typeof C){if(c={scaleX:lt(null!=C.scaleX?C.scaleX:C.scale,k.scaleX),scaleY:lt(null!=C.scaleY?C.scaleY:C.scale,k.scaleY),scaleZ:lt(C.scaleZ,k.scaleZ),x:lt(C.x,k.x),y:lt(C.y,k.y),z:lt(C.z,k.z),xPercent:lt(C.xPercent,k.xPercent),yPercent:lt(C.yPercent,k.yPercent),perspective:lt(C.transformPerspective,k.perspective)},null!=(v=C.directionalRotation))if("object"==typeof v)for(p in v)C[p]=v[p];else C.rotation=v;"string"==typeof C.x&&-1!==C.x.indexOf("%")&&(c.x=0,c.xPercent=lt(C.x,k.xPercent)),"string"==typeof C.y&&-1!==C.y.indexOf("%")&&(c.y=0,c.yPercent=lt(C.y,k.yPercent)),c.rotation=ut("rotation"in C?C.rotation:"shortRotation"in C?C.shortRotation+"_short":k.rotation,k.rotation,"rotation",A),Ot&&(c.rotationX=ut("rotationX"in C?C.rotationX:"shortRotationX"in C?C.shortRotationX+"_short":k.rotationX||0,k.rotationX,"rotationX",A),c.rotationY=ut("rotationY"in C?C.rotationY:"shortRotationY"in C?C.shortRotationY+"_short":k.rotationY||0,k.rotationY,"rotationY",A)),c.skewX=ut(C.skewX,k.skewX),c.skewY=ut(C.skewY,k.skewY)}for(Ot&&null!=C.force3D&&(k.force3D=C.force3D,d=!0),(f=k.force3D||k.z||k.rotationX||k.rotationY||c.z||c.rotationX||c.rotationY||c.perspective)||null==C.scale||(c.scaleZ=1);--T>-1;)((D=c[b=Dt[T]]-k[b])>M||D<-M||null!=C[b]||null!=F[b])&&(d=!0,a=new yt(k,b,k[b],D,a),b in A&&(a.e=A[b]),a.xs0=0,a.plugin=s,r._overwriteProps.push(a.n));return D=C.transformOrigin,k.svg&&(D||C.svgOrigin)&&(y=k.xOffset,_=k.yOffset,Vt(t,at(D),c,C.svgOrigin,C.smoothOrigin),a=_t(k,"xOrigin",(w?k:c).xOrigin,c.xOrigin,a,I),a=_t(k,"yOrigin",(w?k:c).yOrigin,c.yOrigin,a,I),y===k.xOffset&&_===k.yOffset||(a=_t(k,"xOffset",w?y:k.xOffset,k.xOffset,a,I),a=_t(k,"yOffset",w?_:k.yOffset,k.yOffset,a,I)),D="0px 0px"),(D||Ot&&f&&k.zOrigin)&&(Pt?(d=!0,b=Et,D=(D||J(t,b,n,!1,"50% 50%"))+"",(a=new yt(S,b,0,0,a,-1,I)).b=S[b],a.plugin=s,Ot?(p=k.zOrigin,D=D.split(" "),k.zOrigin=(D.length>2&&(0===p||"0px"!==D[2])?parseFloat(D[2]):p)||0,a.xs0=a.e=D[0]+" "+(D[1]||"50%")+" 0px",(a=new yt(k,"zOrigin",0,0,a,-1,a.n)).b=p,a.xs0=a.e=k.zOrigin):a.xs0=a.e=D):at(D+"",k)),d&&(r._transformType=k.svg&&Tt||!f&&3!==this._transformType?2:3),u&&(l[i]=u),h&&(l.scale=h),a},prefix:!0}),St("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),St("borderRadius",{defaultValue:"0px",parser:function(t,i,r,o,a,s){i=this.format(i);var l,u,h,c,p,f,d,g,m,v,y,_,x,b,w,S,M=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],T=t.style;for(m=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=i.split(" "),u=0;u-1;)(h=-1!==(m=s[u]).indexOf("%"))!==(-1!==l[u].indexOf("%"))&&(c=0===u?t.offsetWidth-G.width:t.offsetHeight-G.height,s[u]=h?parseFloat(m)/100*c+"px":parseFloat(m)/c*100+"%");m=s.join(" ")}return this.parseComplex(t.style,m,v,o,a)},formatter:at}),St("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:at(-1===t.indexOf(" ")?t+" "+t:t)}}),St("perspective",{defaultValue:"0px",prefix:!0}),St("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),St("transformStyle",{prefix:!0}),St("backfaceVisibility",{prefix:!0}),St("userSelect",{prefix:!0}),St("margin",{parser:mt("marginTop,marginRight,marginBottom,marginLeft")}),St("padding",{parser:mt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),St("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,o,a){var s,l,u;return d<9?(l=t.currentStyle,u=d<8?" ":",",s="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(s=this.format(J(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,s,e,o,a)}}),St("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),St("autoRound,strictUnits",{parser:function(t,e,n,i,r){return r}}),St("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,o,a){var s=J(t,"borderTopWidth",n,!1,"0px"),l=this.format(e).split(" "),u=l[0].replace(b,"");return"px"!==u&&(s=parseFloat(s)/Q(t,"borderTopWidth",1,u)+u),this.parseComplex(t.style,this.format(s+" "+J(t,"borderTopStyle",n,!1,"solid")+" "+J(t,"borderTopColor",n,!1,"#000")),l.join(" "),o,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(dt)||["#000"])[0]}}),St("borderWidth",{parser:mt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),St("float,cssFloat,styleFloat",{parser:function(t,e,n,i,r,o){var a=t.style,s="cssFloat"in a?"cssFloat":"styleFloat";return new yt(a,s,0,0,r,-1,n,!1,0,a[s],e)}});var $t=function(t){var e,n=this.t,i=n.filter||J(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(n.removeAttribute("filter"),e=!J(this.data,"filter")):(n.filter=i.replace(M,""),e=!0)),e||(this.xn1&&(n.filter=i=i||"alpha(opacity="+r+")"),-1===i.indexOf("pacity")?0===r&&this.xn1||(n.filter=i+" alpha(opacity="+r+")"):n.filter=i.replace(w,"opacity="+r))};St("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,o,a){var s=parseFloat(J(t,"opacity",n,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+s),u&&1===s&&"hidden"===J(t,"visibility",n)&&0!==e&&(s=0),Z?o=new yt(l,"opacity",s,e-s,o):((o=new yt(l,"opacity",100*s,100*(e-s),o)).xn1=u?1:0,l.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=t,o.plugin=a,o.setRatio=$t),u&&((o=new yt(l,"visibility",0,0,o,-1,null,!1,0,0!==s?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(o.n),r._overwriteProps.push(i)),o}});var Yt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(C,"-$1").toLowerCase())):t.removeAttribute(e))},qt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,n=this.t.style;e;)e.v?n[e.p]=e.v:Yt(n,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};St("className",{parser:function(e,i,r,o,a,s,l){var u,h,c,p,f,d=e.getAttribute("class")||"",g=e.style.cssText;if((a=o._classNamePT=new yt(e,r,0,0,a,2)).setRatio=qt,a.pr=-11,t=!0,a.b=d,h=et(e,n),c=e._gsClassPT){for(p={},f=c.data;f;)p[f.p]=1,f=f._next;c.setRatio(1)}return e._gsClassPT=a,a.e="="!==i.charAt(1)?i:d.replace(new RegExp("(?:\\s|^)"+i.substr(2)+"(?![\\w-])"),"")+("+"===i.charAt(0)?" "+i.substr(2):""),e.setAttribute("class",a.e),u=nt(e,h,et(e),l,p),e.setAttribute("class",d),a.data=u.firstMPT,e.style.cssText=g,a=a.xfirst=o.parse(e,u.difs,a,s)}});var Kt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,n,i,r,o,a=this.t.style,l=s.transform.parse;if("all"===this.e)a.cssText="",r=!0;else for(i=(e=this.e.split(" ").join("").split(",")).length;--i>-1;)n=e[i],s[n]&&(s[n].parse===l?r=!0:n="transformOrigin"===n?Et:s[n].p),Yt(a,n);r&&(Yt(a,Pt),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(St("clearProps",{parser:function(e,n,i,r,o){return(o=new yt(e,i,0,0,o,2)).setRatio=Kt,o.e=n,o.pr=-10,o.data=r._tween,t=!0,o}}),l="bezier,throwProps,physicsProps,physics2D".split(","),bt=l.length;bt--;)Mt(l[bt]);(l=o.prototype)._firstPT=l._lastParsedTransform=l._transform=null,l._onInitTween=function(i,a,l,p){if(!i.nodeType)return!1;this._target=g=i,this._tween=l,this._vars=a,m=p,u=a.autoRound,t=!1,e=a.suffixMap||o.suffixMap,n=K(i,""),r=this._overwriteProps;var d,v,y,_,x,b,w,M,T,C=i.style;if(h&&""===C.zIndex&&("auto"!==(d=J(i,"zIndex",n))&&""!==d||this._addLazySet(C,"zIndex",0)),"string"==typeof a&&(_=C.cssText,d=et(i,n),C.cssText=_+";"+a,d=nt(i,d,et(i)).difs,!Z&&S.test(a)&&(d.opacity=parseFloat(RegExp.$1)),a=d,C.cssText=_),a.className?this._firstPT=v=s.className.parse(i,a.className,"className",this,null,null,a):this._firstPT=v=this.parse(i,a,null),this._transformType){for(T=3===this._transformType,Pt?c&&(h=!0,""===C.zIndex&&("auto"!==(w=J(i,"zIndex",n))&&""!==w||this._addLazySet(C,"zIndex",0)),f&&this._addLazySet(C,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(T?"visible":"hidden"))):C.zoom=1,y=v;y&&y._next;)y=y._next;M=new yt(i,"transform",0,0,null,2),this._linkCSSP(M,null,y),M.setRatio=Pt?Xt:Ut,M.data=this._transform||Zt(i,n,!0),M.tween=l,M.pr=-1,r.pop()}if(t){for(;v;){for(b=v._next,y=_;y&&y.pr>v.pr;)y=y._next;(v._prev=y?y._prev:x)?v._prev._next=v:_=v,(v._next=y)?y._prev=v:x=v,v=b}this._firstPT=_}return!0},l.parse=function(t,i,r,o){var a,l,h,c,p,f,d,v,y,_,x=t.style;for(a in i){if("function"==typeof(f=i[a])&&(f=f(m,g)),l=s[a])r=l.parse(t,f,a,this,r,o,i);else{if("--"===a.substr(0,2)){this._tween._propLookup[a]=this._addTween.call(this._tween,t.style,"setProperty",K(t).getPropertyValue(a)+"",f+"",a,!1,a);continue}p=J(t,a,n)+"",y="string"==typeof f,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||y&&T.test(f)?(y||(f=((f=pt(f)).length>3?"rgba(":"rgb(")+f.join(",")+")"),r=xt(x,a,p,f,!0,"transparent",r,0,o)):y&&O.test(f)?r=xt(x,a,p,f,!0,null,r,0,o):(d=(h=parseFloat(p))||0===h?p.substr((h+"").length):"",""!==p&&"auto"!==p||("width"===a||"height"===a?(h=ot(t,a,n),d="px"):"left"===a||"top"===a?(h=tt(t,a,n),d="px"):(h="opacity"!==a?0:1,d="")),(_=y&&"="===f.charAt(1))?(c=parseInt(f.charAt(0)+"1",10),f=f.substr(2),c*=parseFloat(f),v=f.replace(b,"")):(c=parseFloat(f),v=y?f.replace(b,""):""),""===v&&(v=a in e?e[a]:d),f=c||0===c?(_?c+h:c)+v:i[a],d!==v&&(""===v&&"lineHeight"!==a||(c||0===c)&&h&&(h=Q(t,a,h,d),"%"===v?(h/=Q(t,a,100,"%")/100,!0!==i.strictUnits&&(p=h+"%")):"em"===v||"rem"===v||"vw"===v||"vh"===v?h/=Q(t,a,1,v):"px"!==v&&(c=Q(t,a,c,v),v="px"),_&&(c||0===c)&&(f=c+h+v))),_&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==x[a]&&(f||f+""!="NaN"&&null!=f)?(r=new yt(x,a,c||h||0,0,r,-1,a,!1,0,p,f)).xs0="none"!==f||"display"!==a&&-1===a.indexOf("Style")?f:p:X(i[a]):(r=new yt(x,a,h,c-h,r,0,a,!1!==u&&("px"===v||"zIndex"===a),0,p,f)).xs0=v)}o&&r&&!r.plugin&&(r.plugin=o)}return r},l.setRatio=function(t){var e,n,i,r=this._firstPT,o=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=r.r(e):e-o&&(e=0),r.type)if(1===r.type)if(2===(i=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(n=r.xs0+e+r.xs1,i=1;i-1;)Qt(t[r],e,n);else for(r=(i=t.childNodes).length;--r>-1;)a=(o=i[r]).type,o.style&&(e.push(et(o)),n&&n.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||Qt(o,e,n)};return o.cascadeTo=function(t,e,n){var r,o,a,s,l=i.ZP.to(t,e,n),u=[l],h=[],c=[],p=[],f=i.ZP._internals.reservedProps;for(t=l._targets||l.target,Qt(t,h,p),l.render(e,!0,!0),Qt(t,c),l.render(0,!0,!0),l._enabled(!0),r=p.length;--r>-1;)if((o=nt(p[r],h[r],c[r])).firstMPT){for(a in o=o.difs,n)f[a]&&(o[a]=n[a]);for(a in s={},o)s[a]=h[r][a];u.push(i.ZP.fromTo(p[r],e,s,o))}return u},i.VN.activate([o]),o}),!0);var r=i.li.CSSPlugin},3441:function(t,e,n){"use strict";n.d(e,{$p:function(){return f},Au:function(){return c},Dd:function(){return l},NB:function(){return u},Yv:function(){return p},eJ:function(){return r},l6:function(){return s},sm:function(){return a},tQ:function(){return o},zO:function(){return h}});var i=n(5957);i.ML._gsDefine("easing.Back",["easing.Ease"],(function(){var t,e,n,r,o=i.ML.GreenSockGlobals||i.ML,a=o.com.greensock,s=2*Math.PI,l=Math.PI/2,u=a._class,h=function(t,e){var n=u("easing."+t,(function(){}),!0),r=n.prototype=new i.SX;return r.constructor=n,r.getRatio=e,n},c=i.SX.register||function(){},p=function(t,e,n,i,r){var o=u("easing."+t,{easeOut:new e,easeIn:new n,easeInOut:new i},!0);return c(o,t),o},f=function(t,e,n){this.t=t,this.v=e,n&&(this.next=n,n.prev=this,this.c=n.v-e,this.gap=n.t-t)},d=function(t,e){var n=u("easing."+t,(function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1}),!0),r=n.prototype=new i.SX;return r.constructor=n,r.getRatio=e,r.config=function(t){return new n(t)},n},g=p("Back",d("BackOut",(function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1})),d("BackIn",(function(t){return t*t*((this._p1+1)*t-this._p1)})),d("BackInOut",(function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)}))),m=u("easing.SlowMo",(function(t,e,n){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===n}),!0),v=m.prototype=new i.SX;return v.constructor=m,v.getRatio=function(t){var e=t+(.5-t)*this._p;return tthis._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),v.config=m.config=function(t,e,n){return new m(t,e,n)},(v=(t=u("easing.SteppedEase",(function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0}),!0)).prototype=new i.SX).constructor=t,v.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},v.config=t.config=function(e,n){return new t(e,n)},(v=(e=u("easing.ExpoScaleEase",(function(t,e,n){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=n}),!0)).prototype=new i.SX).constructor=e,v.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},v.config=e.config=function(t,n,i){return new e(t,n,i)},(v=(n=u("easing.RoughEase",(function(t){for(var e,n,r,o,a,s,l=(t=t||{}).taper||"none",u=[],h=0,c=0|(t.points||20),p=c,d=!1!==t.randomize,g=!0===t.clamp,m=t.template instanceof i.SX?t.template:null,v="number"==typeof t.strength?.4*t.strength:.4;--p>-1;)e=d?Math.random():1/c*p,n=m?m.getRatio(e):e,r="none"===l?v:"out"===l?(o=1-e)*o*v:"in"===l?e*e*v:e<.5?(o=2*e)*o*.5*v:(o=2*(1-e))*o*.5*v,d?n+=Math.random()*r-.5*r:p%2?n+=.5*r:n-=.5*r,g&&(n>1?n=1:n<0&&(n=0)),u[h++]={x:e,y:n};for(u.sort((function(t,e){return t.x-e.x})),s=new f(1,1,null),p=c;--p>-1;)a=u[p],s=new f(a.x,a.y,s);this._prev=new f(0,0,0!==s.t?s:s.next)}),!0)).prototype=new i.SX).constructor=n,v.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},v.config=function(t){return new n(t)},n.ease=new n,p("Bounce",h("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})),h("BounceIn",(function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)})),h("BounceInOut",(function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=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,e?.5*(1-t):.5*t+.5}))),p("Circ",h("CircOut",(function(t){return Math.sqrt(1-(t-=1)*t)})),h("CircIn",(function(t){return-(Math.sqrt(1-t*t)-1)})),h("CircInOut",(function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}))),r=function(t,e,n){var r=u("easing."+t,(function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(t<1?t:1),this._p3=this._p2/s*(Math.asin(1/this._p1)||0),this._p2=s/this._p2}),!0),o=r.prototype=new i.SX;return o.constructor=r,o.getRatio=e,o.config=function(t,e){return new r(t,e)},r},p("Elastic",r("ElasticOut",(function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1}),.3),r("ElasticIn",(function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)}),.3),r("ElasticInOut",(function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1}),.45)),p("Expo",h("ExpoOut",(function(t){return 1-Math.pow(2,-10*t)})),h("ExpoIn",(function(t){return Math.pow(2,10*(t-1))-.001})),h("ExpoInOut",(function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}))),p("Sine",h("SineOut",(function(t){return Math.sin(t*l)})),h("SineIn",(function(t){return 1-Math.cos(t*l)})),h("SineInOut",(function(t){return-.5*(Math.cos(Math.PI*t)-1)}))),u("easing.EaseLookup",{find:function(t){return i.SX.map[t]}},!0),c(o.SlowMo,"SlowMo","ease,"),c(n,"RoughEase","ease,"),c(t,"SteppedEase","ease,"),g}),!0);var r=i.li.Back,o=i.li.Elastic,a=i.li.Bounce,s=i.li.RoughEase,l=i.li.SlowMo,u=i.li.SteppedEase,h=i.li.Circ,c=i.li.Expo,p=i.li.Sine,f=i.li.ExpoScaleEase},9127:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(5957),r=(i.ML.document||{}).documentElement,o=i.ML,a=function(t,e){var n="x"===e?"Width":"Height",i="scroll"+n,a="client"+n,s=document.body;return t===o||t===r||t===s?Math.max(r[i],s[i])-(o["inner"+n]||r[a]||s[a]):t[i]-t["offset"+n]},s=function(t,e){var n="scroll"+("x"===e?"Left":"Top");return t===o&&(null!=t.pageXOffset?n="page"+e.toUpperCase()+"Offset":t=null!=r[n]?r:document.body),function(){return t[n]}},l=function(t,e){var n,i=(n=t,"string"==typeof n&&(n=TweenLite.selector(n)),n.length&&n!==o&&n[0]&&n[0].style&&!n.nodeType&&(n=n[0]),n===o||n.nodeType&&n.style?n:null).getBoundingClientRect(),a=document.body,l=!e||e===o||e===a,u=l?{top:r.clientTop-(window.pageYOffset||r.scrollTop||a.scrollTop||0),left:r.clientLeft-(window.pageXOffset||r.scrollLeft||a.scrollLeft||0)}:e.getBoundingClientRect(),h={x:i.left-u.left,y:i.top-u.top};return!l&&e&&(h.x+=s(e,"x")(),h.y+=s(e,"y")()),h},u=function(t,e,n){var i=typeof t;return isNaN(t)?"number"===i||"string"===i&&"="===t.charAt(1)?t:"max"===t?a(e,n):Math.min(a(e,n),l(t,e)[n]):parseFloat(t)},h=i.ML._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.9.1",init:function(t,e,n){return this._wdw=t===o,this._target=t,this._tween=n,"object"!=typeof e?"string"==typeof(e={y:e}).y&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),this.vars=e,this._autoKill=!1!==e.autoKill,this.getX=s(t,"x"),this.getY=s(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=e.x?(this._addTween(this,"x",this.x,u(e.x,t,"x")-(e.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=e.y?(this._addTween(this,"y",this.y,u(e.y,t,"y")-(e.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var e=this._wdw||!this.skipX?this.getX():this.xPrev,n=this._wdw||!this.skipY?this.getY():this.yPrev,i=n-this.yPrev,r=e-this.xPrev,s=h.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(r>s||r<-s)&&es||i<-s)&&n1e-5&&e.render(s,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._startTime;c._timeline;)p&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},d.remove=function(t){if(t instanceof i.fw){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?i.fw._rootFramesTimeline:i.fw._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&a(t)){for(var n=t.length;--n>-1;)this.remove(t[n]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},d._remove=function(t,e){return i.MQ.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},d.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},d.insert=d.insertMultiple=function(t,e,n,i){return this.add(t,e||0,n,i)},d.appendMultiple=function(t,e,n,i){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),n,i)},d.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},d.addPause=function(t,e,n,r){var o=i.ZP.delayedCall(0,p,n,r||this);return o.vars.onComplete=o.vars.onReverseComplete=e,o.data="isPause",this._hasPause=!0,this.add(o,t)},d.removeLabel=function(t){return delete this._labels[t],this},d.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},d._parseTimeOrLabel=function(t,e,n,r){var o,s;if(r instanceof i.fw&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&a(r)))for(s=r.length;--s>-1;)r[s]instanceof i.fw&&r[s].timeline===this&&this.remove(r[s]);if(o="number"!=typeof t||e?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,n&&"number"==typeof t&&null==this._labels[e]?t-o:0,n);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=o);else{if(-1===(s=t.indexOf("=")))return null==this._labels[t]?n?this._labels[t]=o+e:e:this._labels[t]+e;e=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=s>1?this._parseTimeOrLabel(t.substr(0,s-1),0,n):o}return Number(t)+e},d.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},d.stop=function(){return this.paused(!0)},d.gotoAndPlay=function(t,e){return this.play(t,e)},d.gotoAndStop=function(t,e){return this.pause(t,e)},d.render=function(t,n,i){this._gc&&this._enabled(!0,!1);var r,o,a,u,h,c,p,f=this._time,d=this._dirty?this.totalDuration():this._totalDuration,g=this._startTime,m=this._timeScale,v=this._paused;if(f!==this._time&&(t+=this._time-f),t>=d-1e-7&&t>=0)this._totalTime=this._time=d,this._reversed||this._hasPausedChild()||(o=!0,u="onComplete",h=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==t&&this._first&&(h=!0,this._rawPrevTime>e&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!n||t||this._rawPrevTime===t?t:e,t=d+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(u="onReverseComplete",o=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=o=!0,u="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!n||t||this._rawPrevTime===t?t:e,0===t&&o)for(r=this._first;r&&0===r._startTime;)r._duration||(o=!1),r=r._next;t=0,this._initted||(h=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!n){if(t>=f)for(r=this._first;r&&r._startTime<=t&&!c;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(c=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!c;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(c=r),r=r._prev;c&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==f&&this._first||i||h||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._time&&this._duration||n||this._callback("onStart")),(p=this._time)>=f)for(r=this._first;r&&(a=r._next,p===this._time&&(!this._paused||v));)(r._active||r._startTime<=p&&!r._paused&&!r._gc)&&(c===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,n,i):r.render((t-r._startTime)*r._timeScale,n,i)),r=a;else for(r=this._last;r&&(a=r._prev,p===this._time&&(!this._paused||v));){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(c===r){for(c=r._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,n,i),c=c._prev;c=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,n,i):r.render((t-r._startTime)*r._timeScale,n,i)}r=a}this._onUpdate&&(n||(s.length&&l(),this._callback("onUpdate"))),u&&(this._gc||g!==this._startTime&&m===this._timeScale||(0===this._time||d>=this.totalDuration())&&(o&&(s.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!n&&this.vars[u]&&this._callback(u)))}},d._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof t&&e._hasPausedChild())return!0;e=e._next}return!1},d.getChildren=function(t,e,n,r){r=r||-9999999999;for(var o=[],a=this._first,s=0;a;)a._startTime-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(a[s++]=n[r]);return o&&this._enabled(!1,!0),a},d.recent=function(){return this._recent},d._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},d.shiftChildren=function(t,e,n){n=n||0;for(var i,r=this._first,o=this._labels;r;)r._startTime>=n&&(r._startTime+=t),r=r._next;if(e)for(i in o)o[i]>=n&&(o[i]+=t);return this._uncache(!0)},d._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var n=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),i=n.length,r=!1;--i>-1;)n[i]._kill(t,e)&&(r=!0);return r},d.clear=function(t){var e=this.getChildren(!1,!0,!0),n=e.length;for(this._time=this._totalTime=0;--n>-1;)e[n]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},d.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return i.fw.prototype.invalidate.call(this)},d._enabled=function(t,e){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return i.MQ.prototype._enabled.call(this,t,e)},d.totalTime=function(t,e,n){this._forcingPlayhead=!0;var r=i.fw.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},d.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},d.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,n,i=0,r=this._last,o=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>o&&this._sortChildren&&!r._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(r,r._startTime-r._delay),this._calculatingDuration=0):o=r._startTime,r._startTime<0&&!r._paused&&(i-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale,this._time-=r._startTime,this._totalTime-=r._startTime,this._rawPrevTime-=r._startTime),this.shiftChildren(-r._startTime,!1,-9999999999),o=0),(n=r._startTime+r._totalDuration/r._timeScale)>i&&(i=n),r=e;this._duration=this._totalDuration=i,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},d.paused=function(t){if(!t)for(var e=this._first,n=this._time;e;)e._startTime===n&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return i.fw.prototype.paused.apply(this,arguments)},d.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===i.fw._rootFramesTimeline},d.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},t}),!0);var r=i.li.TimelineLite},8501:function(t,e,n){"use strict";n.d(e,{ZP:function(){return o}});var i=n(5957),r=n(4743);i.ML._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],(function(){var t=function(t){r.Z.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},e=1e-10,n=i.ZP._internals,o=n.lazyTweens,a=n.lazyRender,s=i.ML._gsDefine.globals,l=new i.SX(null,null,1,0),u=t.prototype=new r.Z;return u.constructor=t,u.kill()._gc=!1,t.version="2.0.2",u.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),r.Z.prototype.invalidate.call(this)},u.addCallback=function(t,e,n,r){return this.add(i.ZP.delayedCall(0,t,n,r),e)},u.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var n=this.getTweensOf(t,!1),i=n.length,r=this._parseTimeOrLabel(e);--i>-1;)n[i]._startTime===r&&n[i]._enabled(!1,!1);return this},u.removePause=function(t){return this.removeCallback(r.Z._internals.pauseCallback,t)},u.tweenTo=function(t,e){e=e||{};var n,r,o,a={ease:l,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},u=e.repeat&&s.TweenMax||i.ZP;for(r in e)a[r]=e[r];return a.time=this._parseTimeOrLabel(t),n=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,o=new u(this,n,a),a.onStart=function(){o.target.paused(!0),o.vars.time===o.target.time()||n!==o.duration()||o.isFromTo||o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale).render(o.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||o,e.onStartParams||[])},o},u.tweenFromTo=function(t,e,n){n=n||{},t=this._parseTimeOrLabel(t),n.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},n.immediateRender=!1!==n.immediateRender;var i=this.tweenTo(e,n);return i.isFromTo=1,i.duration(Math.abs(i.vars.time-t)/this._timeScale||.001)},u.render=function(t,n,i){this._gc&&this._enabled(!0,!1);var r,s,l,u,h,c,p,f,d=this._time,g=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,v=this._totalTime,y=this._startTime,_=this._timeScale,x=this._rawPrevTime,b=this._paused,w=this._cycle;if(d!==this._time&&(t+=this._time-d),t>=g-1e-7&&t>=0)this._locked||(this._totalTime=g,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,u="onComplete",h=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||x<0||x===e)&&x!==t&&this._first&&(h=!0,x>e&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!n||t||this._rawPrevTime===t?t:e,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:(this._time=m,t=m+1e-4);else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==d||0===m&&x!==e&&(x>0||t<0&&x>=0)&&!this._locked)&&(u="onReverseComplete",s=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=s=!0,u="onReverseComplete"):x>=0&&this._first&&(h=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=m||!n||t||this._rawPrevTime===t?t:e,0===t&&s)for(r=this._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,this._initted||(h=!0)}else if(0===m&&x<0&&(h=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=m+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&v<=t&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!=(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,t=m+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!n){if((t=this._time)>=d||this._repeat&&w!==this._cycle)for(r=this._first;r&&r._startTime<=t&&!p;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(p=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!p;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(p=r),r=r._prev;p&&p._startTime0&&(this._active=!0),0===v&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||n||this._callback("onStart")),(f=this._time)>=d)for(r=this._first;r&&(l=r._next,f===this._time&&(!this._paused||b));)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(p===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,n,i):r.render((t-r._startTime)*r._timeScale,n,i)),r=l;else for(r=this._last;r&&(l=r._prev,f===this._time&&(!this._paused||b));){if(r._active||r._startTime<=d&&!r._paused&&!r._gc){if(p===r){for(p=r._prev;p&&p.endTime()>this._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,n,i),p=p._prev;p=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,n,i):r.render((t-r._startTime)*r._timeScale,n,i)}r=l}this._onUpdate&&(n||(o.length&&a(),this._callback("onUpdate"))),u&&(this._locked||this._gc||y!==this._startTime&&_===this._timeScale||(0===this._time||g>=this.totalDuration())&&(s&&(o.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!n&&this.vars[u]&&this._callback(u)))}else v!==this._totalTime&&this._onUpdate&&(n||this._callback("onUpdate"))},u.getActive=function(t,e,n){null==t&&(t=!0),null==e&&(e=!0),null==n&&(n=!1);var i,r,o=[],a=this.getChildren(t,e,n),s=0,l=a.length;for(i=0;it)return n[e].name;return null},u.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),n=e.length;--n>-1;)if(e[n].timethis._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},u.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},t}),!0);var o=i.li.TimelineMax},5957:function(t,e,n){"use strict";n.d(e,{Aq:function(){return d},EA:function(){return p},Lp:function(){return f},ML:function(){return i},MQ:function(){return s},SX:function(){return u},VN:function(){return m},Yp:function(){return g},ZP:function(){return r},bJ:function(){return h},fw:function(){return l},li:function(){return o},qD:function(){return c}}),t=n.hmd(t);var i="undefined"!=typeof window?window:t.exports&&void 0!==n.g?n.g:{},r=function(t,e){var n={},i=t.document,r=t.GreenSockGlobals=t.GreenSockGlobals||t;if(r.TweenLite)return r.TweenLite;var o,a,s,l,u,h,c,p=function(t){var e,n=t.split("."),i=r;for(e=0;e-1;)(l=y[e[f]]||new _(e[f],[])).gsClass?(a[f]=l.gsClass,d--):s&&l.sc.push(this);if(0===d&&i)for(h=(u=("com.greensock."+t).split(".")).pop(),c=p(u.join("."))[h]=this.gsClass=i.apply(i,a),o&&(r[h]=n[h]=c),f=0;f-1;)for(o=l[u],r=i?b("easing."+o,null,!0):f.easing[o]||{},a=h.length;--a>-1;)s=h[a],M[o+"."+s]=M[s+o]=r[s]=t.getRatio?t:t[s]||new t};for((s=S.prototype)._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,n=this._power,i=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===n?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*i*i),1===e?1-i:2===e?i:t<.5?i/2:1-i/2},a=(o=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--a>-1;)s=o[a]+",Power"+a,T(new S(null,null,1,a),s,"easeOut",!0),T(new S(null,null,2,a),s,"easeIn"+(0===a?",easeNone":"")),T(new S(null,null,3,a),s,"easeInOut");M.linear=f.easing.Linear.easeIn,M.swing=f.easing.Quad.easeInOut;var C=b("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this}));(s=C.prototype).addEventListener=function(t,e,n,i,r){r=r||0;var o,a,s=this._listeners[t],h=0;for(this!==l||u||l.wake(),null==s&&(this._listeners[t]=s=[]),a=s.length;--a>-1;)(o=s[a]).c===e&&o.s===n?s.splice(a,1):0===h&&o.pr-1;)if(i[n].c===e)return void i.splice(n,1)},s.dispatchEvent=function(t){var e,n,i,r=this._listeners[t];if(r)for((e=r.length)>1&&(r=r.slice(0)),n=this._eventTarget;--e>-1;)(i=r[e])&&(i.up?i.c.call(i.s||n,{type:t,target:n}):i.c.call(i.s||n))};var A=t.requestAnimationFrame,I=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},D=k();for(a=(o=["ms","moz","webkit","o"]).length;--a>-1&&!A;)A=t[o[a]+"RequestAnimationFrame"],I=t[o[a]+"CancelAnimationFrame"]||t[o[a]+"CancelRequestAnimationFrame"];b("Ticker",(function(t,e){var n,r,o,a,s,h=this,c=k(),p=!(!1===e||!A)&&"auto",f=500,g=33,v=function(t){var e,i,l=k()-D;l>f&&(c+=l-g),D+=l,h.time=(D-c)/1e3,e=h.time-s,(!n||e>0||!0===t)&&(h.frame++,s+=e+(e>=a?.004:a-e),i=!0),!0!==t&&(o=r(v)),i&&h.dispatchEvent("tick")};C.call(h),h.time=h.frame=0,h.tick=function(){v(!0)},h.lagSmoothing=function(t,e){if(!arguments.length)return f<1/d;f=t||1/d,g=Math.min(e,f,0)},h.sleep=function(){null!=o&&(p&&I?I(o):clearTimeout(o),r=m,o=null,h===l&&(u=!1))},h.wake=function(t){null!==o?h.sleep():t?c+=-D+(D=k()):h.frame>10&&(D=k()-f+5),r=0===n?m:p&&A?A:function(t){return setTimeout(t,1e3*(s-h.time)+1|0)},h===l&&(u=!0),v(2)},h.fps=function(t){if(!arguments.length)return n;a=1/((n=t)||60),s=this.time+a,h.wake()},h.useRAF=function(t){if(!arguments.length)return p;h.sleep(),p=t,h.fps(n)},h.fps(t),setTimeout((function(){"auto"===p&&h.frame<5&&"hidden"!==(i||{}).visibilityState&&h.useRAF(!1)}),1500)})),(s=f.Ticker.prototype=new f.events.EventDispatcher).constructor=f.Ticker;var P=b("core.Animation",(function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,q){u||l.wake();var n=this.vars.useFrames?Y:q;n.add(this,n._time),this.vars.paused&&this.paused(!0)}}));l=P.ticker=new f.Ticker,(s=P.prototype)._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;var L=function(){u&&k()-D>2e3&&("hidden"!==(i||{}).visibilityState||!l.lagSmoothing())&&l.wake();var t=setTimeout(L,2e3);t.unref&&t.unref()};L(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},s.render=function(t,e,n){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},s.isActive=function(){var t,e=this._timeline,n=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=n&&t-1;)"{self}"===t[e]&&(n[e]=this);return n},s._callback=function(t){var e=this.vars,n=e[t],i=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(i?i.length:0){case 0:n.call(r);break;case 1:n.call(r,i[0]);break;case 2:n.call(r,i[0],i[1]);break;default:n.apply(r,i)}},s.eventCallback=function(t,e,n,i){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=v(n)&&-1!==n.join("").indexOf("{self}")?this._swapSelfInParams(n):n,r[t+"Scope"]=i),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,n){if(u||l.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!n&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,r=this._timeline;if(t>i&&!n&&(t=i),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?i-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(N.length&&J(),this.render(t,e,!1),N.length&&J())}return this},s.progress=s.totalProgress=function(t,e){var n=this.duration();return arguments.length?this.totalTime(n*t,e):n?this._time/n:this.ratio},s.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,n;for(t=t||d,this._timeline&&this._timeline.smoothChildTiming&&(n=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=n-(n-this._startTime)*this._timeScale/t),this._timeScale=t,n=this.timeline;n&&n.timeline;)n._dirty=!0,n.totalDuration(),n=n.timeline;return this},s.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},s.paused=function(t){if(!arguments.length)return this._paused;var e,n,i=this._timeline;return t!=this._paused&&i&&(u||t||l.wake(),n=(e=i.rawTime())-this._pauseTime,!t&&i.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==n&&this._initted&&this.duration()&&(e=i.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var E=b("core.SimpleTimeline",(function(t){P.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}));(s=E.prototype=new P).constructor=E,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e,n,i){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},s._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},s.render=function(t,e,n){var i,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)i=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,n):r.render((t-r._startTime)*r._timeScale,e,n)),r=i},s.rawTime=function(){return u||l.wake(),this._totalTime};var O=b("TweenLite",(function(e,n,i){if(P.call(this,n,i),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e;var r,o,a,s=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?$[O.defaultOverwrite]:"number"==typeof l?l>>0:$[l],(s||e instanceof Array||e.push&&v(e))&&"number"!=typeof e[0])for(this._targets=a=g(e),this._propLookup=[],this._siblings=[],r=0;r1&&et(o,this,null,1,this._siblings[r])):"string"==typeof(o=a[r--]=O.selector(o))&&a.splice(r+1,1):a.splice(r--,1);else this._propLookup={},this._siblings=Q(e,this,!1),1===l&&this._siblings.length>1&&et(e,this,null,1,this._siblings);(this.vars.immediateRender||0===n&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))}),!0),R=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(s=O.prototype=new P).constructor=O,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,O.version="2.0.2",O.defaultEase=s._ease=new S(null,null,1,1),O.defaultOverwrite="auto",O.ticker=l,O.autoSleep=120,O.lagSmoothing=function(t,e){l.lagSmoothing(t,e)},O.selector=t.$||t.jQuery||function(e){var n=t.$||t.jQuery;return n?(O.selector=n,n(e)):(i||(i=t.document),i?i.querySelectorAll?i.querySelectorAll(e):i.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var N=[],F={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,z=/[\+-]=-?[\.\d]/,V=function(t){for(var e,n=this._firstPT,i=1e-6;n;)e=n.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:n.c*t+n.s,n.m?e=n.m.call(this._tween,e,this._target||n.t,this._tween):e-i&&!n.blob&&(e=0),n.f?n.fp?n.t[n.p](n.fp,e):n.t[n.p](e):n.t[n.p]=e,n=n._next},j=function(t,e,n,i){var r,o,a,s,l,u,h,c=[],p=0,f="",d=0;for(c.start=t,c.end=e,t=c[0]=t+"",e=c[1]=e+"",n&&(n(c),t=c[0],e=c[1]),c.length=0,r=t.match(B)||[],o=e.match(B)||[],i&&(i._next=null,i.blob=1,c._firstPT=c._applyPT=i),l=o.length,s=0;s-1;)(t=N[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);N.length=0};q._startTime=l.time,Y._startTime=l.frame,q._active=Y._active=!0,setTimeout(J,1),P._updateRoot=O.render=function(){var t,e,n;if(N.length&&J(),q.render((l.time-q._startTime)*q._timeScale,!1,!1),Y.render((l.frame-Y._startTime)*Y._timeScale,!1,!1),N.length&&J(),l.frame>=K){for(n in K=l.frame+(parseInt(O.autoSleep,10)||120),Z){for(t=(e=Z[n].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete Z[n]}if((!(n=q._first)||n._paused)&&O.autoSleep&&!Y._first&&1===l._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||l.sleep()}}},l.addEventListener("tick",P._updateRoot);var Q=function(t,e,n){var i,r,o=t._gsTweenID;if(Z[o||(t._gsTweenID=o="t"+U++)]||(Z[o]={target:t,tweens:[]}),e&&((i=Z[o].tweens)[r=i.length]=e,n))for(;--r>-1;)i[r]===e&&i.splice(r,1);return Z[o].tweens},tt=function(t,e,n,i){var r,o,a=t.vars.onOverwrite;return a&&(r=a(t,e,n,i)),(a=O.onOverwrite)&&(o=a(t,e,n,i)),!1!==r&&!1!==o},et=function(t,e,n,i,r){var o,a,s,l;if(1===i||i>=4){for(l=r.length,o=0;o-1;)(s=r[o])===e||s._gc||s._paused||(s._timeline!==e._timeline?(u=u||nt(e,0,f),0===nt(s,u,f)&&(c[p++]=s)):s._startTime<=h&&s._startTime+s.totalDuration()/s._timeScale>h&&((f||!s._initted)&&h-s._startTime<=2e-10||(c[p++]=s)));for(o=p;--o>-1;)if(l=(s=c[o])._firstPT,2===i&&s._kill(n,t,e)&&(a=!0),2!==i||!s._firstPT&&s._initted&&l){if(2!==i&&!tt(s,e))continue;s._enabled(!1,!1)&&(a=!0)}return a},nt=function(t,e,n){for(var i=t._timeline,r=i._timeScale,o=t._startTime;i._timeline;){if(o+=i._startTime,r*=i._timeScale,i._paused)return-100;i=i._timeline}return(o/=r)>e?o-e:n&&o===e||!t._initted&&o-e<2e-10?d:(o+=t.totalDuration()/t._timeScale/r)>e+d?0:o-e-d};s._init=function(){var t,e,n,i,r,o,a=this.vars,s=this._overwrittenProps,l=this._duration,u=!!a.immediateRender,h=a.ease;if(a.startAt){for(i in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},a.startAt)r[i]=a.startAt[i];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=u&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=O.to(this.target||{},0,r),u)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(i in 0!==this._time&&(u=!1),n={},a)X[i]&&"autoCSS"!==i||(n[i]=a[i]);if(n.overwrite=0,n.data="isFromStart",n.lazy=u&&!1!==a.lazy,n.immediateRender=u,this._startAt=O.to(this.target,0,n),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof S?h:"function"==typeof h?new S(h,a.easeParams):M[h]||O.defaultEase:O.defaultEase,a.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t-1;)n[u._overwriteProps[s]]=this._firstPT;(u._priority||u._onInitAllProps)&&(l=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else n[a]=G.call(this,e,a,"get",c,a,0,null,this.vars.stringFilter,o);return r&&this._kill(r,e)?this._initProps(e,n,i,r,o):this._overwrite>1&&this._firstPT&&i.length>1&&et(e,this,n,this._overwrite,i)?(this._kill(n,e),this._initProps(e,n,i,r,o)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(F[e._gsTweenID]=!0),l)},s.render=function(t,e,n){var i,r,o,a,s=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-7&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,r="onComplete",n=n||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(u<0||t<=0&&t>=-1e-7||u===d&&"isPause"!==this.data)&&u!==t&&(n=!0,u>d&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||u===t?t:d);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===l&&u>0)&&(r="onReverseComplete",i=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||n)&&(u>=0&&(u!==d||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=a=!e||t||u===t?t:d)),(!this._initted||this._startAt&&this._startAt.progress())&&(n=!0);else if(this._totalTime=this._time=t,this._easeType){var h=t/l,c=this._easeType,p=this._easePower;(1===c||3===c&&h>=.5)&&(h=1-h),3===c&&(h*=2),1===p?h*=h:2===p?h*=h*h:3===p?h*=h*h*h:4===p&&(h*=h*h*h*h),this.ratio=1===c?1-h:2===c?h:t/l<.5?h/2:1-h/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==s||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=u,N.push(this),void(this._lazy=[t,e]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/l):i&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,!0,n):r||(r="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,n),e||(this._time!==s||i||n)&&this._callback("onUpdate")),r&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,n),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===d&&a!==d&&(this._rawPrevTime=0)))}},s._kill=function(t,e,n){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:O.selector(e)||e;var i,r,o,a,s,l,u,h,c,p=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline,f=this._firstPT;if((v(e)||R(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i],n)&&(l=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){s=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(u=t||s,h=t!==r&&"all"!==r&&t!==s&&("object"!=typeof t||!t._tempKill),n&&(O.onOverwrite||this.vars.onOverwrite)){for(o in u)s[o]&&(c||(c=[]),c.push(o));if((c||!t)&&!tt(this,n,e,c))return!1}for(o in u)(a=s[o])&&(p&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(u)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),h&&(r[o]=1);!this._firstPT&&this._initted&&f&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],P.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},s._enabled=function(t,e){if(u||l.wake(),t&&this._gc){var n,i=this._targets;if(i)for(n=i.length;--n>-1;)this._siblings[n]=Q(i[n],this,!0);else this._siblings=Q(this.target,this,!0)}return P.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(t?"_onEnable":"_onDisable",this)},O.to=function(t,e,n){return new O(t,e,n)},O.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new O(t,e,n)},O.fromTo=function(t,e,n,i){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,new O(t,e,i)},O.delayedCall=function(t,e,n,i,r){return new O(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},O.set=function(t,e){return new O(t,0,e)},O.getTweensOf=function(t,e){if(null==t)return[];var n,i,r,o;if(t="string"!=typeof t?t:O.selector(t)||t,(v(t)||R(t))&&"number"!=typeof t[0]){for(n=t.length,i=[];--n>-1;)i=i.concat(O.getTweensOf(t[n],e));for(n=i.length;--n>-1;)for(o=i[n],r=n;--r>-1;)o===i[r]&&i.splice(n,1)}else if(t._gsTweenID)for(n=(i=Q(t).concat()).length;--n>-1;)(i[n]._gc||e&&!i[n].isActive())&&i.splice(n,1);return i||[]},O.killTweensOf=O.killDelayedCallsTo=function(t,e,n){"object"==typeof e&&(n=e,e=!1);for(var i=O.getTweensOf(t,e),r=i.length;--r>-1;)i[r]._kill(n,t)};var it=b("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=it.prototype}),!0);if(s=it.prototype,it.version="1.19.0",it.API=2,s._firstPT=null,s._addTween=G,s.setRatio=V,s._kill=function(t){var e,n=this._overwriteProps,i=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=n.length;--e>-1;)null!=t[n[e]]&&n.splice(e,1);for(;i;)null!=t[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},s._mod=s._roundProps=function(t){for(var e,n=this._firstPT;n;)(e=t[this._propName]||null!=n.n&&t[n.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===n.f?n.t._applyPT.m=e:n.m=e),n=n._next},O._onPluginEvent=function(t,e){var n,i,r,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:o=s,s=a}s=e._firstPT=r}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(n=!0),s=s._next;return n},it.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===it.API&&(W[(new t[e])._propName]=t[e]);return!0},x.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,n=t.propName,i=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=b("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",(function(){it.call(this,n,i),this._overwriteProps=r||[]}),!0===t.global),s=a.prototype=new it(n);for(e in s.constructor=a,a.API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,it.activate([a]),a},o=t._gsQueue){for(a=0;a.998){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||o)for(var s,l=1/(1-r),u=this._firstPT;u;)s=u.s+u.c,u.c*=l,u.s=s-u.c,u=u._next;return this},l.render=function(t,e,n){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var a,s,l,u,h,c,p,f,d,g=this._dirty?this.totalDuration():this._totalDuration,m=this._time,v=this._totalTime,y=this._cycle,_=this._duration,x=this._rawPrevTime;if(t>=g-1e-7&&t>=0?(this._totalTime=g,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=_,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(a=!0,s="onComplete",n=n||this._timeline.autoRemoveChildren),0===_&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(x<0||t<=0&&t>=-1e-7||x===r&&"isPause"!==this.data)&&x!==t&&(n=!0,x>r&&(s="onReverseComplete")),this._rawPrevTime=f=!e||t||x===t?t:r)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==v||0===_&&x>0)&&(s="onReverseComplete",a=this._reversed),t<0&&(this._active=!1,0===_&&(this._initted||!this.vars.lazy||n)&&(x>=0&&(n=!0),this._rawPrevTime=f=!e||t||x===t?t:r)),this._initted||(n=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(u=_+this._repeatDelay,this._cycle=this._totalTime/u>>0,0!==this._cycle&&this._cycle===this._totalTime/u&&v<=t&&this._cycle--,this._time=this._totalTime-this._cycle*u,this._yoyo&&0!=(1&this._cycle)&&(this._time=_-this._time,(d=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==d||this._initted?this._yoyoEase=d=!0===d?this._ease:d instanceof i.SX?d:i.SX.map[d]:(d=this.vars.ease,this._yoyoEase=d=d?d instanceof i.SX?d:"function"==typeof d?new i.SX(d,this.vars.easeParams):i.SX.map[d]||i.ZP.defaultEase:i.ZP.defaultEase)),this.ratio=d?1-d.getRatio((_-this._time)/_):0)),this._time>_?this._time=_:this._time<0&&(this._time=0)),this._easeType&&!d?(h=this._time/_,(1===(c=this._easeType)||3===c&&h>=.5)&&(h=1-h),3===c&&(h*=2),1===(p=this._easePower)?h*=h:2===p?h*=h*h:3===p?h*=h*h*h:4===p&&(h*=h*h*h*h),1===c?this.ratio=1-h:2===c?this.ratio=h:this._time/_<.5?this.ratio=h/2:this.ratio=1-h/2):d||(this.ratio=this._ease.getRatio(this._time/_))),m!==this._time||n||y!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=m,this._totalTime=v,this._rawPrevTime=x,this._cycle=y,o.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||a||d?a&&this._ease._calcEnd&&!d&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/_)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==m&&t>=0&&(this._active=!0),0===v&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,!0,n):s||(s="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==_||e||this._callback("onStart"))),l=this._firstPT;l;)l.f?l.t[l.p](l.c*this.ratio+l.s):l.t[l.p]=l.c*this.ratio+l.s,l=l._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,n),e||(this._totalTime!==v||s)&&this._callback("onUpdate")),this._cycle!==y&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),s&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,n),a&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===_&&this._rawPrevTime===r&&f!==r&&(this._rawPrevTime=0)))}else v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},n.to=function(t,e,i){return new n(t,e,i)},n.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new n(t,e,i)},n.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new n(t,e,r)},n.staggerTo=n.allTo=function(r,o,l,h,c,p,f){h=h||0;var d,g,m,v,y=0,_=[],x=function(){l.onComplete&&l.onComplete.apply(l.onCompleteScope||this,arguments),c.apply(f||l.callbackScope||this,p||u)},b=l.cycle,w=l.startAt&&l.startAt.cycle;for(s(r)||("string"==typeof r&&(r=i.ZP.selector(r)||r),a(r)&&(r=t(r))),r=r||[],h<0&&((r=t(r)).reverse(),h*=-1),d=r.length-1,m=0;m<=d;m++){for(v in g={},l)g[v]=l[v];if(b&&(e(g,r,m),null!=g.duration&&(o=g.duration,delete g.duration)),w){for(v in w=g.startAt={},l.startAt)w[v]=l.startAt[v];e(g.startAt,r,m)}g.delay=y+(g.delay||0),m===d&&c&&(g.onComplete=x),_[m]=new n(r[m],o,g),y+=h}return _},n.staggerFrom=n.allFrom=function(t,e,i,r,o,a,s){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,n.staggerTo(t,e,i,r,o,a,s)},n.staggerFromTo=n.allFromTo=function(t,e,i,r,o,a,s,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,n.staggerTo(t,e,r,o,a,s,l)},n.delayedCall=function(t,e,i,r,o){return new n(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:o,overwrite:0})},n.set=function(t,e){return new n(t,0,e)},n.isTweening=function(t){return i.ZP.getTweensOf(t,!0).length>0};var h=function(t,e){for(var n=[],r=0,o=t._first;o;)o instanceof i.ZP?n[r++]=o:(e&&(n[r++]=o),r=(n=n.concat(h(o,e))).length),o=o._next;return n},c=n.getAllTweens=function(t){return h(i.fw._rootTimeline,t).concat(h(i.fw._rootFramesTimeline,t))};n.killAll=function(t,e,n,r){null==e&&(e=!0),null==n&&(n=!0);var o,a,s,l=c(0!=r),u=l.length,h=e&&n&&r;for(s=0;s-1;)n.killChildTweensOf(e[c],r);else{for(h in l=[],f)for(u=f[h].target.parentNode;u;)u===e&&(l=l.concat(f[h].tweens)),u=u.parentNode;for(p=l.length,c=0;c-1;)a=s[u],(l||a instanceof i.MQ||(o=a.target===a.vars.onComplete)&&n||e&&!o)&&a.paused(t)};return n.pauseAll=function(t,e,n){p(!0,t,e,n)},n.resumeAll=function(t,e,n){p(!1,t,e,n)},n.globalTimeScale=function(t){var e=i.fw._rootTimeline,n=i.ZP.ticker.time;return arguments.length?(t=t||r,e._startTime=n-(n-e._startTime)*e._timeScale/t,e=i.fw._rootFramesTimeline,n=i.ZP.ticker.frame,e._startTime=n-(n-e._startTime)*e._timeScale/t,e._timeScale=i.fw._rootTimeline._timeScale=t,t):e._timeScale},l.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},l.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},l.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},l.duration=function(t){return arguments.length?i.fw.prototype.duration.call(this,t):this._duration},l.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},l.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},l.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},l.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},n}),!0);var r=i.li.TweenMax,o=n(9975),a=n(5947),s=i.ML._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,n){return this._tween=n,!0}}),l=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(n){return(Math.round(n/t)*t*e|0)/e}},u=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},h=s.prototype;h._onInitAllProps=function(){var t,e,n,i,r=this._tween,o=r.vars.roundProps,a={},s=r._propLookup.roundProps;if("object"!=typeof o||o.push)for("string"==typeof o&&(o=o.split(",")),n=o.length;--n>-1;)a[o[n]]=Math.round;else for(i in o)a[i]=l(o[i]);for(i in a)for(t=r._firstPT;t;)e=t._next,t.pg?t.t._mod(a):t.n===i&&(2===t.f&&t.t?u(t.t._firstPT,a[i]):(this._add(t.t,i,t.s,t.c,a[i]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:r._firstPT===t&&(r._firstPT=e),t._next=t._prev=null,r._propLookup[i]=s)),t=e;return!1},h._add=function(t,e,n,i,r){this._addTween(t,e,n,n+i,e,r||Math.round),this._overwriteProps.push(e)};var c=i.ML._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,n,i){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,o,a,s,l,u,h=!0===e.useRadians?2*Math.PI:360,c=1e-6;for(r in e)"useRadians"!==r&&("function"==typeof(s=e[r])&&(s=s(i,t)),o=(u=(s+"").split("_"))[0],a=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),l=(s=this.finals[r]="string"==typeof o&&"="===o.charAt(1)?a+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-a,u.length&&(-1!==(o=u.join("_")).indexOf("short")&&(l%=h)!==l%(h/2)&&(l=l<0?l+h:l-h),-1!==o.indexOf("_cw")&&l<0?l=(l+9999999999*h)%h-(l/h|0)*h:-1!==o.indexOf("ccw")&&l>0&&(l=(l-9999999999*h)%h-(l/h|0)*h)),(l>c||l<-c)&&(this._addTween(t,r,a,a+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}});c._autoCSS=!0;var p=n(4743),f=n(8501),d=n(5033),g=n(3441),m=r;m._autoActivated=[p.Z,f.ZP,o.Z,a.C,d.Z,s,c,g.eJ,g.tQ,g.sm,g.l6,g.Dd,g.NB,g.zO,g.Au,g.Yv,g.$p]},8234:function(t,e,n){"undefined"!=typeof navigator&&(t.exports=function(){"use strict";var t="http://www.w3.org/2000/svg",i="",r=!1,o=-999999,a=function(t){r=!!t},s=function(){return r},l=function(t){i=t},u=function(){return i};function h(t){return document.createElement(t)}function c(t,e){var n,i,r=t.length;for(n=0;n1?n[1]=1:n[1]<=0&&(n[1]=0),V(n[0],n[1],n[2])}function H(t,e){var n=j(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),V(n[0],n[1],n[2])}function W(t,e){var n=j(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),V(n[0],n[1],n[2])}!function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e}();var Z=function(t){v=!!t},U=function(){return v},X=function(t){y=t},$=function(){return y},Y=function(){return _},q=function(t){A=t},K=function(){return A},J=function(t){x=t};function Q(e){return document.createElementNS(t,e)}function tt(t){return tt="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},tt(t)}var et=function(){var t,e,n=1,i=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},o={postMessage:function(t){r.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&s()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(n);return new Worker(i)}return t=e,r}function l(){e||(e=a((function(t){function e(){function t(e,n){var a,s,l,u,h,c,p=e.length;for(s=0;s=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)o(t[e].ks.k);else for(i=t[e].ks.k.length,n=0;nn[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var s,l=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,i=t.length;for(n=0;n=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(r=t[n].ks.k.length,i=0;i500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function o(e){var n=i(e,this.assetsPath,this.path),r=Q("image");b?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var o={img:r,assetData:e};return o}function a(e){var n=i(e,this.assetsPath,this.path),r=h("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),r.src=n;var o={img:r,assetData:e};return o}function s(t){var e={assetData:t},n=i(t,this.assetsPath,this.path);return et.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function l(t,e){var n;this.imagesLoadedCb=e;var i=t.length;for(n=0;nthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,i=this.animationData.layers,r=i.length,o=t.layers,a=o.length;for(n=0;nthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ct.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},ct.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ct.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ct.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},ct.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ct.prototype.getMarkerData=function(t){for(var e,n=0;n=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},ct.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},ct.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},ct.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===ht(t[0])){var n,i=t.length;for(n=0;n=0;n-=1)e[n].animation.destroy(t)}function T(t,e,n){var i,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=r.length;for(i=0;i0?n=l:e=l}while(Math.abs(s)>o&&++u=r?m(t,h,e,n):0===c?h:g(t,o,o+l,e,n)}},t}(),dt=function(){function t(t){return t.concat(g(t.length))}return{double:t}}(),gt=function(t,e,n){var i=0,r=t,o=g(r);function a(){return i?o[i-=1]:e()}function s(t){i===r&&(o=dt.double(o),r*=2),n&&n(t),o[i]=t,i+=1}return{newElement:a,release:s}},mt=function(){function t(){return{addedLength:0,percents:d("float32",K()),lengths:d("float32",K())}}return gt(8,t)}(),vt=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,n=t.lengths.length;for(e=0;e-.001&&a<.001}function n(n,i,r,o,a,s,l,u,h){if(0===r&&0===s&&0===h)return e(n,i,o,a,l,u);var c,p=t.sqrt(t.pow(o-n,2)+t.pow(a-i,2)+t.pow(s-r,2)),f=t.sqrt(t.pow(l-n,2)+t.pow(u-i,2)+t.pow(h-r,2)),d=t.sqrt(t.pow(l-o,2)+t.pow(u-a,2)+t.pow(h-s,2));return(c=p>f?p>d?p-f-d:d-f-p:d>f?d-f-p:f-p-d)>-1e-4&&c<1e-4}var i=function(t,e,n,i){var r,o,a,s,l,u,h=K(),c=0,p=[],f=[],d=mt.newElement();for(a=n.length,r=0;ra?-1:1,u=!0;u;)if(i[o]<=a&&i[o+1]>a?(s=(a-i[o])/(i[o+1]-i[o]),u=!1):o+=l,o<0||o>=r-1){if(o===r-1)return n[o];u=!1}return n[o]+(n[o+1]-n[o])*s}function h(e,n,i,r,o,a){var s=u(o,a),l=1-s;return[t.round(1e3*(l*l*l*e[0]+(s*l*l+l*s*l+l*l*s)*i[0]+(s*s*l+l*s*s+s*l*s)*r[0]+s*s*s*n[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(s*l*l+l*s*l+l*l*s)*i[1]+(s*s*l+l*s*s+s*l*s)*r[1]+s*s*s*n[1]))/1e3]}var c=d("float32",8);function p(e,n,i,r,o,a,s){o<0?o=0:o>1&&(o=1);var l,h=u(o,s),p=u(a=a>1?1:a,s),f=e.length,d=1-h,g=1-p,m=d*d*d,v=h*d*d*3,y=h*h*d*3,_=h*h*h,x=d*d*g,b=h*d*g+d*h*g+d*d*p,w=h*h*g+d*h*p+h*d*p,S=h*h*p,M=d*g*g,T=h*g*g+d*p*g+d*g*p,C=h*p*g+d*p*p+h*g*p,A=h*p*p,I=g*g*g,k=p*g*g+g*p*g+g*g*p,D=p*p*g+g*p*p+p*g*p,P=p*p*p;for(l=0;l=o.t-i){r.h&&(r=o),f=0;break}if(o.t-i>t){f=g;break}g=_||t=_?b.points.length-1:0;for(l=b.points[w].point.length,s=0;s=T&&M=_?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):t<=x?(n[0]=r.s[0],n[1]=r.s[1],n[2]=r.s[2]):Mt(n,St(Tt(r.s),Tt(y),(t-x)/(_-x)));else for(g=0;g=_?u=1:t1e-6?(i=Math.acos(r),o=Math.sin(i),a=Math.sin((1-n)*i)/o,s=Math.sin(n*i)/o):(a=1-n,s=n),l[0]=a*u+s*f,l[1]=a*h+s*d,l[2]=a*c+s*g,l[3]=a*p+s*m,l}function Mt(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=Math.atan2(2*i*o-2*n*r,1-2*i*i-2*r*r),s=Math.asin(2*n*i+2*r*o),l=Math.atan2(2*n*o-2*i*r,1-2*n*n-2*r*r);t[0]=a/I,t[1]=s/I,t[2]=l/I}function Tt(t){var e=t[0]*I,n=t[1]*I,i=t[2]*I,r=Math.cos(e/2),o=Math.cos(n/2),a=Math.cos(i/2),s=Math.sin(e/2),l=Math.sin(n/2),u=Math.sin(i/2);return[s*l*a+r*o*u,s*o*a+r*l*u,r*l*a-s*o*u,r*o*a-s*l*u]}function Ct(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==xt&&(this._caching.lastFrame>=n&&t>=n||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function At(t){var e;if("unidimensional"===this.propType)e=t*this.mult,bt(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var n=0,i=this.v.length;n1e-5&&(this.v[n]=e,this._mdf=!0),n+=1}function It(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[i]||o[i]&&!r)&&(o[i]=Nt.newElement()),o[i][0]=t,o[i][1]=e},Ft.prototype.setTripleAt=function(t,e,n,i,r,o,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(n,i,"o",a,s),this.setXYAt(r,o,"i",a,s)},Ft.prototype.reverse=function(){var t=new Ft;t.setPathData(this.c,this._length);var e=this.v,n=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),r=1);var o,a=this._length-1,s=this._length;for(o=r;o=f[f.length-1].t-this.offsetTime)i=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],o=!0;else{for(var d,g,m,v=p,y=f.length-1,_=!0;_&&(d=f[v],!((g=f[v+1]).t-this.offsetTime>t));)v=g.t-this.offsetTime)h=1;else if(ti&&e>i)||(this._caching.lastIndex=r0||t>-1e-6&&t<0?i(t*e)/e:t}function E(){var t=this.props;return"matrix("+L(t[0])+","+L(t[1])+","+L(t[4])+","+L(t[5])+","+L(t[12])+","+L(t[13])+")"}return function(){this.reset=r,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=h,this.skewFromAxis=c,this.shear=u,this.scale=p,this.setTransform=f,this.translate=g,this.transform=m,this.applyToPoint=b,this.applyToX=w,this.applyToY=S,this.applyToZ=M,this.applyToPointArray=k,this.applyToTriplePoints=I,this.applyToPointStringified=D,this.toCSS=P,this.to2dCSS=E,this.clone=_,this.cloneFromProps=x,this.equals=y,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=T,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}();function Ht(t){return Ht="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},Ht(t)}var Wt={},Zt="__[STANDALONE]__",Ut="__[ANIMATIONDATA]__",Xt="";function $t(t){l(t)}function Yt(){!0===Zt?pt.searchAnimations(Ut,Zt,Xt):pt.searchAnimations()}function qt(t){Z(t)}function Kt(t){J(t)}function Jt(t){return!0===Zt&&(t.animationData=JSON.parse(Ut)),pt.loadAnimation(t)}function Qt(t){if("string"==typeof t)switch(t){case"high":q(200);break;default:case"medium":q(50);break;case"low":q(10)}else!isNaN(t)&&t>1&&q(t);K()>=50?D(!1):D(!0)}function te(){return"undefined"!=typeof navigator}function ee(t,e){"expressions"===t&&X(e)}function ne(t){switch(t){case"propertyFactory":return Ot;case"shapePropertyFactory":return jt;case"matrix":return Gt;default:return null}}function ie(){"complete"===document.readyState&&(clearInterval(le),Yt())}function re(t){for(var e=oe.split("&"),n=0;n=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var a,s,l=[],u=o.length;for(a=0;ai+n||(h=s.s*r<=i?0:(s.s*r-i)/n,c=s.e*r>=i+n?1:(s.e*r-i)/n,l.push([h,c]))}return l.length||l.push([0,0]),l},ce.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e1?1+o:this.s.v<0?0+o:this.s.v+o)>(n=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=e;e=n,n=a}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var s,l,u,h,c,p=this.shapes.length,f=0;if(n===e)for(r=0;r=0;r-=1)if((d=this.shapes[r]).shape._mdf){for((g=d.localShapeCollection).releaseShapes(),2===this.m&&p>1?(v=this.calculateShapeEdges(e,n,d.totalShapeLength,x,f),x+=d.totalShapeLength):v=[[y,_]],l=v.length,s=0;s=1?m.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(_-1)}):(m.push({s:d.totalShapeLength*y,e:d.totalShapeLength}),m.push({s:0,e:d.totalShapeLength*(_-1)}));var b=this.addShapes(d,m[0]);if(m[0].s!==m[0].e){if(m.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var w=b.pop();this.addPaths(b,g),b=this.addShapes(d,m[1],w)}else this.addPaths(b,g),b=this.addShapes(d,m[1]);this.addPaths(b,g)}}d.shape.paths=g}}},ce.prototype.addPaths=function(t,e){var n,i=t.length;for(n=0;ne.e){n.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(p[i].v[r-1],p[i].o[r-1],p[i].i[r],p[i].v[r],n,s,m),m=!1):(u=_t.getNewSegment(p[i].v[r-1],p[i].v[r],p[i].o[r-1],p[i].i[r],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,l[r-1]),this.addSegmentFromArray(u,n,s,m),m=!1,n.c=!1),d+=a.addedLength,s+=1}if(p[i].c&&l.length){if(a=l[r-1],d<=e.e){var v=l[r-1].addedLength;e.s<=d&&e.e>=d+v?(this.addSegment(p[i].v[r-1],p[i].o[r-1],p[i].i[0],p[i].v[0],n,s,m),m=!1):(u=_t.getNewSegment(p[i].v[r-1],p[i].v[0],p[i].o[r-1],p[i].i[0],(e.s-d)/v,(e.e-d)/v,l[r-1]),this.addSegmentFromArray(u,n,s,m),m=!1,n.c=!1)}else n.c=!1;d+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[h][0],n.v[h][1],"i",h),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),d>e.e)break;i=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(i=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],r=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(i[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[0]=o.getValueAtTime(o.keyframes[0].t/n,0),r[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(i[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(i=[o.pv,a.pv],r[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else i=r=t;this.v.rotate(-Math.atan2(i[1]-r[1],i[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function o(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Gt,this.pre=new Gt,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=Ot.getProp(t,e.p.x,0,0,this),this.py=Ot.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=Ot.getProp(t,e.p.z,0,0,this))):this.p=Ot.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=Ot.getProp(t,e.rx,0,I,this),this.ry=Ot.getProp(t,e.ry,0,I,this),this.rz=Ot.getProp(t,e.rz,0,I,this),e.or.k[0].ti){var i,r=e.or.k.length;for(i=0;ii){var r=i;i=n,n=r}for(var o=xe(3*t.a[e],2*t.b[e],t.c[e]),a=0;a0&&o[a]<1){var s=t.point(o[a])[e];si&&(i=s)}return{min:n,max:i}}function Te(t,e,n){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function Ce(t){var e=t.bez.split(.5);return[Te(e[0],t.t1,t.t),Te(e[1],t.t,t.t2)]}function Ae(t,e){return 2*Math.abs(t.cx-e.cx)=o||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)r.push([t.t,e.t]);else{var a=Ce(t),s=Ce(e);Ie(a[0],s[0],n+1,i,r,o),Ie(a[0],s[1],n+1,i,r,o),Ie(a[1],s[0],n+1,i,r,o),Ie(a[1],s[1],n+1,i,r,o)}}function ke(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function De(t,e,n,i){var r=[t[0],t[1],1],o=[e[0],e[1],1],a=[n[0],n[1],1],s=[i[0],i[1],1],l=ke(ke(r,o),ke(a,s));return ve(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function Pe(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function Le(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function Ee(t,e){return me(t[0],e[0])&&me(t[1],e[1])}function Oe(){}function Re(t,e,n,i,r,o,a){var s=n-Math.PI/2,l=n+Math.PI/2,u=e[0]+Math.cos(n)*i*r,h=e[1]-Math.sin(n)*i*r;t.setTripleAt(u,h,u+Math.cos(s)*o,h-Math.sin(s)*o,u+Math.cos(l)*a,h-Math.sin(l)*a,t.length())}function Ne(t,e){var n=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]]}function Fe(t,e){var n=0===e?t.length()-1:e-1,i=(e+1)%t.length(),r=Ne(t.v[n],t.v[i]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function Be(t,e,n,i,r,o,a){var s=Fe(e,n),l=e.v[n%e._length],u=e.v[0===n?e._length-1:n-1],h=e.v[(n+1)%e._length],c=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,p=2===o?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0;Re(t,e.v[n%e._length],s,a,i,p/(2*(r+1)),c/(2*(r+1)),o)}function ze(t,e,n,i,r,o){for(var a=0;a1&&e.length>1&&(r=He(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[n,i]}function Ze(t){for(var e,n=1;n1&&(e=We(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function Ue(t,e){var n,i,r,o,a=t.inflectionPoints();if(0===a.length)return[je(t,e)];if(1===a.length||me(a[1],1))return n=(r=t.split(a[0]))[0],i=r[1],[je(n,e),je(i,e)];n=(r=t.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(r=r[1].split(s))[0],i=r[1],[je(n,e),je(o,e),je(i,e)]}function Xe(){}function $e(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",i="normal",r=e.length,o=0;o0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},de.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e0?Math.floor(p):Math.ceil(p),g=this.pMatrix.props,m=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,_,x=0;if(p>0){for(;xd;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),x-=f)}for(i=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,o=this._currentCopies;o;){if(_=(n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==x){for((0!==i&&1===r||i!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),y=0;y<_;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<_;y+=1)n[y]=this.matrix.props[y];x+=1,o-=1,i+=r}}else for(o=this._currentCopies,i=0,r=1;o;)n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,i+=r;return a},de.prototype.addShape=function(){},c([he],ge),ge.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=Ot.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ge.prototype.processPath=function(t,e){var n,i=Bt.newElement();i.c=t.c;var r,o,a,s,l,u,h,c,p,f,d,g,m=t._length,v=0;for(n=0;n0&&i<1?[e]:[]:[e-i,e+i].filter((function(t){return t>0&&t<1}))},Se.prototype.split=function(t){if(t<=0)return[we(this.points[0]),this];if(t>=1)return[this,we(this.points[this.points.length-1])];var e=_e(this.points[0],this.points[1],t),n=_e(this.points[1],this.points[2],t),i=_e(this.points[2],this.points[3],t),r=_e(e,n,t),o=_e(n,i,t),a=_e(r,o,t);return[new Se(this.points[0],e,r,a,!0),new Se(a,o,i,this.points[3],!0)]},Se.prototype.bounds=function(){return{x:Me(this,0),y:Me(this,1)}},Se.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Se.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var i=[];return Ie(Te(this,0,1),Te(t,0,1),0,e,i,n),i},Se.shapeSegment=function(t,e){var n=(e+1)%t.length();return new Se(t.v[e],t.o[e],t.i[n],t.v[n],!0)},Se.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new Se(t.v[n],t.i[n],t.o[e],t.v[e],!0)},c([he],Oe),Oe.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=Ot.getProp(t,e.s,0,null,this),this.frequency=Ot.getProp(t,e.r,0,null,this),this.pointsType=Ot.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},Oe.prototype.processPath=function(t,e,n,i){var r=t._length,o=Bt.newElement();if(o.c=t.c,t.c||(r-=1),0===r)return o;var a=-1,s=Se.shapeSegment(t,0);Be(o,t,0,e,n,i,a);for(var l=0;l=0;o-=1)s=Se.shapeSegmentInverted(t,o),u.push(Ue(s,e));u=Ze(u);var h=null,c=null;for(o=0;o0&&(c=!1),c){var p=h("style");p.setAttribute("f-forigin",i[n].fOrigin),p.setAttribute("f-origin",i[n].origin),p.setAttribute("f-family",i[n].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+i[n].fFamily+"; font-style: normal; src: url('"+i[n].fPath+"');}",e.appendChild(p)}}else if("g"===i[n].fOrigin||1===i[n].origin){for(s=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;ut?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(x,"url("+u()+"#"+y+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}c([Rt],cn),cn.prototype.getValue=cn.prototype.iterateDynamicProperties,cn.prototype.init=function(t,e){var n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,r=this.data.ef.length,o=this.data.ef;for(n=0;n.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},gn.prototype.show=function(){},gn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},gn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},gn.prototype.resume=function(){this._canPlay=!0},gn.prototype.setRate=function(t){this.audio.rate(t)},gn.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},gn.prototype.getBaseElement=function(){return null},gn.prototype.destroy=function(){},gn.prototype.sourceRectAtTime=function(){},gn.prototype.initExpressions=function(){},mn.prototype.checkLayers=function(t){var e,n,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},mn.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},mn.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},mn.prototype.createAudio=function(t){return new gn(t,this.globalData,this)},mn.prototype.createFootage=function(t){return new dn(t,this.globalData,this)},mn.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t1&&(o+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==o){var a="";n.elem&&(e.c&&(a=t.inv?this.solidPath+o:o),n.elem.setAttribute("d",a)),n.lastPath=o}},yn.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _n,xn=function(){var t={};function e(t,e){var n=Q("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var t=Q("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=n,t}(),bn=(_n={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(_n.maskType=!1),/firefox/i.test(navigator.userAgent)&&(_n.svgLumaHidden=!1),_n),wn={},Sn="filter_result_";function Mn(t){var e,n,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,o=z(),a=xn.createFilter(o,!0),s=0;for(this.filters=[],e=0;e=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,i=e.length;n.01)return!1;n+=1}return!0},zn.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)l=i.transformers[g].mProps._mdf||l,d-=1,g-=1;if(l)for(d=v-i.styles[h].lvl,g=i.transformers.length-1;d>0;)f=i.transformers[g].mProps.v.props,p.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),d-=1,g-=1}else p=t;if(a=(c=i.sh.paths)._length,l){for(s="",o=0;o=1?y=.99:y<=-1&&(y=-.99);var _=s*y,x=Math.cos(v+e.a.v)*_+h[0],b=Math.sin(v+e.a.v)*_+h[1];l.setAttribute("fx",x),l.setAttribute("fy",b),u&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",b))}}function u(t,e,n){var i=e.style,r=e.d;r&&(r._mdf||n)&&r.dashStr&&(i.pElem.setAttribute("stroke-dasharray",r.dashStr),i.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||n)&&i.pElem.setAttribute("stroke","rgb("+M(e.c.v[0])+","+M(e.c.v[1])+","+M(e.c.v[2])+")"),(e.o._mdf||n)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:n}}();function Un(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function Xn(t,e,n,i,r,o){this.o=t,this.sw=e,this.sc=n,this.fc=i,this.m=r,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!i,m:!0,p:!0}}function $n(t,e){this._frameId=o,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}c([pn,vn,Tn,Dn,Cn,fn,An],Un),Un.prototype.initSecondaryElement=function(){},Un.prototype.identityMatrix=new Gt,Un.prototype.buildExpressionInterface=function(){},Un.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Un.prototype.filterUniqueShapes=function(){var t,e,n,i,r=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(n=0;n1&&s&&this.setShapesAsAnimated(a)}},Un.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e=0;s-=1){if((p=this.searchProcessedElement(t[s]))?e[s]=n[p-1]:t[s]._render=a,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)p?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],r),t[s]._render&&e[s].style.pElem.parentNode!==i&&i.appendChild(e[s].style.pElem),g.push(e[s].style);else if("gr"===t[s].ty){if(p)for(u=e[s].it.length,l=0;l1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},$n.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},$n.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(i=0;ie);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},$n.prototype.buildFinalText=function(t){for(var e,n,i=[],r=0,o=t.length,a=!1;r=55296&&e<=56319?(n=t.charCodeAt(r+1))>=56320&&n<=57343?(a||Ye.isModifier(e,n)?(i[i.length-1]+=t.substr(r,2),a=!1):i.push(t.substr(r,2)),r+=1):i.push(t.charAt(r)):e>56319?(n=t.charCodeAt(r+1),Ye.isZeroWidthJoiner(e,n)?(a=!0,i[i.length-1]+=t.substr(r,2),r+=1):i.push(t.charAt(r))):Ye.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(r),a=!0):i.push(t.charAt(r)),r+=1;return i},$n.prototype.completeTextData=function(t){t.__complete=!0;var e,n,i,r,o,a,s,l=this.elem.globalData.fontManager,u=this.data,h=[],c=0,p=u.m.g,f=0,d=0,g=0,m=[],v=0,y=0,_=l.getFontByName(t.f),x=0,b=$e(_);t.fWeight=b.weight,t.fStyle=b.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var w,S=t.tr/1e3*t.finalSize;if(t.sz)for(var M,T,C=!0,A=t.sz[0],I=t.sz[1];C;){M=0,v=0,n=(T=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var k=-1;for(e=0;eA&&" "!==T[e]?(-1===k?n+=1:e=k,M+=t.finalLineHeight||1.2*t.finalSize,T.splice(e,k===e?1:0,"\r"),k=-1,v=0):(v+=x,v+=S);M+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Iy?v:y,v=-2*S,r="",i=!0,g+=1):r=D,l.chars?(s=l.getCharData(D,_.fStyle,l.getFontByName(t.f).fFamily),x=i?0:s.w*t.finalSize/100):x=l.measureText(r,t.f,t.finalSize)," "===D?P+=x+S:(v+=x+S+P,P=0),h.push({l:x,an:x,add:f,n:i,anIndexes:[],val:r,line:g,animatorJustifyOffset:0}),2==p){if(f+=x,""===r||" "===r||e===n-1){for(""!==r&&" "!==r||(f-=x);d<=e;)h[d].an=f,h[d].ind=c,h[d].extra=x,d+=1;c+=1,f=0}}else if(3==p){if(f+=x,""===r||e===n-1){for(""===r&&(f-=x);d<=e;)h[d].an=f,h[d].ind=c,h[d].extra=x,d+=1;f=0,c+=1}}else h[c].ind=c,h[c].extra=0,c+=1;if(t.l=h,y=v>y?v:y,m.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=m;var L,E,O,R,N=u.a;a=N.length;var F=[];for(o=0;o0?r=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=ft.getBezierEasing(r,o,a,s).get,u=0,h=this.finalS,c=this.finalE,p=this.data.sh;if(2===p)u=l(u=c===h?i>=c?1:0:t(0,e(.5/(c-h)+(i-h)/(c-h),1)));else if(3===p)u=l(u=c===h?i>=c?0:1:1-t(0,e(.5/(c-h)+(i-h)/(c-h),1)));else if(4===p)c===h?u=0:(u=t(0,e(.5/(c-h)+(i-h)/(c-h),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===p){if(c===h)u=0;else{var f=c-h,d=-f/2+(i=e(t(0,i+.5-h),c-h)),g=f/2;u=Math.sqrt(1-d*d/(g*g))}u=l(u)}else 6===p?(c===h?u=0:(i=e(t(0,i+.5-h),c-h),u=(1+Math.cos(Math.PI+2*Math.PI*i/(c-h)))/2),u=l(u)):(i>=n(h)&&(u=t(0,e(i-h<0?e(c,1)-(h-i):c-i,1))),u=l(u));if(100!==this.sm.v){var m=.01*this.sm.v;0===m&&(m=1e-8);var v=.5-.5*m;u1&&(u=1)}return u*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,i=this.s.v/e+n,r=this.e.v/e+n;if(i>r){var o=i;i=r,r=o}this.finalS=i,this.finalE=r}},c([Rt],i),{getTextSelectorProp:r}}();function qn(t,e,n){var i={propType:!1},r=Ot.getProp,o=e.a;this.a={r:o.r?r(t,o.r,0,I,n):i,rx:o.rx?r(t,o.rx,0,I,n):i,ry:o.ry?r(t,o.ry,0,I,n):i,sk:o.sk?r(t,o.sk,0,I,n):i,sa:o.sa?r(t,o.sa,0,I,n):i,s:o.s?r(t,o.s,1,.01,n):i,a:o.a?r(t,o.a,1,0,n):i,o:o.o?r(t,o.o,0,.01,n):i,p:o.p?r(t,o.p,1,0,n):i,sw:o.sw?r(t,o.sw,0,0,n):i,sc:o.sc?r(t,o.sc,1,0,n):i,fc:o.fc?r(t,o.fc,1,0,n):i,fh:o.fh?r(t,o.fh,0,0,n):i,fs:o.fs?r(t,o.fs,0,.01,n):i,fb:o.fb?r(t,o.fb,0,.01,n):i,t:o.t?r(t,o.t,0,0,n):i},this.s=Yn.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function Kn(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=g(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function Jn(){}Kn.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,i=Ot.getProp;for(t=0;t=s+ht||!d?(y=(s+ht-u)/l.partialLength,B=f.point[0]+(l.point[0]-f.point[0])*y,z=f.point[1]+(l.point[1]-f.point[1])*y,M.translate(-b[0]*A[r].an*.005,-b[1]*R*.01),h=!1):d&&(u+=l.partialLength,(c+=1)>=d.length&&(c=0,g[p+=1]?d=g[p].points:x.v.c?(c=0,d=g[p=0].points):(u-=l.partialLength,d=null)),d&&(f=l,m=(l=d[c]).partialLength));F=A[r].an/2-A[r].add,M.translate(-F,0,0)}else F=A[r].an/2-A[r].add,M.translate(-F,0,0),M.translate(-b[0]*A[r].an*.005,-b[1]*R*.01,0);for(P=0;Pt?this.textSpans[t].span:Q(l?"g":"text"),y<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var _=Q("g");a.appendChild(_),this.textSpans[t].childSpan=_}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(u.reset(),c&&(s[t].n&&(p=-m,f+=n.yOffset,f+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(n,u,s[t].line,p,f),p+=s[t].l||0,p+=m),l){var x;if(1===(v=this.globalData.fontManager.getCharData(n.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)x=new oi(v.data,this.globalData,this);else{var b=Qn;v.data&&v.data.shapes&&(b=this.buildShapeData(v.data,n.finalSize)),x=new Un(b,this.globalData,this)}if(this.textSpans[t].glyph){var w=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[t].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[t].childSpan.appendChild(x.layerElement),1===v.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d",h)}else{var S=this.textContainer,M="start";switch(n.j){case 1:M="end";break;case 2:M="middle";break;default:M="start"}S.setAttribute("text-anchor",M),S.setAttribute("letter-spacing",m);var T=this.buildTextContents(n.finalText);for(e=T.length,f=n.ps?n.ps[1]+n.ascent:0,t=0;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ri.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=s,a=0;continue}e&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+t.slice(o+1,s):i=t.slice(o+1,s),r=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var i={resolve:function(){for(var t,i="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(i=a+"/"+i,r=47===a.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(e(t),0===t.length)return".";var i=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!i)).length||i||(t="."),t.length>0&&r&&(t+="/"),i?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":i.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=i.resolve(t))===(n=i.resolve(n)))return"";for(var r=1;ru){if(47===n.charCodeAt(s+c))return n.slice(s+c+1);if(0===c)return n.slice(s+c)}else a>u&&(47===t.charCodeAt(r+c)?h=c:0===c&&(h=0));break}var p=t.charCodeAt(r+c);if(p!==n.charCodeAt(s+c))break;47===p&&(h=c)}var f="";for(c=r+h+1;c<=o;++c)c!==o&&47!==t.charCodeAt(c)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(s+h):(s+=h,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),i=47===n,r=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(n=t.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":t.slice(0,r)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var i,r=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,l=-1;for(i=t.length-1;i>=0;--i){var u=t.charCodeAt(i);if(47===u){if(!a){r=i+1;break}}else-1===l&&(a=!1,l=i+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=i):(s=-1,o=l))}return r===o?o=l:-1===o&&(o=t.length),t.slice(r,o)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!a){r=i+1;break}}else-1===o&&(a=!1,o=i+1);return-1===o?"":t.slice(r,o)},extname:function(t){e(t);for(var n=-1,i=0,r=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===r&&(o=!1,r=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){i=s+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":t.slice(n,r)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+i:n+t+i:i}("/",t)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var i,r=t.charCodeAt(0),o=47===r;o?(n.root="/",i=1):i=0;for(var a=-1,s=0,l=-1,u=!0,h=t.length-1,c=0;h>=i;--h)if(47!==(r=t.charCodeAt(h)))-1===l&&(u=!1,l=h+1),46===r?-1===a?a=h:1!==c&&(c=1):-1!==a&&(c=-1);else if(!u){s=h+1;break}return-1===a||-1===l||0===c||1===c&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&o?t.slice(1,l):t.slice(s,l)):(0===s&&o?(n.name=t.slice(1,a),n.base=t.slice(1,l)):(n.name=t.slice(s,a),n.base=t.slice(s,l)),n.ext=t.slice(a,l)),s>0?n.dir=t.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i},3647:function(t,e,n){t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="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},n=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,n){var i=n.passengers[0];return i="function"==typeof i?i(e):n.passengers,t.concat(i)}),[])}function s(t,e){return t.map((function(t,e){return[e,t]})).sort(function(t,e){return this(t[1],e[1])||t[0]-e[0]}.bind(e)).map((function(t){return t[1]}))}var l={},u=t.extend({data:function(){return{transports:l}},methods:{open:function(e){var n=e.to,i=e.from,r=e.passengers;if(n&&i&&r){e.passengers=o(r),-1===Object.keys(this.transports).indexOf(n)&&t.set(this.transports,n,[]);var a=this.getTransportIndex(e),l=this.transports[n].slice(0);-1===a?l.push(e):l[a]=e,this.transports[n]=s(l,(function(t,e){return t.order-e.order}))}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,i=t.from;if(n&&i&&this.transports[n])if(e)this.transports[n]=[];else{var r=this.getTransportIndex(t);if(r>=0){var o=this.transports[n].slice(0);o.splice(r,1),this.transports[n]=o}}},hasTarget:function(t){return this.transports.hasOwnProperty(t)},hasContentFor:function(t){return!!this.transports[t]&&this.getContentFor(t).length>0},getSourceFor:function(t){return this.transports[t]&&this.transports[t][0].from},getContentFor:function(t){var e=this.transports[t];if(e)return a(e)},getTransportIndex:function(t){var e=t.to,n=t.from;for(var i in this.transports[e])if(this.transports[e][i].from===n)return i;return-1}}}),h=new u(l),c=/^(attrs|props|on|nativeOn|class|style|hook)$/,p=function(t){return t.reduce((function(t,e){var n,i,r,o,a;for(r in e)if(n=t[r],i=e[r],n&&c.test(r))if("class"===r&&("string"==typeof n&&(a=n,t[r]=n={},n[a]=!0),"string"==typeof i&&(a=i,e[r]=i={},i[a]=!0)),"on"===r||"nativeOn"===r||"hook"===r)for(o in i)n[o]=f(n[o],i[o]);else if(Array.isArray(n))t[r]=n.concat(i);else if(Array.isArray(i))t[r]=[n].concat(i);else for(o in i)n[o]=i[o];else t[r]=e[r];return t}),{})};function f(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}var d={abstract:!1,name:"portalTarget",props:{attributes:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[Boolean,String,Object],default:!1},transitionEvents:{type:Object,default:function(){return{}}}},data:function(){return{transports:h.transports,firstRender:!0}},created:function(){this.transports[this.name]||this.$set(this.transports,this.name,[])},mounted:function(){var t=this;this.unwatch=this.$watch("ownTransports",this.emitChange),this.$nextTick((function(){t.transition&&(t.firstRender=!1)})),this.$options.abstract&&(this.$options.abstract=!1)},updated:function(){this.$options.abstract&&(this.$options.abstract=!1)},beforeDestroy:function(){this.unwatch()},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return a(this.ownTransports,this.slotProps)},hasAttributes:function(){return Object.keys(this.attributes).length>0},withTransition:function(){return!!this.transition},transitionData:function(){var t=this.transition,n={};return this.firstRender&&"object"===e(this.transition)&&!this.transition.appear?(n.props={name:"__notranstition__portal-vue__"},n):("string"==typeof t?n.props={name:t}:"object"===(void 0===t?"undefined":e(t))&&(n.props=t),this.renderSlim&&(n.props.tag=this.tag),n.on=this.transitionEvents,n)},transportedClasses:function(){return this.ownTransports.map((function(t){return t.class})).reduce((function(t,e){return t.concat(e)}),[])}},methods:{emitChange:function(t,e){if(this.multiple)this.$emit("change",[].concat(i(t)),[].concat(i(e)));else{var r=0===t.length?void 0:t[0],o=0===e.length?void 0:e[0];this.$emit("change",n({},r),n({},o))}},children:function(){return 0!==this.passengers.length?this.passengers:this.$slots.default||[]},noWrapper:function(){var t=!this.hasAttributes&&this.slim;return t&&this.children().length,t}},render:function(t){this.$options.abstract=!0;var e=this.noWrapper(),n=this.children(),i=e?"transition":"transition-group",r=this.tag;return this.withTransition?t(i,p([this.transitionData,{class:"vue-portal-target"}]),[n]):e?n[0]:t(r,p([{class:"vue-portal-target "+this.transportedClasses.join(" ")},this.attributes]),[n])}},g="undefined"!=typeof window,m=1,v={abstract:!1,name:"portal",props:{disabled:{type:Boolean,default:!1},name:{type:String,default:function(){return String(m++)}},order:{type:Number,default:0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:[String],default:"DIV"},targetEl:{type:g?[String,HTMLElement]:String},targetClass:{type:String},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},mounted:function(){this.targetEl&&this.mountToTarget(),this.disabled||this.sendUpdate(),this.$options.abstract&&(this.$options.abstract=!1)},updated:function(){this.disabled?this.clear():this.sendUpdate(),this.$options.abstract&&(this.$options.abstract=!1)},beforeDestroy:function(){this.clear(),this.mountedComp&&this.mountedComp.$destroy()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()},targetEl:function(t,e){t&&this.mountToTarget()}},methods:{normalizedSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},sendUpdate:function(){var t=this.normalizedSlots();t?h.open({from:this.name,to:this.to,passengers:[].concat(i(t)),class:this.targetClass&&this.targetClass.split(" "),order:this.order}):this.clear()},clear:function(t){h.close({from:this.name,to:t||this.to})},mountToTarget:function(){var e=void 0,i=this.targetEl;if("string"==typeof i)e=document.querySelector(i);else{if(!(i instanceof HTMLElement))return;e=i}if(e){var o=new t(n({},d,{parent:this,propsData:{name:this.to,tag:e.tagName,attributes:r(e)}}));o.$mount(e),this.mountedComp=o}},normalizeChildren:function(t){return"function"==typeof t?t(this.slotProps):t}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e.length&&this.disabled?(this.$options.abstract=!0,e.length<=1&&this.slim?e[0]:t(n,[this.normalizeChildren(e)])):t(n,{class:"v-portal",style:"display: none",key:"v-portal-placeholder"})}};function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",v),t.component(e.portalTargetName||"PortalTarget",d)}return"undefined"!=typeof window&&window.Vue&&window.Vue.use({install:y}),{install:y,Portal:v,PortalTarget:d,Wormhole:h}}(n(144))},7304:function(t,e,n){function i(t){this.mode=o.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,n=this.data.length;e65536?(i[0]=240|(1835008&r)>>>18,i[1]=128|(258048&r)>>>12,i[2]=128|(4032&r)>>>6,i[3]=128|63&r):r>2048?(i[0]=224|(61440&r)>>>12,i[1]=128|(4032&r)>>>6,i[2]=128|63&r):r>128?(i[0]=192|(1984&r)>>>6,i[1]=128|63&r):i[0]=r,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}i.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+n][e+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=y.getLostPoint(this);(0==n||t>i)&&(t=i,e=n)}return e},createMovieClip:function(t,e,n){var i=t.createEmptyMovieClip(e,n);this.make();for(var r=0;r>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++){i=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=y.getBCHTypeInfo(n),r=0;r<15;r++){var o=!t&&1==(i>>r&1);r<6?this.modules[r][8]=o:r<8?this.modules[r+1][8]=o:this.modules[this.moduleCount-15+r][8]=o}for(r=0;r<15;r++){o=!t&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=o:r<9?this.modules[8][15-r-1+1]=o:this.modules[8][15-r-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,i=this.moduleCount-1,r=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[i][a-s]){var l=!1;o>>r&1)),y.getMask(e,i,a-s)&&(l=!l),this.modules[i][a-s]=l,-1==--r&&(o++,r=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var i=w.getRSBlocks(t,e),o=new S,a=0;a8*l)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*l+")");for(o.getLengthInBits()+4<=8*l&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*l||(o.put(r.PAD0,8),o.getLengthInBits()>=8*l));)o.put(r.PAD1,8);return r.createBytes(o,i)},r.createBytes=function(t,e){for(var n=0,i=0,r=0,o=new Array(e.length),a=new Array(e.length),s=0;s=0?p.get(f):0}}var d=0;for(h=0;h=0;)e^=y.G15<=0;)e^=y.G18<>>=1;return e},getPatternPosition:function(t){return y.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case h:return(e+n)%2==0;case c:return e%2==0;case p:return n%3==0;case f:return(e+n)%3==0;case d:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case g:return e*n%2+e*n%3==0;case m:return(e*n%2+e*n%3)%2==0;case v:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new b([1],0),n=0;n5&&(n+=3+o-5)}for(i=0;i=256;)t-=255;return _.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},x=0;x<8;x++)_.EXP_TABLE[x]=1<>>7-t%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var M=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function T(t){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},"string"==typeof t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,i=function(t,e){for(var n=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),i=1,r=0,o=0,a=M.length;o<=a;o++){var s=M[o];if(!s)throw new Error("Content too long: expected "+r+" but got "+n);switch(e){case"L":r=s[0];break;case"M":r=s[1];break;case"Q":r=s[2];break;case"H":r=s[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(n<=r)break;i++}if(i>M.length)throw new Error("Content too long");return i}(n,this.options.ecl),o=function(t){switch(t){case"L":return a;case"M":return s;case"Q":return l;case"H":return u;default:throw new Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new r(i,o),this.qrcode.addData(n),this.qrcode.make()}T.prototype.svg=function(t){var e=this.options||{},n=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var i=void 0===e.pretty||!!e.pretty,r=i?" ":"",o=i?"\r\n":"",a=e.width,s=e.height,l=n.length,u=a/(l+2*e.padding),h=s/(l+2*e.padding),c=void 0!==e.join&&!!e.join,p=void 0!==e.swap&&!!e.swap,f=void 0===e.xmlDeclaration||!!e.xmlDeclaration,d=void 0!==e.predefined&&!!e.predefined,g=d?r+''+o:"",m=r+''+o,v="",y="",_=0;_'+o:r+''+o}}c&&(v=r+'');var C="";switch(t.container){case"svg":f&&(C+=''+o),C+=''+o,C+=g+m+v,C+="";break;case"svg-viewbox":f&&(C+=''+o),C+=''+o,C+=g+m+v,C+="";break;case"g":C+=''+o,C+=g+m+v,C+="";break;default:C+=(g+m+v).replace(/^\s+/,"")}return C},T.prototype.save=function(t,e){var i=this.svg();"function"!=typeof e&&(e=function(t,e){});try{n(9951).writeFile(t,i,e)}catch(t){e(t)}},t.exports=T},1803:function(t,e){"use strict";var n;!function(){var i=e||{}||this||window;void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n),i.default=i;var r="http://www.w3.org/2000/xmlns/",o="http://www.w3.org/2000/svg",a=/url\(["']?(.+?)["']?\)/,s={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},l=function(t){return t instanceof HTMLElement||t instanceof SVGElement},u=function(t){if(!l(t))throw new Error("an HTMLElement or SVGElement is required; got "+t)},h=function(t){return new Promise((function(e,n){l(t)?e(t):n(new Error("an HTMLElement or SVGElement is required; got "+t))}))},c=function(t,e,n){var i=t.viewBox&&t.viewBox.baseVal&&t.viewBox.baseVal[n]||null!==e.getAttribute(n)&&!e.getAttribute(n).match(/%$/)&&parseInt(e.getAttribute(n))||t.getBoundingClientRect()[n]||parseInt(e.style[n])||parseInt(window.getComputedStyle(t).getPropertyValue(n));return null==i||isNaN(parseFloat(i))?0:i},p=function(t){for(var e=window.atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i),o=0;o0})).map((function(t){return s[t]})),o?o[0]:"application/octet-stream"),url:l}}}(e,i);n&&f.push(n)}else u||c.push(e.cssText)}))})),g(f).then((function(t){return c.join("\n")+t}))},y=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};i.prepareSvg=function(t,e,n){u(t);var i=e||{},a=i.left,s=void 0===a?0:a,l=i.top,h=void 0===l?0:l,p=i.width,d=i.height,g=i.scale,m=void 0===g?1:g,y=i.responsive,_=void 0!==y&&y,x=i.excludeCss,b=void 0!==x&&x;return f(t).then((function(){var i=t.cloneNode(!0);i.style.backgroundColor=(e||{}).backgroundColor||t.style.backgroundColor;var a=function(t,e,n,i){if("svg"===t.tagName)return{width:n||c(t,e,"width"),height:i||c(t,e,"height")};if(t.getBBox){var r=t.getBBox(),o=r.x,a=r.y;return{width:o+r.width,height:a+r.height}}}(t,i,p,d),l=a.width,u=a.height;if("svg"!==t.tagName){if(!t.getBBox)return;null!=i.getAttribute("transform")&&i.setAttribute("transform",i.getAttribute("transform").replace(/translate\(.*?\)/,""));var f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.appendChild(i),i=f}if(i.setAttribute("version","1.1"),i.setAttribute("viewBox",[s,h,l,u].join(" ")),i.getAttribute("xmlns")||i.setAttributeNS(r,"xmlns",o),i.getAttribute("xmlns:xlink")||i.setAttributeNS(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),_?(i.removeAttribute("width"),i.removeAttribute("height"),i.setAttribute("preserveAspectRatio","xMinYMin meet")):(i.setAttribute("width",l*m),i.setAttribute("height",u*m)),Array.from(i.querySelectorAll("foreignObject > *")).forEach((function(t){t.setAttributeNS(r,"xmlns","svg"===t.tagName?o:"http://www.w3.org/1999/xhtml")})),!b)return v(t,e).then((function(t){var e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML="";var r=document.createElement("defs");r.appendChild(e),i.insertBefore(r,i.firstChild);var o=document.createElement("div");o.appendChild(i);var a=o.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof n)return{src:a,width:l,height:u};n(a,l,u)}));var g=document.createElement("div");g.appendChild(i);var y=g.innerHTML;if("function"!=typeof n)return{src:y,width:l,height:u};n(y,l,u)}))},i.svgAsDataUri=function(t,e,n){return u(t),i.prepareSvg(t,e).then((function(t){var e=t.src,i=t.width,r=t.height,o="data:image/svg+xml;base64,"+window.btoa(decodeURIComponent(encodeURIComponent(']>'+e).replace(/%([0-9A-F]{2})/g,(function(t,e){var n=String.fromCharCode("0x"+e);return"%"===n?"%25":n}))));return"function"==typeof n&&n(o,i,r),o}))},i.svgAsPngUri=function(t,e,n){u(t);var r=e||{},o=r.encoderType,a=void 0===o?"image/png":o,s=r.encoderOptions,l=void 0===s?.8:s,h=r.canvg,c=function(t){var e=t.src,i=t.width,r=t.height,o=document.createElement("canvas"),s=o.getContext("2d"),u=window.devicePixelRatio||1;o.width=i*u,o.height=r*u,o.style.width=o.width+"px",o.style.height=o.height+"px",s.setTransform(u,0,0,u,0,0),h?h(o,e):s.drawImage(e,0,0);var c=void 0;try{c=o.toDataURL(a,l)}catch(t){if("undefined"!=typeof SecurityError&&t instanceof SecurityError||"SecurityError"===t.name)return;throw t}return"function"==typeof n&&n(c,o.width,o.height),Promise.resolve(c)};return h?i.prepareSvg(t,e).then(c):i.svgAsDataUri(t,e).then((function(t){return new Promise((function(e,n){var i=new Image;i.onload=function(){return e(c({src:i,width:i.width,height:i.height}))},i.onerror=function(){n("There was an error loading the data URI as an image on the following SVG\n"+window.atob(t.slice(26))+"Open the following link to see browser's diagnosis\n"+t)},i.src=t}))}))},i.download=function(t,e,n){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(p(e),t);else{var i=document.createElement("a");if("download"in i){i.download=t,i.style.display="none",document.body.appendChild(i);try{var r=p(e),o=URL.createObjectURL(r);i.href=o,i.onclick=function(){return requestAnimationFrame((function(){return URL.revokeObjectURL(o)}))}}catch(t){i.href=e}i.click(),document.body.removeChild(i)}else n&&n.popup&&(n.popup.document.title=t,n.popup.location.replace(e))}},i.saveSvg=function(t,e,n){var r=y();return h(t).then((function(t){return i.svgAsDataUri(t,n||{})})).then((function(t){return i.download(e,t,r)}))},i.saveSvgAsPng=function(t,e,n){var r=y();return h(t).then((function(t){return i.svgAsPngUri(t,n||{})})).then((function(t){return i.download(e,t,r)}))}}()},1223:function(t,e,n){window.eve=n(1530);var i=function(t){var e,n={},i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16,(new Date).getTime()),!0},r=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},o=0,a="M"+(+new Date).toString(36),s=Date.now||function(){return+new Date},l=function(t){var e=this;if(null==t)return e.s;var n=e.s-t;e.b+=e.dur*n,e.B+=e.dur*n,e.s=t},u=function(t){if(null==t)return this.spd;this.spd=t},h=function(t){var e=this;if(null==t)return e.dur;e.s=e.s*t/e.dur,e.dur=t},c=function(){var e=this;delete n[e.id],e.update(),t("mina.stop."+e.id,e)},p=function(){var t=this;t.pdif||(delete n[t.id],t.update(),t.pdif=t.get()-t.b)},f=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,n[t.id]=t,g())},d=function(){var t,e=this;if(r(e.start)){t=[];for(var n=0,i=e.start.length;n=1&&(delete n[a],s.s=1,o--,function(e){setTimeout((function(){t("mina.finish."+e.id,e)}))}(s)),s.update()}e=!!o&&i(g)}else e||(e=i(g))},m=function(t,e,i,r,s,v,y){var _={id:a+(o++).toString(36),start:t,end:e,b:i,s:0,dur:r-i,spd:1,get:s,set:v,easing:y||m.linear,status:l,speed:u,duration:h,stop:c,pause:p,resume:f,update:d};n[_.id]=_;var x,b=0;for(x in n)if(n.hasOwnProperty(x)&&2==++b)break;return 1==b&&g(),_};return m.time=s,m.getById=function(t){return n[t]||null},m.linear=function(t){return t},m.easeout=function(t){return Math.pow(t,1.7)},m.easein=function(t){return Math.pow(t,.48)},m.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),i=n-e,r=-n-e,o=Math.pow(Math.abs(i),1/3)*(i<0?-1:1)+Math.pow(Math.abs(r),1/3)*(r<0?-1:1)+.5;return 3*(1-o)*o*o+o*o*o},m.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},m.backout=function(t){if(0==t)return 0;var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},m.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},m.bounce=function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},window.mina=m,m}("undefined"==typeof eve?function(){}:eve),r=function(t){function e(t,i){if(t){if(t.nodeType)return Z(t);if(k(t,"array")&&e.set)return e.set.apply(e,t);if(t instanceof j)return t;if(null==i)try{return Z(t=n.doc.querySelector(String(t)))}catch(t){return null}}return new W(t=null==t?"100%":t,i=null==i?"100%":i)}e.version="0.5.1",e.toString=function(){return"Snap v"+this.version},e._={};var n={win:t.window,doc:t.window.document};e._.glob=n;var i,r,o="hasOwnProperty",a=String,s=parseFloat,l=parseInt,u=Math,h=u.max,c=u.min,p=u.abs,f=(u.pow,u.PI),d=(u.round,Object.prototype.toString),m=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,v=(e._.separator=/[,\s]+/,/[\s]*,[\s]*/),y={hs:1,rg:1},_=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,x=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,b=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,w=0,S="S"+(+new Date).toString(36),M=function(t){return(t&&t.type?t.type:"")+S+(w++).toString(36)},T="http://www.w3.org/1999/xlink",C="http://www.w3.org/2000/svg",A={};e.url=function(t){return"url('#"+t+"')"};function I(t,e){if(e){if("#text"==t&&(t=n.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=n.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=I(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(T,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(C,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var i in e)if(e[o](i)){var r=a(e[i]);r?"xlink:"==i.substring(0,6)?t.setAttributeNS(T,i.substring(6),r):"xml:"==i.substring(0,4)?t.setAttributeNS(C,i.substring(4),r):t.setAttribute(i,r):t.removeAttribute(i)}}else"text"in e&&(t.nodeValue=e.text)}else t=n.doc.createElementNS(C,t);return t}function k(t,e){return"finite"==(e=a.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||d.call(t).slice(8,-1).toLowerCase()==e)}function D(t,e,n){return function i(){var r=Array.prototype.slice.call(arguments,0),a=r.join("␀"),s=i.cache=i.cache||{},l=i.count=i.count||[];return s[o](a)?(function(t,e){for(var n=0,i=t.length;n=1e3&&delete s[l.shift()],l.push(a),s[a]=t.apply(e,r),n?n(s[a]):s[a])}}function P(t){return t%360*f/180}e._.$=I,e._.id=M,e.format=(i=/\{([^\}]+)\}/g,r=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return a(t).replace(i,(function(t,n){return function(t,e,n){var i=n;return e.replace(r,(function(t,e,n,r,o){e=e||r,i&&(e in i&&(i=i[e]),"function"==typeof i&&o&&(i=i()))})),i=(null==i||i==n?t:i)+""}(t,n,e)}))}),e._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n=new e.constructor;for(var i in e)e[o](i)&&(n[i]=t(e[i]));return n},e._.cacher=D,e.rad=P,e.deg=function(t){return 180*t/f%360},e.sin=function(t){return u.sin(e.rad(t))},e.tan=function(t){return u.tan(e.rad(t))},e.cos=function(t){return u.cos(e.rad(t))},e.asin=function(t){return e.deg(u.asin(t))},e.acos=function(t){return e.deg(u.acos(t))},e.atan=function(t){return e.deg(u.atan(t))},e.atan2=function(t){return e.deg(u.atan2(t))},e.angle=function t(e,n,i,r,o,a){if(null==o){var s=e-i,l=n-r;return s||l?(180+180*u.atan2(-l,-s)/f+360)%360:0}return t(e,n,o,a)-t(i,r,o,a)},e.len=function(t,n,i,r){return Math.sqrt(e.len2(t,n,i,r))},e.len2=function(t,e,n,i){return(t-n)*(t-n)+(e-i)*(e-i)},e.closestPoint=function(t,e,n){function i(t){var i=t.x-e,r=t.y-n;return i*i+r*r}for(var r,o,a,s,l=t.node,u=l.getTotalLength(),h=u/l.pathSegList.numberOfItems*.125,c=1/0,p=0;p<=u;p+=h)(s=i(a=l.getPointAtLength(p))).5;){var f,d,g,m,v,y;(g=o-h)>=0&&(v=i(f=l.getPointAtLength(g)))t-n)return e-r+t}return e},e.getRGB=D((function(t){if(!t||(t=a(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:R};if(!y[o](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=L(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R};var n,i,r,p,f,d,g=t.match(m);return g?(g[2]&&(r=l(g[2].substring(5),16),i=l(g[2].substring(3,5),16),n=l(g[2].substring(1,3),16)),g[3]&&(r=l((f=g[3].charAt(3))+f,16),i=l((f=g[3].charAt(2))+f,16),n=l((f=g[3].charAt(1))+f,16)),g[4]&&(d=g[4].split(v),n=s(d[0]),"%"==d[0].slice(-1)&&(n*=2.55),i=s(d[1]),"%"==d[1].slice(-1)&&(i*=2.55),r=s(d[2]),"%"==d[2].slice(-1)&&(r*=2.55),"rgba"==g[1].toLowerCase().slice(0,4)&&(p=s(d[3])),d[3]&&"%"==d[3].slice(-1)&&(p/=100)),g[5]?(d=g[5].split(v),n=s(d[0]),"%"==d[0].slice(-1)&&(n/=100),i=s(d[1]),"%"==d[1].slice(-1)&&(i/=100),r=s(d[2]),"%"==d[2].slice(-1)&&(r/=100),("deg"==d[0].slice(-3)||"°"==d[0].slice(-1))&&(n/=360),"hsba"==g[1].toLowerCase().slice(0,4)&&(p=s(d[3])),d[3]&&"%"==d[3].slice(-1)&&(p/=100),e.hsb2rgb(n,i,r,p)):g[6]?(d=g[6].split(v),n=s(d[0]),"%"==d[0].slice(-1)&&(n/=100),i=s(d[1]),"%"==d[1].slice(-1)&&(i/=100),r=s(d[2]),"%"==d[2].slice(-1)&&(r/=100),("deg"==d[0].slice(-3)||"°"==d[0].slice(-1))&&(n/=360),"hsla"==g[1].toLowerCase().slice(0,4)&&(p=s(d[3])),d[3]&&"%"==d[3].slice(-1)&&(p/=100),e.hsl2rgb(n,i,r,p)):(n=c(u.round(n),255),i=c(u.round(i),255),r=c(u.round(r),255),p=c(h(p,0),1),(g={r:n,g:i,b:r,toString:R}).hex="#"+(16777216|r|i<<8|n<<16).toString(16).slice(1),g.opacity=k(p,"finite")?p:1,g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R}}),e),e.hsb=D((function(t,n,i){return e.hsb2rgb(t,n,i).hex})),e.hsl=D((function(t,n,i){return e.hsl2rgb(t,n,i).hex})),e.rgb=D((function(t,e,n,i){if(k(i,"finite")){var r=u.round;return"rgba("+[r(t),r(e),r(n),+i.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)}));var L=function(t){var e=n.doc.getElementsByTagName("head")[0]||n.doc.getElementsByTagName("svg")[0],i="rgb(255, 0, 0)";return L=D((function(t){if("red"==t.toLowerCase())return i;e.style.color=i,e.style.color=t;var r=n.doc.defaultView.getComputedStyle(e,"").getPropertyValue("color");return r==i?null:r})),L(t)},E=function(){return"hsb("+[this.h,this.s,this.b]+")"},O=function(){return"hsl("+[this.h,this.s,this.l]+")"},R=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},N=function(t,n,i){if(null==n&&k(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,n=t.g,t=t.r),null==n&&k(t,string)){var r=e.getRGB(t);t=r.r,n=r.g,i=r.b}return(t>1||n>1||i>1)&&(t/=255,n/=255,i/=255),[t,n,i]},F=function(t,n,i,r){var o={r:t=u.round(255*t),g:n=u.round(255*n),b:i=u.round(255*i),opacity:k(r,"finite")?r:1,hex:e.rgb(t,n,i),toString:R};return k(r,"finite")&&(o.opacity=r),o};e.color=function(t){var n;return k(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.opacity=1,t.hex=n.hex):k(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.opacity=1,t.hex=n.hex):(k(t,"string")&&(t=e.getRGB(t)),k(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=R,t},e.hsb2rgb=function(t,e,n,i){var r,o,a,s,l;return k(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,i=t.o,t=t.h),s=(l=n*e)*(1-p((t=(t*=360)%360/60)%2-1)),r=o=a=n-l,F(r+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],i)},e.hsl2rgb=function(t,e,n,i){var r,o,a,s,l;return k(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),s=(l=2*e*(n<.5?n:1-n))*(1-p((t=(t*=360)%360/60)%2-1)),r=o=a=n-l/2,F(r+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],i)},e.rgb2hsb=function(t,e,n){var i,r;return t=(n=N(t,e,n))[0],e=n[1],n=n[2],{h:((0==(r=(i=h(t,e,n))-c(t,e,n))?null:i==t?(e-n)/r:i==e?(n-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/i,b:i,toString:E}},e.rgb2hsl=function(t,e,n){var i,r,o,a;return t=(n=N(t,e,n))[0],e=n[1],n=n[2],i=((r=h(t,e,n))+(o=c(t,e,n)))/2,{h:((0==(a=r-o)?null:r==t?(e-n)/a:r==e?(n-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:i<.5?a/(2*i):a/(2-2*i),l:i,toString:O}},e.parsePathString=function(t){if(!t)return null;var n=e.path(t);if(n.arr)return e.path.clone(n.arr);var i={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return k(t,"array")&&k(t[0],"array")&&(r=e.path.clone(t)),r.length||a(t).replace(_,(function(t,e,n){var o=[],a=e.toLowerCase();if(n.replace(b,(function(t,e){e&&o.push(+e)})),"m"==a&&o.length>2&&(r.push([e].concat(o.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==o.length&&r.push([e,o[0]]),"r"==a)r.push([e].concat(o));else for(;o.length>=i[a]&&(r.push([e].concat(o.splice(0,i[a]))),i[a]););})),r.toString=e.path.toString,n.arr=e.path.clone(r),r};var B=e.parseTransformString=function(t){if(!t)return null;var n=[];return k(t,"array")&&k(t[0],"array")&&(n=e.path.clone(t)),n.length||a(t).replace(x,(function(t,e,i){var r=[];e.toLowerCase();i.replace(b,(function(t,e){e&&r.push(+e)})),n.push([e].concat(r))})),n.toString=e.path.toString,n};e._.svgTransform2string=function(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,(function(t,n,i){return i=i.split(/\s*,\s*|\s+/),"rotate"==n&&1==i.length&&i.push(0,0),"scale"==n&&(i.length>2?i=i.slice(0,2):2==i.length&&i.push(0,0),1==i.length&&i.push(i[0],0,0)),"skewX"==n?e.push(["m",1,0,u.tan(P(i[0])),1,0,0]):"skewY"==n?e.push(["m",1,u.tan(P(i[0])),0,1,0,0]):e.push([n.charAt(0)].concat(i)),t})),e},e._.rgTransform=/^[a-z][\s]*-?\.?\d/i,e._.transform2matrix=function(t,n){var i=B(t),r=new e.Matrix;if(i)for(var o=0,s=i.length;o1))return eve("snap.util.getattr."+t,n).firstDefined();var u={};u[t]=e,t=u}for(var h in t)t[o](h)&&eve("snap.util.attr."+h,n,t[h]);return n},e.parse=function(t){var e=n.doc.createDocumentFragment(),i=!0,r=n.doc.createElement("div");if((t=a(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t=""+t+"",i=!1),r.innerHTML=t,t=r.getElementsByTagName("svg")[0])if(i)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new G(e)},e.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),i=n.doc.createDocumentFragment(),r=0,o=t.length;r")}else t&&(e+="/>");return e}}o.data=function(e,n){var i=g[this.id]=g[this.id]||{};if(0==arguments.length)return eve("snap.data.get."+this.id,this,i,null),i;if(1==arguments.length){if(t.is(e,"object")){for(var r in e)e.hasOwnProperty(r)&&this.data(r,e[r]);return this}return eve("snap.data.get."+this.id,this,i[e],e),i[e]}return i[e]=n,eve("snap.data.set."+this.id,this,n,e),this},o.removeData=function(t){return null==t?g[this.id]={}:g[this.id]&&delete g[this.id][t],this},o.outerSVG=o.toString=m(1),o.innerSVG=m(),o.toDataURL=function(){if(window&&window.btoa){var e=this.getBBox(),n=t.format('{contents}',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))}},r.prototype.select=o.select,r.prototype.selectAll=o.selectAll})),r.plugin((function(t,e,n,i,r){var o=Object.prototype.toString,a=String,s=Math;function l(t,e,n,i,r,a){if(null==e&&"[object SVGMatrix]"==o.call(t))return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f);null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+i,this.e=+r,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}!function(e){function n(t){return t[0]*t[0]+t[1]*t[1]}function i(t){var e=s.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,n,i,r,o){if(t&&t instanceof l)return this.add(t.a,t.b,t.c,t.d,t.e,t.f);var a=t*this.a+e*this.c,s=t*this.b+e*this.d;return this.e+=r*this.a+o*this.c,this.f+=r*this.b+o*this.d,this.c=n*this.a+i*this.c,this.d=n*this.b+i*this.d,this.a=a,this.b=s,this},l.prototype.multLeft=function(t,e,n,i,r,o){if(t&&t instanceof l)return this.multLeft(t.a,t.b,t.c,t.d,t.e,t.f);var a=t*this.a+n*this.b,s=t*this.c+n*this.d,u=t*this.e+n*this.f+r;return this.b=e*this.a+i*this.b,this.d=e*this.c+i*this.d,this.f=e*this.e+i*this.f+o,this.a=a,this.c=s,this.e=u,this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new l(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new l(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.e+=t*this.a+e*this.c,this.f+=t*this.b+e*this.d,this},e.scale=function(t,e,n,i){return null==e&&(e=t),(n||i)&&this.translate(n,i),this.a*=t,this.b*=t,this.c*=e,this.d*=e,(n||i)&&this.translate(-n,-i),this},e.rotate=function(e,n,i){e=t.rad(e),n=n||0,i=i||0;var r=+s.cos(e).toFixed(9),o=+s.sin(e).toFixed(9);return this.add(r,o,-o,r,n,i),this.add(1,0,0,1,-n,-i)},e.skewX=function(t){return this.skew(t,0)},e.skewY=function(t){return this.skew(0,t)},e.skew=function(e,n){e=e||0,n=n||0,e=t.rad(e),n=t.rad(n);var i=s.tan(e).toFixed(9),r=s.tan(n).toFixed(9);return this.add(1,r,i,1,0,0)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[a.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var r=[[this.a,this.b],[this.c,this.d]];e.scalex=s.sqrt(n(r[0])),i(r[0]),e.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*e.shear,r[1][1]-r[0][1]*e.shear],e.scaley=s.sqrt(n(r[1])),i(r[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var o=r[0][1],a=r[1][1];return a<0?(e.rotate=t.deg(s.acos(a)),o<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(s.asin(o)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:"")+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:"")+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:""))}}(l.prototype),t.Matrix=l,t.matrix=function(t,e,n,i,r,o){return new l(t,e,n,i,r,o)}})),r.plugin((function(t,e,n,i,r){var o,a=t._.make,s=t._.wrap,l=t.is,u=t._.getSomeDefs,h=/^url\((['"]?)([^)]+)\1\)$/,c=t._.$,p=t.url,f=String,d=t._.separator;function g(n){return function(i){if(eve.stop(),i instanceof r&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,u(this).appendChild(i),i=s(i)),i instanceof e)if("radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type){i.node.id||c(i.node,{id:i.id});var o=p(i.node.id)}else o=i.attr(n);else if((o=t.color(i)).error){var a=t(u(this).ownerSVGElement).gradient(i);a?(a.node.id||c(a.node,{id:a.id}),o=p(a.node.id)):o=i}else o=f(o);var l={};l[n]=o,c(this.node,l),this.node.style[n]=""}}t.deurl=function(t){var e=String(t).match(h);return e?e[2]:t},eve.on("snap.util.attr.mask",(function(t){if(t instanceof e||t instanceof r){if(eve.stop(),t instanceof r&&1==t.node.childNodes.length&&(t=t.node.firstChild,u(this).appendChild(t),t=s(t)),"mask"==t.type)var n=t;else(n=a("mask",u(this))).node.appendChild(t.node);!n.node.id&&c(n.node,{id:n.id}),c(this.node,{mask:p(n.id)})}})),o=function(t){if(t instanceof e||t instanceof r){eve.stop();for(var n,i=t.node;i;){if("clipPath"===i.nodeName){n=new e(i);break}if("svg"===i.nodeName){n=void 0;break}i=i.parentNode}n||((n=a("clipPath",u(this))).node.appendChild(t.node),!n.node.id&&c(n.node,{id:n.id})),c(this.node,{"clip-path":p(n.node.id||n.id)})}},eve.on("snap.util.attr.clip",o),eve.on("snap.util.attr.clip-path",o),eve.on("snap.util.attr.clipPath",o),eve.on("snap.util.attr.fill",g("fill")),eve.on("snap.util.attr.stroke",g("stroke"));var m=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function v(t){eve.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function y(t){for(var e=[],n=t.childNodes,i=0,r=n.length;i1&&(t=Array.prototype.slice.call(arguments,0));var e={};return a(t,"object")&&!a(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},o.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return a(t,"object")&&!a(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){var e=t._.$;function n(){return this.selectAll("stop")}function i(n,i){var r=e("stop"),o={offset:+i+"%"};n=t.color(n),o["stop-color"]=n.hex,n.opacity<1&&(o["stop-opacity"]=n.opacity),e(r,o);for(var a,s=this.stops(),l=0;li){this.node.insertBefore(r,s[l].node),a=!0;break}}return a||this.node.appendChild(r),this}function r(){if("linearGradient"==this.type){var n=e(this.node,"x1")||0,i=e(this.node,"x2")||1,r=e(this.node,"y1")||0,o=e(this.node,"y2")||0;return t._.box(n,r,math.abs(i-n),math.abs(o-r))}var a=this.node.cx||.5,s=this.node.cy||.5,l=this.node.r||0;return t._.box(a-l,s-l,2*l,2*l)}function a(e){var n=e,i=this.stops();if("string"==typeof e&&(n=eve("snap.util.grad.parse",null,"l(0,0,0,1)"+e).firstDefined().stops),t.is(n,"array")){for(var r=0;rf;)u=D(t,e,n,i,r,o,a,s,p+=(uo){if(i&&!f.start){if(p+=["C"+r((c=x(s,l,u[1],u[2],u[3],u[4],u[5],u[6],o-d)).start.x),r(c.start.y),r(c.m.x),r(c.m.y),r(c.x),r(c.y)],a)return p;f.start=p,p=["M"+r(c.x),r(c.y)+"C"+r(c.n.x),r(c.n.y),r(c.end.x),r(c.end.y),r(u[5]),r(u[6])].join(),d+=h,s=+u[5],l=+u[6];continue}if(!n&&!i)return c=x(s,l,u[1],u[2],u[3],u[4],u[5],u[6],o-d)}d+=h,s=+u[5],l=+u[6]}p+=u.shift()+u}return f.end=p,c=n?d:i?f:T(s,l,u[0],u[1],u[2],u[3],u[4],u[5],1)}),null,t._.clone)}var w=b(1),S=b(),M=b(0,1);function T(t,e,n,i,r,o,a,s,l){var u=1-l,p=d(u,3),f=d(u,2),g=l*l,m=g*l,v=t+2*l*(n-t)+g*(r-2*n+t),y=e+2*l*(i-e)+g*(o-2*i+e),_=n+2*l*(r-n)+g*(a-2*r+n),x=i+2*l*(o-i)+g*(s-2*o+i);return{x:p*t+3*f*l*n+3*u*l*l*r+m*a,y:p*e+3*f*l*i+3*u*l*l*o+m*s,m:{x:v,y:y},n:{x:_,y:x},start:{x:u*t+l*n,y:u*e+l*i},end:{x:u*r+l*a,y:u*o+l*s},alpha:90-180*h.atan2(v-_,y-x)/c}}function C(e,n,i,r,o,a,s,l){t.is(e,"array")||(e=[e,n,i,r,o,a,s,l]);var u=H.apply(null,e);return v(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)}function A(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function I(t,e){return t=v(t),A(e=v(e),t.x,t.y)||A(e,t.x2,t.y)||A(e,t.x,t.y2)||A(e,t.x2,t.y2)||A(t,e.x,e.y)||A(t,e.x2,e.y)||A(t,e.x,e.y2)||A(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}function k(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n}function D(t,e,n,i,r,o,a,s,l){null==l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var g=u*c[d]+u,m=k(g,t,n,r,a),v=k(g,e,i,o,s),y=m*m+v*v;f+=p[d]*h.sqrt(y)}return u*f}function P(t,e,n,i,r,o,a,s){if(!(f(t,n)f(r,a)||f(e,i)f(o,s))){var l=(t-n)*(o-s)-(e-i)*(r-a);if(l){var u=((t*i-e*n)*(r-a)-(t-n)*(r*s-o*a))/l,h=((t*i-e*n)*(o-s)-(e-i)*(r*s-o*a))/l,c=+u.toFixed(2),d=+h.toFixed(2);if(!(c<+p(t,n).toFixed(2)||c>+f(t,n).toFixed(2)||c<+p(r,a).toFixed(2)||c>+f(r,a).toFixed(2)||d<+p(e,i).toFixed(2)||d>+f(e,i).toFixed(2)||d<+p(o,s).toFixed(2)||d>+f(o,s).toFixed(2)))return{x:u,y:h}}}}function L(t,e,n){if(!I(C(t),C(e)))return n?0:[];for(var i=~~(D.apply(0,t)/8),r=~~(D.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u=0&&x<=1&&b>=0&&b<=1&&(n?l++:l.push({x:_.x,y:_.y,t1:x,t2:b}))}}return l}function E(t,e,n){t=W(t),e=W(e);for(var i,r,o,a,s,l,u,h,c,p,f=n?0:[],d=0,g=t.length;d180),0,s,e+n*Math.sin(-r*o)]];else l=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return l.toString=y,l}var F=t._unit2px,B={path:function(t){return t.attr("path")},circle:function(t){var e=F(t);return N(e.cx,e.cy,e.r)},ellipse:function(t){var e=F(t);return N(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=F(t);return R(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=F(t);return R(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return R(e.x,e.y,e.width,e.height)}};function z(e){var n=m(e);if(n.abs)return _(n.abs);if(o(e,"array")&&o(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var i,r=[],a=0,s=0,l=0,u=0,h=0;"M"==e[0][0]&&(l=a=+e[0][1],u=s=+e[0][2],h++,r[0]=["M",a,s]);for(var c,p,f=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),d=h,g=e.length;d1&&(i*=b=h.sqrt(b),r*=b);var w=i*i,S=r*r,M=(a==s?-1:1)*h.sqrt(g((w*S-w*x*x-S*_*_)/(w*x*x+S*_*_))),T=M*i*x/r+(e+l)/2,C=M*-r*_/i+(n+u)/2,A=h.asin(((n-C)/r).toFixed(9)),I=h.asin(((u-C)/r).toFixed(9));(A=eI&&(A-=2*c),!s&&I>A&&(I-=2*c)}var k=I-A;if(g(k)>d){var D=I,P=l,L=u;I=A+d*(s&&I>A?1:-1),v=G(l=T+i*h.cos(I),u=C+r*h.sin(I),i,r,o,0,s,P,L,[I,D,T,C])}k=I-A;var E=h.cos(A),O=h.sin(A),R=h.cos(I),N=h.sin(I),F=h.tan(k/4),B=4/3*i*F,z=4/3*r*F,V=[e,n],j=[e+B*O,n-z*E],H=[l+B*N,u-z*R],W=[l,u];if(j[0]=2*V[0]-j[0],j[1]=2*V[1]-j[1],p)return[j,H,W].concat(v);for(var Z=[],U=0,X=(v=[j,H,W].concat(v).join().split(",")).length;U7){t[e].shift();for(var n=t[e];n.length;)c[e]="A",r&&(p[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),y=f(i.length,r&&r.length||0)}},h=function(t,e,n,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],y=f(i.length,r&&r.length||0))},c=[],p=[],d="",g="",v=0,y=f(i.length,r&&r.length||0);vi;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4==i?o[3]={x:+t[0],y:+t[1]}:r-2==i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}t.path=m,t.path.getTotalLength=w,t.path.getPointAtLength=S,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return M(t,e).end;var i=M(t,n,1);return e?M(i,e).end:i},r.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},r.getPointAtLength=function(t){return S(this.attr("d"),t)},r.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=v,t.path.findDotsAtSegment=T,t.path.bezierBBox=C,t.path.isPointInsideBBox=A,t.closest=function(e,n,i,r){for(var o=100,a=v(e-o/2,n-o/2,o,o),s=[],l=i[0].hasOwnProperty("x")?function(t){return{x:i[t].x,y:i[t].y}}:function(t){return{x:i[t],y:r[t]}},u=0;o<=1e6&&!u;){for(var h=0,c=i.length;hg&&(d=g,s[h].len=g,f=s[h])}return f}},t.path.isBBoxIntersect=I,t.path.intersection=function(t,e){return E(t,e)},t.path.intersectionNumber=function(t,e){return E(t,e,1)},t.path.isPointInside=function(t,e,n){var i=O(t);return A(i,e,n)&&E(t,[["M",e,n],["H",i.x2+10]],1)%2==1},t.path.getBBox=O,t.path.get=B,t.path.toRelative=function(e){var n=m(e),i=String.prototype.toLowerCase;if(n.rel)return _(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var r=[],o=0,a=0,s=0,l=0,u=0;"M"==e[0][0]&&(s=o=e[0][1],l=a=e[0][2],u++,r.push(["M",o,a]));for(var h=u,c=e.length;h',{def:i})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,i,r,o){return null==o&&(null==r?(o=i,i=4,r="#000"):(o=r,r=i,i=4)),null==i&&(i=4),null==o&&(o=1),null==e&&(e=0,n=2),null==n&&(n=e),r=t.color(r),t.format('',{color:r,dx:e,dy:n,blur:i,opacity:o})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}})),r.plugin((function(t,e,n,i,r){var o=t._.box,a=t.is,s=/^[^a-z]*([tbmlrc])/i,l=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&a(t,"string")&&(e=t,t=null);var n=(t=t||this.paper).getBBox?t.getBBox():o(t),i=this.getBBox(),r={};switch(e=(e=e&&e.match(s))?e[1].toLowerCase():"c"){case"t":r.dx=0,r.dy=n.y-i.y;break;case"b":r.dx=0,r.dy=n.y2-i.y2;break;case"m":r.dx=0,r.dy=n.cy-i.cy;break;case"l":r.dx=n.x-i.x,r.dy=0;break;case"r":r.dx=n.x2-i.x2,r.dy=0;break;default:r.dx=n.cx-i.cx,r.dy=0}return r.toString=l,r},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}})),r.plugin((function(t,e,n,r,o){var a=e.prototype,s=t.is,l=String,u="hasOwnProperty";function h(t,e,n){return function(i){var r=i.slice(t,e);return 1==r.length&&(r=r[0]),n?n(r):r}}var c=function(t,e,n,r){"function"!=typeof n||n.length||(r=n,n=i.linear),this.attr=t,this.dur=e,n&&(this.easing=n),r&&(this.callback=r)};t._.Animation=c,t.animation=function(t,e,n,i){return new c(t,e,n,i)},a.inAnim=function(){var t=this,e=[];for(var n in t.anims)t.anims[u](n)&&function(t){e.push({anim:new c(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[n]);return e},t.animate=function(t,e,n,r,o,a){"function"!=typeof o||o.length||(a=o,o=i.linear);var s=i.time(),l=i(t,e,s,s+r,i.time,n,o);return a&&eve.once("mina.finish."+l.id,a),l},a.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e=0&&Math.floor(e)===e&&isFinite(t)}function g(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function m(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(i,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function S(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var M=/-(\w)/g,T=S((function(t){return t.replace(M,(function(t,e){return e?e.toUpperCase():""}))})),C=S((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),A=/\B([A-Z])/g,I=S((function(t){return t.replace(A,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function D(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function P(t,e){for(var n in e)t[n]=e[n];return t}function L(t){for(var e={},n=0;n0,Q=q&&q.indexOf("edge/")>0;q&&q.indexOf("android");var tt=q&&/iphone|ipad|ipod|ios/.test(q);q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q);var et,nt=q&&q.match(/firefox\/(\d+)/),it={}.watch,rt=!1;if(Y)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,ot)}catch(t){}var at=function(){return void 0===et&&(et=!Y&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),et},st=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ut,ht="undefined"!=typeof Symbol&<(Symbol)&&"undefined"!=typeof Reflect&<(Reflect.ownKeys);ut="undefined"!=typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=null;function pt(){return ct&&{proxy:ct}}function ft(t){void 0===t&&(t=null),t||ct&&ct._scope.off(),ct=t,t&&t._scope.on()}var dt=function(){function t(t,e,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),gt=function(t){void 0===t&&(t="");var e=new dt;return e.text=t,e.isComment=!0,e};function mt(t){return new dt(void 0,void 0,void 0,String(t))}function vt(t){var e=new dt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var yt=0,_t=[],xt=function(){for(var t=0;t<_t.length;t++){var e=_t[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}_t.length=0},bt=function(){function t(){this._pending=!1,this.id=yt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,_t.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,i=e.length;n1)return n&&u(e)?e.call(i):e}else 0}var De=S((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}}));function Pe(t,e){function n(){var t=n.fns;if(!r(t))return Mn(t,null,arguments,e,"v-on handler");for(var i=t.slice(),o=0;o0&&(Ne((i=Fe(i,"".concat(e||"","_").concat(n)))[0])&&Ne(h)&&(c[u]=mt(h.text+i[0].text),i.shift()),c.push.apply(c,i)):l(i)?Ne(h)?c[u]=mt(h.text+i):""!==i&&c.push(mt(i)):Ne(i)&&Ne(h)?c[u]=mt(h.text+i.text):(s(t._isVList)&&a(i.tag)&&o(i.key)&&a(e)&&(i.key="__vlist".concat(e,"_").concat(n,"__")),c.push(i)));return c}function Be(t,e){var n,i,o,s,l=null;if(r(t)||"string"==typeof t)for(l=new Array(t.length),n=0,i=t.length;n0,s=e?!!e.$stable:!a,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==i&&l===r.$key&&!a&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=rn(t,n,u,e[u]))}else o={};for(var h in n)h in o||(o[h]=on(n,h));return e&&Object.isExtensible(e)&&(e._normalized=o),U(o,"$stable",s),U(o,"$key",l),U(o,"$hasNormal",a),o}function rn(t,e,n,i){var o=function(){var e=ct;ft(t);var n=arguments.length?i.apply(null,arguments):i({}),o=(n=n&&"object"==typeof n&&!r(n)?[n]:Re(n))&&n[0];return ft(e),n&&(!o||1===n.length&&o.isComment&&!en(o))?void 0:n};return i.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function on(t,e){return function(){return t[e]}}function an(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};U(e,"_v_attr_proxy",!0),sn(e,t.$attrs,i,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||sn(t._listenersProxy={},t.$listeners,i,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||un(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:k(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return ee(t,e,n)}))}}}function sn(t,e,n,i,r){var o=!1;for(var a in e)a in t?e[a]!==n[a]&&(o=!0):(o=!0,ln(t,a,i,r));for(var a in t)a in e||(o=!0,delete t[a]);return o}function ln(t,e,n,i){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[i][e]}})}function un(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function hn(){return fn().slots}function cn(){return fn().attrs}function pn(){return fn().listeners}function fn(){var t=ct;return t._setupContext||(t._setupContext=an(t))}function dn(t,e){var n=r(t)?t.reduce((function(t,e){return t[e]={},t}),{}):t;for(var i in e){var o=n[i];o?r(o)||u(o)?n[i]={type:o,default:e[i]}:o.default=e[i]:null===o&&(n[i]={default:e[i]})}return n}var gn=null;function mn(t,e){return(t.__esModule||ht&&"Module"===t[Symbol.toStringTag])&&(t=t.default),h(t)?e.extend(t):t}function vn(t){if(r(t))for(var e=0;edocument.createEvent("Event").timeStamp&&(Ti=function(){return Ci.now()})}var Ai=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Ii(){var t,e;for(Mi=Ti(),wi=!0,yi.sort(Ai),Si=0;SiSi&&yi[n].id>t.id;)n--;yi.splice(n+1,0,t)}else yi.push(t);bi||(bi=!0,Nn(Ii))}}function Di(t,e){if(t){for(var n=Object.create(null),i=ht?Reflect.ownKeys(t):Object.keys(t),r=0;r-1)if(o&&!w(r,"default"))a=!1;else if(""===a||a===I(t)){var l=Ji(String,r.type);(l<0||s-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function fr(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&dr(n,o,i,r)}}}function dr(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,x(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=sr++,e._isVue=!0,e.__v_skip=!0,e._scope=new Se(!0),e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Ui(lr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&ci(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Qe(e._renderChildren,r),t.$scopedSlots=n?nn(t.$parent,n.data.scopedSlots,t.$slots):i,t._c=function(e,n,i,r){return xn(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return xn(t,e,n,i,r,!0)};var o=n&&n.data;Ot(t,"$attrs",o&&o.attrs||i,null,!0),Ot(t,"$listeners",e._parentListeners||i,null,!0)}(e),vi(e,"beforeCreate",void 0,!1),function(t){var e=Di(t.$options.inject,t);e&&(Dt(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),Dt(!0))}(e),er(e),function(t){var e=t.$options.provide;if(e){var n=u(e)?e.call(t):e;if(!h(n))return;for(var i=Ie(t),r=ht?Reflect.ownKeys(n):Object.keys(n),o=0;o1?D(n):n;for(var i=D(arguments,1),r='event handler for "'.concat(t,'"'),o=0,a=n.length;oparseInt(this.max)&&dr(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)dr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){fr(t,(function(t){return pr(e,t)}))})),this.$watch("exclude",(function(e){fr(t,(function(t){return!pr(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=vn(t),n=e&&e.componentOptions;if(n){var i=cr(n),r=this.include,o=this.exclude;if(r&&(!i||!pr(r,i))||o&&i&&pr(o,i))return e;var a=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,x(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:zi,extend:P,mergeOptions:Ui,defineReactive:Ot},t.set=Rt,t.delete=Nt,t.nextTick=Nn,t.observable=function(t){return Et(t),t},t.options=Object.create(null),j.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,mr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=D(arguments,1);return n.unshift(this),u(t.install)?t.install.apply(t,n):u(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Ui(this.options,t),this}}(t),hr(t),function(t){j.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&u(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(ur),Object.defineProperty(ur.prototype,"$isServer",{get:at}),Object.defineProperty(ur.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ur,"FunctionalRenderContext",{value:Pi}),ur.version=ti;var vr=y("style,class"),yr=y("input,textarea,option,select,progress"),_r=y("contenteditable,draggable,spellcheck"),xr=y("events,caret,typing,plaintext-only"),br=function(t,e){return Cr(e)||"false"===e?"false":"contenteditable"===t&&xr(e)?e:"true"},wr=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Sr="http://www.w3.org/1999/xlink",Mr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Tr=function(t){return Mr(t)?t.slice(6,t.length):""},Cr=function(t){return null==t||!1===t};function Ar(t){for(var e=t.data,n=t,i=t;a(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=Ir(i.data,e));for(;a(n=n.parent);)n&&n.data&&(e=Ir(e,n.data));return function(t,e){if(a(t)||a(e))return kr(t,Dr(e));return""}(e.staticClass,e.class)}function Ir(t,e){return{staticClass:kr(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function kr(t,e){return t?e?t+" "+e:t:e||""}function Dr(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i-1?to(t,e,n):wr(e)?Cr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):_r(e)?t.setAttribute(e,br(e,n)):Mr(e)?Cr(n)?t.removeAttributeNS(Sr,Tr(e)):t.setAttributeNS(Sr,e,n):to(t,e,n)}function to(t,e,n){if(Cr(n))t.removeAttribute(e);else{if(K&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var eo={create:Jr,update:Jr};function no(t,e){var n=e.elm,i=e.data,r=t.data;if(!(o(i.staticClass)&&o(i.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=Ar(e),l=n._transitionClasses;a(l)&&(s=kr(s,Dr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var io,ro={create:no,update:no},oo="__r",ao="__c";function so(t,e,n){var i=io;return function r(){null!==e.apply(null,arguments)&&ho(t,r,n,i)}}var lo=In&&!(nt&&Number(nt[1])<=53);function uo(t,e,n,i){if(lo){var r=Mi,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}io.addEventListener(t,e,rt?{capture:n,passive:i}:n)}function ho(t,e,n,i){(i||io).removeEventListener(t,e._wrapper||e,n)}function co(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},i=t.data.on||{};io=e.elm||t.elm,function(t){if(a(t[oo])){var e=K?"change":"input";t[e]=[].concat(t[oo],t[e]||[]),delete t[oo]}a(t[ao])&&(t.change=[].concat(t[ao],t.change||[]),delete t[ao])}(n),Le(n,i,uo,ho,so,e.context),io=void 0}}var po,fo={create:co,update:co,destroy:function(t){return co(t,jr)}};function go(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,i,r=e.elm,l=t.data.domProps||{},u=e.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=e.data.domProps=P({},u)),l)n in u||(r[n]="");for(n in u){if(i=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===l[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var h=o(i)?"":String(i);mo(r,h)&&(r.value=h)}else if("innerHTML"===n&&Er(r.tagName)&&o(r.innerHTML)){(po=po||document.createElement("div")).innerHTML="".concat(i,"");for(var c=po.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;c.firstChild;)r.appendChild(c.firstChild)}else if(i!==l[n])try{r[n]=i}catch(t){}}}}function mo(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(a(i)){if(i.number)return v(n)!==v(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var vo={create:go,update:go},yo=S((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function _o(t){var e=xo(t.style);return t.staticStyle?P(t.staticStyle,e):e}function xo(t){return Array.isArray(t)?L(t):"string"==typeof t?yo(t):t}var bo,wo=/^--/,So=/\s*!important$/,Mo=function(t,e,n){if(wo.test(e))t.style.setProperty(e,n);else if(So.test(n))t.style.setProperty(I(e),n.replace(So,""),"important");else{var i=Co(e);if(Array.isArray(n))for(var r=0,o=n.length;r-1?e.split(ko).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Po(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ko).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Lo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&P(e,Eo(t.name||"v")),P(e,t),e}return"string"==typeof t?Eo(t):void 0}}var Eo=S((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),Oo=Y&&!J,Ro="transition",No="animation",Fo="transition",Bo="transitionend",zo="animation",Vo="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Fo="WebkitTransition",Bo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(zo="WebkitAnimation",Vo="webkitAnimationEnd"));var jo=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Go(t){jo((function(){jo(t)}))}function Ho(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Do(t,e))}function Wo(t,e){t._transitionClasses&&x(t._transitionClasses,e),Po(t,e)}function Zo(t,e,n){var i=Xo(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Ro?Bo:Vo,l=0,u=function(){t.removeEventListener(s,h),n()},h=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l0&&(n=Ro,h=a,c=o.length):e===No?u>0&&(n=No,h=u,c=l.length):c=(n=(h=Math.max(a,u))>0?a>u?Ro:No:null)?n===Ro?o.length:l.length:0,{type:n,timeout:h,propCount:c,hasTransform:n===Ro&&Uo.test(i[Fo+"Property"])}}function $o(t,e){for(;t.length1}function ta(t,e){!0!==e.data.show&&qo(e)}var ea=function(t){var e,n,i={},u=t.modules,h=t.nodeOps;for(e=0;ed?x(t,o(n[v+1])?null:n[v+1].elm,n,f,v,i):f>v&&w(e,c,d)}(c,g,v,n,u):a(v)?(a(t.text)&&h.setTextContent(c,""),x(c,null,v,0,v.length-1,n)):a(g)?w(g,0,g.length-1):a(t.text)&&h.setTextContent(c,""):t.text!==e.text&&h.setTextContent(c,e.text),a(d)&&a(f=d.hook)&&a(f=f.postpatch)&&f(t,e)}}}function C(t,e,n){if(s(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1,a.selected!==o&&(a.selected=o);else if(N(aa(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function oa(t,e){return e.every((function(e){return!N(e,t)}))}function aa(t){return"_value"in t?t._value:t.value}function sa(t){t.target.composing=!0}function la(t){t.target.composing&&(t.target.composing=!1,ua(t.target,"input"))}function ua(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ha(t){return!t.componentInstance||t.data&&t.data.transition?t:ha(t.componentInstance._vnode)}var ca={bind:function(t,e,n){var i=e.value,r=(n=ha(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,qo(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=ha(n)).data&&n.data.transition?(n.data.show=!0,i?qo(n,(function(){t.style.display=t.__vOriginalDisplay})):Ko(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},pa={model:na,show:ca},fa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function da(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?da(vn(e.children)):t}function ga(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var i in r)e[T(i)]=r[i];return e}function ma(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var va=function(t){return t.tag||en(t)},ya=function(t){return"show"===t.name},_a={name:"transition",props:fa,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(va)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=da(r);if(!o)return r;if(this._leaving)return ma(t,r);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:l(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=ga(this),u=this._vnode,h=da(u);if(o.data.directives&&o.data.directives.some(ya)&&(o.data.show=!0),h&&h.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,h)&&!en(h)&&(!h.componentInstance||!h.componentInstance._vnode.isComment)){var c=h.data.transition=P({},s);if("out-in"===i)return this._leaving=!0,Ee(c,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ma(t,r);if("in-out"===i){if(en(o))return u;var p,f=function(){p()};Ee(s,"afterEnter",f),Ee(s,"enterCancelled",f),Ee(c,"delayLeave",(function(t){p=t}))}}return r}}},xa=P({tag:String,moveClass:String},fa);delete xa.mode;var ba={props:xa,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=fi(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=ga(this),s=0;s-1?Rr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Rr[t]=/HTMLUnknownElement/.test(e.toString())},P(ur.options.directives,pa),P(ur.options.components,Ta),ur.prototype.__patch__=Y?ea:E,ur.prototype.$mount=function(t,e){return function(t,e,n){var i;t.$el=e,t.$options.render||(t.$options.render=gt),vi(t,"beforeMount"),i=function(){t._update(t._render(),n)},new si(t,i,E,{before:function(){t._isMounted&&!t._isDestroyed&&vi(t,"beforeUpdate")}},!0),n=!1;var r=t._preWatchers;if(r)for(var o=0;o-1&&e.splice(n,1)}}function g(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),m(t,n,e)}function m(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,a={};o(r,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:a}),c.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),c.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=y(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){c.set(s,l,i.state)}))}var u=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=_(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=_(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 y(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,u)})),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,u)})),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,u)})),i.forEachChild((function(i,o){v(t,e,n.concat(o),i,r)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function _(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function x(t){c&&t===c||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c=t)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(t){0},p.prototype.commit=function(t,e,n){var i=this,r=_(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)})))},p.prototype.dispatch=function(t,e){var n=this,i=_(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(t){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(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},p.prototype.subscribe=function(t,e){return d(t,this._subscribers,e)},p.prototype.subscribeAction=function(t,e){return d("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},p.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},p.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},p.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),m(this,this.state)},p.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=y(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])})),g(this)},p.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},p.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},p.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(p.prototype,f);var b=C((function(t,e){var n={};return T(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=A(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=C((function(t,e){var n={};return T(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=A(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})),S=C((function(t,e){var n={};return T(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),M=C((function(t,e){var n={};return T(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=A(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 T(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){return t._modulesNamespaceMap[n]}function I(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(n){t.log(e)}}function k(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function D(){var t=new Date;return" @ "+P(t.getHours(),2)+":"+P(t.getMinutes(),2)+":"+P(t.getSeconds(),2)+"."+P(t.getMilliseconds(),3)}function P(t,e){return n="0",i=e-t.toString().length,new Array(i+1).join(n)+t;var n,i}var L={Store:p,install:x,version:"3.6.2",mapState:b,mapMutations:w,mapGetters:S,mapActions:M,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:S.bind(null,t),mapMutations:w.bind(null,t),mapActions:M.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 i=t.transformer;void 0===i&&(i=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 u=t.logActions;void 0===u&&(u=!0);var h=t.logger;return void 0===h&&(h=console),function(t){var c=r(t.state);void 0!==h&&(l&&t.subscribe((function(t,a){var s=r(a);if(n(t,c,s)){var l=D(),u=o(t),p="mutation "+t.type+l;I(h,p,e),h.log("%c prev state","color: #9E9E9E; font-weight: bold",i(c)),h.log("%c mutation","color: #03A9F4; font-weight: bold",u),h.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),k(h)}c=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var i=D(),r=s(t),o="action "+t.type+i;I(h,o,e),h.log("%c action","color: #03A9F4; font-weight: bold",r),k(h)}})))}}};e.ZP=L},7066:function(t,e,n){"use strict";n.d(e,{Z:function(){return Se}});var i={};function r(t,e){return function(){return t.apply(e,arguments)}}n.r(i),n.d(i,{hasBrowserEnv:function(){return ft},hasStandardBrowserEnv:function(){return gt},hasStandardBrowserWebWorkerEnv:function(){return mt},navigator:function(){return dt},origin:function(){return vt}});const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,s=(l=Object.create(null),t=>{const e=o.call(t);return l[e]||(l[e]=e.slice(8,-1).toLowerCase())});var l;const u=t=>(t=t.toLowerCase(),e=>s(e)===t),h=t=>e=>typeof e===t,{isArray:c}=Array,p=h("undefined");const f=u("ArrayBuffer");const d=h("string"),g=h("function"),m=h("number"),v=t=>null!==t&&"object"==typeof t,y=t=>{if("object"!==s(t))return!1;const e=a(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},_=u("Date"),x=u("File"),b=u("Blob"),w=u("FileList"),S=u("URLSearchParams"),[M,T,C,A]=["ReadableStream","Request","Response","Headers"].map(u);function I(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let i,r;if("object"!=typeof t&&(t=[t]),c(t))for(i=0,r=t.length;i0;)if(i=n[r],e===i.toLowerCase())return i;return null}const D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=t=>!p(t)&&t!==D;const L=(E="undefined"!=typeof Uint8Array&&a(Uint8Array),t=>E&&t instanceof E);var E;const O=u("HTMLFormElement"),R=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),N=u("RegExp"),F=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};I(n,((n,r)=>{let o;!1!==(o=e(n,r,t))&&(i[r]=o||n)})),Object.defineProperties(t,i)},B="abcdefghijklmnopqrstuvwxyz",z="0123456789",V={DIGIT:z,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+z};const j=u("AsyncFunction"),G=(H="function"==typeof setImmediate,W=g(D.postMessage),H?setImmediate:W?(Z=`axios@${Math.random()}`,U=[],D.addEventListener("message",(({source:t,data:e})=>{t===D&&e===Z&&U.length&&U.shift()()}),!1),t=>{U.push(t),D.postMessage(Z,"*")}):t=>setTimeout(t));var H,W,Z,U;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(D):"undefined"!=typeof process&&process.nextTick||G;var $={isArray:c,isArrayBuffer:f,isBuffer:function(t){return null!==t&&!p(t)&&null!==t.constructor&&!p(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=s(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),e},isString:d,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:v,isPlainObject:y,isReadableStream:M,isRequest:T,isResponse:C,isHeaders:A,isUndefined:p,isDate:_,isFile:x,isBlob:b,isRegExp:N,isFunction:g,isStream:t=>v(t)&&g(t.pipe),isURLSearchParams:S,isTypedArray:L,isFileList:w,forEach:I,merge:function t(){const{caseless:e}=P(this)&&this||{},n={},i=(i,r)=>{const o=e&&k(n,r)||r;y(n[o])&&y(i)?n[o]=t(n[o],i):y(i)?n[o]=t({},i):c(i)?n[o]=i.slice():n[o]=i};for(let t=0,e=arguments.length;t(I(e,((e,i)=>{n&&g(e)?t[i]=r(e,n):t[i]=e}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,i)=>{let r,o,s;const l={};if(e=e||{},null==t)return e;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)s=r[o],i&&!i(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==n&&a(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:u,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return-1!==i&&i===n},toArray:t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const n=i.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const i=[];for(;null!==(n=t.exec(e));)i.push(n);return i},isHTMLForm:O,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:F,freezeMethods:t=>{F(t,((e,n)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=t[n];g(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},i=t=>{t.forEach((t=>{n[t]=!0}))};return c(t)?i(t):i(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:k,global:D,isContextDefined:P,ALPHABET:V,generateString:(t=16,e=V.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n},isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,i)=>{if(v(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const r=c(t)?[]:{};return I(t,((t,e)=>{const o=n(t,i+1);!p(o)&&(r[e]=o)})),e[i]=void 0,r}}return t};return n(t,0)},isAsyncFn:j,isThenable:t=>t&&(v(t)||g(t))&&g(t.then)&&g(t.catch),setImmediate:G,asap:X};function Y(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}$.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const q=Y.prototype,K={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{K[t]={value:t}})),Object.defineProperties(Y,K),Object.defineProperty(q,"isAxiosError",{value:!0}),Y.from=(t,e,n,i,r,o)=>{const a=Object.create(q);return $.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Y.call(a,t.message,e,n,i,r),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var J=Y;function Q(t){return $.isPlainObject(t)||$.isArray(t)}function tt(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function et(t,e,n){return t?t.concat(e).map((function(t,e){return t=tt(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const nt=$.toFlatObject($,{},null,(function(t){return/^is[A-Z]/.test(t)}));var it=function(t,e,n){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const i=(n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!$.isUndefined(e[t])}))).metaTokens,r=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(r))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if($.isDate(t))return t.toISOString();if(!s&&$.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(t)||$.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,r){let s=t;if(t&&!r&&"object"==typeof t)if($.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if($.isArray(t)&&function(t){return $.isArray(t)&&!t.some(Q)}(t)||($.isFileList(t)||$.endsWith(n,"[]"))&&(s=$.toArray(t)))return n=tt(n),s.forEach((function(t,i){!$.isUndefined(t)&&null!==t&&e.append(!0===a?et([n],i,o):null===a?n:n+"[]",l(t))})),!1;return!!Q(t)||(e.append(et(r,n,o),l(t)),!1)}const h=[],c=Object.assign(nt,{defaultVisitor:u,convertValue:l,isVisitable:Q});if(!$.isObject(t))throw new TypeError("data must be an object");return function t(n,i){if(!$.isUndefined(n)){if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+i.join("."));h.push(n),$.forEach(n,(function(n,o){!0===(!($.isUndefined(n)||null===n)&&r.call(e,n,$.isString(o)?o.trim():o,i,c))&&t(n,i?i.concat(o):[o])})),h.pop()}}(t),e};function rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function ot(t,e){this._pairs=[],t&&it(t,this,e)}const at=ot.prototype;at.append=function(t,e){this._pairs.push([t,e])},at.toString=function(t){const e=t?function(e){return t.call(this,e,rt)}:rt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var st=ot;function lt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ut(t,e,n){if(!e)return t;const i=n&&n.encode||lt;$.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(o=r?r(e,n):$.isURLSearchParams(e)?e.toString():new st(e,n).toString(i),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var ht=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:st,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ft="undefined"!=typeof window&&"undefined"!=typeof document,dt="object"==typeof navigator&&navigator||void 0,gt=ft&&(!dt||["ReactNative","NativeScript","NS"].indexOf(dt.product)<0),mt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,vt=ft&&window.location.href||"http://localhost";var yt={...i,...pt};var _t=function(t){function e(t,n,i,r){let o=t[r++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=r>=t.length;if(o=!o&&$.isArray(i)?i.length:o,s)return $.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&$.isObject(i[o])||(i[o]=[]);return e(t,n,i[o],r)&&$.isArray(i[o])&&(i[o]=function(t){const e={},n=Object.keys(t);let i;const r=n.length;let o;for(i=0;i{e(function(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,n,0)})),n}return null};const xt={transitional:ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=$.isObject(t);r&&$.isHTMLForm(t)&&(t=new FormData(t));if($.isFormData(t))return i?JSON.stringify(_t(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return it(t,new yt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return yt.isNode&&$.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=$.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return it(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),function(t,e,n){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||xt.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(n&&!this.responseType||i)){const n=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],(t=>{xt.headers[t]={}}));var bt=xt;const wt=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const St=Symbol("internals");function Mt(t){return t&&String(t).trim().toLowerCase()}function Tt(t){return!1===t||null==t?t:$.isArray(t)?t.map(Tt):String(t)}function Ct(t,e,n,i,r){return $.isFunction(i)?i.call(this,e,n):(r&&(e=n),$.isString(e)?$.isString(i)?-1!==e.indexOf(i):$.isRegExp(i)?i.test(e):void 0:void 0)}class At{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function r(t,e,n){const r=Mt(e);if(!r)throw new Error("header name must be a non-empty string");const o=$.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||e]=Tt(t))}const o=(t,e)=>$.forEach(t,((t,n)=>r(t,n,e)));if($.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if($.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const e={};let n,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!n||e[n]&&wt[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e})(t),e);else if($.isHeaders(t))for(const[e,i]of t.entries())r(i,e,n);else null!=t&&r(e,t,n);return this}get(t,e){if(t=Mt(t)){const n=$.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}(t);if($.isFunction(e))return e.call(this,t,n);if($.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Mt(t)){const n=$.findKey(this,t);return!(!n||void 0===this[n]||e&&!Ct(0,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function r(t){if(t=Mt(t)){const r=$.findKey(n,t);!r||e&&!Ct(0,n[r],r,e)||(delete n[r],i=!0)}}return $.isArray(t)?t.forEach(r):r(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const r=e[n];t&&!Ct(0,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const e=this,n={};return $.forEach(this,((i,r)=>{const o=$.findKey(n,r);if(o)return e[o]=Tt(i),void delete e[r];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete e[r],e[a]=Tt(i),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return $.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&$.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[St]=this[St]={accessors:{}}).accessors,n=this.prototype;function i(t){const i=Mt(t);e[i]||(!function(t,e){const n=$.toCamelCase(" "+e);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+n,{value:function(t,n,r){return this[i].call(this,e,t,n,r)},configurable:!0})}))}(n,t),e[i]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(At.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),$.freezeMethods(At);var It=At;function kt(t,e){const n=this||bt,i=e||n,r=It.from(i.headers);let o=i.data;return $.forEach(t,(function(t){o=t.call(n,o,r.normalize(),e?e.status:void 0)})),r.normalize(),o}function Dt(t){return!(!t||!t.__CANCEL__)}function Pt(t,e,n){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,n),this.name="CanceledError"}$.inherits(Pt,J,{__CANCEL__:!0});var Lt=Pt;function Et(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}var Ot=function(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),u=i[a];r||(r=l),n[o]=s,i[o]=l;let h=a,c=0;for(;h!==o;)c+=n[h++],h%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),l-r{r=o,n=null,i&&(clearTimeout(i),i=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),s=e-r;s>=o?a(t,e):(n=t,i||(i=setTimeout((()=>{i=null,a(n)}),o-s)))},()=>n&&a(n)]};const Nt=(t,e,n=3)=>{let i=0;const r=Ot(50,250);return Rt((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-i,l=r(s);i=o;t({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})}),n)},Ft=(t,e)=>{const n=null!=t;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},Bt=t=>(...e)=>$.asap((()=>t(...e)));var zt=yt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,yt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Vt=yt.hasStandardBrowserEnv?{write(t,e,n,i,r,o){const a=[t+"="+encodeURIComponent(e)];$.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$.isString(i)&&a.push("path="+i),$.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Gt=t=>t instanceof It?{...t}:t;function Ht(t,e){e=e||{};const n={};function i(t,e,n,i){return $.isPlainObject(t)&&$.isPlainObject(e)?$.merge.call({caseless:i},t,e):$.isPlainObject(e)?$.merge({},e):$.isArray(e)?e.slice():e}function r(t,e,n,r){return $.isUndefined(e)?$.isUndefined(t)?void 0:i(void 0,t,0,r):i(t,e,0,r)}function o(t,e){if(!$.isUndefined(e))return i(void 0,e)}function a(t,e){return $.isUndefined(e)?$.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function s(n,r,o){return o in e?i(n,r):o in t?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>r(Gt(t),Gt(e),0,!0)};return $.forEach(Object.keys(Object.assign({},t,e)),(function(i){const o=l[i]||r,a=o(t[i],e[i],i);$.isUndefined(a)&&o!==s||(n[i]=a)})),n}var Wt=t=>{const e=Ht({},t);let n,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=e;if(e.headers=s=It.from(s),e.url=ut(jt(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$.isFormData(i))if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(yt.hasStandardBrowserEnv&&(r&&$.isFunction(r)&&(r=r(e)),r||!1!==r&&zt(e.url))){const t=o&&a&&Vt.read(a);t&&s.set(o,t)}return e};var Zt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const i=Wt(t);let r=i.data;const o=It.from(i.headers).normalize();let a,s,l,u,h,{responseType:c,onUploadProgress:p,onDownloadProgress:f}=i;function d(){u&&u(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const i=It.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Et((function(t){e(t),d()}),(function(t){n(t),d()}),{data:c&&"text"!==c&&"json"!==c?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:t,request:g}),g=null}g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,t,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||ct;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),n(new J(e,r.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,g)),g=null},void 0===r&&o.setContentType(null),"setRequestHeader"in g&&$.forEach(o.toJSON(),(function(t,e){g.setRequestHeader(e,t)})),$.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),c&&"json"!==c&&(g.responseType=i.responseType),f&&([l,h]=Nt(f,!0),g.addEventListener("progress",l)),p&&g.upload&&([s,u]=Nt(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(a=e=>{g&&(n(!e||e.type?new Lt(null,t,g):e),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(i.url);v&&-1===yt.protocols.indexOf(v)?n(new J("Unsupported protocol "+v+":",J.ERR_BAD_REQUEST,t)):g.send(r||null)}))};var Ut=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,i=new AbortController;const r=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;i.abort(e instanceof J?e:new Lt(e instanceof Error?e.message:e))}};let o=e&&setTimeout((()=>{o=null,r(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))}),e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)})),t=null)};t.forEach((t=>t.addEventListener("abort",r)));const{signal:s}=i;return s.unsubscribe=()=>$.asap(a),s}};const Xt=function*(t,e){let n=t.byteLength;if(!e||n{const r=async function*(t,e){for await(const n of $t(t))yield*Xt(n,e)}(t,e);let o,a=0,s=t=>{o||(o=!0,i&&i(t))};return new ReadableStream({async pull(t){try{const{done:e,value:i}=await r.next();if(e)return s(),void t.close();let o=i.byteLength;if(n){let t=a+=o;n(t)}t.enqueue(new Uint8Array(i))}catch(t){throw s(t),t}},cancel(t){return s(t),r.return()}},{highWaterMark:2})},qt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Kt=qt&&"function"==typeof ReadableStream,Jt=qt&&("function"==typeof TextEncoder?(Qt=new TextEncoder,t=>Qt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Qt;const te=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},ee=Kt&&te((()=>{let t=!1;const e=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),ne=Kt&&te((()=>$.isReadableStream(new Response("").body))),ie={stream:ne&&(t=>t.body)};qt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ie[e]&&(ie[e]=$.isFunction(t[e])?t=>t[e]():(t,n)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})}))})(new Response);const re=async(t,e)=>{const n=$.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if($.isBlob(t))return t.size;if($.isSpecCompliantForm(t)){const e=new Request(yt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return $.isArrayBufferView(t)||$.isArrayBuffer(t)?t.byteLength:($.isURLSearchParams(t)&&(t+=""),$.isString(t)?(await Jt(t)).byteLength:void 0)})(e):n};const oe={http:null,xhr:Zt,fetch:qt&&(async t=>{let{url:e,method:n,data:i,signal:r,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:h,withCredentials:c="same-origin",fetchOptions:p}=Wt(t);u=u?(u+"").toLowerCase():"text";let f,d=Ut([r,o&&o.toAbortSignal()],a);const g=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&ee&&"get"!==n&&"head"!==n&&0!==(m=await re(h,i))){let t,n=new Request(e,{method:"POST",body:i,duplex:"half"});if($.isFormData(i)&&(t=n.headers.get("content-type"))&&h.setContentType(t),n.body){const[t,e]=Ft(m,Nt(Bt(l)));i=Yt(n.body,65536,t,e)}}$.isString(c)||(c=c?"include":"omit");const r="credentials"in Request.prototype;f=new Request(e,{...p,signal:d,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:i,duplex:"half",credentials:r?c:void 0});let o=await fetch(f);const a=ne&&("stream"===u||"response"===u);if(ne&&(s||a&&g)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=$.toFiniteNumber(o.headers.get("content-length")),[n,i]=s&&Ft(e,Nt(Bt(s),!0))||[];o=new Response(Yt(o.body,65536,n,(()=>{i&&i(),g&&g()})),t)}u=u||"text";let v=await ie[$.findKey(ie,u)||"text"](o,t);return!a&&g&&g(),await new Promise(((e,n)=>{Et(e,n,{data:v,headers:It.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:f})}))}catch(e){if(g&&g(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,f),{cause:e.cause||e});throw J.from(e,e&&e.code,t,f)}})};$.forEach(oe,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const ae=t=>`- ${t}`,se=t=>$.isFunction(t)||null===t||!1===t;var le=t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let o=0;o`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(ae).join("\n"):" "+ae(t[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function ue(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Lt(null,t)}function he(t){ue(t),t.headers=It.from(t.headers),t.data=kt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return le(t.adapter||bt.adapter)(t).then((function(e){return ue(t),e.data=kt.call(t,t.transformResponse,e),e.headers=It.from(e.headers),e}),(function(e){return Dt(e)||(ue(t),e&&e.response&&(e.response.data=kt.call(t,t.transformResponse,e.response),e.response.headers=It.from(e.response.headers))),Promise.reject(e)}))}const ce="1.7.9",pe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{pe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const fe={};pe.transitional=function(t,e,n){return(i,r,o)=>{if(!1===t)throw new J(function(t,e){return"[Axios v1.7.9] Transitional option '"+t+"'"+e+(n?". "+n:"")}(r," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!fe[r]&&(fe[r]=!0),!t||t(i,r,o)}},pe.spelling=function(t){return(t,e)=>!0};var de={assertOptions:function(t,e,n){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new J("option "+o+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}},validators:pe};const ge=de.validators;class me{constructor(t){this.defaults=t,this.interceptors={request:new ht,response:new ht}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Ht(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:r}=e;void 0!==n&&de.assertOptions(n,{silentJSONParsing:ge.transitional(ge.boolean),forcedJSONParsing:ge.transitional(ge.boolean),clarifyTimeoutError:ge.transitional(ge.boolean)},!1),null!=i&&($.isFunction(i)?e.paramsSerializer={serialize:i}:de.assertOptions(i,{encode:ge.function,serialize:ge.function},!0)),de.assertOptions(e,{baseUrl:ge.spelling("baseURL"),withXsrfToken:ge.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=r&&$.merge(r.common,r[e.method]);r&&$.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=It.concat(o,r);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let h,c=0;if(!s){const t=[he.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),h=t.length,u=Promise.resolve(e);c{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const i=new Promise((t=>{n.subscribe(t),e=t})).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t((function(t,i,r){n.reason||(n.reason=new Lt(t,i,r),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new ye((function(e){t=e})),cancel:t}}}var _e=ye;const xe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xe).forEach((([t,e])=>{xe[e]=t}));var be=xe;const we=function t(e){const n=new ve(e),i=r(ve.prototype.request,n);return $.extend(i,ve.prototype,n,{allOwnKeys:!0}),$.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t(Ht(e,n))},i}(bt);we.Axios=ve,we.CanceledError=Lt,we.CancelToken=_e,we.isCancel=Dt,we.VERSION=ce,we.toFormData=it,we.AxiosError=J,we.Cancel=we.CanceledError,we.all=function(t){return Promise.all(t)},we.spread=function(t){return function(e){return t.apply(null,e)}},we.isAxiosError=function(t){return $.isObject(t)&&!0===t.isAxiosError},we.mergeConfig=Ht,we.AxiosHeaders=It,we.formToJSON=t=>_t($.isHTMLForm(t)?new FormData(t):t),we.getAdapter=le,we.HttpStatusCode=be,we.default=we;var Se=we},4602:function(t,e,n){"use strict";n.d(e,{$:function(){return s},Ce:function(){return E},IV:function(){return u},Kz:function(){return D},Lj:function(){return p},Od:function(){return H},Pb:function(){return b},R3:function(){return L},S1:function(){return v},S6:function(){return T},Vj:function(){return h},W2:function(){return S},X$:function(){return y},cn:function(){return l},cv:function(){return w},dy:function(){return A},eG:function(){return R},eR:function(){return g},eq:function(){return P},fL:function(){return I},hX:function(){return C},iO:function(){return x},is:function(){return k},iv:function(){return M},ld:function(){return _},lp:function(){return O},mp:function(){return N},on:function(){return m},oq:function(){return V},pI:function(){return G},pJ:function(){return F},pv:function(){return c},qm:function(){return B},sE:function(){return j},uV:function(){return f},vs:function(){return d},wV:function(){return z}});var i=n(7628);class r extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get(){return e},set(t){e.__proto__=t}})}(this))}}function o(t=[]){const e=[];return t.forEach((t=>{Array.isArray(t)?e.push(...o(t)):e.push(t)})),e}function a(t,e){return Array.prototype.filter.call(t,e)}function s(t,e){const n=(0,i.Jj)(),o=(0,i.Me)();let a=[];if(!e&&t instanceof r)return t;if(!t)return new r(a);if("string"==typeof t){const n=t.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let t="div";0===n.indexOf("t.split(" "))));return this.forEach((t=>{t.classList.add(...e)})),this}function u(...t){const e=o(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.remove(...e)})),this}function h(...t){const e=o(t.map((t=>t.split(" "))));this.forEach((t=>{e.forEach((e=>{t.classList.toggle(e)}))}))}function c(...t){const e=o(t.map((t=>t.split(" "))));return a(this,(t=>e.filter((e=>t.classList.contains(e))).length>0)).length>0}function p(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n=0;t-=1){const n=a[t];i&&n.listener===i||i&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===i?(o.removeEventListener(e,n.proxyListener,r),a.splice(t,1)):i||(o.removeEventListener(e,n.proxyListener,r),a.splice(t,1))}}}return this}function y(...t){const e=(0,i.Jj)(),n=t[0].split(" "),r=t[1];for(let i=0;ie>0)),i.dispatchEvent(n),i.dom7EventData=[],delete i.dom7EventData}}}return this}function _(t){const e=this;return t&&e.on("transitionend",(function n(i){i.target===this&&(t.call(this,i),e.off("transitionend",n))})),this}function x(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function b(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function w(){if(this.length>0){const t=(0,i.Jj)(),e=(0,i.Me)(),n=this[0],r=n.getBoundingClientRect(),o=e.body,a=n.clientTop||o.clientTop||0,s=n.clientLeft||o.clientLeft||0,l=n===t?t.scrollY:n.scrollTop,u=n===t?t.scrollX:n.scrollLeft;return{top:r.top+l-a,left:r.left+u-s}}return null}function S(){const t=(0,i.Jj)();return this[0]?t.getComputedStyle(this[0],null):{}}function M(t,e){const n=(0,i.Jj)();let r;if(1===arguments.length){if("string"!=typeof t){for(r=0;r{t.apply(e,[e,n])})),this):this}function C(t){return s(a(this,t))}function A(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;ee-1)return s([]);if(t<0){const n=e+t;return s(n<0?[]:[this[n]])}return s([this[t]])}function L(...t){let e;const n=(0,i.Me)();for(let i=0;i=0;o-=1)this[n].insertBefore(i.childNodes[o],this[n].childNodes[0])}else if(t instanceof r)for(o=0;o0?t?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(t)?s([this[0].nextElementSibling]):s([]):this[0].nextElementSibling?s([this[0].nextElementSibling]):s([]):s([])}function R(t){const e=[];let n=this[0];if(!n)return s([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;t?s(i).is(t)&&e.push(i):e.push(i),n=i}return s(e)}function N(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&s(e.previousElementSibling).is(t)?s([e.previousElementSibling]):s([]):e.previousElementSibling?s([e.previousElementSibling]):s([])}return s([])}function F(t){const e=[];let n=this[0];if(!n)return s([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;t?s(i).is(t)&&e.push(i):e.push(i),n=i}return s(e)}function B(t){const e=[];for(let 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,s);var l=s,u=12,h="sans-serif",c=u+"px "+h;var p,f,d=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)o=r*t.length;else 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,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Yt(s,a):Yt(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function Qt(t){return"CANVAS"===t.nodeName.toUpperCase()}var te=/([&<>"'])/g,ee={"&":"&","<":"<",">":">",'"':""","'":"'"};function ne(t){return null==t?"":(t+"").replace(te,(function(t,e){return ee[e]}))}var ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,re=[],oe=l.browser.firefox&&+l.browser.version.split(".")[0]<39;function ae(t,e,n,i){return n=n||{},i?se(t,e,n):oe&&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):se(t,e,n),n}function se(t,e,n){if(l.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Qt(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Jt(re,t,i,r))return n.zrX=re[0],void(n.zrY=re[1])}n.zrX=n.zrY=0}function le(t){return t||window.event}function ue(t,e,n){if(null!=(e=le(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&&ae(t,r,e,n)}else{ae(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&&ie.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function he(t,e,n,i){t.addEventListener(e,n,i)}var ce=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function pe(t){return 2===t.which||3===t.which}var fe=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=de(r)/de(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 me(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ve(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 ye(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 _e(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 xe(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function be(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 we(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 Se=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}(),Me=Se,Te=Math.min,Ce=Math.max,Ae=new Me,Ie=new Me,ke=new Me,De=new Me,Pe=new Me,Le=new Me,Ee=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=Te(t.x,this.x),n=Te(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ce(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ce(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 _e(r,r,[-e.x,-e.y]),be(r,r,[n,i]),_e(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,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(od&&(d=_,gd&&(d=x,v=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))}Ae.x=ke.x=n.x,Ae.y=De.y=n.y,Ie.x=De.x=n.x+n.width,Ie.y=ke.y=n.y+n.height,Ae.transform(i),De.transform(i),Ie.transform(i),ke.transform(i),e.x=Te(Ae.x,Ie.x,ke.x,De.x),e.y=Te(Ae.y,Ie.y,ke.y,De.y);var l=Ce(Ae.x,Ie.x,ke.x,De.x),u=Ce(Ae.y,Ie.y,ke.y,De.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Oe=Ee,Re="silent";function Ne(){ce(this.event)}var Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return St(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ut),Be=function(t,e){this.x=t,this.y=e},ze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ve=new Oe(0,0,0,0),je=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Be(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Fe,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Wt(a),a}return St(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(B(ze,(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=We(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 Be(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 Be(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:Ne}}(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 Be(t,e);if(He(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Oe(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Ve.copy(h.getBoundingRect()),h.transform&&Ve.applyTransform(h.transform),Ve.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,f=0;f=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Ge(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Re)){e.target=a;break}}}function We(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}B(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){je.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=We(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||Nt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Ze=je,Ue=32,Xe=7;function $e(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 Ye(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function qe(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 u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Ke(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 u=a;a=r-l,l=r-u}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+h])<0?l=h:a=h+1}return l}function Je(t,e){var n,i,r=Xe,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=Ke(t[h],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(c=qe(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=Xe||f>=Xe);if(d)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[p+l];return void(t[c]=a[h])}var d=r;for(;;){var g=0,m=0,v=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,m=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],m++,g=0,1==--s){v=!0;break}}while((g|m)=0;l--)t[f+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!==(m=s-qe(t[u],a,0,s,s-1,e))){for(s-=m,f=(c-=m)+1,p=(h-=m)+1,l=0;l=Xe||m>=Xe);if(v)break;d<0&&(d=0),d+=2}(r=d)<1&&(r=1);if(1===s){for(f=(c-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[f+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=Ue;)e|=1&t,t>>=1;return t+e}(r);do{if((o=$e(t,n,i,e))s&&(l=s),Ye(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 tn=1,en=4,nn=!1;function rn(){nn||(nn=!0)}function on(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var an=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=on}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(rn(),u.z=0),isNaN(u.z2)&&(rn(),u.z2=0),isNaN(u.zlevel)&&(rn(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,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}(),sn=an,ln=l.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},un={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-un.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*un.bounceIn(2*t):.5*un.bounceOut(2*t-1)+.5}},hn=un,cn=Math.pow,pn=Math.sqrt,fn=1e-8,dn=1e-4,gn=pn(3),mn=1/3,vn=Mt(),yn=Mt(),_n=Mt();function xn(t){return t>-fn&&tfn||t<-fn}function wn(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 Sn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Mn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(xn(h)&&xn(c)){if(xn(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[f++]=M)}else{var d=c*c-4*h*p;if(xn(d)){var g=c/h,m=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[f++]=M),m>=0&&m<=1&&(o[f++]=m)}else if(d>0){var v=pn(d),y=h*s+1.5*a*(-c+v),_=h*s+1.5*a*(-c-v);(M=(-s-((y=y<0?-cn(-y,mn):cn(y,mn))+(_=_<0?-cn(-_,mn):cn(_,mn))))/(3*a))>=0&&M<=1&&(o[f++]=M)}else{var x=(2*h*s-3*a*c)/(2*pn(h*h*h)),b=Math.acos(x)/3,w=pn(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),T=(m=(-s+w*(S+gn*Math.sin(b)))/(3*a),(-s+w*(S-gn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[f++]=M),m>=0&&m<=1&&(o[f++]=m),T>=0&&T<=1&&(o[f++]=T)}}return f}function Tn(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(xn(a)){if(bn(o))(h=-s/o)>=0&&h<=1&&(r[l++]=h)}else{var u=o*o-4*a*s;if(xn(u))r[0]=-o/(2*a);else if(u>0){var h,c=pn(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function Cn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function An(t,e,n,i,r,o,a,s,l,u,h){var c,p,f,d,g,m=.005,v=1/0;vn[0]=l,vn[1]=u;for(var y=0;y<1;y+=.05)yn[0]=wn(t,n,r,a,y),yn[1]=wn(e,i,o,s,y),(d=Ft(vn,yn))=0&&d=0&&m=1?1:Mn(0,i,o,1,t,s)&&wn(0,r,a,1,s[0])}}}var Fn=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||xt,this.ondestroy=t.ondestroy||xt,this.onrestart=t.onrestart||xt,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=U(t)?t:hn[t]||Nn(t)},t}(),Bn=function(t){this.value=t},zn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Bn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){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=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Vn=function(){function t(t){this._list=new zn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Bn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},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}(),jn=Vn,Gn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Hn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Wn(t){return t<0?0:t>1?1:t}function Zn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Hn(parseFloat(e)/100*255):Hn(parseInt(e,10))}function Un(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Wn(parseFloat(e)/100):Wn(parseFloat(e))}function Xn(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 $n(t,e,n){return t+(e-t)*n}function Yn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function qn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Kn=new jn(20),Jn=null;function Qn(t,e){Jn&&qn(Jn,e),Jn=Kn.put(t,Jn||e.slice())}function ti(t,e){if(t){e=e||[];var n=Kn.get(t);if(n)return qn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Gn)return qn(e,Gn[i]),Qn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Yn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Qn(t,e),e):void Yn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Yn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Qn(t,e),e):void Yn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Yn(e,+u[0],+u[1],+u[2],1):Yn(e,0,0,0,1);h=Un(u.pop());case"rgb":return u.length>=3?(Yn(e,Zn(u[0]),Zn(u[1]),Zn(u[2]),3===u.length?h:Un(u[3])),Qn(t,e),e):void Yn(e,0,0,0,1);case"hsla":return 4!==u.length?void Yn(e,0,0,0,1):(u[3]=Un(u[3]),ei(u,e),Qn(t,e),e);case"hsl":return 3!==u.length?void Yn(e,0,0,0,1):(ei(u,e),Qn(t,e),e);default:return}}Yn(e,0,0,0,1)}}function ei(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Un(t[1]),r=Un(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Yn(e=e||[],Hn(255*Xn(a,o,n+1/3)),Hn(255*Xn(a,o,n)),Hn(255*Xn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ni(t,e){var n=ti(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 si(n,4===n.length?"rgba":"rgb")}}function ii(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Hn($n(a[0],s[0],l)),n[1]=Hn($n(a[1],s[1],l)),n[2]=Hn($n(a[2],s[2],l)),n[3]=Wn($n(a[3],s[3],l)),n}}function ri(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=ti(e[r]),s=ti(e[o]),l=i-r,u=si([Hn($n(a[0],s[0],l)),Hn($n(a[1],s[1],l)),Hn($n(a[2],s[2],l)),Wn($n(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function oi(t,e,n,i){var r=ti(t);if(t)return r=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,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Un(n)),null!=i&&(r[2]=Un(i)),si(ei(r),"rgba")}function ai(t,e){var n=ti(t);if(n&&null!=e)return n[3]=Wn(e),si(n,"rgba")}function si(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 li(t,e){var n=ti(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var ui=new jn(100);function hi(t){if(X(t)){var e=ui.get(t);return e||(e=ni(t,-.1),ui.put(t,e)),e}if(tt(t)){var n=E({},t);return n.colorStops=z(t.colorStops,(function(t){return{offset:t.offset,color:ni(t.color,-.1)}})),n}return t}var ci=Math.round;function pi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=ti(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 fi=1e-4;function di(t){return t-fi}function gi(t){return ci(1e3*t)/1e3}function mi(t){return ci(1e4*t)/1e4}var vi={left:"start",right:"end",center:"middle",middle:"middle"};function yi(t){return t&&!!t.image}function _i(t){return yi(t)||function(t){return t&&!!t.svgElement}(t)}function xi(t){return"linear"===t.type}function bi(t){return"radial"===t.type}function wi(t){return t&&("linear"===t.type||"radial"===t.type)}function Si(t){return"url(#"+t+")"}function Mi(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 Ti(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*bt,r=it(t.scaleX,1),o=it(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+ci(a*bt)+"deg, "+ci(s*bt)+"deg)"),l.join(" ")}var Ci=l.hasGlobalWindow&&U(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Ai=Array.prototype.slice;function Ii(t,e,n){return(e-t)*n+t}function ki(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(F(e)){var l=function(t){return F(t&&t[0])?2:1}(e);a=l,(1===l&&!Y(e[0])||2===l&&!Y(e[0][0]))&&(o=!0)}else if(Y(e)&&!et(e))a=0;else if(X(e))if(isNaN(+e)){var u=ti(e);u&&(s=u,a=3)}else a=0;else if(tt(e)){var h=E({},s);h.colorStops=z(e.colorStops,(function(t){return{offset:t.offset,color:ti(t.color)}})),xi(e)?a=4:bi(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=U(n)?n:hn[n]||Nn(n)),i.push(c),c},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=Fi(i),l=Ni(i),u=0;u=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=p;ne);n++);n=f(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var d=r.percent-i.percent,g=0===d?1:f((e-i.percent)/d,1);r.easingFunc&&(g=r.easingFunc(g));var m=o?this._additiveValue:c?Bi:t[h];if(!Fi(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Fi(s))1===s?ki(m,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,Oi(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Oi(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}(),ji=Vi;function Gi(){return(new Date).getTime()}var Hi,Wi,Zi=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 St(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=Gi()-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,ln((function e(){t._running&&(ln(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Gi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Gi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Gi()-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 ji(t,e.loop);return this.addAnimator(n),n},e}(Ut),Ui=Zi,Xi=l.domSupported,$i=(Wi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Hi=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:z(Hi,(function(t){var e=t.replace("mouse","pointer");return Wi.hasOwnProperty(e)?e:t}))}),Yi=["mousemove","mouseup"],qi=["pointermove","pointerup"],Ki=!1;function Ji(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Qi(t){t&&(t.zrByTouch=!0)}function tr(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 er=function(t,e){this.stopPropagation=xt,this.stopImmediatePropagation=xt,this.preventDefault=xt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},nr={mousedown:function(t){t=ue(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ue(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=ue(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){tr(this,(t=ue(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Ki=!0,t=ue(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Ki||(t=ue(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Qi(t=ue(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nr.mousemove.call(this,t),nr.mousedown.call(this,t)},touchmove:function(t){Qi(t=ue(this.dom,t)),this.handler.processGesture(t,"change"),nr.mousemove.call(this,t)},touchend:function(t){Qi(t=ue(this.dom,t)),this.handler.processGesture(t,"end"),nr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&nr.click.call(this,t)},pointerdown:function(t){nr.mousedown.call(this,t)},pointermove:function(t){Ji(t)||nr.mousemove.call(this,t)},pointerup:function(t){nr.mouseup.call(this,t)},pointerout:function(t){Ji(t)||nr.mouseout.call(this,t)}};B(["click","dblclick","contextmenu"],(function(t){nr[t]=function(e){e=ue(this.dom,e),this.trigger(t,e)}}));var ir={pointermove:function(t){Ji(t)||ir.mousemove.call(this,t)},pointerup:function(t){ir.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 rr(t,e){var n=e.domHandlers;l.pointerEventsSupported?B($i.pointer,(function(i){ar(e,i,(function(e){n[i].call(t,e)}))})):(l.touchEventsSupported&&B($i.touch,(function(i){ar(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)}))})),B($i.mouse,(function(i){ar(e,i,(function(r){r=le(r),e.touching||n[i].call(t,r)}))})))}function or(t,e){function n(n){ar(e,n,(function(i){i=le(i),tr(t,i.target)||(i=function(t,e){return ue(t.dom,new er(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}l.pointerEventsSupported?B(qi,n):l.touchEventsSupported||B(Yi,n)}function ar(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,he(t.domTarget,e,n,i)}function sr(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 lr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ur=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 lr(e,nr),Xi&&(i._globalHandlerScope=new lr(document,ir)),rr(i,i._localHandlerScope),i}return St(e,t),e.prototype.dispose=function(){sr(this._localHandlerScope),Xi&&sr(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,Xi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?or(this,e):sr(e)}},e}(Ut),hr=1;l.hasGlobalWindow&&(hr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cr=hr,pr="#333",fr="#ccc",dr=me,gr=5e-5;function mr(t){return t>gr||t<-5e-5}var vr=[],yr=[],_r=[1,0,0,1,0,0],xr=Math.abs,br=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 mr(this.rotation)||mr(this.x)||mr(this.y)||mr(this.scaleX-1)||mr(this.scaleY-1)||mr(this.skewX)||mr(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):dr(n),t&&(e?ye(n,t,n):ve(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(dr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(vr);var n=vr[0]<0?-1:1,i=vr[1]<0?-1:1,r=((vr[0]-n)*e+n)/vr[0]||0,o=((vr[1]-i)*e+i)/vr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],we(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&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],ye(yr,t.invTransform,e),e=yr);var n=this.originX,i=this.originY;(n||i)&&(_r[4]=n,_r[5]=i,ye(yr,e,_r),yr[4]-=n,yr[5]-=i,e=yr),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&&zt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&zt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&xr(t[0]-1)>1e-10&&xr(t[3]-1)>1e-10?Math.sqrt(xr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Sr(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,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var f=n+a,d=i+s;e[4]=-f*r-c*d*o,e[5]=-d*o-p*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&xe(e,e,l),e[4]+=n+u,e[5]+=i+h,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}(),wr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Er(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,u=n.y,h="left",c="top";if(i instanceof Array)l+=Lr(i[0],n.width),u+=Lr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Or="__zr_normal__",Rr=wr.concat(["ignore"]),Nr=V(wr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Fr={},Br=new Oe(0,0,0,0),zr=function(){function t(t){this.id=I(),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 u=Br;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fr,n,u):Er(Fr,n,u),r.x=Fr.x,r.y=Fr.y,o=Fr.align,a=Fr.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=Lr(h[0],u.width),p=Lr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;d&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=tn,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()?fr:pr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&ti(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,si(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||{},E(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(q(t))for(var n=G(t),i=0;i0},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(Or,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Or;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(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 u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.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&=~tn),s}k("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,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~tn)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},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=R(i,t),o=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 w,S=void 0,M=void 0,T=void 0;if(s){M={},p&&(S={});for(x=0;x<_;x++){M[v=g[x]]=n[v],p?S[v]=i[v]:n[v]=i[v]}}else if(p){T={};for(x=0;x<_;x++){T[v=g[x]]=Oi(n[v]),Gr(n,i,v)}}(w=new ji(n,!1,!1,c?j(d,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(w.scope=r.scope),p&&S&&w.whenWithKeys(0,S,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==u?500:u,s?M:i,g).delay(h||0),t.addAnimator(w,e),a.push(w)}}N(zr,Ut),N(zr,Mr);var Wr=zr,Zr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return St(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=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=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._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){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*u+a}function eo(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 X(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function no(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Qr),t=(+t).toFixed(e),n?t:+t}function io(t){return t.sort((function(t,e){return t-e})),t}function ro(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 oo(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 ao(t,e){var n=V(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=z(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=z(r,(function(t){return Math.floor(t)})),s=V(a,(function(t,e){return t+e}),0),l=z(r,(function(t,e){return t-a[e]}));su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return z(a,(function(t){return t/i}))}function so(t,e){var n=Math.max(ro(t),ro(e)),i=t+e;return n>Qr?i:no(i,n)}var lo=9007199254740991;function uo(t){var e=2*Math.PI;return(t%e+e)%e}function ho(t){return t>-Jr&&t=10&&e++,e}function go(t,e){var n=fo(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 mo(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 vo(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&&R(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var oa=ra([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),aa=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return oa(this,t,e)},t}(),sa=new jn(50);function la(t){if("string"==typeof t){var e=sa.get(t);return e&&e.image}return t}function ua(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=sa.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!ca(e=o.image)&&o.pending.push(a):((e=g.loadImage(t,ha,ha)).__zrImageSrc=t,sa.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ha(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Cr(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function ga(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Cr(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?ma(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=Cr(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function ma(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&d+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=d}else{var g=Sa(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!ba[t]}function Sa(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+f>n)?h?(s||l)&&(d?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var Ma="__zr_style_"+Math.round(10*Math.random()),Ta={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ca={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ta[Ma]=!0;var Aa=["z","z2","invisible"],Ia=["invisible"],ka=function(t){function e(e){return t.call(this,e)||this}var n;return St(e,t),e.prototype._init=function(e){for(var n=G(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ba[0]=Na(r)*n+t,Ba[1]=Ra(r)*i+e,za[0]=Na(o)*n+t,za[1]=Ra(o)*i+e,u(s,Ba,za),h(l,Ba,za),(r%=Fa)<0&&(r+=Fa),(o%=Fa)<0&&(o+=Fa),r>o&&!a?o+=Fa:rr&&(Va[0]=Na(f)*n+t,Va[1]=Ra(f)*i+e,u(s,Va,s),h(l,Va,l))}var $a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ya=[],qa=[],Ka=[],Ja=[],Qa=[],ts=[],es=Math.min,ns=Math.max,is=Math.cos,rs=Math.sin,os=Math.abs,as=Math.PI,ss=2*as,ls="undefined"!=typeof Float32Array,us=[];function hs(t){return Math.round(t/as*1e8)/1e8%2*as}function cs(t,e){var n=hs(t[0]);n<0&&(n+=ss);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=ss?r=n+ss:e&&n-r>=ss?r=n-ss:!e&&n>r?r=n+(ss-hs(n-r)):e&&n0&&(this._ux=os(n/cr/t)||0,this._uy=os(n/cr/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($a.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=os(t-this._xi),i=os(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData($a.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($a.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($a.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(),us[0]=i,us[1]=r,cs(us,o),i=us[0];var a=(r=us[1])-i;return this.addData($a.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=is(r)*n+t,this._yi=rs(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($a.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData($a.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||!ls||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(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(){Ka[0]=Ka[1]=Qa[0]=Qa[1]=Number.MAX_VALUE,Ja[0]=Ja[1]=ts[0]=ts[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||os(m)>i||c===e-1)&&(d=Math.sqrt(k*k+m*m),r=g,o=_);break;case $a.C:var v=t[c++],y=t[c++],_=(g=t[c++],t[c++]),x=t[c++],b=t[c++];d=In(r,o,v,y,g,_,x,b,10),r=x,o=b;break;case $a.Q:d=On(r,o,v=t[c++],y=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case $a.A:var w=t[c++],S=t[c++],M=t[c++],T=t[c++],C=t[c++],A=t[c++],I=A+C;c+=1,f&&(a=is(C)*M+w,s=rs(C)*T+S),d=ns(M,T)*es(ss,Math.abs(A)),r=is(I)*M+w,o=rs(I)*T+S;break;case $a.R:a=r=t[c++],s=o=t[c++],d=2*t[c++]+2*t[c++];break;case $a.Z:var k=a-r;m=s-o;d=Math.sqrt(k*k+m*m),r=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,f=this._ux,d=this._uy,g=this._len,m=e<1,v=0,y=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x0&&(t.lineTo(h,c),_=0),b){case $a.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case $a.L:a=p[x++],s=p[x++];var S=os(a-r),M=os(s-o);if(S>f||M>d){if(m){if(v+($=l[y++])>u){var T=(u-v)/$;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}v+=$}t.lineTo(a,s),r=a,o=s,_=0}else{var C=S*S+M*M;C>_&&(h=a,c=s,_=C)}break;case $a.C:var A=p[x++],I=p[x++],k=p[x++],D=p[x++],P=p[x++],L=p[x++];if(m){if(v+($=l[y++])>u){Cn(r,A,k,P,T=(u-v)/$,Ya),Cn(o,I,D,L,T,qa),t.bezierCurveTo(Ya[1],qa[1],Ya[2],qa[2],Ya[3],qa[3]);break t}v+=$}t.bezierCurveTo(A,I,k,D,P,L),r=P,o=L;break;case $a.Q:A=p[x++],I=p[x++],k=p[x++],D=p[x++];if(m){if(v+($=l[y++])>u){Ln(r,A,k,T=(u-v)/$,Ya),Ln(o,I,D,T,qa),t.quadraticCurveTo(Ya[1],qa[1],Ya[2],qa[2]);break t}v+=$}t.quadraticCurveTo(A,I,k,D),r=k,o=D;break;case $a.A:var E=p[x++],O=p[x++],R=p[x++],N=p[x++],F=p[x++],B=p[x++],z=p[x++],V=!p[x++],j=R>N?R:N,G=os(R-N)>.001,H=F+B,W=!1;if(m)v+($=l[y++])>u&&(H=F+B*(u-v)/$,W=!0),v+=$;if(G&&t.ellipse?t.ellipse(E,O,R,N,z,F,H,V):t.arc(E,O,j,F,H,V),W)break t;w&&(n=is(F)*R+E,i=rs(F)*N+O),r=is(H)*R+E,o=rs(H)*N+O;break;case $a.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var Z=p[x++],U=p[x++];if(m){if(v+($=l[y++])>u){var X=u-v;t.moveTo(a,s),t.lineTo(a+es(X,Z),s),(X-=Z)>0&&t.lineTo(a+Z,s+es(X,U)),(X-=U)>0&&t.lineTo(a+ns(Z-X,0),s+U),(X-=Z)>0&&t.lineTo(a,s+ns(U-X,0));break t}v+=$}t.rect(a,s,Z,U);break;case $a.Z:if(m){var $;if(v+($=l[y++])>u){T=(u-v)/$;t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}v+=$}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=$a,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),fs=ps;function ds(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+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||h+ur&&(r+=_s);var p=Math.atan2(l,s);return p<0&&(p+=_s),p>=i&&p<=r||p+_s>=i&&p+_s<=r}function bs(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var ws=fs.CMD,Ss=2*Math.PI,Ms=1e-4;var Ts=[-1,-1,-1],Cs=[-1,-1];function As(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(h=void 0,h=Cs[0],Cs[0]=Cs[1],Cs[1]=h),d=wn(e,i,o,s,Cs[0]),f>1&&(g=wn(e,i,o,s,Cs[1]))),2===f?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(xn(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=pn(u),p=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Ts);if(0===l)return 0;var u=Pn(e,i,o);if(u>=0&&u<=1){for(var h=0,c=kn(e,i,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ts[0]=-l,Ts[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ss-1e-4){i=0,r=Ss;var h=o?1:-1;return a>=Ts[0]+t&&a<=Ts[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=Ss,r+=Ss);for(var p=0,f=0;f<2;f++){var d=Ts[f];if(d+t>a){var g=Math.atan2(s,d);h=o?1:-1;g<0&&(g=Ss+g),(g>=i&&g<=r||g+Ss>=i&&g+Ss<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Ds(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,p=0,f=0,d=0,g=0,m=0;m1&&(n||(c+=bs(p,f,d,g,i,r))),y&&(d=p=u[m],g=f=u[m+1]),v){case ws.M:p=d=u[m++],f=g=u[m++];break;case ws.L:if(n){if(ds(p,f,u[m],u[m+1],e,i,r))return!0}else c+=bs(p,f,u[m],u[m+1],i,r)||0;p=u[m++],f=u[m++];break;case ws.C:if(n){if(gs(p,f,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],e,i,r))return!0}else c+=As(p,f,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],i,r)||0;p=u[m++],f=u[m++];break;case ws.Q:if(n){if(ms(p,f,u[m++],u[m++],u[m],u[m+1],e,i,r))return!0}else c+=Is(p,f,u[m++],u[m++],u[m],u[m+1],i,r)||0;p=u[m++],f=u[m++];break;case ws.A:var _=u[m++],x=u[m++],b=u[m++],w=u[m++],S=u[m++],M=u[m++];m+=1;var T=!!(1-u[m++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,y?(d=o,g=a):c+=bs(p,f,o,a,i,r);var C=(i-_)*w/b+_;if(n){if(xs(_,x,w,S,S+M,T,e,C,r))return!0}else c+=ks(_,x,w,S,S+M,T,C,r);p=Math.cos(S+M)*b+_,f=Math.sin(S+M)*w+x;break;case ws.R:if(d=p=u[m++],g=f=u[m++],o=d+u[m++],a=g+u[m++],n){if(ds(d,g,o,g,e,i,r)||ds(o,g,o,a,e,i,r)||ds(o,a,d,a,e,i,r)||ds(d,a,d,g,e,i,r))return!0}else c+=bs(o,g,o,a,i,r),c+=bs(d,a,d,g,i,r);break;case ws.Z:if(n){if(ds(p,f,d,g,e,i,r))return!0}else c+=bs(p,f,d,g,i,r);p=d,f=g}}return n||(s=f,l=g,Math.abs(s-l).5?pr:e>.2?"#eee":fr}if(t)return fr}return pr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(X(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===li(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~en},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 fs(!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&en)&&(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 Ds(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Ds(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=en,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:E(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&en)},e.prototype.createStyle=function(t){return vt(Ps,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=E({},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=E({},i.shape),E(s,n.shape)):(s=E({},r?this.shape:i.shape),E(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=E({},this.shape);for(var u={},h=G(s),c=0;c0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return vt(Ns,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=Ir(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}(La);Fs.prototype.type="tspan";var Bs=Fs,zs=O({x:0,y:0},Ta),Vs={style:O({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ca.style)};var js=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return St(e,t),e.prototype.createStyle=function(t){return vt(zs,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 Vs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Oe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(La);js.prototype.type="image";var Gs=js;var Hs=Math.round;function Ws(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?(Hs(2*i)===Hs(2*r)&&(t.x1=t.x2=Us(i,s,!0)),Hs(2*o)===Hs(2*a)&&(t.y1=t.y2=Us(o,s,!0)),t):t}}function Zs(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=Us(i,s,!0),t.y=Us(r,s,!0),t.width=Math.max(Us(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Us(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Us(t,e,n){if(!e)return t;var i=Hs(2*t);return(i+Hs(e))%2==0?i/2:(i+(n?1:-1))/2}var Xs=function(){this.x=0,this.y=0,this.width=0,this.height=0},$s={},Ys=function(t){function e(e){return t.call(this,e)||this}return St(e,t),e.prototype.getDefaultShape=function(){return new Xs},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Zs($s,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,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-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}(Rs);Ys.prototype.type="rect";var qs=Ys,Ks={fill:"#000"},Js={style:O({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},Ca.style)},Qs=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ks,n.attr(e),n}return St(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&&h){var g=Math.floor(d/l);c=c||n.length>g,n=n.slice(0,g)}if(t&&a&&null!=p)for(var m=da(p,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v={},y=0;y0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),A=i.calculatedLineHeight,I=0;Il&&xa(n,t.substring(l,u),e,s),xa(n,i[2],e,s,i[1]),l=pa.lastIndex}lo){var I=n.lines.length;w>0?(_.tokens=_.tokens.slice(0,w),v(_,b,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y),n.isTruncated=n.isTruncated||n.lines.length=0&&"right"===(A=_[C]).align;)this._placeToken(A,t,b,d,T,"right",m),w-=A.width,T-=A.width,C--;for(M+=(n-(M-f)-(g-T)-w)/2;S<=C;)A=_[S],this._placeToken(A,t,b,d,M+A.width/2,"center",m),M+=A.width,S++;d+=b}},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,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&cl(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,p=t.textPadding;p&&(r=ul(r,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var f=this._getOrCreateChild(Bs),d=f.createStyle();f.useStyle(d);var g=this._defaultStyle,m=!1,v=0,y=ll("fill"in s?s.fill:"fill"in e?e.fill:(m=!0,g.fill)),_=sl("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!m?null:(v=2,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,x&&(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||c,d.opacity=rt(s.opacity,e.opacity,1),rl(d,s),_&&(d.lineWidth=rt(s.lineWidth,e.lineWidth,v),d.lineDash=it(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),y&&(d.fill=y);var b=t.contentWidth,w=t.contentHeight;f.setBoundingRect(new Oe(kr(d.x,b,d.textAlign),Dr(d.y,w,d.textBaseline),b,w))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,p=u&&u.image,f=u&&!p,d=t.borderRadius,g=this;if(f||t.lineHeight||h&&c){(a=this._getOrCreateChild(qs)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=d,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=it(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(Gs)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=it(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=rt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return ol(t)&&(e=[t.fontStyle,t.fontWeight,il(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&<(e)||t.textFont||t.font},e}(La),tl={left:!0,right:1,center:1},el={top:1,bottom:1,middle:1},nl=["fontStyle","fontWeight","fontSize","fontFamily"];function il(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?u+"px":t+"px":t}function rl(t,e){for(var n=0;n=0,o=!1;if(t instanceof Rs){var a=vl(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Pl(s)||Pl(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=E({},i),(u=E({},u)).fill=s):!Pl(u.fill)&&Pl(s)?(o=!0,i=E({},i),(u=E({},u)).fill=hi(s)):!Pl(u.stroke)&&Pl(l)&&(o||(i=E({},i),u=E({},u)),u.stroke=hi(l)),i.style=u}}if(i&&null==i.z2){o||(i=E({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:Ml)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=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 ou(t,e,n){cu(t,!0),Vl(t,Hl),su(t,e,n)}function au(t,e,n,i){i?function(t){cu(t,!1)}(t):ou(t,e,n)}function su(t,e,n){var i=fl(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var lu=["emphasis","blur","select"],uu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function hu(t,e,n,i){n=n||"itemStyle";for(var r=0;r0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function yu(t,e,n,i,r,o){vu("update",t,e,n,i,r,o)}function _u(t,e,n,i,r,o){vu("enter",t,e,n,i,r,o)}function xu(t){if(!t.__zr)return!0;for(var e=0;e-1?rh:ah;function hh(t,e){t=t.toUpperCase(),lh[t]=new th(e),sh[t]=e}function ch(t){return lh[t]}hh(oh,{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",custom:"Custom chart",chart:"Chart"}},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:". "}}}}),hh(rh,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var ph=1e3,fh=60*ph,dh=60*fh,gh=24*dh,mh=365*gh,vh={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}"},yh="{yyyy}-{MM}-{dd}",_h={year:"{yyyy}",month:"{yyyy}-{MM}",day:yh,hour:yh+" "+vh.hour,minute:yh+" "+vh.minute,second:yh+" "+vh.second,millisecond:vh.none},xh=["year","month","day","hour","minute","second","millisecond"],bh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wh(t,e){return"0000".substr(0,e-(t+="").length)+t}function Sh(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 Mh(t){return t===Sh(t)}function Th(t,e,n,i){var r=po(t),o=r[Ih(n)](),a=r[kh(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Dh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[Ph(n)](),c=(h-1)%12+1,p=r[Lh(n)](),f=r[Eh(n)](),d=r[Oh(n)](),g=h>=12?"pm":"am",m=g.toUpperCase(),v=(i instanceof th?i:ch(i||uh)||lh[ah]).getModel("time"),y=v.get("month"),_=v.get("monthAbbr"),x=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,wh(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,wh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,wh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,wh(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,wh(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,wh(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,wh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,wh(d,3)).replace(/{S}/g,d+"")}function Ch(t,e){var n=po(t),i=n[kh(e)]()+1,r=n[Dh(e)](),o=n[Ph(e)](),a=n[Lh(e)](),s=n[Eh(e)](),l=0===n[Oh(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;return p&&1===i?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function Ah(t,e,n){var i=Y(t)?po(t):t;switch(e=e||Ch(t,n)){case"year":return i[Ih(n)]();case"half-year":return i[kh(n)]()>=6?1:0;case"quarter":return Math.floor((i[kh(n)]()+1)/4);case"month":return i[kh(n)]();case"day":return i[Dh(n)]();case"half-day":return i[Ph(n)]()/24;case"hour":return i[Ph(n)]();case"minute":return i[Lh(n)]();case"second":return i[Eh(n)]();case"millisecond":return i[Oh(n)]()}}function Ih(t){return t?"getUTCFullYear":"getFullYear"}function kh(t){return t?"getUTCMonth":"getMonth"}function Dh(t){return t?"getUTCDate":"getDate"}function Ph(t){return t?"getUTCHours":"getHours"}function Lh(t){return t?"getUTCMinutes":"getMinutes"}function Eh(t){return t?"getUTCSeconds":"getSeconds"}function Oh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Rh(t){return t?"setUTCFullYear":"setFullYear"}function Nh(t){return t?"setUTCMonth":"setMonth"}function Fh(t){return t?"setUTCDate":"setDate"}function Bh(t){return t?"setUTCHours":"setHours"}function zh(t){return t?"setUTCMinutes":"setMinutes"}function Vh(t){return t?"setUTCSeconds":"setSeconds"}function jh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Gh(t){if(!_o(t))return X(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Hh(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 Wh=at;function Zh(t,e,n){function i(t){return 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?po(t):t;if(!isNaN(+s))return Th(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return $(t)?i(t):Y(t)&&r(t)?t+"":"-";var l=yo(t);return r(l)?Gh(l):$(t)?i(t):"boolean"==typeof t?t+"":"-"}var Uh=["a","b","c","d","e","f","g"],Xh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $h(t,e,n){Z(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;oi||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var m=p.height+(d?-d.y+p.y:0);(c=a+m)>r||l.newline?(o+=s+n,a=0,c=m,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)}))}var ec=tc;W(tc,"vertical"),W(tc,"horizontal");function nc(t,e,n){n=Wh(n||0);var i=e.width,r=e.height,o=eo(t.left,i),a=eo(t.top,r),s=eo(t.right,i),l=eo(t.bottom,r),u=eo(t.width,i),h=eo(t.height,r),c=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new Oe(o+n[3],a+n[0],u,h);return d.margin=n,d}function ic(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Oe(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=nc(O({width:a.width,height:a.height},e),n,i),p=s?c.x-a.x:0,f=l?c.y-a.y:0;return"raw"===u?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===t&&t.markRedraw(),!0}function rc(t){var e=t.layoutMode||t.constructor.layoutMode;return q(e)?e:e?{type:e}:null}function oc(t,e,n){var i=n&&n.ignoreSize;!Z(i)&&(i=[i,i]);var r=a(Qh[0],0),o=a(Qh[1],1);function a(n,r){var o={},a=0,u={},h=0;if(Kh(n,(function(e){u[e]=t[e]})),Kh(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;a--)o=P(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Wo(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}(th);Qo(uc,th),ia(uc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Ko(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Ko(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(uc),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 B(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return B(t,(function(t){R(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),B(s,(function(t){R(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);R(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(B(t,(function(t){u[t]=!0}));l.length;){var h=l.pop(),c=s[h],p=!!u[h];p&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),B(c.successor,p?d:f)}B(u,(function(){throw new Error("")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function d(t){u[t]=!0,f(t)}}}(uc,(function(t){var e=[];B(uc.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=z(e,(function(t){return Ko(t).main})),"dataset"!==t&&R(e,"dataset")<=0&&e.unshift("dataset");return e}));var hc=uc,cc="";"undefined"!=typeof navigator&&(cc=navigator.platform||"");var pc="rgba(0, 0, 0, 0.2)",fc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:pc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:pc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:pc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:pc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:pc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:pc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cc.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},dc=gt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),gc="original",mc="arrayRows",vc="objectRows",yc="keyedColumns",_c="typedArray",xc="unknown",bc="column",wc="row",Sc={Must:1,Might:2,Not:3},Mc=Bo();function Tc(t,e,n){var i={},r=Ac(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,h=Mc(u).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;B(t=t.slice(),(function(e,n){var r=q(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=d(r)),i[r.name]=[]}));var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var zc="\0_ec_inner";var Vc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new th(i),this._locale=new th(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Hc(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Hc(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)):Ec(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&&B(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=gt(),s=e&&e.replaceMergeMainTypeMap;Mc(this).datasetMap=gt(),B(t,(function(t,e){null!=t&&(hc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?D(t):P(n[e],t,!0))})),s&&s.each((function(t,e){hc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),hc.topologicalTravel(o,hc.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=Dc.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,Co(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Po(a,o,l);(function(t,e,n){B(t,(function(t){var i=t.newOption;q(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))}))})(u,e,hc),n[e]=null,i.set(e,null),r.set(e,0);var h,c=[],p=[],f=0;B(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=hc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=E({componentIndex:n},t.keyInfo);E(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),f++):(c.push(void 0),p.push(void 0))}),this),n[e]=c,i.set(e,p),r.set(e,f),"series"===e&&Pc(this)}),this),this._seriesIndices||Pc(this)},e.prototype.getOption=function(){var t=D(this.option);return B(t,(function(e,n){if(hc.hasClass(n)){for(var i=Co(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!No(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[zc],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 Qc=Kc,tp=B,ep=q,np=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ip(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=np.length;n=0;g--){var m=t[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,c)),p>=0){var v=m.data.getByRawIndex(m.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=so(f,v),d=v;break}}}return i[0]=f,i[1]=d,i}))}))}var bp,wp,Sp,Mp,Tp,Cp=function(t){this.data=t.data||(t.sourceFormat===yc?{}:[]),this.sourceFormat=t.sourceFormat||xc,this.seriesLayoutBy=t.seriesLayoutBy||bc,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;nu&&(u=f)}s[0]=l,s[1]=u}},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 Zp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function $p(t){var e,n;return q(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Yp(t){return new qp(t)}var qp=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=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c: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}},of=function(){function t(t,e){if(!Y(e)){0,Qp("")}this._opFn=rf[t],this._rvalFloat=yo(e)}return t.prototype.evaluate=function(t){return Y(t)?this._opFn(t,this._rvalFloat):this._opFn(yo(t),this._rvalFloat)},t}(),af=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=Y(t)?t:yo(t),i=Y(e)?e:yo(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=X(t),s=X(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),sf=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=yo(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=yo(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function lf(t,e){return"eq"===t||"ne"===t?new sf("eq"===t,e):_t(rf,t)?new of(t,e):null}var uf=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 tf(t,e)},t}();function hf(t){if(!mf(t.sourceFormat)){0,Qp("")}return t.data}function cf(t){var e=t.sourceFormat,n=t.data;if(!mf(e)){0,Qp("")}if(e===mc){for(var i=[],r=0,o=n.length;r65535?_f:xf}function Tf(t,e,n,i,r){var o=Sf[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=d)}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=z(o,(function(t){return t.property})),u=0;um[1]&&(m[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,u=this.count();l=0&&a<0)&&(o=c,a=h,s=0),h===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=u&&_<=h||isNaN(_))&&(a[s++]=f),f++}p=!0}else if(2===r){d=c[i[0]];var m=c[i[1]],v=t[i[1]][0],y=t[i[1]][1];for(g=0;g=u&&_<=h||isNaN(_))&&(x>=v&&x<=y||isNaN(x))&&(a[s++]=f),f++}p=!0}}if(!p)if(1===r)for(g=0;g=u&&_<=h||isNaN(_))&&(a[s++]=b)}else for(g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sm[1]&&(m[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,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(Mf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));c[l++]=h;for(var p=1;pn&&(n=i,r=T)}M>0&&Ma&&(d=a-u);for(var g=0;gf&&(f=m,p=u+g)}var v=this.getRawIndex(h),y=this.getRawIndex(p);hu-f&&(s=u-f,a.length=s);for(var d=0;dh[1]&&(h[1]=m),c[p++]=v}return r._count=p,r._indices=c,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 tf(t[i],this._dimensions[i])}vf={arrayRows:t,objectRows:function(t,e,n,i){return tf(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return tf(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),Af=Cf,If=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(Df(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=J(a=o.get("data",!0))?_c:gc,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=it(h.seriesLayoutBy,c.seriesLayoutBy)||null,f=it(h.sourceHeader,c.sourceHeader),d=it(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!f!=!!c.sourceHeader||d?[Ip(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=n;if(r){var m=this._applyTransform(i);t=m.sourceList,e=m.upstreamSignList}else{t=[Ip(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&&Pf("")}var o,a=[],s=[];return B(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Pf(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e,n){var i=Co(t),r=i.length;r||Qp("");for(var o=0,a=r;o1||n>0&&!t.noHeader;return B(t.blocks,(function(t){var n=Vf(t);n>=e&&(e=n+ +(i&&(!n||Bf(t)&&!t.noHeader)))})),e}return 0}function jf(t,e,n,i){var r,o=e.noHeader,a=(r=Vf(e),{html:Rf[r],richText:Nf[r]}),s=[],l=e.blocks||[];st(!l||Z(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(_t(h,u)){var c=new af(h[u],null);l.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}B(l,(function(n,r){var o=e.valueFormatter,l=zf(n)(o?E(E({},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):Wf(i,s.join(""),o?n:a.html);if(o)return p;var f=Zh(e.header,"ordinal",t.useUTC),d=Of(i,t.renderMode).nameStyle,g=Ef(i);return"richText"===t.renderMode?Zf(t,f,d)+a.richText+p:Wf(i,'
'+ne(f)+"
"+p,n)}function Gf(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return z(t=Z(t)?t:[t],(function(t,e){return Zh(t,Z(f)?f[e]:f,u)}))};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Zh(l,"ordinal",u),f=e.valueType,d=a?[]:h(e.value,e.dataIndex),g=!s||!o,m=!s&&o,v=Of(i,r),y=v.nameStyle,_=v.valueStyle;return"richText"===r?(s?"":c)+(o?"":Zf(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(Z(e)?e.join(" "):e,o)}(t,d,g,m,_)):Wf(i,(s?"":c)+(o?"":function(t,e,n){return''+ne(t)+""}(p,!s,y))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Z(t)?t:[t],''+z(t,(function(t){return ne(t)})).join("  ")+""}(d,g,m,_)),n)}}function Hf(t,e,n,i,r,o){if(t)return zf(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Wf(t,e,n){return'
'+e+'
'}function Zf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Uf(t,e){return Yh(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Xf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var $f=function(){function t(){this.richTextStyles={},this._nextStyleNameId=xo()}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=X(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 X(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Z(e)?B(e,(function(t){return E(n,t)})):E(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Yf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=Z(c),f=Uf(o,a);if(h>1||p&&!h){var d=function(t,e,n,i,r){var o=e.getData(),a=V(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Ff("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?B(i,(function(t){h(Zp(o,n,t),t)})):B(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,f);e=d.inlineValues,n=d.inlineValueTypes,i=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Zp(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var m=Ro(o),v=m&&o.name||"",y=l.getName(a),_=s?v:y;return Ff("section",{header:v,noHeader:s||!m,sortParam:r,blocks:[Ff("nameValue",{markerType:"item",markerColor:f,name:_,noName:!lt(_),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var qf=Bo();function Kf(t,e){return t.getName(e)||t.getId(e)}var Jf="__universalTransitionEnabled",Qf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return o(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Yp({count:ed,reset:nd}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(qf(this).sourceManager=new If(this)).prepareSource();var i=this.getInitialData(t,n);rd(i,this),this.dataTask.context.data=i,qf(this).dataBeforeProcessed=i,td(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=rc(this),i=n?ac(t):{},r=this.subType;hc.hasClass(r)&&(r+="Series"),P(t,e.getTheme().get(this.subType)),P(t,this.getDefaultOption()),Ao(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&oc(t,i,n)},e.prototype.mergeOption=function(t,e){t=P(this.option,t,!0),this.fillDataTextStyle(t.data);var n=rc(this);n&&oc(this.option,t,n);var i=qf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);rd(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,qf(this).dataBeforeProcessed=r,td(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!J(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=Nc.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[Kf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Jf])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){q(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return hc.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}(hc);function td(t){var e=t.name;Ro(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return B(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function ed(t){return t.model.getRawData().count()}function nd(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),id}function id(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function rd(t,e){B(mt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,W(od,e))}))}function od(t,e){var n=ad(t);return n&&n.setOutputEnd((e||this).count()),e}function ad(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}}N(Qf,Xp),N(Qf,Nc),Qo(Qf,hc);var sd=Qf,ld=function(){function t(){this.group=new Ur,this.uid=nh("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}();Jo(ld),ia(ld);var ud=ld;function hd(){var t=Bo();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 cd=fs.CMD,pd=[[],[],[]],fd=Math.sqrt,dd=Math.atan2;function gd(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=cd.M,c=cd.C,p=cd.L,f=cd.R,d=cd.A,g=cd.Q;for(r=0,o=0;r1&&(a*=md(d),s*=md(d));var g=(r===o?-1:1)*md((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,m=g*a*f/s,v=g*-s*p/a,y=(t+n)/2+yd(c)*m-vd(c)*v,_=(e+i)/2+vd(c)*m+yd(c)*v,x=wd([1,0],[(p-m)/a,(f-v)/s]),b=[(p-m)/a,(f-v)/s],w=[(-1*p-m)/a,(-1*f-v)/s],S=wd(b,w);if(bd(b,w)<=-1&&(S=_d),bd(b,w)>=1&&(S=0),S<0){var M=Math.round(S/_d*1e6)/1e6;S=2*_d+M%2*_d}h.addData(u,y,_,a,s,x,S,c,o)}var Md=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Td=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Cd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return St(e,t),e.prototype.applyTransform=function(t){},e}(Rs);function Ad(t){return null!=t.setData}function Id(t,e){var n=function(t){var e=new fs;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=fs.CMD,l=t.match(Md);if(!l)return e;for(var u=0;uD*D+P*P&&(M=C,T=A),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/b-1),y1:T*(r/b-1)}}function Yd(t,e){var n,i=Zd(e.r,0),r=Zd(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 u=e.cx,h=e.cy,c=!!e.clockwise,p=Hd(l-s),f=p>Bd&&p%Bd;if(f>Xd&&(p=f),i>Xd)if(p>Bd-Xd)t.moveTo(u+i*Vd(s),h+i*zd(s)),t.arc(u,h,i,s,l,!c),r>Xd&&(t.moveTo(u+r*Vd(l),h+r*zd(l)),t.arc(u,h,r,l,s,c));else{var d=void 0,g=void 0,m=void 0,v=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,C=void 0,A=void 0,I=void 0,k=void 0,D=i*Vd(s),P=i*zd(s),L=r*Vd(l),E=r*zd(l),O=p>Xd;if(O){var R=e.cornerRadius;R&&(n=function(t){var e;if(Z(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}(R),d=n[0],g=n[1],m=n[2],v=n[3]);var N=Hd(i-r)/2;if(y=Ud(N,m),_=Ud(N,v),x=Ud(N,d),b=Ud(N,g),M=w=Zd(y,_),T=S=Zd(x,b),(w>Xd||S>Xd)&&(C=i*Vd(l),A=i*zd(l),I=r*Vd(s),k=r*zd(s),pXd){var W=Ud(m,M),U=Ud(v,M),X=$d(I,k,D,P,i,W,c),$=$d(C,A,L,E,i,U,c);t.moveTo(u+X.cx+X.x0,h+X.cy+X.y0),M0&&t.arc(u+X.cx,h+X.cy,W,Gd(X.y0,X.x0),Gd(X.y1,X.x1),!c),t.arc(u,h,i,Gd(X.cy+X.y1,X.cx+X.x1),Gd($.cy+$.y1,$.cx+$.x1),!c),U>0&&t.arc(u+$.cx,h+$.cy,U,Gd($.y1,$.x1),Gd($.y0,$.x0),!c))}else t.moveTo(u+D,h+P),t.arc(u,h,i,s,l,!c);else t.moveTo(u+D,h+P);if(r>Xd&&O)if(T>Xd){W=Ud(d,T),X=$d(L,E,C,A,r,-(U=Ud(g,T)),c),$=$d(D,P,I,k,r,-W,c);t.lineTo(u+X.cx+X.x0,h+X.cy+X.y0),T0&&t.arc(u+X.cx,h+X.cy,U,Gd(X.y0,X.x0),Gd(X.y1,X.x1),!c),t.arc(u,h,r,Gd(X.cy+X.y1,X.cx+X.x1),Gd($.cy+$.y1,$.cx+$.x1),c),W>0&&t.arc(u+$.cx,h+$.cy,W,Gd($.y1,$.x1),Gd($.y0,$.x0),!c))}else t.lineTo(u+L,h+E),t.arc(u,h,r,l,s,c);else t.lineTo(u+L,h+E)}else t.moveTo(u,h);t.closePath()}}}var qd=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},Kd=function(t){function e(e){return t.call(this,e)||this}return St(e,t),e.prototype.getDefaultShape=function(){return new qd},e.prototype.buildPath=function(t,e){Yd(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Rs);Kd.prototype.type="sector";var Jd=Kd,Qd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},tg=function(t){function e(e){return t.call(this,e)||this}return St(e,t),e.prototype.getDefaultShape=function(){return new Qd},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}(Rs);tg.prototype.type="ring";var eg=tg;function ng(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=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;pAg[1]){if(a=!1,r)return a;var u=Math.abs(Ag[0]-Cg[1]),h=Math.abs(Cg[0]-Ag[1]);Math.min(u,h)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function tm(t){return!t.isGroup}function em(t,e,n){if(t&&e){var i=function(t){var e={};return t.traverse((function(t){tm(t)&&t.anid&&(e[t.anid]=t)})),e}(t);e.traverse((function(t){if(tm(t)&&t.anid){var e=i[t.anid];if(e){var o=r(t);t.attr(r(e)),yu(t,o,n,fl(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=E({},t.shape)),e}}function nm(t,e){return z(t,(function(t){var n=t[0];n=Rg(n,e.x),n=Ng(n,e.x+e.width);var i=t[1];return i=Rg(i,e.y),[n,i=Ng(i,e.y+e.height)]}))}function im(t,e){var n=Rg(t.x,e.x),i=Ng(t.x+t.width,e.x+e.width),r=Rg(t.y,e.y),o=Ng(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 rm(t,e,n){var i=E({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),O(r,n),new Gs(i)):Hg(t.replace("path://",""),i,n,"center")}function om(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var d=t-r,g=e-o,m=sm(d,g,u,h)/f;if(m<0||m>1)return!1;var v=sm(d,g,c,p)/f;return!(v<0||v>1)}function sm(t,e,n,i){return t*i-n*e}function lm(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=X(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&&B(G(l),(function(t){_t(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=fl(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:O({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function um(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function hm(t,e){if(t)if(Z(t))for(var n=0;n=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function Mm(t,e,n,i){var r=t[e];if(r){var o=r[xm]||r,a=r[wm];if(r[bm]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Sm(o,n,"debounce"===i))[xm]=o,r[wm]=i,r[bm]=n}return r}}function Tm(t,e){var n=t[e];n&&n[xm]&&(n.clear&&n.clear(),t[e]=n[xm])}var Cm=Bo(),Am={itemStyle:ra(qu,!0),lineStyle:ra(Xu,!0)},Im={lineStyle:"stroke",itemStyle:"fill"};function km(t,e){var n=t.visualStyleMapper||Am[e];return n||Am.itemStyle}function Dm(t,e){var n=t.visualDrawType||Im[e];return n||"fill"}var Pm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=km(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Dm(t,i),l=o[s],u=U(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||U(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||U(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=E({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},Lm=new th,Em={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=km(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Lm.option=n[i];var a=r(Lm);E(t.ensureUniqueItemVisual(e,"style"),a),Lm.option.decal&&(t.setItemVisual(e,"decal",Lm.option.decal),Lm.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Om={performRawSeries:!0,overallReset:function(t){var e=gt();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)),Cm(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Cm(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Dm(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"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}}))}}))}},Rm=Math.PI;var Nm=function(){function t(t,e,n,i){this._stageTaskMap=gt(),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=gt();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;B(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});st(!(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))}B(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),o.updatePayload(h,n);var f=o.getPerformArgs(h,i.block);p.each((function(t){t.perform(f)})),h.perform(f)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(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=gt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Yp({plan:jm,reset:Gm,count:Zm}));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(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Yp({reset:Fm});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=gt(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,Yp({reset:Bm,onDirty:Vm})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}st(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,B(n.getSeries(),p)),c&&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 U(t)&&(t={overallReset:t,seriesType:Um(t)}),t.uid=nh("stageHandler"),e&&(t.visualType=e),t},t}();function Fm(t){t.overallReset(t.ecModel,t.api,t.payload)}function Bm(t){return t.overallProgress&&zm}function zm(){this.agent.dirty(),this.getDownstream().dirty()}function Vm(){this.agent&&this.agent.dirty()}function jm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Gm(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Co(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?z(e,(function(t,e){return Wm(e)})):Hm}var Hm=Wm(0);function Wm(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.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 u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),sv=["symbol","symbolSize","symbolRotate","symbolOffset"],lv=sv.concat(["symbolKeepAspect"]),uv={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&&Lv(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=Lv(i)?i:0,r=Lv(r)?r:1,o=Lv(o)?o:0,a=Lv(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]:Y(e)?[e]:Z(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=z(r,(function(t){return t/a})),o/=a)}return[r,o]}var Fv=new fs(!0);function Bv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function zv(t){return"string"==typeof t&&"none"!==t}function Vv(t){var e=t.fill;return null!=e&&"none"!==e}function jv(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 Gv(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 Hv(t,e,n){var i=ua(e.image,e.__image,n);if(ca(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)*bt),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Wv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Zv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Uv(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Qv(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Ta.opacity:a}(i||e.blend!==n.blend)&&(o||(Qv(t,r),o=!0),t.globalCompositeOperation=e.blend||Ta.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[gy])if(this._disposed)Uy(this.id);else{var i,r,o;if(q(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[gy]=!0,!this._model||e){var a=new Qc(this._api),s=this._theme,l=this._model=new Wc;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},qy);var u={seriesTransition:o,optionChanged:!0};if(n)this[my]={silent:i,updateParams:u},this[gy]=!1,this.getZr().wakeUp();else{try{Sy(this),Cy.update.call(this,null,u)}catch(t){throw this[my]=null,this[gy]=!1,t}this._ssr||this._zr.flush(),this[my]=null,this[gy]=!1,Dy.call(this,i),Py.call(this,i)}}},e.prototype.setTheme=function(){Jp()},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||l.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(l.svgSupported){var t=this._zr;return B(t.storage.getDisplayList(),(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;B(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 B(i,(function(t){t.group.ignore=!1})),o}Uy(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(e_[n]){var a=o,s=o,l=-1/0,u=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();B(t_,(function(o,c){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(D(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),h.push({dom:p,left:f.left,top:f.top})}}));var p=(l*=c)-(a*=c),f=(u*=c)-(s*=c),d=g.createCanvas(),m=Kr(d,{renderer:e?"svg":"canvas"});if(m.resize({width:p,height:f}),e){var v="";return B(h,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),m.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new qs({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),B(h,(function(t){var e=new Gs({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});m.add(e)})),m.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Uy(this.id)},e.prototype.convertToPixel=function(t,e){return Ay(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Ay(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return B(Vo(this._model,t),(function(t,i){i.indexOf("Models")>=0&&B(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;Uy(this.id)},e.prototype.getVisual=function(t,e){var n=Vo(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?cv(i,r,e):pv(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;B(Zy,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&mv(o,(function(t){var e=fl(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=E({},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),u=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:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),B($y,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),B(["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?(gv("map","selectchanged",e,i,t),gv("pie","selectchanged",e,i,t)):"select"===t.fromAction?(gv("map","selected",e,i,t),gv("pie","selected",e,i,t)):"unselect"===t.fromAction&&(gv("map","unselected",e,i,t),gv("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Uy(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Uy(this.id);else{this._disposed=!0,this.getDom()&&Zo(this.getDom(),i_,"");var t=this,e=t._api,n=t._model;B(t._componentsViews,(function(t){t.dispose(n,e)})),B(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[gy])if(this._disposed)Uy(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[my]&&(null==i&&(i=this[my].silent),n=!0,this[my]=null),this[gy]=!0;try{n&&Sy(this),Cy.update.call(this,{type:"resize",animation:E({duration:0},t&&t.animation)})}catch(t){throw this[gy]=!1,t}this[gy]=!1,Dy.call(this,i),Py.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Uy(this.id);else if(q(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Qy[t]){var n=Qy[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Uy(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=E({},t);return e.type=$y[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Uy(this.id);else if(q(e)||(e={silent:!!e}),Xy[t.type]&&this._model)if(this[gy])this._pendingActions.push(t);else{var n=e.silent;ky.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&l.browser.weChat&&this._throttledZrFlush(),Dy.call(this,n),Py.call(this,n)}},e.prototype.updateLabelLayout=function(){hy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Uy(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(xu(t))return;if(t instanceof Rs&&function(t){var e=vl(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)}}))}Sy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),My(t,!0),My(t,!1),e.plan()},My=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")&&!l.node&&!l.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),hy.trigger("series:afterupdate",e,i,s)},zy=function(t){t[vy]=!0,t.getZr().wakeUp()},Vy=function(t){t[vy]&&(t.getZr().storage.traverse((function(t){xu(t)||e(t)})),t[vy]=!1)},Fy=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(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){Ul(e,n),zy(t)},n.prototype.leaveEmphasis=function(e,n){Xl(e,n),zy(t)},n.prototype.enterBlur=function(e){$l(e),zy(t)},n.prototype.leaveBlur=function(e){Yl(e),zy(t)},n.prototype.enterSelect=function(e){ql(e),zy(t)},n.prototype.leaveSelect=function(e){Kl(e),zy(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}(Uc))(t)},By=function(t){function e(t,e){for(var n=0;n=0)){p_.push(n);var o=Km.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function d_(t,e){Qy[t]=e}var g_=function(t){var e=(t=D(t)).type;e||Qp("");var n=e.split(":");2!==n.length&&Qp("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,df.set(e,t)};c_(py,Pm),c_(fy,Em),c_(fy,Om),c_(py,uv),c_(fy,hv),c_(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=ay(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=ay(r,e)}}))})),s_(_p),l_(900,(function(t){var e=gt();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(xp)})),d_("default",(function(t,e){O(e=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 Ur,i=new qs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new pl({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 qs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new xg({shape:{startAngle:-Rm/2,endAngle:-Rm/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*Rm/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Rm/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),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),h_({type:Cl,event:Cl,update:Cl},xt),h_({type:Al,event:Al,update:Al},xt),h_({type:Il,event:Il,update:Il},xt),h_({type:kl,event:kl,update:kl},xt),h_({type:Dl,event:Dl,update:Dl},xt),a_("light",Qm),a_("dark",ov);var m_=[],v_={registerPreprocessor:s_,registerProcessor:l_,registerPostInit:function(t){u_("afterinit",t)},registerPostUpdate:function(t){u_("afterupdate",t)},registerUpdateLifecycle:u_,registerAction:h_,registerCoordinateSystem:function(t,e){Yc.register(t,e)},registerLayout:function(t,e){f_(Ky,t,e,1e3,"layout")},registerVisual:c_,registerTransform:g_,registerLoading:d_,registerMap:function(t,e,n){var i=cy["registerMap"];i&&i(t,e,n)},registerImpl:function(t,e){cy[t]=e},PRIORITY:dy,ComponentModel:hc,ComponentView:ud,SeriesModel:sd,ChartView:_m,registerComponentModel:function(t){hc.registerClass(t)},registerComponentView:function(t){ud.registerClass(t)},registerSeriesModel:function(t){sd.registerClass(t)},registerChartView:function(t){_m.registerClass(t)},registerSubTypeDefaulter:function(t,e){hc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Xr[t]=n}};function y_(t){Z(t)?B(t,(function(t){y_(t)})):R(m_,t)>=0||(m_.push(t),U(t)&&(t={install:t}),t.install(v_))}var __=2*Math.PI,x_=fs.CMD,b_=["top","right","bottom","left"];function w_(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function S_(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-r)%__<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=ys(r),r=ys(p)}else i=ys(i),r=ys(r);i>r&&(r+=__);var f=Math.atan2(s,a);if(f<0&&(f+=__),f>=i&&f<=r||f+__>=i&&f+__<=r)return l[0]=h,l[1]=c,u-n;var d=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,v=n*Math.sin(r)+e,y=(d-a)*(d-a)+(g-s)*(g-s),_=(m-a)*(m-a)+(v-s)*(v-s);return y<_?(l[0]=d,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(_))}function M_(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,p=Math.sqrt(h*h+c*c),f=(l*(h/=p)+u*(c/=p))/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var d=a[0]=t+f*h,g=a[1]=e+f*c;return Math.sqrt((d-r)*(d-r)+(g-o)*(g-o))}function T_(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,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}var C_=[];function A_(t,e,n){var i=T_(e.x,e.y,e.width,e.height,t.x,t.y,C_);return n.set(C_[0],C_[1]),i}function I_(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,f=0;f0){e=e/180*Math.PI,k_.fromArray(t[0]),D_.fromArray(t[1]),P_.fromArray(t[2]),Me.sub(L_,k_,D_),Me.sub(E_,P_,D_);var n=L_.len(),i=E_.len();if(!(n<.001||i<.001)){L_.scale(1/n),E_.scale(1/i);var r=L_.dot(E_);if(Math.cos(e)1&&Me.copy(N_,P_),N_.toArray(t[1])}}}}function B_(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,k_.fromArray(t[0]),D_.fromArray(t[1]),P_.fromArray(t[2]),Me.sub(L_,D_,k_),Me.sub(E_,P_,D_);var i=L_.len(),r=E_.len();if(!(i<.001||r<.001))if(L_.scale(1/i),E_.scale(1/r),L_.dot(e)=a)Me.copy(N_,P_);else{N_.scaleAndAdd(E_,o/Math.tan(Math.PI/2-s));var l=P_.x!==D_.x?(N_.x-D_.x)/(P_.x-D_.x):(N_.y-D_.y)/(P_.y-D_.y);if(isNaN(l))return;l<0?Me.copy(N_,D_):l>1&&Me.copy(N_,P_)}N_.toArray(t[1])}}}function z_(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 V_(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=Nt(i[0],i[1]),o=Nt(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=Bt([],i[1],i[0],a/r),l=Bt([],i[1],i[2],a/o),u=Bt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&o&&w(-c/a,0,a);var m,v,y=t[0],_=t[a-1];return x(),m<0&&S(-m,.8),v<0&&S(v,.8),x(),b(m,v,1),b(v,m,-1),x(),m<0&&M(-m),v<0&&M(v),u}function x(){m=y.rect[e]-i,v=r-_.rect[e]-_.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){w(-(o[l-1]*c),l,a)}}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function Z_(t,e,n,i){return W_(t,"y","height",e,n,i)}function U_(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Oe(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;r=0&&n.attr(f.oldLayoutSelect),R(u,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),yu(n,s,e,a)}else if(n.attr(s),!Fu(n).valueAnimation){var h=it(n.style.opacity,1);n.style.opacity=0,_u(n,{style:{opacity:h}},e,a)}if(f.oldLayout=s,n.states.select){var c=f.oldLayoutSelect={};Q_(c,s,tx),Q_(c,n.states.select,tx)}if(n.states.emphasis){var p=f.oldLayoutEmphasis={};Q_(p,s,tx),Q_(p,n.states.emphasis,tx)}zu(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(f=J_(i)).oldLayout;var f,d={points:i.shape.points};r?(i.attr({shape:r}),yu(i,{shape:d},e)):(i.setShape(d),i.style.strokePercent=0,_u(i,{style:{strokePercent:1}},e)),f.oldLayout=d}},t}(),nx=ex,ix=Bo();function rx(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=ix(e).labelManager;i||(i=ix(e).labelManager=new nx),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=ix(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function ox(t,e,n){var i=g.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}y_(rx);var ax=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||cr,"string"==typeof e?r=ox(e,n,i):q(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(yt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return St(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=ox("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 Oe(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Oe(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,u=0;u=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&u.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var x=f.dpr,b=0;b0&&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||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?hx:0),this._needsManuallyCompositing),u.__builtin__||k("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),s.__dirty&tn&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__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,B(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?P(n[t],e,!0):n[t]=e;for(var i=0;i=mx:-l>=mx),p=l>0?l%mx:l%mx+mx,f=!1;f=!!c||!di(h)&&p>=gx==!!u;var d=t+n*dx(o),g=e+i*fx(o);this._start&&this._add("M",d,g);var m=Math.round(r*vx);if(c){var v=1/this._p,y=(u?1:-1)*(mx-v);this._add("A",n,i,m,1,+u,t+n*dx(o+y),e+i*fx(o+y)),v>.01&&this._add("A",n,i,m,0,+u,d,g)}else{var _=t+n*dx(a),x=e+i*fx(a);this._add("A",n,i,m,+f,+u,_,x)}},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 u=[],h=this._p,c=1;c"}(r,o)+("style"!==r?ne(a):a||"")+(i?""+n+z(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function Ox(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Rx(t,e,n,i){return Lx("svg","root",{width:t,height:e,xmlns:Cx,"xmlns:xlink":Ax,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Nx=0;function Fx(){return Nx++}var Bx={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"},zx="transform-origin";function Vx(t,e,n){var i=E({},t.shape);E(i,e),t.buildPath(n,i);var r=new _x;return r.reset(Mi(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function jx(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[zx]=n+"px "+i+"px")}var Gx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Hx(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Wx(t){return X(t)?Bx[t]?"cubic-bezier("+Bx[t]+")":Nn(t)?t:"":""}function Zx(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof wg){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(B(o,(function(t){var e=Ox(n.zrId);e.animation=!0,Zx(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=G(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var f in s){var d=s[f].animation;d.indexOf(r)>=0&&(i=d)}}})),i){e.d=!1;var s=Hx(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={},u=0;u0})).length)return Hx(h,n)+" "+r[0]+" both"}for(var m in l){(s=g(l[m]))&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+Fx();n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function Ux(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+Fx(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var Xx=Math.round;function $x(t){return t&&X(t.src)}function Yx(t){return t&&U(t.toDataURL)}function qx(t,e,n,i){Tx((function(r,o){var a="fill"===r||"stroke"===r;a&&wi(o)?sb(e,t,r,i):a&&_i(o)?lb(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")}),e,n,!1),function(t,e,n){var i=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(i)){var r=function(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(",")}(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var h=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,f=pi(i.shadowColor),d=f.opacity,g=f.color,m=p/2/l+" "+p/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Lx("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Lx("feDropShadow","",{dx:h/l,dy:c/u,stdDeviation:m,"flood-color":g,"flood-opacity":d})]),o[r]=a}e.filter=Si(a)}}(n,t,i)}function Kx(t,e){var n=function(t){if("function"==typeof Yr)return Yr(t)}(e);n&&(n.each((function(e,n){null!=e&&(t[(Dx+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[Dx+"silent"]="true"))}function Jx(t){return di(t[0]-1)&&di(t[1])&&di(t[2])&&di(t[3]-1)}function Qx(t,e,n){if(e&&(!function(t){return di(t[4])&&di(t[5])}(e)||!Jx(e))){var i=n?10:1e4;t.transform=Jx(e)?"translate("+Xx(e[4]*i)/i+" "+Xx(e[5]*i)/i+")":function(t){return"matrix("+gi(t[0])+","+gi(t[1])+","+gi(t[2])+","+gi(t[3])+","+mi(t[4])+","+mi(t[5])+")"}(e)}}function tb(t,e,n){for(var i=t.points,r=[],o=0;o=0&&a||o;s&&(r=hi(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};r&&(u.fill=r),i.stroke&&(u.stroke=i.stroke),l&&(u["stroke-width"]=l),Ux(u,e,n,!0)}}(t,o,e),Lx(s,t.id+"",o)}function ab(t,e){return t instanceof Rs?ob(t,e):t instanceof Gs?function(t,e){var n=t.style,i=n.image;if(i&&!X(i)&&($x(i)?i=i.src:Yx(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),Qx(a,t.transform),qx(a,n,t,e),Kx(a,t),e.animation&&Zx(t,a,e),Lx("image",t.id+"",a)}}(t,e):t instanceof Bs?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||c,o=n.x||0,a=function(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}(n.y||0,Pr(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":vi[n.textAlign]||n.textAlign};if(ol(n)){var l="",u=n.fontStyle,p=il(n.fontSize);if(!parseFloat(p))return;var f=n.fontFamily||h,d=n.fontWeight;l+="font-size:"+p+";font-family:"+f+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),Qx(s,t.transform),qx(s,n,t,e),Kx(s,t),e.animation&&Zx(t,s,e),Lx("text",t.id+"",s,void 0,i)}}(t,e):void 0}function sb(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(xi(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!bi(o))return void 0;r="radialGradient",a.cx=it(o.x,.5),a.cy=it(o.y,.5),a.r=it(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;ul?Tb(t,null==n[c+1]?null:n[c+1].elm,n,s,c):Cb(t,e,a,l))}(n,i,r):bb(r)?(bb(t.text)&&mb(n,""),Tb(n,null,r,0,r.length-1)):bb(i)?Cb(n,i,0,i.length-1):bb(t.text)&&mb(n,""):t.text!==e.text&&(bb(i)&&Cb(n,i,0,i.length-1),mb(n,e.text)))}var kb=0,Db=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=E({},n),this.root=t,this._id="zr"+kb++,this._oldVNode=Rx(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=Px("svg");Ab(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(Sb(t,e))Ib(t,e);else{var n=t.elm,i=db(n);Mb(e),null!==i&&(cb(i,e.elm,gb(n)),Cb(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return ab(t,Ox(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=Ox(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=Lx("rect","bg",{width:t,height:e,x:"0",y:"0"}),wi(n))sb({fill:n},r.attrs,"fill",i);else if(_i(n))lb({style:{fill:n},dirty:xt,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=pi(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=Lx("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=z(G(r.defs),(function(t){return r.defs[t]}));if(l.length&&o.push(Lx("defs","defs",{},l)),t.animation){var u=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=z(G(t),(function(e){return e+r+z(G(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=z(G(e),(function(t){return"@keyframes "+t+r+z(G(e[t]),(function(n){return n+r+z(G(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(u){var h=Lx("style","stl",{},[],u);o.push(h)}}return Rx(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Ex(this.renderToVNode({animation:it(t.cssAnimation,!0),emphasis:it(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:it(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,u=0;u=0&&(!c||!r||c[d]!==r[d]);d--);for(var g=f-1;g>d;g--)i=a[--s-1];for(var m=d+1;m1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},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===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p1)for(var a=0;a30}var Xb,$b,Yb,qb,Kb,Jb,Qb,tw=q,ew=z,nw="undefined"==typeof Int32Array?Array:Int32Array,iw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rw=["_approximateExtent"],ow=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;Hb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===gc&&!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&&(Z(r=this.getVisual(e))?r=r.slice():tw(r)&&(r=E({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,tw(e)?E(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){tw(t)?E(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?E(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;dl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){B(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:ew(this.dimensions,this._getDimInfo,this),this.hostModel)),Kb(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(ot(arguments)))})},t.internalField=(Xb=function(t){var e=t._invertedIndicesMap;B(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new nw(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}})),t}(),aw=ow;function sw(t,e){Ap(t)||(t=kp(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=gt(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return B(e,(function(t){var e;q(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Ub(a),l=i===t.dimensionsDefine,u=l?Zb(t):Wb(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var c=gt(h),p=new bf(a),f=0;f0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new Gb({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function lw(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}var uw=function(t){this.coordSysDims=[],this.axisMap=gt(),this.categoryAxisMap=gt(),this.coordSysName=t};var hw={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Go).models[0],o=t.getReferringComponents("yAxis",Go).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),cw(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),cw(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Go).models[0];e.coordSysDims=["single"],n.set("single",r),cw(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Go).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),cw(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),cw(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();B(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),cw(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function cw(t){return"category"===t.get("type")}function pw(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Hb(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,p=!(!t||!t.get("stack"));if(B(i,(function(t,e){X(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,g=0;B(i,(function(t){t.coordDim===f&&g++}));var m={name:h,coordDim:f,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(m.storeDimIndex=o.ensureCalculationDimension(c,d),v.storeDimIndex=o.ensureCalculationDimension(h,d)),r.appendCalculationDimension(m),r.appendCalculationDimension(v)):(i.push(m),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function fw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function dw(t,e){return fw(t,e)?t.getCalculationInfo("stackResultDimension"):e}var gw=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=kp(t)):o=(i=r.getSource()).sourceFormat===gc;var a=function(t){var e=t.get("coordinateSystem"),n=new uw(e),i=hw[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Yc.get(i);return e&&e.coordSysDims&&(n=z(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Bb(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=U(l)?l:l?W(Tc,s,e):null,h=sw(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(t,e,n){var i,r;return n&&B(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(h.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),f=pw(e,{schema:h,store:p}),d=new aw(h,e);d.setCalculationInfo(f);var g=null!=c&&function(t){if(t.sourceFormat===gc){var e=function(t){var e=0;for(;e-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}(sd),vw=mw;function yw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Zp(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(" ")}var xw=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return o(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=kv(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=bw,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(){Ul(this.childAt(0))},e.prototype.downplay=function(){Xl(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,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,h)}else{(p=this.childAt(0)).silent=!1;var c={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(c):yu(p,c,a,n),Mu(p)}if(this._updateCommon(t,n,s,i,r),l){var p=this.childAt(0);if(!u){c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,_u(p,c,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,f,d=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=m.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),h=v.get("disabled"),c=ku(m),p=v.getShallow("scale"),f=m.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");d.attr("rotation",(y||0)*Math.PI/180||0);var _=Pv(t.getItemVisual(e,"symbolOffset"),n);_&&(d.x=_[0],d.y=_[1]),f&&d.attr("cursor",f);var x=t.getItemVisual(e,"style"),b=x.fill;if(d instanceof Gs){var w=d.style;d.useStyle(E({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else d.__isEmptyBrush?d.useStyle(E({},x)):d.useStyle(x),d.style.decal=null,d.setColor(b,r&&r.symbolInnerColor),d.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=d.z2,d.z2+=S):null!=M&&(d.z2=M,this._z2=null);var T=r&&r.useNameLabel;Iu(d,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):yw(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=d.ensureState("emphasis");C.style=o,d.ensureState("select").style=s,d.ensureState("blur").style=a;var A=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;C.scaleX=this._sizeX*A,C.scaleY=this._sizeY*A,this.setSymbolScale(1),au(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=fl(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&bu(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();bu(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Dv(t.getItemVisual(e,"symbolSize"))},e}(Ur);function bw(t,e){this.parent.drift(t,e)}var ww=xw;function Sw(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 Mw(t){return null==t||q(t)||(t={isIgnore:t}),t||{}}function Tw(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:ku(e),cursorStyle:e.get("cursor")}}var Cw=function(){function t(t){this.group=new Ur,this._SymbolCtor=t||ww}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Mw(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Tw(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(Sw(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(h,c){var p=r.getItemGraphicEl(c),f=u(h);if(Sw(t,f,h,e)){var d=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)n.remove(p),(p=new o(t,h,s,l)).setPosition(f);else{p.updateData(t,h,s,l);var m={x:f[0],y:f[1]};a?p.attr(m):yu(p,m,i)}n.add(p),t.setItemGraphicEl(h,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,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=Tw(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=Mw(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),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=z(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,f=e.getCalculationInfo("stackResultDimension");return fw(e,c[0])&&(p=!0,c[0]=f),fw(e,c[1])&&(p=!0,c[1]=f),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function kw(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 Dw="undefined"!=typeof Float32Array,Pw=Dw?Float32Array:Array;function Lw(t){return Z(t)?Dw?new Float32Array(t):t:new Pw(t)}var Ew=Math.min,Ow=Math.max;function Rw(t,e){return isNaN(t)||isNaN(e)}function Nw(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,f,d,g=n,m=0;m=r||g<0)break;if(Rw(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),c=v,p=y;else{var _=v-u,x=y-h;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===y&&m=i||Rw(w,S))f=v,d=y;else{C=w-u,A=S-h;var D=v-u,P=w-v,L=y-h,E=S-y,O=void 0,R=void 0;if("x"===s){var N=C>0?1:-1;f=v-N*(O=Math.abs(D))*a,d=y,I=v+N*(R=Math.abs(P))*a,k=y}else if("y"===s){var F=A>0?1:-1;f=v,d=y-F*(O=Math.abs(L))*a,I=v,k=y+F*(R=Math.abs(E))*a}else O=Math.sqrt(D*D+L*L),f=v-C*a*(1-(T=(R=Math.sqrt(P*P+E*E))/(R+O))),d=y-A*a*(1-T),k=y+A*a*T,I=Ew(I=v+C*a*T,Ow(w,v)),k=Ew(k,Ow(S,y)),I=Ow(I,Ew(w,v)),d=y-(A=(k=Ow(k,Ew(S,y)))-y)*O/R,f=Ew(f=v-(C=I-v)*O/R,Ow(u,v)),d=Ew(d,Ow(h,y)),I=v+(C=v-(f=Ow(f,Ew(u,v))))*R/O,k=y+(A=y-(d=Ow(d,Ew(h,y))))*R/O}t.bezierCurveTo(c,p,f,d,v,y),c=I,p=k}else t.lineTo(v,y)}u=v,h=y,g+=o}return m}var Fw=function(){this.smooth=0,this.smoothConstraint=!0},Bw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Fw},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Rw(n[2*r-2],n[2*r-1]);r--);for(;i=0){var m=a?(h-i)*g+i:(u-n)*g+n;return a?[t,m]:[m,t]}n=u,i=h;break;case o.C:u=r[l++],h=r[l++],c=r[l++],p=r[l++],f=r[l++],d=r[l++];var v=a?Mn(n,u,c,f,t,s):Mn(i,h,p,d,t,s);if(v>0)for(var y=0;y=0){m=a?wn(i,h,p,d,_):wn(n,u,c,f,_);return a?[t,m]:[m,t]}}n=f,i=d}}},e}(Rs),zw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(Fw),Vw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return o(e,t),e.prototype.getDefaultShape=function(){return new zw},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&&Rw(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),u=z(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:ri((n-i)/(e.coord-i),[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}(u,"x"===r?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var d=p[0].coord-10,g=p[f-1].coord+10,m=g-d;if(m<.001)return"transparent";B(p,(function(t){t.offset=(t.coord-d)/m})),p.push({offset:f?p[f-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:c[0]||"transparent"});var v=new Mg(0,0,0,0,p,!0);return v[r]=d,v[r+"2"]=g,v}}}function Kw(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 B(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Jw(t,e){return[t[2*e],t[2*e+1]]}function Qw(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);fl(p).seriesIndex=t.seriesIndex,au(p,k,D,P);var L=$w(t.get("smooth")),E=t.get("smoothMonotone");if(p.setShape({smooth:L,smoothMonotone:E,connectNulls:b}),f){var R=o.getCalculationInfo("stackedOnSeries"),N=0;f.useStyle(O(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),R&&(N=$w(R.get("smooth"))),f.setShape({smooth:L,stackedOnSmooth:N,smoothMonotone:E,connectNulls:b}),hu(f,t,"areaStyle"),fl(f).seriesIndex=t.seriesIndex,au(f,k,D,P)}var F=this._changePolyState;o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=l,this._step=T,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){fl(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=Fo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new ww(r,o)).x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else _m.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Fo(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 _m.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;jl(this._polyline,t),e&&jl(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Bw({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 Vw({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");U(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=U(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(n)if(r){var g=n,m=e.pointToCoord(c);i?(p=g.startAngle,f=g.endAngle,d=-m[1]/180*Math.PI):(p=g.r0,f=g.r,d=m[0])}else{var v=n;i?(p=v.x,f=v.x+v.width,d=t.x):(p=v.y+v.height,f=v.y,d=t.y)}var y=f===p?0:(d-p)/(f-p);a&&(y=1-y);var _=U(u)?u(o):l*y+h,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Qw(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 pl({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&&(Iu(o,ku(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?_w(r,n):yw(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 u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),f=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),m=d.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(m?-1:1),x=(g?0:-f)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,b),S=w.range,M=S[1]-S[0],T=void 0;if(M>=1){if(M>1&&!c){var C=Jw(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(T=h.getRawValue(S[0]))}else{(C=l.getPointOn(y,b))&&s.attr({x:C[0]+_,y:C[1]+x});var A=h.getRawValue(S[0]),I=h.getRawValue(S[1]);r&&(T=Xo(n,p,A,I,w.t))}i.lastFrameIndex=S[0]}else{var k=1===t||i.lastFrameIndex>0?S[0]:0;C=Jw(u,k);r&&(T=h.getRawValue(k)),s.attr({x:C[0]+_,y:C[1]+x})}if(r){var D=Fu(s);"function"==typeof D.setLabelText&&D.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=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),u=[],h=[],c=[],p=[],f=[],d=[],g=[],m=Iw(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_3e3||l&&Xw(p,d)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:d})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:f}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),yu(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),yu(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=h.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),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/p));var f=void 0;X(r)?f=rS[r]:U(r)&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,f,oS))}}}}}var sS="__ec_stack_";function lS(t){return t.get("stack")||sS+t.seriesIndex}function uS(t){return t.dim+t.index}function hS(t,e){var n=[];return e.eachSeriesByType(t,(function(t){gS(t)&&n.push(t)})),n}function cS(t){var e=function(t){var e={};B(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 B(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]),u=r.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=s?l/h*s:l}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var p=eo(t.get("barWidth"),i),f=eo(t.get("barMaxWidth"),i),d=eo(t.get("barMinWidth")||(mS(t)?.5:1),i),g=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:d,barGap:g,barCategoryGap:m,axisKey:uS(r),stackId:lS(t)})})),pS(n)}function pS(t){var e={};B(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 u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return B(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=G(i).length;o=Math.max(35-4*a,15)+"%"}var s=eo(o,r),l=eo(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),B(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,u-=i+l*i,h--}else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;B(i,(function(t,e){t.width||(t.width=c),p=t,f+=t.width*(1+l)})),p&&(f-=p.width*l);var d=-f/2;B(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}function fS(t,e){var n=hS(t,e),i=cS(n);B(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=lS(t),o=i[uS(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function dS(t){return{seriesType:t,plan:hd(),reset:function(t){if(gS(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),u=e.getCalculationInfo("stackResultDimension"),h=fw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=function(t,e){var n=e.model.get("startValue");n||(n=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),f=mS(t),d=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),m=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=f&&Lw(3*r),u=f&&s&&Lw(3*r),y=f&&Lw(r),_=n.master.getRect(),x=c?_.width:_.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),T=p,C=void 0;h&&(C=+S-b.get(o,i));var A=void 0,I=void 0,k=void 0,D=void 0;if(c){var P=n.dataToPoint([S,M]);if(h)T=n.dataToPoint([C,M])[0];A=T,I=P[1]+v,k=P[0]-T,D=m,Math.abs(k)s){h=(f+u)/2;break}1===p&&(c=d-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=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}(sd);sd.registerClass(vS);var yS=vS,_S=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getInitialData=function(){return gw(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=ih(yS.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}(yS),xS=_S,bS=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},wS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return o(e,t),e.prototype.getDefaultShape=function(){return new bS},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,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-lo)return!0;o=u}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){Su(e,t,fl(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}(_m),DS={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=AS(e.x,t.x),s=IS(e.x+e.width,r),l=AS(e.y,t.y),u=IS(e.y+e.height,o),h=sr?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},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=IS(e.r,t.r),o=AS(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}},PS={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new qs({shape:E({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?SS:Jd,h=new u({shape:i,z2:1});h.name="item";var c,p,f=BS(r);if(h.calculateTextPosition=(c=f,p=({isRoundCap:u===SS}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Er(t,e,n);var r=c(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,h=a.r0,f=(u+h)/2,d=a.startAngle,g=a.endAngle,m=(d+g)/2,v=p?Math.abs(u-h)/2:0,y=Math.cos,_=Math.sin,x=s+u*y(d),b=l+u*_(d),w="left",S="top";switch(r){case"startArc":x=s+(h-o)*y(m),b=l+(h-o)*_(m),w="center",S="top";break;case"insideStartArc":x=s+(h+o)*y(m),b=l+(h+o)*_(m),w="center",S="bottom";break;case"startAngle":x=s+f*y(d)+MS(d,o+v,!1),b=l+f*_(d)+TS(d,o+v,!1),w="right",S="middle";break;case"insideStartAngle":x=s+f*y(d)+MS(d,-o+v,!1),b=l+f*_(d)+TS(d,-o+v,!1),w="left",S="middle";break;case"middle":x=s+f*y(m),b=l+f*_(m),w="center",S="middle";break;case"endArc":x=s+(u+o)*y(m),b=l+(u+o)*_(m),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*y(m),b=l+(u-o)*_(m),w="center",S="top";break;case"endAngle":x=s+f*y(g)+MS(g,o+v,!0),b=l+f*_(g)+TS(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":x=s+f*y(g)+MS(g,-o+v,!0),b=l+f*_(g)+TS(g,-o+v,!0),w="right",S="middle";break;default:return Er(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var d=r?"r":"endAngle",g={};h.shape[d]=r?i.r0:i.startAngle,g[d]=i[d],(s?yu:_u)(h,{shape:g},o)}return h}};function LS(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?yu:_u)(n,{shape:l},e,r,null),(a?yu:_u)(n,{shape:u},e?t.baseAxis.model:null,r)}function ES(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 BS(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 zS(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;E(u,CS(i.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var c=i.getShallow("cursor");c&&t.attr("cursor",c);var p=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=ku(i);Iu(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:yw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var d=t.getTextContent();if(s&&d){var g=i.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,i){if(Y(i))t.setTextConfig({rotation:i});else if(Z(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,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===g?p:g,BS(a),i.get(["label","rotate"]))}Bu(d,f,o.getRawValue(n),(function(t){return _w(e,t)}));var m=i.getModel(["emphasis"]);au(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),hu(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",B(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var VS=function(){},jS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return o(e,t),e.prototype.getDefaultShape=function(){return new VS},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[h]}return-1}(this,t.offsetX,t.offsetY);fl(this).dataIndex=e>=0?e:null}),30,!1);function WS(t,e,n){if(Ww(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 ZS=kS;var US=2*Math.PI,XS=Math.PI/180;function $S(t,e){return nc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function YS(t,e){var n=$S(t,e),i=t.get("center"),r=t.get("radius");Z(r)||(r=[0,r]);var o,a,s=eo(n.width,e.getWidth()),l=eo(n.height,e.getHeight()),u=Math.min(s,l),h=eo(r[0],u/2),c=eo(r[1],u/2),p=t.coordinateSystem;if(p){var f=p.dataToPoint(i);o=f[0]||0,a=f[1]||0}else Z(i)||(i=[i,i]),o=eo(i[0],s)+n.x,a=eo(i[1],l)+n.y;return{cx:o,cy:a,r0:h,r:c}}function qS(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=$S(t,n),o=YS(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*XS,c=t.get("endAngle"),p=t.get("padAngle")*XS;c="auto"===c?h-US:-c*XS;var f=t.get("minAngle")*XS+p,d=0;e.each(i,(function(t){!isNaN(t)&&d++}));var g=e.getSum(i),m=Math.PI/(g||d)*2,v=t.get("clockwise"),y=t.get("roseType"),_=t.get("stillShowZeroSum"),x=e.getDataExtent(i);x[0]=0;var b=v?1:-1,w=[h,c],S=b*p/2;cs(w,!v),h=w[0],c=w[1];var M=KS(t);M.startAngle=h,M.endAngle=c,M.clockwise=v;var T=Math.abs(c-h),C=T,A=0,I=h;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:v,cx:a,cy:s,r0:u,r:y?NaN:l});else{(i="area"!==y?0===g&&_?m:t*m:T/d)i?h=o=I+b*i/2:(o=I+S,h=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:h,clockwise:v,cx:a,cy:s,r0:u,r:y?to(t,x,[u,l]):l}),I=r}})),Cn?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,p=i+l.len,d=Math.abs(c)t.unconstrainedWidth?null:f:null;i.setStyle("width",d)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-c)/2}}}function nM(t){return"center"===t.position}function iM(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*QS,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function f(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),c=s.shape,p=s.getTextContent(),d=s.getTextGuideLine(),g=i.getItemModel(t),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),_=m.get("alignTo"),x=eo(m.get("edgeDistance"),u),b=m.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=eo(S,u);var M=w.get("length2");if(M=eo(M,u),Math.abs(c.endAngle-c.startAngle)0?"right":"left":D>0?"left":"right"}var z=Math.PI,V=0,j=m.get("rotate");if(Y(j))V=j*(z/180);else if("center"===v)V=0;else if("radial"===j||!0===j){V=D<0?-k+z:-k}else if("tangential"===j&&"outside"!==v&&"outer"!==v){var G=Math.atan2(D,P);G<0&&(G=2*z+G),P>0&&(G=z+G),V=G-z}if(o=!!V,p.x=T,p.y=C,p.rotation=V,p.setStyle({verticalAlign:"middle"}),L){p.setStyle({align:I});var H=p.states.select;H&&(H.x+=p.x,H.y+=p.y)}else{var W=p.getBoundingRect().clone();W.applyTransform(p.getComputedTransform());var Z=(p.style.margin||0)+2.1;W.y-=Z/2,W.height+=Z,r.push({label:p,labelLine:d,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Me(D,P),linePoints:A,textAlign:I,labelDistance:y,labelAlignTo:_,edgeDistance:x,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=n.r0}},e.type="pie",e}(_m),aM=oM;function sM(t,e,n){e=Z(e)&&{coordDimensions:e}||E({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=sw(i,e).dimensions,o=new aw(r,t);return o.initData(i,n),o}var lM=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}(),uM=lM,hM=Bo(),cM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new uM(H(this.getData,this),H(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sM(this,{coordDimensions:["value"],encodeDefaulter:W(Cc,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=hM(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=ao(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){Ao(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,endAngle:"auto",padAngle:0,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}(sd),pM=cM;var fM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){return gw(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}(sd),dM=fM,gM=function(){},mM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(e,t),e.prototype.getDefaultShape=function(){return new gM},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,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+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,u=-1/0,h=0;h=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),yM=vM,_M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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=iS("").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){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},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 yM:new Aw,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}(_m),xM=_M,bM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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}(hc),wM=bM,SM=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),MM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Go).models[0]},e.type="cartesian2dAxis",e}(hc);N(MM,SM);var TM={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,showMinLine:!0,showMaxLine:!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)"]}}},CM=P({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},TM),AM=P({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}}},TM),IM={category:CM,value:AM,time:P({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},AM),log:O({logBase:10},AM)},kM=0;function DM(t){return q(t)&&null!=t.value?t.value:t+""}var PM=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++kM}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&z(i,DM);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(!X(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=gt(this.categories))},t}(),LM={value:1,category:1,time:1,log:1};function EM(t,e,n,i){B(LM,(function(r,a){var s=P(P({},IM[a],!0),i,!0),l=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return o(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=rc(this),i=n?ac(t):{};P(t,e.getTheme().get(a+"Axis")),P(t,this.getDefaultOption()),t.type=OM(t),n&&oc(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=PM.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."+a,n.defaultOption=s,n}(n);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(e+"Axis",OM)}function OM(t){return t.type||(t.data?"category":"value")}var RM=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}();ia(RM);var NM=RM;function FM(t){return"interval"===t.type||"log"===t.type}function BM(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=go(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=VM(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),jM(t,0,e),jM(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[no(Math.ceil(t[0]/a)*a,s),no(Math.floor(t[1]/a)*a,s)],t),r}function zM(t){var e=Math.pow(10,fo(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,no(n*e)}function VM(t){return ro(t)+2}function jM(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function GM(t,e){return t>=e[0]&&t<=e[1]}function HM(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function WM(t,e){return t*(e[1]-e[0])+e[0]}var ZM=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new PM({})),Z(i)&&(i=new PM({categories:z(i,(function(t){return q(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(e,t),e.prototype.parse=function(t){return null==t?NaN:X(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return GM(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return HM(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(WM(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}(NM);NM.registerClass(ZM);var UM=ZM,XM=no,$M=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 o(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return GM(t,this._extent)},e.prototype.normalize=function(t){return HM(t,this._extent)},e.prototype.scale=function(t){return WM(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=VM(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:XM(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]&&h0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Z(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return Th(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=bh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u=i[0]&&v<=i[1]&&c++)}var y=(i[1]-i[0])/e;if(c>1.5*y&&p>y/1.5)break;if(u.push(g),c>y||t===o[f])break}h=[]}}0;var _=j(z(u,(function(t){return j(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],b=_.length-1;for(f=0;f<_.length;++f)for(var w=_[f],S=0;Sn&&(this._approxInterval=n);var o=KM.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 QM(t){return(t/=30*gh)>6?6:t>3?3:t>2?2:1}function tT(t){return(t/=dh)>12?12:t>6?6:t>3.5?4:t>2?2:1}function eT(t,e){return(t/=e?fh:ph)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function nT(t){return go(t,!0)}function iT(t,e,n){var i=new Date(t);switch(Sh(e)){case"year":case"month":i[Nh(n)](0);case"day":i[Fh(n)](1);case"hour":i[Bh(n)](0);case"minute":i[zh(n)](0);case"second":i[Vh(n)](0),i[jh(n)](0)}return i.getTime()}NM.registerClass(qM);var rT=qM,oT=NM.prototype,aT=YM.prototype,sT=no,lT=Math.floor,uT=Math.ceil,hT=Math.pow,cT=Math.log,pT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new YM,e._interval=0,e}return o(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return z(aT.getTicks.call(this,t),(function(t){var e=t.value,r=no(hT(this.base,e));return r=e===n[0]&&this._fixMin?dT(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?dT(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=cT(this.base);t=cT(Math.max(0,t))/n,e=cT(Math.max(0,e))/n,aT.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=oT.getExtent.call(this);e[0]=hT(t,e[0]),e[1]=hT(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=dT(e[0],n[0])),this._fixMax&&(e[1]=dT(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=cT(t[0])/cT(e),t[1]=cT(t[1])/cT(e),oT.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,fo(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[no(uT(e[0]/r)*r),no(lT(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){aT.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 GM(t=cT(t)/cT(this.base),this._extent)},e.prototype.normalize=function(t){return HM(t=cT(t)/cT(this.base),this._extent)},e.prototype.scale=function(t){return t=WM(t,this._extent),hT(this.base,t)},e.type="log",e}(NM),fT=pT.prototype;function dT(t,e){return sT(t,ro(e))}fT.getMinorTicks=aT.getMinorTicks,fT.getLabel=aT.getLabel,NM.registerClass(pT);var gT=pT,mT=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&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[yT[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[vT[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),vT={min:"_determinedMin",max:"_determinedMax"},yT={min:"_dataMin",max:"_dataMax"};function _T(t,e,n){var i=t.rawExtentInfo;return i||(i=new mT(t,e,n),t.rawExtentInfo=i,i)}function xT(t,e){return null==e?null:et(e)?NaN:t.parse(e)}function bT(t,e){var n=t.type,i=_T(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=hS("bar",a),l=!1;if(B(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=cS(s),h=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e,n){if(t&&e){var i=t[uS(e)];return null!=i&&null!=n?i[lS(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;B(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;B(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function wT(t,e){var n=e,i=bT(t,n),r=i.extent,o=n.get("splitNumber");t instanceof gT&&(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 ST(t,e){if(e=e||t.get("type"))switch(e){case"category":return new UM({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new rT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(NM.getClass(e)||YM)}}function MT(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)}):X(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):U(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(TT(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function TT(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function CT(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 Oe(t.x,t.y,o,a)}function AT(t){var e=t.get("interval");return null==e?"auto":e}function IT(t){return"category"===t.type&&0===AT(t.getLabelModel())}function kT(t,e){var n={};return B(t.mapDimensionsAll(e),(function(e){n[dw(t,e)]=!0})),G(n)}var DT=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 z(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),j(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}(),PT=["x","y"];function LT(t){return"interval"===t.type||"time"===t.type}var ET=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=PT,e}return o(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(LT(t)&<(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,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=we([],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 Oe(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 zt(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 zt(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(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new Oe(i,r,o,a)},e}(DT),OT=ET,RT=Bo();function NT(t,e){var n=z(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function FT(t){var e=t.getLabelModel().get("customValues");if(e){var n=MT(t),i=t.scale.getExtent();return{labels:z(j(NT(t,e),(function(t){return t>=i[0]&&t<=i[1]})),(function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=zT(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=MT(t);return{labels:z(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function BT(t,e){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent();return{ticks:j(NT(t,n),(function(t){return t>=i[0]&&t<=i[1]}))}}return"category"===t.type?function(t,e){var n,i,r=VT(t,"ticks"),o=AT(e),a=jT(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(U(o))n=WT(t,o,!0);else if("auto"===o){var s=zT(t,t.getLabelModel());i=s.labelCategoryInterval,n=z(s.labels,(function(t){return t.tickValue}))}else n=HT(t,i=o,!0);return GT(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:z(t.scale.getTicks(),(function(t){return t.value}))}}function zT(t,e){var n,i,r=VT(t,"labels"),o=AT(e),a=jT(r,o);return a||(U(o)?n=WT(t,o):(i="auto"===o?function(t){var e=RT(t).autoInterval;return null!=e?e:RT(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=HT(t,i)),GT(r,o,{labels:n,labelCategoryInterval:i}))}function VT(t,e){return RT(t)[e]||(RT(t)[e]=[])}function jT(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=IT(t),p=a.get("showMinLabel")||c,f=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var d=u;d<=o[1];d+=l)g(d);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&d-l!==o[1]&&g(o[1]),s}function WT(t,e,n){var i=t.scale,r=MT(t),o=[];return B(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 ZT=[0,1],UT=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 oo(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&&XT(n=n.slice(),i.count()),to(t,ZT,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&XT(n=n.slice(),i.count());var r=to(t,n,ZT,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=z(BT(this,e).ticks,(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[1],tickValue:e[0].tickValue};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;B(e,(function(t){t.coord-=u/2}));var h=t.scale.getExtent();a=1+h[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a,tickValue:h[1]+1},e.push(o)}var c=s[0]>s[1];p(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]});p(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&p(o.coord,s[1])&&e.push({coord:s[1]});function p(t,e){return t=no(t),e=no(e),c?t>e:t0&&t<100||(t=5),z(this.scale.getMinorTicks(t),(function(t){return z(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return FT(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=MT(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],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,f=0;l<=o[1];l+=s){var d,g,m=Ir(n({value:l}),e.font,"center","top");d=1.3*m.width,g=1.3*m.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var v=p/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(v,y))),x=RT(t.model),b=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}(this)},t}();function XT(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var $T=UT,YT=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 o(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}($T),qT=YT;function KT(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:c[0],"x"===u?d[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),nt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function JT(t){return"cartesian2d"===t.get("coordinateSystem")}function QT(t){var e={xAxisModel:null,yAxisModel:null};return B(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Go).models[0];e[i]=o})),e}var tC=Math.log;function eC(t,e,n){var i=YM.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=bT(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=tC(t.base);u=[tC(u[0])/p,tC(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var f=i.getExtent.call(t);h&&(u[0]=f[0]),c&&(u[1]=f[1]);var d=i.getInterval.call(t),g=u[0],m=u[1];if(h&&c)d=(m-g)/a;else if(h)for(m=u[0]+d*a;mu[0]&&isFinite(g)&&isFinite(u[0]);)d=zM(d),g=u[1]-d*a;else{t.getTicks().length-1>a&&(d=zM(d));var v=d*a;(g=no((m=Math.ceil(u[1]/d)*d)-v))<0&&u[0]>=0?(g=0,m=no(v)):m>0&&u[1]<=0&&(m=0,g=-no(v))}var y=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+d*y,m+d*_),i.setInterval.call(t,d),(y||_)&&i.setNiceExtent.call(t,g+d,m-d)}var nC=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=PT,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=G(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;FM(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(wT(l,s),FM(l)&&(e=a))}r.length&&(e||wT((e=r.pop()).scale,e.model),B(r,(function(t){eC(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};B(n.x,(function(t){rC(n,"y",t,r)})),B(n.y,(function(t){rC(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=nc(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){B(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&&(B(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 UM?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=MT(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h0&&i>0||n<0&&i<0)}(t)}var aC=nC,sC=Math.PI,lC=function(){function t(t,e){this.group=new Ur,this.opt=e,this.axisModel=t,O(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ur({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!uC[t]},t.prototype.add=function(t){uC[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=uo(e-t);return ho(o)?(r=n>0?"top":"bottom",i="center"):ho(o-sC)?(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}(),uC={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],u=s[0]>l[0];a&&(zt(s,s,a),zt(l,l,a));var h=E({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new pg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});$g(c.shape,c.style.lineWidth),c.anid="line",n.add(c);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);X(p)&&(p=[p,p]),(X(f)||Y(f))&&(f=[f,f]);var d=Pv(e.get(["axisLine","symbolOffset"])||0,f),g=f[0],m=f[1];B([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[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=kv(p[i],-g/2,-m/2,g,m,h.stroke,!0),o=e.r+e.offset,a=u?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"),u=fC(r.getTicksCoords(),e.transform,l,O(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hc[1]?-1:1,f=["start"===s?c[0]-p*h:"end"===s?c[1]+p*h:(c[0]+c[1])/2,pC(s)?t.labelOffset+l*h:0],d=e.get("nameRotate");null!=d&&(d=d*sC/180),pC(s)?o=lC.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=function(t,e,n,i){var r,o,a=uo(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;ho(a-sC/2)?(o=l?"bottom":"top",r="center"):ho(a-1.5*sC)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*sC&&a>sC/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,d||0,c),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=nt(t.nameTruncateMaxWidth,m.maxWidth,a),_=new pl({x:f[0],y:f[1],rotation:o.rotation,silent:lC.isLabelSilent(e),style:Du(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(lm({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=lC.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,fl(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function hC(t){t&&(t.ignore=!0)}function cC(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=me([]);return xe(r,r,-t.rotation),n.applyTransform(ye([],r,t.getLocalTransform())),i.applyTransform(ye([],r,e.getLocalTransform())),n.intersect(i)}}function pC(t){return"middle"===t||"center"===t}function fC(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function vC(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[_C(t)]}function yC(t){return!!t.get(["handle","show"])}function _C(t){return t.type+"||"+t.id}var xC={},bC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=vC(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=yC(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&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var p=a;null!=c.color&&(p=O({color:c.color},a));var f=P(D(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(X(l)){var d=f.name;f.name=l.replace("{value}",null!=d?d:"")}else U(l)&&(f.name=l(f.name,f));var g=new th(f,null,this.ecModel);return N(g,SM.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=c},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:P({lineStyle:{color:"#bbb"}},HC.axisLine),axisLabel:WC(HC.axisLabel,!1),axisTick:WC(HC.axisTick,!1),splitLine:WC(HC.splitLine,!0),splitArea:WC(HC.splitArea,!0),indicator:[]},e}(hc),UC=ZC,XC=["axisLine","axisTickLabel","axisName"],$C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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;B(z(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new dC(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){B(XC,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"),u=o.get("show"),h=a.get("color"),c=s.get("color"),p=Z(h)?h:[h],f=Z(c)?c:[c],d=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,_=0;_3?1.4:r>1?1.2:1.1;oA(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);oA(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){nA(this._zr,"globalPan")||oA(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Ut);function oA(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(ce(i.event),aA(t,e,n,i,r))}function aA(t,e,n,i,r){r.isAvailableBehavior=H(sA,null,n,i),t.trigger(e,r)}function sA(t,e,n){var i=n[t];return!t||i&&(!X(i)||e.event[i+"Key"])}var lA=rA;function uA(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function hA(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 u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var cA,pA={axisPointer:1,tooltip:1,brush:1};function fA(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!pA.hasOwnProperty(i.mainType)&&r&&r.model!==n}function dA(t){X(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 gA={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"},mA=G(gA),vA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},yA=G(vA),_A=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=dA(t);this._defsUsePending=[];var i=new Ur;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),TA(n,i,null,!0,!1);for(var l,u,h=n.firstChild;h;)this._parseNode(h,i,r,null,!1,!1),h=h.nextSibling;if(function(t,e){for(var n=0;n=4&&(l={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(l&&null!=a&&null!=s&&(u=OA(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;(i=new Ur).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new qs({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,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 u=cA[s];if(u&&_t(cA,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=xA[s];if(p&&_t(xA,s)){var f=p.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=f)}}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 Bs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});SA(e,n),TA(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(cA={g:function(t,e){var n=new Ur;return SA(e,n),TA(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new qs;return SA(e,n),TA(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 Ed;return SA(e,n),TA(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 pg;return SA(e,n),TA(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 Nd;return SA(e,n),TA(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=MA(i));var r=new og({shape:{points:n||[]},silent:!0});return SA(e,r),TA(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=MA(i));var r=new lg({shape:{points:n||[]},silent:!0});return SA(e,r),TA(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Gs;return SA(e,n),TA(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 Ur;return SA(e,a),TA(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 Ur;return SA(e,a),TA(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=kd(t.getAttribute("d")||"");return SA(e,n),TA(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),xA={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 Mg(e,n,i,r);return bA(t,o),wA(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 Tg(e,n,i);return bA(t,r),wA(t,r),r}};function bA(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function wA(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={};EA(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function SA(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),O(e.__inheritedStyle,t.__inheritedStyle))}function MA(t){for(var e=kA(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=kA(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":_e(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":be(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":xe(r,r,-parseFloat(l[0])*PA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":ye(r,[1,0,Math.tan(parseFloat(l[0])*PA),1,0,0],r);break;case"skewY":ye(r,[1,Math.tan(parseFloat(l[0])*PA),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),EA(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 qA(t,e){return z(j((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),B(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=YA(r,i,n);break;case"Polygon":case"MultiLineString":$A(r,i,n);break;case"MultiPolygon":B(r,(function(t,e){return $A(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(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 GA(o[0],o.slice(1)));break;case"MultiPolygon":B(i.coordinates,(function(t){t[0]&&r.push(new GA(t[0],t.slice(1)))}));break;case"LineString":r.push(new HA([i.coordinates]));break;case"MultiLineString":r.push(new HA(i.coordinates))}var a=new WA(n[e||"name"],r,n.cp);return a.properties=n,a}))}for(var KA=[126,25],JA="南海诸岛",QA=[[[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]]],tI=0;tI0,d={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(d):"geoSVG"===s.resourceType&&this._buildSVG(d),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=gt(),n=gt(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(p=r);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Iu(e,ku(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},f);var d=e.getTextContent();if(d&&(pI(d).ignore=d.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 yI(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):fl(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function _I(t,e,n,i,r){t.data||lm({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function xI(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return au(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=fl(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function bI(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(),B(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}(sd),CI=TI;function AI(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)})),B(e,(function(t,e){for(var n,i,r,o=(n=z(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},B(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,h=0;h1?(f.width=p,f.height=p/_):(f.height=p,f.width=p*_),f.y=c[1]-f.height/2,f.x=c[0]-f.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,f=nc(b,{width:v,height:y})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var zI=function(){function t(){this.dimensions=OI}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 FI(o+r,o,E({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=BI,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)}})),B(r,(function(t,r){var o=z(t,(function(t){return t.get("nameMap")})),a=new FI(r,r,E({nameMap:L(o)},i(t[0])));a.zoomLimit=nt.apply(null,z(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=BI,a.resize(t[0],e),B(t,(function(t){t.coordinateSystem=a,function(t,e){B(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=gt(),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,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=QI(s),o=tk(o),s&&o;){r=QI(r),a=tk(a),r.hierNode.ancestor=t;var p=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);p>0&&(nk(ek(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!QI(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!tk(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function qI(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function KI(t){return arguments.length?t:ik}function JI(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function QI(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function tk(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function ek(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function nk(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 ik(t,e){return t.parentNode===e.parentNode?1:2}var rk=function(){this.parentPoint=[],this.childPoints=[]},ok=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rk},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,u=1-l,h=eo(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;py.x)||(x-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),T=M.get("rotate"),C=T*(Math.PI/180),A=m.getTextContent();A&&(m.setTextConfig({position:M.get("position")||S,rotation:null==T?-x:C,origin:"center"}),A.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),k="relative"===I?mt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():null;k&&(fl(n).focus=k),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new vg({shape:pk(h,c,p,r,r)})),yu(g,{shape:pk(h,c,p,o,a)},t));else if("polyline"===u)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],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(X(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 Ak(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function Ik(t,e){return R(Ak(t),e)>=0}function kk(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 Dk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return o(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new th(n,this,this.ecModel),r=Tk.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 Ff("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=kk(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}(sd),Pk=Dk;function Lk(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 Ek(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return nc(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=KI((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=KI());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;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)}));var p=u===h?1:a(u,h)/2,f=p-u.getLayout().x,d=0,g=0,m=0,v=0;if("radial"===i)d=r/(h.getLayout().x+p+f),g=o/(c.depth-1||1),Lk(l,(function(t){m=(t.getLayout().x+f)*d,v=(t.depth-1)*g;var e=JI(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(h.getLayout().x+p+f),d=r/(c.depth-1||1),Lk(l,(function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*d:r-(t.depth-1)*d,t.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(d=r/(h.getLayout().x+p+f),g=o/(c.depth-1||1),Lk(l,(function(t){m=(t.getLayout().x+f)*d,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))}}}(t,e)}))}function Ok(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();E(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var Rk=["treemapZoomToNode","treemapRender","treemapMove"];function Nk(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=Fc(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}var Fk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Bk(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new th({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=Co(e.get("color")),o=Co(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],B(t,(function(t){var e=new th(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=z(i||[],(function(t){return new th(t,o,e)}),this),s=Tk.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 Ff("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=kk(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},E(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=gt(),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(){Nk(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:"▶",zoomToNodeRatio:.1024,scaleLimit:null,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}(sd);function Bk(t){var e=0;B(t.children,(function(t){Bk(t);var n=t.value;Z(n)&&(n=n[0]),e+=n}));var n=t.value;Z(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Z(t.value)?t.value[0]=n:t.value=n}var zk=Fk,Vk=function(){function t(t){this.group=new Ur,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"),u=s.getModel(["itemStyle","textStyle"]),h={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,h,l),this._renderContent(t,h,a,s,l,u,i),ic(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Oo(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,l,u,h,c,p,f,d,g,m=0,v=e.emptyItemWidth,y=t.get(["breadcrumb","height"]),_=(s=e.pos,l=e.box,h=l.width,c=l.height,p=eo(s.left,h),f=eo(s.top,c),d=eo(s.right,h),g=eo(s.bottom,c),(isNaN(p)||isNaN(parseFloat(s.left)))&&(p=0),(isNaN(d)||isNaN(parseFloat(s.right)))&&(d=h),(isNaN(f)||isNaN(parseFloat(s.top)))&&(f=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=c),u=Wh(u||0),{width:Math.max(d-p-u[1]-u[3],0),height:Math.max(g-f-u[0]-u[2],0)}),x=e.totalWidth,b=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M=b[S],T=M.node,C=M.width,A=M.text;x>_.width&&(x-=C-v,C=v,A=null);var I=new og({shape:{points:jk(m,0,C,y,S===b.length-1,0===S)},style:O(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new pl({style:Du(r,{text:A})}),textConfig:{position:"inside"},z2:1e4*Ml,onclick:W(a,T)});I.disableLabelAnimation=!0,I.getTextContent().ensureState("emphasis").style=Du(o,{text:A}),I.ensureState("emphasis").style=w,au(I,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(I),Gk(I,t,T),m+=C+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function jk(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 Gk(t,e,n){fl(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&&kk(n,e)}}var Hk=Vk,Wk=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,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new Oe(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,a){var h=a.min||0,c=a.max||1/0;u=Math.max(Math.min(c,u),h)}var p=u/l.zoom;l.zoom=u;var f=this.seriesModel.layoutInfo,d=[1,0,0,1,0,0];_e(d,d,[-(e-=f.x),-(n-=f.y)]),be(d,d,[p,p]),_e(d,d,[e,n]),s.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.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&&qh(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 Hk(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(Ik(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}(_m);var nD=eD,iD=B,rD=q,oD=-1,aD=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=D(e);this.type=i,this.mappingMethod=n,this._normalizeData=mD[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(sD(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,B(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(iD(e,(function(t,e){n[t]=e})),!Z(i)){var r=[];q(i)?iD(i,(function(t,e){var i=n[e];r[null!=i?i:oD]=t})):r[oD]=i,i=gD(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):sD(r,!0):(st("linear"!==n||r.dataExtent),sD(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return H(this._normalizeData,this)},t.listVisualTypes=function(){return G(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){q(t)?B(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=Z(e)?[]:q(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&&iD(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(Z(t))t=t.slice();else{if(!rD(t))return[];var e=[];iD(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;ou[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var p=new yD(c);return _D(p).drColorMappingBy=h,p}(0,r,o,0,u,f);B(f,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=E({},e);if(r){var s=r.type,l="color"===s&&_D(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,d,i);bD(t,o,n,i)}}))}else s=wD(u),h.fill=s}}function wD(t){var e=SD(t,"color");if(e){var n=SD(t,"colorAlpha"),i=SD(t,"colorSaturation");return i&&(e=oi(e,null,null,i)),n&&(e=ai(e,n)),e}}function SD(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function MD(t,e){var n=t.get(e);return Z(n)&&n.length?{name:e,range:n}:null}var TD=Math.max,CD=Math.min,AD=nt,ID=B,kD=["itemStyle","borderWidth"],DD=["itemStyle","gapWidth"],PD=["upperLabel","show"],LD=["upperLabel","height"],ED={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=nc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=eo(AD(s.width,l[0]),r),h=eo(AD(s.height,l[1]),o),c=i&&i.type,p=Ck(i,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===c||"treemapMove"===c?i.rootRect:null,d=t.getViewRoot(),g=Ak(d);if("treemapMove"!==c){var m="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var h=0,c=o.children,p=0,f=c.length;plo&&(u=lo),a=o}ua[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.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 u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?TD(u*i/l,l/(u*r)):1/0}function ND(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;ci&&(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 x=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(v[1],v[0]);u[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*d+l[0],i.y=-h[1]*g+l[1],c=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=d*x+l[0],i.y=l[1]+w,c=v[0]<0?"right":"left",i.originX=-d*x,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,c="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-d*x+u[0],i.y=u[1]+w,c=v[0]>=0?"right":"left",i.originX=d*x,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||c})}}}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}(Ur),SP=wP;function MP(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:ku(e)}}function TP(t){return isNaN(t[0])||isNaN(t[1])}function CP(t){return t&&!TP(t[0])&&!TP(t[1])}var AP=function(){function t(t){this.group=new Ur,this._LineCtor=t||SP}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=MP(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=MP(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+=u:i-=u:d>=0?i-=u:i+=u}return i}function RP(t,e){var n=[],i=Ln,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),h=t.getVisual("toSymbol");l.__original||(l.__original=[Ct(l[0]),Ct(l[1])],l[2]&&l.__original.push(Ct(l[2])));var c=l.__original;if(null!=l[2]){if(Tt(r[0],c[0]),Tt(r[1],c[2]),Tt(r[2],c[1]),u&&"none"!==u){var p=nP(t.node1),f=OP(r,c[0],p*e);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}if(h&&"none"!==h){p=nP(t.node2),f=OP(r,c[1],p*e);i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]}Tt(l[0],r[0]),Tt(l[1],r[2]),Tt(l[2],r[1])}else{if(Tt(o[0],c[0]),Tt(o[1],c[1]),Dt(a,o[1],o[0]),Ot(a,a),u&&"none"!==u){p=nP(t.node1);kt(o[0],o[0],a,p*e)}if(h&&"none"!==h){p=nP(t.node2);kt(o[1],o[1],a,-p*e)}Tt(l[0],o[0]),Tt(l[1],o[1])}}))}function NP(t){return"view"===t.type}var FP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){var n=new Aw,i=new AP,r=this.group;this._controller=new lA(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(NP(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):yu(s,l,t)}RP(t.getGraph(),eP(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var f=t.get("layout");u.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(f){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),oP(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),QD(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){c&&c.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(fl(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(fl(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var d="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.graph.eachNode((function(t){sP(t,d,g,m)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),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)&&!fA(e,n,t)})),NP(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){uA(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){hA(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(),RP(t.getGraph(),eP(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=eP(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){RP(t.getGraph(),eP(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(_m),BP=FP;function zP(t){return"_EC_"+t}var VP=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[zP(t)]){var i=new jP(t,e);return i.hostGraph=this,this.nodes.push(i),n[zP(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[zP(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(Y(t)&&(t=this.nodes[t]),Y(e)&&(e=this.nodes[e]),t instanceof jP||(t=i[zP(t)]),e instanceof jP||(e=i[zP(e)]),t&&e){var o=t.id+"-"+e.id,a=new GP(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 jP&&(t=t.id),e instanceof jP&&(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 jP||(e=this._nodesMap[zP(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)}}}N(jP,HP("hostGraph","data")),N(GP,HP("hostGraph","edgeData"));var WP=VP;function ZP(t,e,n,i,r){for(var o=new WP(i),a=0;a "+p)),u++)}var f,d=n.get("coordinateSystem");if("cartesian2d"===d||"polar"===d)f=gw(t,n);else{var g=Yc.get(d),m=g&&g.dimensions||[];R(m,"value")<0&&m.concat(["value"]);var v=sw(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(f=new aw(v,n)).initData(t)}var y=new aw(["value"],n);return y.initData(l,s),r&&r(f,y),wk({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var UP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new uM(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),Ao(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){WD(n=this)&&(n.__curvenessList=[],n.__edgeMap={},ZD(n));var a=ZP(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=th.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 B(a.edges,(function(t){!function(t,e,n,i){if(WD(n)){var r=UD(t,e,n),o=n.__edgeMap,a=o[XD(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),Ff("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Yf({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=z(this.option.categories||[],(function(t){return null!=t.value?t:E({value:0},t)})),e=new aw(["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}(sd),XP=UP,$P={type:"graphRoam",event:"graphRoam",update:"none"};var YP=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},qP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return o(e,t),e.prototype.getDefaultShape=function(){return new YP},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}(Rs),KP=qP;function JP(t,e){var n=null==t?"":t+"";return e&&(X(e)?n=e.replace("{value}",n):U(e)&&(n=e(t))),n}var QP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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:eo(n[0],e.getWidth()),cy:eo(n[1],e.getHeight()),r:eo(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,u=t.getModel("axisLine"),h=u.get("roundCap")?SS:Jd,c=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),d=[s,l];cs(d,!a);for(var g=(l=d[1])-(s=d[0]),m=s,v=[],y=0;c&&y=t&&(0===e?0:i[e-1][0])Math.PI/2&&(B+=Math.PI):"tangential"===F?B=-M-Math.PI/2:Y(F)&&(B=F*Math.PI/180),0===B?c.add(new pl({style:Du(_,{text:E,x:R,y:N,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:O}),silent:!0})):c.add(new pl({style:Du(_,{text:E,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:O}),silent:!0,originX:R,originY:N,rotation:B}))}if(y.get("show")&&D!==x){L=(L=y.get("distance"))?L+l:l;for(var z=0;z<=b;z++){u=Math.cos(M),h=Math.sin(M);var V=new pg({shape:{x1:u*(d-L)+p,y1:h*(d-L)+f,x2:u*(d-S-L)+p,y2:h*(d-S-L)+f},silent:!0,style:I});"auto"===I.stroke&&V.setStyle({stroke:i((D+z/b)/x)}),c.add(V),M+=C}M-=C}else M+=T}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,h=this._data,c=this._progressEls,p=[],f=t.get(["pointer","show"]),d=t.getModel("progress"),g=d.get("show"),m=t.getData(),v=m.mapDimension("value"),y=+t.get("min"),_=+t.get("max"),x=[y,_],b=[o,a];function w(e,n){var i,o=m.getItemModel(e).getModel("pointer"),a=eo(o.get("width"),r.r),s=eo(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),h=eo(u[0],r.r),c=eo(u[1],r.r),p=o.get("keepAspect");return(i=l?kv(l,h-a/2,c-s,a,s,null,p):new KP({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:c}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=d.get("roundCap")?SS:Jd,i=d.get("overlap"),a=i?d.get("width"):l/m.count(),u=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,c=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:h}});return i&&(c.z2=to(m.get(v,t),[y,_],[100,0],!0)),c}(g||f)&&(m.diff(h).add((function(e){var n=m.get(v,e);if(f){var i=w(e,o);_u(i,{rotation:-((isNaN(+n)?b[0]:to(n,x,b,!0))+Math.PI/2)},t),u.add(i),m.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=d.get("clip");_u(r,{shape:{endAngle:to(n,x,b,a)}},t),u.add(r),dl(t.seriesIndex,m.dataType,e,r),p[e]=r}})).update((function(e,n){var i=m.get(v,e);if(f){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,yu(s,{rotation:-((isNaN(+i)?b[0]:to(i,x,b,!0))+Math.PI/2)},t),u.add(s),m.setItemGraphicEl(e,s)}if(g){var l=c[n],y=S(e,l?l.shape.endAngle:o),_=d.get("clip");yu(y,{shape:{endAngle:to(i,x,b,_)}},t),u.add(y),dl(t.seriesIndex,m.dataType,e,y),p[e]=y}})).execute(),m.each((function(t){var e=m.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var s=m.getItemGraphicEl(t),l=m.getItemVisual(t,"style"),u=l.fill;if(s instanceof Gs){var h=s.style;s.useStyle(E({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(to(m.get(v,t),x,[0,1],!0))),s.z2EmphasisLift=0,hu(s,e),au(s,r,o,a)}if(g){var c=p[t];c.useStyle(m.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,hu(c,e),au(c,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=kv(r,e.cx-i/2+eo(o[0],e.r),e.cy-i/2+eo(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"),u=+t.get("max"),h=new Ur,c=[],p=[],f=t.isAnimationEnabled(),d=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){c[t]=new pl({silent:!0}),p[t]=new pl({silent:!0})})).update((function(t,e){c[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 Ur,m=i(to(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),_=r.cx+eo(y[0],r.r),x=r.cy+eo(y[1],r.r);(I=c[e]).attr({z2:d?0:2,style:Du(v,{x:_,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(I)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+eo(w[0],r.r),M=r.cy+eo(w[1],r.r),T=eo(b.get("width"),r.r),C=eo(b.get("height"),r.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,I=p[e],k=b.get("formatter");I.attr({z2:d?0:2,style:Du(b,{x:S,y:M,text:JP(o,k),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Bu(I,{normal:b},o,(function(t){return JP(t,k)})),f&&zu(I,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return JP(a?a.interpolatedValue:o,k)}}),g.add(I)}h.add(g)})),this.group.add(h),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(_m),tL=QP,eL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return o(e,t),e.prototype.getInitialData=function(t,e){return sM(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}(sd),nL=eL;var iL=["itemStyle","opacity"],rL=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new lg,a=new pl;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return o(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(iL);l=null==l?1:l,n||Mu(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,_u(i,{style:{opacity:l}},r,e)):yu(i,{style:{opacity:l},shape:{points:a.points}},r,e),hu(i,o),this._updateLabel(t,e),au(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"),u=l.fill;Iu(r,ku(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:u,outsideFill:u});var h=s.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Me(h[0][0],h[0][1]):null},yu(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),j_(n,G_(a),{stroke:u})},e}(og),oL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return o(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 rL(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){Su(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}(_m),aL=oL,sL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new uM(H(this.getData,this),H(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return sM(this,{coordDimensions:["value"],encodeDefaulter:W(Cc,this)})},e.prototype._defaultLabelLine=function(t){Ao(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}(sd),lL=sL;function uL(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return nc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=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&&ML(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 ML(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var TL=wL,CL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&P(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){B(["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=[];B(j(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(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}(hc),AL=CL,IL=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 o(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}($T),kL=IL;function DL(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=LL(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=LL(s,[0,a]),r=o=LL(s,[r,o]),i=0}e[0]=LL(e[0],n),e[1]=LL(e[1],n);var l=PL(e,i);e[i]+=t;var u,h=r||0,c=n.slice();return l.sign<0?c[0]+=h:c[1]-=h,e[i]=LL(e[i],c),u=PL(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function PL(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 LL(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var EL=B,OL=Math.min,RL=Math.max,NL=Math.floor,FL=Math.ceil,BL=no,zL=Math.PI,VL=function(){function t(t,e,n){this.type="parallel",this._axesMap=gt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;EL(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new kL(t,ST(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=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();EL(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),wT(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=nc(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],u=this.dimensions.length,h=jL(e.get("axisExpandWidth"),l),c=jL(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");f?(t=jL(f[1]-f[0],l),f[1]=f[0]+t):(t=jL(h*(c-1),l),(f=[h*(e.get("axisExpandCenter")||NL(u/2))-t/2])[1]=f[0]+t);var d=(s-t)/(u-c);d<3&&(d=0);var g=[NL(BL(f[0]/h,1))+1,FL(BL(f[1]/h,1))-1],m=d/h*f[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:h,axisCollapseWidth:d,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},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])})),EL(n,(function(e,n){var o=(i.axisExpandable?HL:GL)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:zL/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=[1,0,0,1,0,0];xe(h,h,u),_e(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,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=[];B(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?DL(a,i,o,"all"):l="none";else{var p=i[1]-i[0];(i=[RL(0,o[1]*s/p-p/2)])[1]=OL(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},t}();function jL(t,e){return OL(RL(t,e[0]),e[1])}function GL(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function HL(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=0;n--)io(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;iQL}(t)||o){if(a&&!o){"single"===s.brushMode&&gE(t);var l=D(s);l.brushType=LE(l.brushType,a),l.panelId=a===$L?null:a.panelId,o=t._creatingCover=sE(t,l),t._covers.push(o)}if(o){var u=RE[LE(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(IE(t,o,t._track)),i&&(lE(t,o),u.updateCommon(t,o)),uE(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&fE(t,e,n)&&gE(t)&&(r={isEnd:i,removeOnClick:!0});return r}function LE(t,e){return"auto"===t?e.defaultBrushType:t}var EE={mousedown:function(t){if(this._dragging)OE(this,t);else if(!t.target||!t.target.draggable){kE(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=fE(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=fE(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new th(r[a],this,e));var s=ZP(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}))}));return s.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 Ff("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 Ff("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}(sd),tO=QE;function eO(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return nc(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,u=s.edges;!function(t){B(t,(function(t){var e=cO(t.outEdges,hO),n=cO(t.inEdges,hO),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=[],u=[],h=[],c=0,p=0;p=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:c},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yc-1?f:c-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--)rO(s,l*=.99,a),iO(s,r,n,i,a),pO(s,l,a),iO(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";B(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]}))})),B(t,(function(t){var e=0,n=0;B(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),B(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,i,o,a,0!==j(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function nO(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function iO(t,e,n,i,r){var o="vertical"===r?"x":"y";B(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,h=t.length,c="vertical"===r?"dx":"dy",p=0;p0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;if((l=u-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(p=h-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[c]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function rO(t,e,n){B(t.slice().reverse(),(function(t){B(t,(function(t){if(t.outEdges.length){var i=cO(t.outEdges,oO,n)/cO(t.outEdges,hO);if(isNaN(i)){var r=t.outEdges.length;i=r?cO(t.outEdges,aO,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-uO(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-uO(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function oO(t,e){return uO(t.node2,e)*t.getValue()}function aO(t,e){return uO(t.node2,e)}function sO(t,e){return uO(t.node1,e)*t.getValue()}function lO(t,e){return uO(t.node1,e)}function uO(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function hO(t){return t.getValue()}function cO(t,e,n){for(var i=0,r=t.length,o=-1;++oo&&(o=e)})),B(n,(function(e){var n=new yD({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&&B(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var dO=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},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=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],p=[r,o],f=p[u].get("type"),d=p[1-u].get("type"),g=t.data;if(g&&i){var m=[];B(g,(function(t,e){var n;Z(t)?(n=t.slice(),t.unshift(e)):Z(t.value)?((n=E({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)})),t.data=m}var v=this.defaultValueDimensions,y=[{name:h,type:Bb(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Bb(d),dimsDef:v.slice()}];return sM(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:W(Tc,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),gO=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 o(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}(sd);N(gO,dO,!0);var mO=gO,vO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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=xO(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?(Mu(n),bO(s,n,i,t)):n=xO(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}(_m),yO=function(){},_O=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return o(e,t),e.prototype.getDefaultShape=function(){return new yO},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 x=[v,_];i.push(x)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var AO=["itemStyle","borderColor"],IO=["itemStyle","borderColor0"],kO=["itemStyle","borderColorDoji"],DO=["itemStyle","color"],PO=["itemStyle","color0"];function LO(t,e){return e.get(t>0?DO:PO)}function EO(t,e){return e.get(0===t?kO:t>0?AO:IO)}var OO={seriesType:"candlestick",plan:hd(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=LO(r,i),o.stroke=EO(r,i)||o.fill,E(e.ensureUniqueItemVisual(n,"style"),o)}}}}},RO=["color","borderColor"],NO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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){hm(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&&VO(s,a))return;var l=zO(a,n,!0);_u(l,{shape:{points:a.ends}},t,n),jO(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var h=e.getItemLayout(a);o&&VO(s,h)?i.remove(u):(u?(yu(u,{shape:{points:h.ends}},t,a),Mu(u)):u=zO(h,a),jO(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),ZO(t,this.group);var e=t.get("clip",!0)?Hw(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=zO(i.getItemLayout(n),n);jO(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){ZO(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}(_m),FO=function(){},BO=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return o(e,t),e.prototype.getDefaultShape=function(){return new FO},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}(Rs);function zO(t,e,n){var i=t.ends;return new BO({shape:{points:n?GO(i,t):i},z2:100})}function VO(t,e){for(var n=!0,i=0;if?_[1]:y[1],ends:w,brushRect:C(d,g,c)})}function M(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]=qg(r[0]+i/2,1,!1),o[0]=qg(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function C(t,e,n){var r=M(t,n),o=M(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 A(t){return t[0]=qg(t[0],1),t}}}}};function JO(t,e,n,i,r,o){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}var QO=KO;function tR(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 eR=function(t){function e(e,n){var i=t.call(this)||this,r=new ww(e,n),o=new Ur;return i.add(r),i.add(o),i.updateData(e,n),i}return o(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 h=void 0;h=U(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,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 Nt(t.__p1,t.__cp1)+Nt(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=kn,l=Dn;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),h=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(h,u)-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],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var h=t.__t<1?u[0]-l[0]:l[0]-u[0],c=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(lR),pR=cR,fR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},dR=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(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 fR},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 c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,p,u,h)}else t.lineTo(u,h)}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 u=i[s++],h=i[s++],c=1;c0){if(ms(u,h,(u+p)/2-(h-f)*r,(h+f)/2-(p-u)*r,p,f,o,t,e))return a}else if(ds(u,h,p,f,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}(),mR={seriesType:"lines",plan:hd(),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 u=0,h=r.start;h0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&Hw(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):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=vR.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 gR:new AP(r?i?pR:hR:i?lR:SP),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}(_m),_R=yR,xR="undefined"==typeof Uint32Array?Array:Uint32Array,bR="undefined"==typeof Float64Array?Array:Float64Array;function wR(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=z(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),L([e,t[0],t[1]])})))}var SR=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 o(e,t),e.prototype.init=function(e){e.data=e.data||[],wR(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(wR(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=mt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=mt(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}(sd),MR=SR;function TR(t){return t instanceof Array||(t=[t,t]),t}var CR={seriesType:"lines",reset:function(t){var e=TR(t.get("symbol")),n=TR(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=TR(n.getShallow("symbol",!0)),r=TR(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 AR=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=g.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"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),p=t.length;h.width=e,h.height=n;for(var f=0;f0){var T=o(v)?s:l;v>0&&(v=v*S+w),_[x++]=T[M],_[x++]=T[M+1],_[x++]=T[M+2],_[x++]=T[M+3]*v*256}else x+=4}return c.putImageData(y,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=g.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}(),IR=AR;function kR(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var DR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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()):kR(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&&(kR(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){hm(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=Ww(u,"cartesian2d");if(h){var c=u.getAxis("x"),p=u.getAxis("y");0,o=c.getBandWidth()+.5,a=p.getBandWidth()+.5,s=c.scale.getExtent(),l=p.scale.getExtent()}for(var f=this.group,d=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),_=ku(t),x=t.getModel("emphasis"),b=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),M=h?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],T=n;Ts[1]||kl[1])continue;var D=u.dataToPoint([I,k]);C=new qs({shape:{x:D[0]-o/2,y:D[1]-a/2,width:o,height:a},style:A})}else{if(isNaN(d.get(M[1],T)))continue;C=new qs({z2:1,shape:u.dataToRect([d.get(M[0],T)]).contentShape,style:A})}if(d.hasItemOption){var P=d.getItemModel(T),L=P.getModel("emphasis");g=L.getModel("itemStyle").getItemStyle(),m=P.getModel(["blur","itemStyle"]).getItemStyle(),v=P.getModel(["select","itemStyle"]).getItemStyle(),y=P.get(["itemStyle","borderRadius"]),b=L.get("focus"),w=L.get("blurScope"),S=L.get("disabled"),_=ku(P)}C.shape.r=y;var E=t.getRawValue(T),O="-";E&&null!=E[2]&&(O=E[2]+""),Iu(C,_,{labelFetcher:t,labelDataIndex:T,defaultOpacity:A.opacity,defaultText:O}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=m,C.ensureState("select").style=v,au(C,b,w,S),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),f.add(C),d.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 IR;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(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),f=Math.min(l.height+l.y,i.getHeight()),d=p-h,g=f-c,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=c,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=z(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&&i=0?1:-1:o>0?1:-1}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h,c=l.valueDim,p=l.categoryDim,f=Math.abs(n[p.wh]),d=t.getItemVisual(e,"symbolSize");h=Z(d)?d.slice():null==d?["100%","100%"]:[d,d];h[p.index]=eo(h[p.index],f),h[c.index]=eo(h[c.index],i?f:Math.abs(o)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(OR)||0;o&&(NR.attr({scaleX:e[0],scaleY:e[1],rotation:n}),NR.updateTransform(),o/=NR.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,c.symbolScale,l,i,c);var p=c.symbolSize,f=Pv(n.get("symbolOffset"),p);return function(t,e,n,i,r,o,a,s,l,u,h,c){var p=h.categoryDim,f=h.valueDim,d=c.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=nt(t.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var x=eo(y,e[f.index]),b=Math.max(g+2*x,0),w=_?0:2*x,S=_o(i),M=S?i:tN((v+w)/b);b=g+2*(x=(v-M*g)/2/(_?M:Math.max(M-1,1))),w=_?0:2*x,S||"fixed"===i||(M=u?tN((Math.abs(u)+w)/b):0),m=M*b-w,c.repeatTimes=M,c.symbolMargin=x}var T=d*(m/2),C=c.pathPosition=[];C[p.index]=n[p.wh]/2,C[f.index]="start"===a?T:"end"===a?l-T:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var A=c.bundlePosition=[];A[p.index]=n[p.xy],A[f.index]=n[f.xy];var I=c.barRectShape=E({},n);I[f.wh]=d*Math.max(Math.abs(n[f.wh]),Math.abs(C[f.index]+T)),I[p.wh]=n[p.wh];var k=c.clipShape={};k[p.xy]=-n[p.xy],k[p.wh]=h.ecSize[p.wh],k[f.xy]=0,k[f.wh]=n[f.wh]}(n,p,r,o,0,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function zR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function VR(t){var e=t.symbolPatternSize,n=kv(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function jR(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(KR(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function GR(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?JR(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=VR(n),r.add(o),JR(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 HR(t,e,n){var i=E({},e.barRectShape),r=t.__pictorialBarRect;r?JR(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new qs({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function WR(t,e,n,r){if(n.symbolClip){var o=t.__pictorialClipPath,a=E({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(o)yu(o,{shape:a},l,u);else{a[s.wh]=0,o=new qs({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[s.wh]=n.clipShape[s.wh],i[r?"updateProps":"initProps"](o,{shape:h},l,u)}}}function ZR(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=UR,n.isAnimationEnabled=XR,n}function UR(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function XR(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $R(t,e,n,i){var r=new Ur,o=new Ur;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?jR(r,e,n):GR(r,0,n),HR(r,n,i),WR(r,e,n,i),r.__pictorialShapeStr=qR(t,n),r.__pictorialSymbolMeta=n,r}function YR(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];KR(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),B(o,(function(t){bu(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function qR(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function KR(t,e,n){B(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function JR(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 QR(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(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");KR(t,(function(t){if(t instanceof Gs){var e=t.style;t.useStyle(E({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,u&&(t.cursor=u),t.z2=n.z2}));var f=e.valueDim.posDesc[+(n.boundingLength>0)],d=t.__pictorialBarRect;d.ignoreClip=!0,Iu(d,ku(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:yw(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),au(t,h,c,o.get("disabled"))}function tN(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var eN=FR,nN=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 o(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=ih(yS.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yS),iN=nN;var rN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return o(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,u=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=l.y+u[0];var c=new Rb(this._layersSeries||[],a,h,h),p=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,h,c=[],f=[],d=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=c)}return{y0:r,max:o}}(l),h=u.y0,c=n/u.max,p=o.length,f=o[0].indices.length,d=0;dT&&!ho(A-T)&&A0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new cN(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=h},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)qh(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:pN,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}(_m),mN=gN,vN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};yN(n);var i=this._levelModels=z(t.levels||[],(function(t){return new th(t,this,e)}),this),r=Tk.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=kk(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(){Nk(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}(sd);function yN(t){var e=0;B(t.children,(function(t){yN(t);var n=t.value;Z(n)&&(n=n[0]),e+=n}));var n=t.value;Z(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Z(t.value)?t.value[0]=n:t.value=n}var _N=vN,xN=Math.PI/180;function bN(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");Z(i)||(i=[0,i]),Z(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=eo(e[0],r),l=eo(e[1],o),u=eo(i[0],a/2),h=eo(i[1],a/2),c=-t.get("startAngle")*xN,p=t.get("minAngle")*xN,f=t.getData().tree.root,d=t.getViewRoot(),g=d.depth,m=t.get("sort");null!=m&&wN(d,m);var v=0;B(d.children,(function(t){!isNaN(t.getValue())&&v++}));var y=d.getValue(),_=Math.PI/(y||v)*2,x=d.depth>0,b=d.height-(x?-1:1),w=(h-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),T=S?1:-1,C=function(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&M?_:r*_;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&X(o)&&(o=ni(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),E(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)}))}))}var MN={color:"fill",borderColor:"stroke"},TN={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},CN=Bo(),AN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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 gw(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=CN(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}(sd),IN=AN;function kN(t,e){return e=e||[0,0],z(["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 DN(t,e){return e=e||[0,0],z([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 PN(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 LN(t,e){return e=e||[0,0],z(["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 EN(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||_t(t,"text")))}function ON(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},_t(a,"text")&&(o.text=a.text),_t(a,"rich")&&(o.rich=a.rich),_t(a,"textFill")&&(o.fill=a.textFill),_t(a,"textStroke")&&(o.stroke=a.textStroke),_t(a,"fontFamily")&&(o.fontFamily=a.fontFamily),_t(a,"fontSize")&&(o.fontSize=a.fontSize),_t(a,"fontStyle")&&(o.fontStyle=a.fontStyle),_t(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=_t(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),_t(a,"textPosition")&&(i.position=a.textPosition),_t(a,"textOffset")&&(i.offset=a.textOffset),_t(a,"textRotation")&&(i.rotation=a.textRotation),_t(a,"textDistance")&&(i.distance=a.textDistance)}return RN(o,t),B(o.rich,(function(t){RN(t,t)})),{textConfig:i,textContent:r}}function RN(t,e){e&&(e.font=e.textFont||e.font,_t(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),_t(e,"textAlign")&&(t.align=e.textAlign),_t(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),_t(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),_t(e,"textWidth")&&(t.width=e.textWidth),_t(e,"textHeight")&&(t.height=e.textHeight),_t(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),_t(e,"textPadding")&&(t.padding=e.textPadding),_t(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),_t(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),_t(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),_t(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),_t(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),_t(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),_t(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function NN(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";FN(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,B(e.rich,(function(t){FN(t,t)})),i}function FN(t,e){e&&(_t(e,"fill")&&(t.textFill=e.fill),_t(e,"stroke")&&(t.textStroke=e.fill),_t(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),_t(e,"font")&&(t.font=e.font),_t(e,"fontStyle")&&(t.fontStyle=e.fontStyle),_t(e,"fontWeight")&&(t.fontWeight=e.fontWeight),_t(e,"fontSize")&&(t.fontSize=e.fontSize),_t(e,"fontFamily")&&(t.fontFamily=e.fontFamily),_t(e,"align")&&(t.textAlign=e.align),_t(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),_t(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),_t(e,"width")&&(t.textWidth=e.width),_t(e,"height")&&(t.textHeight=e.height),_t(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),_t(e,"padding")&&(t.textPadding=e.padding),_t(e,"borderColor")&&(t.textBorderColor=e.borderColor),_t(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),_t(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),_t(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),_t(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),_t(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),_t(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),_t(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),_t(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),_t(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),_t(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var BN={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},zN=G(BN),VN=(V(wr,(function(t,e){return t[e]=1,t}),{}),wr.join(", "),["","style","shape","extra"]),jN=Bo();function GN(t,e,n,i,r){var o=t+"Animation",a=mu(t,i,r)||{},s=jN(e).userDuring;return a.duration>0&&(a.during=s?H(YN,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),E(a,n[o]),a}function HN(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=jN(t),u=e.style;l.userDuring=e.during;var h={},c={};if(function(t,e,n){for(var i=0;i=0)){var c=t.getAnimationStyleProps(),p=c?c.style:null;if(p){!r&&(r=i.style={});var f=G(n);for(u=0;u0&&t.animateFrom(p,f)}else!function(t,e,n,i,r){if(r){var o=GN("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,h);WN(t,e),u?t.dirty():t.markRedraw()}function WN(t,e){for(var n=jN(t).leaveToProps,i=0;i=0){!o&&(o=i[t]={});var p=G(a);for(h=0;hi[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:H(LN,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 dF(t){return t instanceof Rs}function gF(t){return t instanceof La}var mF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=wF(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){MF(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&ZN(n,CN(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);MF(n,u,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?Hw(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=wF(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=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,iF).getItemStyle(),o=_(i,iF),a=Du(o,null,null,!0,!0);a.text=o.getShallow("show")?rt(t.getFormattedLabel(i,iF),t.getFormattedLabel(i,rF),yw(e,i)):null;var l=Pu(o,null,!0);return b(n,r),r=NN(r,a,l),n&&x(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),_t(MN,t)){var i=e.getItemVisual(n,"style");return i?i[MN[t]]:null}if(_t(TN,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=c;d--){var g=e.childAt(d);DF(e,g,r)}}(t,c,n,i,r),a>=0?o.replaceAt(c,a):o.add(c),c}function CF(t,e,n){var i,r=CN(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(_t(i,"pathData")||_t(i,"d")))&&OF(a)!==r.customPathData||"image"===o&&_t(s,"image")&&s.image!==r.customImagePath}function AF(t,e,n){var i=e?IF(t,e):t,r=e?kF(t,i,iF):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?IF(s,e):s:null;if(r&&(n.isLegacy||EN(r,o,!!a,!!l))){n.isLegacy=!0;var u=ON(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;!h.type&&(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function IF(t,e){return e?t?t[e]:null:t}function kF(t,e,n){var i=e&&e.style;return null==i&&n===iF&&t&&(i=t.styleEmphasis),i}function DF(t,e,n){e&&ZN(e,CN(t).option,n)}function PF(t,e){var n=t&&t.name;return null!=n?n:cF+e}function LF(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;TF(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function EF(t){var e=this.context,n=e.oldChildren[t];n&&ZN(n,CN(n).option,e.seriesModel)}function OF(t){return t&&(t.pathData||t.d)}var RF=Bo(),NF=D,FF=H,BF=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 u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=W(zF,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new Ur,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);HF(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=vC(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=RF(t).pointerEl=new i[o.type](NF(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=RF(t).labelEl=new pl(NF(e.label));t.add(r),jF(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=RF(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=RF(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),jF(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=rm(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ce(t.event)},onmousedown:FF(this._onHandleDragMove,this,0,0),drift:FF(this._onHandleDragMove,this),ondragend:FF(this._onHandleDragEnd,this)}),i.add(r)),HF(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Z(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Mm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){zF(this._axisPointerModel,!e&&this._moveAnimation,this._handle,GF(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(GF(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(GF(i)),RF(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),Tm(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 zF(t,e,n,i){VF(RF(n).lastProp,i)||(RF(n).lastProp=i,e?yu(n,i,t):(n.stopAnimation(),n.attr(i)))}function VF(t,e){if(q(t)&&q(e)){var n=!0;return B(e,(function(e,i){n=n&&VF(t[i],e)})),!!n}return t===e}function jF(t,e){t[e.get(["label","show"])?"show":"hide"]()}function GF(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function HF(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 WF=BF;function ZF(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 UF(t,e,n,i,r){var o=XF(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=Wh(a.get("padding")||0),l=a.getFont(),u=Ir(o,l),h=r.position,c=u.width+s[1]+s[3],p=u.height+s[0]+s[2],f=r.align;"right"===f&&(h[0]-=c),"center"===f&&(h[0]-=c/2);var d=r.verticalAlign;"bottom"===d&&(h[1]-=p),"middle"===d&&(h[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)}(h,c,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Du(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function XF(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:TT(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};B(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),X(a)?o=a.replace("{value}",o):U(a)&&(o=a(s))}return o}function $F(t,e,n){var i=[1,0,0,1,0,0];return xe(i,i,n.rotation),_e(i,i,n.position),Jg([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function YF(t,e,n,i,r,o){var a=dC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),UF(e,i,r,o,{position:$F(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function qF(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function KF(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function JF(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var QF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=tB(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=ZF(i),c=eB[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}YF(e,t,KT(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=KT(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=$F(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=tB(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(WF);function tB(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var eB={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:qF([e,n[0]],[e,n[1]],nB(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:KF([e-i/2,n[0]],[i,r],nB(t))}}};function nB(t){return"x"===t.dim?0:1}var iB=QF,rB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(hc),oB=rB,aB=Bo(),sB=B;function lB(t,e,n){if(!l.node){var i=e.getZr();aB(i).records||(aB(i).records={}),function(t,e){if(aB(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);sB(aB(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)}))}aB(t).initialized=!0,n("click",W(hB,"click")),n("mousemove",W(hB,"mousemove")),n("globalout",uB)}(i,e),(aB(i).records[t]||(aB(i).records[t]={})).handler=n}}function uB(t,e,n){t.handler("leave",null,n)}function hB(t,e,n,i){e.handler(t,n,i)}function cB(t,e){if(!l.node){var n=e.getZr();(aB(n).records||{})[t]&&(aB(n).records[t]=null)}}var pB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";lB("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){cB("axisPointer",e)},e.prototype.dispose=function(t,e){cB("axisPointer",e)},e.type="axisPointer",e}(ud),fB=pB;function dB(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Fo(o,t);if(null==a||a<0||Z(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 u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(c),d=[];d[p]=o.get(f,a),d[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(d)||[]}else i=l.dataToPoint(o.getValues(z(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 gB=Bo();function mB(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||H(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bB(r)&&(r=dB({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bB(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||bB(r),p={},f={},d={list:[],map:{}},g={showPointer:W(yB,f),showTooltip:W(_B,d)};B(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);B(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}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&vB(t,a,g,!1,p)}}))}));var m={};return B(h,(function(t,e){var n=t.linkGroup;n&&!f[e]&&B(n.axesInfo,(function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,xB(e),xB(t)))),m[t.key]=o}}))})),B(m,(function(t,e){vB(h[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];B(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})}))}(f,h,p),function(t,e,n,i){if(bB(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})}(d,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=gB(i)[r]||{},a=gB(i)[r]={};B(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&B(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];B(o,(function(t,e){!a[e]&&l.push(t)})),B(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})}(h,0,n),p}}function vB(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 B(e.seriesModels,(function(e,l){var u,h,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(c,t,n);h=p.dataIndices,u=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,d=Math.abs(f);d<=a&&((d=0&&s<0)&&(a=d,s=f,r=u,o.length=0),B(h,(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&&E(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 yB(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function _B(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,u=_C(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.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 xB(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 bB(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function wB(t){wC.registerAxisPointerClass("CartesianAxisPointer",iB),t.registerComponentModel(oB),t.registerComponentView(fB),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Z(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=gC(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mB)}var SB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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),u=i.get("type");if(u&&"none"!==u){var h=ZF(i),c=MB[u](o,a,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}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,u,h,c=i.getRadiusAxis().getExtent();if("radius"===o.dim){var p=[1,0,0,1,0,0];xe(p,p,s),_e(p,p,[i.cx,i.cy]),l=Jg([a,-r],p);var f=e.getModel("axisLabel").get("rotate")||0,d=dC.innerTextLayout(s,f*Math.PI/180,-1);u=d.textAlign,h=d.textVerticalAlign}else{var g=c[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,n,0,a,i.get(["label","margin"]));UF(t,n,i,r,p)},e}(WF);var MB={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:qF(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:JF(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:JF(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},TB=SB,CB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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}(hc),AB=CB,IB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Go).models[0]},e.type="polarAxis",e}(hc);N(IB,SM);var kB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="angleAxis",e}(IB),DB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="radiusAxis",e}(IB),PB=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}($T);PB.prototype.dataToRadius=$T.prototype.dataToCoord,PB.prototype.radiusToData=$T.prototype.coordToData;var LB=PB,EB=Bo(),OB=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return o(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=Ir(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),c=EB(t.model),p=c.lastAutoInterval,f=c.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(c.lastTickCount=r,c.lastAutoInterval=h),h},e}($T);OB.prototype.dataToAngle=$T.prototype.dataToCoord,OB.prototype.angleToData=$T.prototype.coordToData;var RB=OB,NB=["radius","angle"],FB=function(){function t(t){this.dimensions=NB,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new LB,this._angleAxis=new RB,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,u=la;)l+=360*u;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,r=1e-4;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,o=n*n+i*i,a=this.r,s=this.r0;return a!==s&&o-r<=a*a&&o+r>=s*s}}},t.prototype.convertToPixel=function(t,e,n){return BB(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return BB(e)===this?this.pointToData(n):null},t}();function BB(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var zB=FB;function VB(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();B(kT(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),B(kT(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),wT(i.scale,i.model),wT(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 jB(t,e){var n;if(t.type=e.get("type"),t.scale=ST(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 i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}var GB={dimensions:NB,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new zB(i+"");r.update=VB;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");jB(o,s),jB(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=eo(i[0],r),t.cy=eo(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:Z(l)||(l=[0,l]);var u=[eo(l[0],s),eo(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[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",Go).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},HB=GB,WB=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ZB(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 UB(t){return t.getRadiusAxis().inverse?0:1}function XB(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 $B=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return o(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=z(n.getViewLabels(),(function(t){t=D(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));XB(s),XB(o),B(WB,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||YB[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(wC),YB={axisLine:function(t,e,n,r,o,a){var s,l=e.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),h=Math.PI/180,c=u.getExtent(),p=UB(n),f=p?0:1,d=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(s=0===a[f]?new i[d]({shape:{cx:n.cx,cy:n.cy,r:a[p],startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new eg({shape:{cx:n.cx,cy:n.cy,r:a[p],r0:a[f]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(s)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[UB(n)],u=z(i,(function(t){return new pg({shape:ZB(n,[l,l+s],t.coord)})}));t.add(Ug(u,{style:O(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"),u=o[UB(n)],h=[],c=0;cd?"left":"right",v=Math.abs(f[1]-g)/p<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[c]){var y=s[c];q(y)&&y.textStyle&&(a=new th(y.textStyle,l,l.ecModel))}var _=new pl({silent:dC.isLabelSilent(e),style:Du(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(_),h){var x=dC.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=i.rawLabel,fl(_).eventData=x}}),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 u=[],h=0;h=0?"p":"n",A=b;y&&(i[s][T]||(i[s][T]={p:b,n:b}),A=i[s][T][C]);var I=void 0,k=void 0,D=void 0,P=void 0;if("radius"===c.dim){var L=c.dataToCoord(M)-b,E=o.dataToCoord(T);Math.abs(L)=P})}}}))},oz={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},az={splitNumber:5},sz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="polar",e}(ud);function lz(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],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),nt(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var uz=["axisLine","axisTickLabel","axisName"],hz=["splitArea","splitLine"],cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return o(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Ur;var s=lz(e),l=new dC(e,s);B(uz,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),B(hz,(function(t){e.get([t,"show"])&&pz[t](this,this.group,this._axisGroup,e)}),this),em(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){TC(this)},e.type="singleAxis",e}(wC),pz={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"),u=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=[],p=0,f=r.getTicksCoords({tickModel:o}),d=[],g=[],m=0;m=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 xz(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return xz(e)===this?this.pointToData(n):null},t}();function xz(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var bz=_z;var wz={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new bz(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",Go).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:yz},Sz=["x","y"],Mz=["width","height"],Tz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Iz(a,1-Az(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=ZF(i),c=Cz[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}YF(e,t,lz(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=lz(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=$F(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=Az(r),s=Iz(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 u=Iz(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(WF),Cz={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:qF([e,n[0]],[e,n[1]],Az(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:KF([e-i/2,n[0]],[i,r],Az(t))}}};function Az(t){return t.isHorizontal()?0:1}function Iz(t,e){var n=t.getRect();return[n[Sz[e]],n[Sz[e]]+n[Mz[e]]]}var kz=Tz,Dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="single",e}(ud);var Pz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e,n,i){var r=ac(e);t.prototype.init.apply(this,arguments),Lz(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Lz(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}(hc);function Lz(t,e){var n,i=t.cellSize;1===(n=Z(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=z([0,1],(function(t){return function(t,e){return null!=t[Qh[e][0]]||null!=t[Qh[e][1]]&&null!=t[Qh[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));oc(t,e,{type:"box",ignoreSize:r})}var Ez=Pz,Oz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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,u=new qs({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},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 u=e.start,h=0;u.time<=e.end.time;h++){p(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}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 lg({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 X(t)&&t?(n=t,B(e,(function(t,e){n=n.replace("{"+e+"}",i?ne(t):t)})),n):U(t)?t(e):e.nameMap;var n,i},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,u=(s[0][1]+s[1][1])/2,h="horizontal"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=r.get("formatter"),d={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(f,d),m=new pl({z2:30,style:Du(r,{text:g}),silent:r.get("silent")});m.attr(this._yearTextPositionControl(m,c[a],n,a,o)),i.add(m)}},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"),u=[this._tlpoints,this._blpoints];o&&!X(o)||(o&&(e=ch(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===s?0:1,c="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,f=r.get("silent"),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/Nz)-Math.floor(n[0].time/Nz)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,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 Bz(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var zz=Fz;function Vz(t,e){var n;return B(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var jz=["transition","enterFrom","leaveTo"],Gz=jz.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Hz(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?jz:Gz,r=0;r=0;l--){var p,f,d;if(d=null!=(f=Oo((p=n[l]).id,null))?r.get(f):null){var g=d.parent,m=(c=Uz(g),{}),v=ic(d,p,g===i?{width:o,height:a}:{width:c.width,height:c.height},null,{hv:p.hv,boundingMode:p.bounding},m);if(!Uz(d).isNew&&v){for(var y=p.transition,_={},x=0;x=0)?_[b]=w:d[b]=w}yu(d,_,t,0)}else d.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){qz(n,Uz(n).option,e,t._lastGraphicModel)})),this._elMap=gt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(ud);function $z(t){var e=new(_t(Zz,t)?Zz[t]:Gg(t))({});return Uz(e).type=t,e}function Yz(t,e,n,i){var r=$z(n);return e.add(r),i.set(t,r),Uz(r).id=t,Uz(r).isNew=!0,r}function qz(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){qz(t,e,n,i)})),ZN(t,e,i),n.removeKey(Uz(t).id))}function Kz(t,e,n,i){t.isGroup||B([["cursor",La.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];_t(e,i)?t[i]=it(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),B(G(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=U(i)?i:null}})),_t(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var Jz=["x","y","radius","angle","single"],Qz=["cartesian2d","polar","singleAxis"];function tV(t){return t+"Axis"}function eV(t,e){var n,i=gt(),r=[],o=gt();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 nV(t){var e=t.ecModel,n={infoList:[],infoMap:gt()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(tV(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 iV=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}(),rV=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 o(e,t),e.prototype.init=function(t,e,n){var i=oV(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=oV(t);P(this.option,t,!0),P(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;B([["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=gt();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 B(Jz,(function(n){var i=this.getReferringComponents(tV(n),Ho);if(i.specified){e=!0;var r=new iV;B(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 iV;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Go).models[0];a&&B(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Go).models[0]&&o.add(t.componentIndex)}))}}}i&&B(Jz,(function(e){if(i){var r=n.findComponents({mainType:tV(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new iV;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");B([["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(tV(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){B(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(tV(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;B([["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;B(["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=tV(this._dimName),i=e.getReferringComponents(n,Go).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 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=[];fV(["start","end"],(function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(to(h,o,n))):(e=!0,h=to(c=null==c?n[u]:i.parse(c),n,o)),s[u]=null==c||isNaN(c)?n[u]:c,a[u]=null==h||isNaN(h)?o[u]:h})),dV(s),dV(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";DL(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=to(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(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];fV(n,(function(t){!function(t,e,n){e&&B(kT(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=_T(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&&fV(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=z(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;lo[1];if(h&&!c&&!p)return!0;h&&(r=!0),c&&(e=!0),p&&(n=!0)}return r&&e&&n}))}else fV(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)}}));fV(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;fV(["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=to(n[0]+o,n,[0,100],!0):null!=r&&(o=to(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=oo(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}();var mV=gV,vV={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(tV(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 mV(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=gt();return B(n,(function(t){B(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 yV=!1;function _V(t){yV||(yV=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,vV),function(t){t.registerAction("dataZoom",(function(t,e){B(eV(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function xV(t){t.registerComponentModel(lV),t.registerComponentView(pV),_V(t)}var bV=function(){},wV={};function SV(t,e){wV[t]=e}function MV(t){return wV[t]}var TV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;B(this.option.feature,(function(t,n){var i=MV(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),P(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}(hc),CV=TV;function AV(t,e){var n=Wh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new qs({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 IV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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={}),u=[];B(s,(function(t,e){u.push(e)})),new Rb(this._featureNames||[],u).add(h).update(h).remove(W(h,null)).execute(),this._featureNames=u,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=nc(i,o,r);ec(e.get("orient"),t,e.get("itemGap"),a.width,a.height),ic(t,i,o,r)}(r,t,n),r.add(AV(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&&!U(l)&&e){var u=l.style||(l.style={}),h=Ir(e,pl.makeFont(u)),c=t.x+r.x,p=!1;t.y+r.y+o+h.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-h.height:o+10;c+h.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):c-h.width/2<0&&(a.position=[0,f],u.align="left")}}))}function h(h,c){var p,f=u[h],d=u[c],g=s[f],m=new th(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===f&&(g.title=i.newTitle),f&&!d){if(function(t){return 0===t.indexOf("my")}(f))p={onclick:m.option.onclick,featureName:f};else{var v=MV(f);if(!v)return;p=new v}l[f]=p}else if(!(p=l[d]))return;p.uid=nh("toolbox-feature"),p.model=m,p.ecModel=e,p.api=n;var y=p instanceof bV;f||!d?!m.get("show")||y&&p.unusable?y&&p.remove&&p.remove(e,n):(!function(i,s,l){var u,h,c=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),f=s instanceof bV&&s.getIcons?s.getIcons():i.get("icon"),d=i.get("title")||{};X(f)?(u={})[l]=f:u=f;X(d)?(h={})[l]=d:h=d;var g=i.iconPaths={};B(u,(function(l,u){var f=rm(l,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(c.getItemStyle()),f.ensureState("emphasis").style=p.getItemStyle();var d=new pl({style:{text:h[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:Nu({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},e)},ignore:!0});f.setTextContent(d),lm({el:f,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),f.__title=h[u],f.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";d.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),f.setTextConfig({position:p.get("textPosition")||i}),d.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),d.hide()})),("emphasis"===i.get(["iconStatus",u])?Ul:Xl)(f),r.add(f),f.on("click",H(s.onclick,s,e,n,u)),g[u]=f}))}(m,p,f),m.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Ul:Xl)(i[t])},p instanceof bV&&p.render&&p.render(m,e,n,i)):y&&p.dispose&&p.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){B(this._features,(function(t){t instanceof bV&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){B(this._features,(function(n){n instanceof bV&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){B(this._features,(function(n){n instanceof bV&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(ud);var kV=IV,DV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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=l.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var u=a.split(","),h=u[0].indexOf("base64")>-1,c=r?decodeURIComponent(u[1]):u[1];h&&(c=window.atob(c));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var f=c.length,d=new Uint8Array(f);f--;)d[f]=c.charCodeAt(f);var g=new Blob([d]);window.navigator.msSaveOrOpenBlob(g,p)}else{var m=document.createElement("iframe");document.body.appendChild(m);var v=m.contentWindow,y=v.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),v.focus(),y.execCommand("SaveAs",!0,p),document.body.removeChild(m)}}else{var _=n.get("lang"),x='',b=window.open();b.document.write(x),b.document.title=i}else{var w=document.createElement("a");w.download=i+"."+o,w.target="_blank",w.href=a;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},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}(bV),PV=DV,LV="__ec_magicType_stack__",EV=[["line","bar"],["stack"]],OV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return B(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(RV[n]){var o,a={series:[]};B(EV,(function(t){R(t,n)>=0&&B(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=RV[n](e,r,t,i);o&&(O(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 u=l.dim+"Axis",h=t.getReferringComponents(u,Go).models[0].componentIndex;a[u]=a[u]||[];for(var c=0;c<=h;c++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=P({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}(bV),RV={line:function(t,e,n,i){if("bar"===t)return P({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 P({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")===LV;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),P({id:e,stack:r?"":LV},i.get(["option","stack"])||{},!0)}};h_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var NV=OV,FV=new Array(60).join("-"),BV="\t";function zV(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var VV=new RegExp("["+BV+"]+","g");function jV(t,e){var n=t.split(new RegExp("\n*"+FV+"\n*","g")),i={series:[]};return B(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(BV)>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=z(zV(e.shift()).split(VV),(function(t){return{name:t,data:[]}})),r=0;r=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=ij[t.brushType](0,n,e);t.__rangeOffset={offset:oj[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){B(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&B(i.coordSyses,(function(i){var r=ij[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){B(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=ij[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?oj[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=sj(n),o=sj(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:BE(i),isTargetByCursor:VE(i,t,n.coordSysModel),getLinearBrushOtherExtent:zE(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&R(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=QV(e,t),r=0;rt[1]&&t.reverse(),t}function QV(t,e){return Vo(t,e,{includeMainTypes:qV})}var tj={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=gt(),a={},s={};(n||i||r)&&(B(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),B(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),B(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=[];B(r.getCartesians(),(function(t,e){(R(n,t.getAxis("x").model)>=0||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:nj.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){B(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:nj.geo})}))}},ej=[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}],nj={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Kg(t)),e}},ij={lineX:W(rj,0),lineY:W(rj,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=[JV([r[0],o[0]]),JV([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:z(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 rj(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=JV(z([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 oj={lineX:W(aj,0),lineY:W(aj,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 z(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function aj(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function sj(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var lj,uj,hj=KV,cj=B,pj=To+"toolbox-dataZoom_",fj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new FE(n.getZr()),this._brushController.on("brush",H(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 hj(gj(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 XV(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){dj[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 hj(gj(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=XV(t);ZV(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=DL(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=[];cj(t,(function(t,n){e.push(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}(bV),dj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=XV(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return ZV(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 gj(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}lj="dataZoom",uj=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Vo(t,gj(i));return cj(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),cj(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:pj+e+o};a[n]=o,r.push(a)}},st(null==Dc.get(lj)&&uj),Dc.set(lj,uj);var mj=fj;var vj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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}(hc),yj=vj;function _j(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function xj(t){if(l.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(u+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var c=a*Math.PI/180,p=l+r,f=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c)),d=e+" solid "+r+"px;";return'
'}(n,i,r)),X(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Z(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&&!l.node&&n.getDom()){var r=Bj(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=jo(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=Wo(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=fl(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 u=Rj;u.x=i.x,u.y=i.y,u.update(),fl(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},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 h=dB(i,e),c=h.point[0],p=h.point[1];null!=c&&null!=p&&this._tryShow({offsetX:c,offsetY:p,target:h.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(Bj(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"===Fj([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;if("legend"===fl(n).ssrType)return;this._lastDataByCoordSys=null,mv(n,(function(t){return null!=fl(t).dataIndex?(r=t,!0):null!=fl(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=H(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=Fj([e.tooltipOption],i),a=this._renderMode,s=[],l=Ff("section",{blocks:[],noHeader:!0}),u=[],h=new $f;B(t,(function(t){B(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=XF(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=Ff("section",{header:o,noHeader:!lt(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),B(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,d=p.getDataParams(f);if(!(d.dataIndex<0)){d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=TT(e.axis,{value:r}),d.axisValueLabel=o,d.marker=h.makeTooltipMarker("item",Yh(d.color),a);var g=$p(p.formatTooltip(f,!0,null)),m=g.frag;if(m){var v=Fj([p],i).get("valueFormatter");c.blocks.push(v?E({valueFormatter:v},m):m)}g.text&&u.push(g.text),s.push(d)}}))}}))})),l.blocks.reverse(),u.reverse();var c=e.position,p=o.get("order"),f=Hf(l,h,a,p,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var d="richText"===a?"\n\n":"
",g=u.join(d);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],c,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=fl(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,f=Fj([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),d=f.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),m=new $f;g.marker=m.makeTooltipMarker("item",Yh(g.color),c);var v=$p(s.formatTooltip(l,!1,u)),y=f.get("order"),_=f.get("valueFormatter"),x=v.frag,b=x?Hf(_?E({valueFormatter:_},x):x,m,c,y,i.get("useUTC"),f.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,b,g,w,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=fl(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(X(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=D(o)).content=ne(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,h=Fj(s,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",f=new $f;this._showOrMove(h,(function(){var n=D(h.get("formatterParams")||{});this._showTooltipContent(h,c,n,p,t.offsetX,t.offsetY,t.position,e,f)})),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 u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(X(h)){var f=t.ecModel.get("useUTC"),d=Z(n)?n[0]:n;c=h,d&&d.axisType&&d.axisType.indexOf("time")>=0&&(c=Th(d.axisValue,c,f)),c=$h(c,n,!0)}else if(U(h)){var g=H((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,c=h(n,i,g)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Z(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Z(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 u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),U(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),Z(e))n=eo(e[0],s),i=eo(e[1],l);else if(q(e)){var f=e;f.width=u[0],f.height=u[1];var d=nc(f,{width:s,height:l});n=d.x,i=d.y,h=null,c=null}else if(X(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,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,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],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=zj(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=zj(c)?u[1]/2:"bottom"===c?u[1]:0),_j(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&&B(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&B(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)&&B(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&B(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){!l.node&&e.getDom()&&(Tm(this,"_updatePosition"),this._tooltipContent.dispose(),cB("itemTooltip",e))},e.type="tooltip",e}(ud);function Fj(t,e,n){var i,r=e.ecModel;n?(i=new th(n,r,r),i=new th(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof th&&(a=a.get("tooltip",!0)),X(a)&&(a={formatter:a}),a&&(i=new th(a,i,r)))}return i}function Bj(t,e){return t.dispatchAction||H(e.dispatchAction,e)}function zj(t){return"center"===t||"middle"===t}var Vj=Nj;var jj=["rect","polygon","keep","clear"];function Gj(t,e){var n=Co(t?t.brush:[]);if(n.length){var i=[];B(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;Z(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={};B(t,(function(t){e[t]=1})),t.length=0,B(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,jj)}}var Hj=B;function Wj(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Zj(t,e,n){var i={};return Hj(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);Hj(t[e],(function(t,i){if(yD.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new yD(r),"opacity"===i&&((r=D(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new yD(r))}}))})),i}function Uj(t,e,n){var i;B(n,(function(t){e.hasOwnProperty(t)&&Wj(e[t])&&(i=!0)})),i&&B(n,(function(n){e.hasOwnProperty(n)&&Wj(e[n])?t[n]=D(e[n]):delete t[n]}))}var Xj={lineX:$j(0),lineY:$j(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])&&FA(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!!(FA(i,r,o)||FA(i,r+a,o)||FA(i,r,o+s)||FA(i,r+a,o+s)||Oe.create(t).contain(l[0],l[1])||om(r,o,r+a,o,i)||om(r,o,r,o+s,i)||om(r+a,o,r+a,o+s,i)||om(r,o+s,r+a,o+s,i))||void 0}}};function $j(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return Yj(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&&rG(e)}};function rG(t){return new Oe(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var oG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new FE(e.getZr())).on("brush",H(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){Qj(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:D(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:D(n),$from:e})},e.type="brush",e}(ud),aG=oG,sG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return o(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Uj(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=z(t,(function(t){return lG(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=lG(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}(hc);function lG(t,e){return P({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new th(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var uG=sG,hG=["rect","polygon","lineX","lineY","keep","clear"],cG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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,B(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 B(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:hG.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}(bV),pG=cG;var fG=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 o(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}(hc),dG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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=it(t.get("textBaseline"),t.get("textVerticalAlign")),l=new pl({style:Du(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new pl({style:Du(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),f=t.get("sublink"),d=t.get("triggerEvent",!0);l.silent=!p&&!d,c.silent=!f&&!d,p&&l.on("click",(function(){qh(p,"_"+t.get("target"))})),f&&c.on("click",(function(){qh(f,"_"+t.get("subtarget"))})),fl(l).eventData=fl(c).eventData=d?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=nc(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var _=v.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new qs({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(ud);var gG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return o(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=[],B(n,(function(e,n){var i,o=Oo(ko(e),"");q(e)?(i=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 aw([{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}(hc),mG=gG,vG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline.slider",e.defaultOption=ih(mG.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}(mG);N(vG,Xp.prototype);var yG=vG,_G=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline",e}(ud),xG=_G,bG=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return o(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}($T),wG=bG,SG=Math.PI,MG=Bo(),TG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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 Ff("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},B(["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 nc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:SG/2},p="vertical"===s?l.height:l.width,f=t.getModel("controlStyle"),d=f.get("show",!0),g=d?f.get("itemSize"):0,m=d?f.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*SG/180;var _=f.get("position",!0),x=d&&f.get("showPlayBtn",!0),b=d&&f.get("showPrevBtn",!0),w=d&&f.get("showNextBtn",!0),S=0,M=p;"left"===_||"bottom"===_?(x&&(i=[0,0],S+=v),b&&(r=[S,0],S+=v),w&&(o=[M-g,0],M-=v)):(x&&(i=[M-g,0],M-=v),b&&(r=[0,0],S+=v),w&&(o=[M-g,0],M-=v));var T=[S,M];return t.get("inverse")&&T.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:c[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:T,controlSize:g,controlGap:m}},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;_e(o,o,[-a,-s]),xe(o,o,-SG/2),_e(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),h=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=l[0][0];var f,d=t.labelPosOpt;null==d||X(d)?(v(c,u,l,1,f="+"===d?0:1),v(p,h,l,1,1-f)):(v(c,u,l,1,f=d>=0?0:1),p[1]=c[1]+d);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(c),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 UM({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new rT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new YM}}(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 wG("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Ur;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 pg({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:E({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new pg({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:O({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=[],B(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),c={x:a,y:0,onclick:H(r._changeTimeline,r,t.value)},p=CG(s,l,e,c);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),ou(p);var f=fl(p);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.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=[],B(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),c=n.dataToCoord(i.tickValue),p=new pl({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:H(r._changeTimeline,r,a),silent:!1,style:Du(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=Du(u),p.ensureState("progress").style=Du(h),e.add(p),ou(p),MG(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(),u=i.get("inverse",!0);function h(t,n,l,u){if(t){var h=Lr(it(i.get(["controlStyle",n+"BtnSize"]),r),r),c=function(t,e,n,i){var r=i.style,o=rm(t.get(["controlStyle",e]),i||{},new Oe(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});c.ensureState("emphasis").style=s,e.add(c),ou(c)}}h(t.nextBtnPosition,"next",H(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",H(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,l?"stop":"play",H(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=H(s._handlePointerDrag,s),t.ondragend=H(s._handlePointerDragend,s),AG(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){AG(t,s._progressLine,o,n,i)}};this._currentPointer=CG(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=io(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(c)),[a,h]}var jG={min:W(VG,"min"),max:W(VG,"max"),average:W(VG,"average"),median:W(VG,"median")};function GG(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)&&!Z(e.coord)&&Z(r)){var o=HG(e,n,i,t);if((e=D(e)).type&&jG[e.type]&&o.baseAxis&&o.valueAxis){var a=R(r,o.baseAxis.dim),s=R(r,o.valueAxis.dim),l=jG[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&&Z(r))for(var u=e.coord,h=0;h<2;h++)jG[u[h]]&&(u[h]=UG(n,n.mapDimension(r[h]),u[h]));else e.coord=[];return e}}function HG(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 WG(t,e){return!(t&&t.containData&&e.coord&&!zG(e))||t.containData(e.coord)}function ZG(t,e){return t?function(t,n,i,r){return tf(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return tf(t.value,e[r])}}function UG(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 XG=Bo(),$G=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){this.markerGroupMap=gt()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){XG(t).keep=!1})),e.eachSeries((function(t){var r=NG.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!XG(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){XG(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;B(t,(function(t){var i=NG.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?$l(t):Yl(t))}))}))},e.type="marker",e}(ud),YG=$G;function qG(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=eo(a.get("x"),n.getWidth()),l=eo(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 u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var KG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=NG.getMarkerModelFromSeries(t,"markPoint");e&&(qG(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 Aw),u=function(t,e,n){var i;i=t?z(t&&t.dimensions,(function(t){return E(E({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new aw(i,n),o=z(n.get("data"),W(GG,e));t&&(o=j(o,W(WG,t)));var a=ZG(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(u),qG(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(U(i)||U(r)||U(o)||U(s)){var h=e.getRawValue(t),c=e.getDataParams(t);U(i)&&(i=i(h,c)),U(r)&&(r=r(h,c)),U(o)&&(o=o(h,c)),U(s)&&(s=s(h,c))}var p=n.getModel("itemStyle").getItemStyle(),f=pv(a,"color");p.fill||(p.fill=f),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){fl(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(YG);var JG=KG;var QG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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}(NG),tH=QG,eH=Bo(),nH=function(t,e,n,i){var r,o=t.getData();if(Z(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=nt(i.yAxis,i.xAxis);else{var u=HG(i,o,e,t);s=u.valueAxis,l=UG(o,dw(o,u.valueDataDim),a)}var h="x"===s.dim?0:1,c=1-h,p=D(i),f={coord:[]};p.type=null,p.coord=[],p.coord[c]=-1/0,f.coord[c]=1/0;var d=n.get("precision");d>=0&&Y(l)&&(l=+l.toFixed(Math.min(d,20))),p.coord[h]=f.coord[h]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[GG(t,r[0]),GG(t,r[1]),E({},r[2])];return g[2].type=g[2].type||null,P(g[2],g[0]),P(g[2],g[1]),g};function iH(t){return!isNaN(t)&&!isFinite(t)}function rH(t,e,n,i){var r=1-t,o=i.dimensions[t];return iH(e[r])&&iH(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function oH(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(rH(1,n,i,t)||rH(0,n,i,t)))return!0}return WG(t,e[0])&&WG(t,e[1])}function aH(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=eo(s.get("x"),r.getWidth()),u=eo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if(Ww(a,"cartesian2d")){var f=a.getAxis("x"),d=a.getAxis("y");h=a.dimensions;iH(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):iH(t.get(h[1],e))&&(o[1]=d.toGlobalCoord(d.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var sH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=NG.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=eH(e).from,o=eH(e).to;r.each((function(e){aH(r,e,!0,t,n),aH(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 AP);this.group.add(l.group);var u=function(t,e,n){var i;i=t?z(t&&t.dimensions,(function(t){return E(E({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new aw(i,n),o=new aw(i,n),a=new aw([],n),s=z(n.get("data"),W(nH,e,t,n));t&&(s=j(s,W(oH,t)));var l=ZG(!!t,i);return r.initData(z(s,(function(t){return t[0]})),null,l),o.initData(z(s,(function(t){return t[1]})),null,l),a.initData(z(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,p=u.line;eH(e).from=h,eH(e).to=c,e.setData(p);var f=e.get("symbol"),d=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);aH(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=pv(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:it(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:it(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:it(o.get("symbolSize"),d[r?0:1]),symbol:it(o.get("symbol",!0),f[r?0:1]),style:s})}Z(f)||(f=[f,f]),Z(d)||(d=[d,d]),Z(g)||(g=[g,g]),Z(m)||(m=[m,m]),u.from.each((function(t){v(h,t,!0),v(c,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:e})})),l.updateData(p),u.line.eachItemGraphicEl((function(t){fl(t).dataModel=e,t.traverse((function(t){fl(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(YG);var lH=sH;var uH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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}(NG),hH=uH,cH=Bo(),pH=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=GG(t,r),s=GG(t,o),l=a.coord,u=s.coord;l[0]=nt(l[0],-1/0),l[1]=nt(l[1],-1/0),u[0]=nt(u[0],1/0),u[1]=nt(u[1],1/0);var h=L([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function fH(t){return!isNaN(t)&&!isFinite(t)}function dH(t,e,n,i){var r=1-t;return fH(e[r])&&fH(n[r])}function gH(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 Ww(t,"cartesian2d")?!(!n||!i||!dH(1,n,i)&&!dH(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!zG(e)&&!zG(n))||t.containZone(e.coord,n.coord)}(t,r,o):WG(t,r)||WG(t,o)}function mH(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=eo(s.get(n[0]),r.getWidth()),u=eo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues(["x0","y0"],e),c=t.getValues(["x1","y1"],e),p=a.clampData(h),f=a.clampData(c),d=[];"x0"===n[0]?d[0]=p[0]>f[0]?c[0]:h[0]:d[0]=p[0]>f[0]?h[0]:c[0],"y0"===n[1]?d[1]=p[1]>f[1]?c[1]:h[1]:d[1]=p[1]>f[1]?h[1]:c[1],o=i.getMarkerPosition(d,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(Ww(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=t.get(n[0],e),_=t.get(n[1],e);fH(y)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):fH(_)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var vH=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=NG.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=z(vH,(function(r){return mH(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 Ur});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=z(t&&t.dimensions,(function(t){var n=e.getData();return E(E({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));r=z(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new aw(r,n)}else i=new aw(r=[{name:"value",type:"float"}],n);var s=z(n.get("data"),W(pH,e,t,n));t&&(s=j(s,W(gH,t)));var l=t?function(t,e,n,i){return tf(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return tf(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each((function(e){var n=z(vH,(function(n){return mH(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];io(c),io(p);var f=!!(l[0]>c[1]||l[1]p[1]||h[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}(hc),bH=xH,wH=W,SH=B,MH=Ur,TH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return o(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new MH),this.group.add(this._selectorGroup=new MH),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(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),c=nc(l,u,h),p=this.layoutInner(t,r,c,i,a,s),f=nc(O({width:p.width,height:p.height},l),u,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=AV(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=gt(),u=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),SH(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new MH;return c.newline=!0,void s.add(c)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var f=p.getData(),d=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),m=f.getVisual("style"),v=this._createItem(p,a,o,r,e,t,d,m,g,u,i);v.on("click",wH(CH,a,null,i,h)).on("mouseover",wH(IH,p.name,null,i,h)).on("mouseout",wH(kH,p.name,null,i,h)),n.ssr&&v.eachChild((function(t){var e=fl(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var c=s.legendVisualProvider;if(!c.containName(a))return;var p=c.indexOfName(a),f=c.getItemVisual(p,"style"),d=c.getItemVisual(p,"legendIcon"),g=ti(f.fill);g&&0===g[3]&&(g[3]=.2,f=E(E({},f),{fill:si(g,"rgba")}));var m=this._createItem(s,a,o,r,e,t,{},f,d,u,i);m.on("click",wH(CH,null,a,i,h)).on("mouseover",wH(IH,null,a,i,h)).on("mouseout",wH(kH,null,a,i,h)),n.ssr&&m.eachChild((function(t){var e=fl(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),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();SH(t,(function(t){var i=t.type,r=new pl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),Iu(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),ou(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),f=r.get("itemHeight"),d=r.isSelected(e),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=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),SH(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?ay(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]);"inherit"===u.stroke&&(u.stroke=i[h]);"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity);s(u,i);var p=e.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===d?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}(l=v||l||"roundRect",i,a,s,c,d,h),_=new MH,x=i.getModel("textStyle");if(!U(t.getLegendIcon)||v&&"inherit"!==v){var b="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(function(t){var e=t.icon||"roundRect",n=kv(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:f,icon:l,iconRotate:b,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var w="left"===o?p+5:-5,S=o,M=r.get("formatter"),T=e;X(M)&&M?T=M.replace("{name}",null!=e?e:""):U(M)&&(T=M(e));var C=d?x.getTextColor():i.get("inactiveColor");_.add(new pl({style:Du(x,{text:T,x:w,y:f/2,fill:C,align:S,verticalAlign:"middle"},{inheritColor:C})}));var A=new qs({shape:_.getBoundingRect(),style:{fill:"transparent"}}),I=i.getModel("tooltip");return I.get("show")&&lm({el:A,componentModel:r,itemName:e,itemTooltipOption:I.option}),_.add(A),_.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(_),ou(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();ec(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){ec("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,d=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?c[f]+=l[d]+p:u[f]+=h[d]+p,c[1-f]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[d]=l[d]+p+h[d],v[g]=Math.max(l[g],h[g]),v[m]=Math.min(0,h[m]+c[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ud);function CH(t,e,n,i){kH(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),IH(t,e,n,i)}function AH(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],d=[-c.x,-c.y];e||(d[i]=l[s]);var g=[0,0],m=[-p.x,-p.y],v=it(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-p[r]:g[i]+=p[r]+v);m[1-i]+=c[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),h.setPosition(m);var y={x:0,y:0};if(y[r]=f?n[r]:c[r],y[o]=Math.max(c[o],p[o]),y[a]=Math.min(0,p[a]+m[1-i]),u.__rectSize=n[r],f){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-v,0),_[o]=y[o],u.setClipPath(new qs({shape:_})),u.__rectSize=_[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&yu(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),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;B(["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",X(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=zH[r],a=VH[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var f=y(u);p.contentPosition[r]=-f.s;for(var d=s+1,g=f,m=f,v=null;d<=h;++d)(!(v=y(l[d]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),m=v;for(d=s-1,g=f,m=f,v=null;d>=-1;--d)(v=y(l[d]))&&_(m,v.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}(DH),GH=jH;function HH(t){y_(OH),t.registerComponentModel(FH),t.registerComponentView(GH),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 WH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.inside",e.defaultOption=ih(aV.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(aV),ZH=WH,UH=Bo();function XH(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function $H(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function YH(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function qH(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=UH(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=gt());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){B(nV(t).infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:W(YH,e),dispatchAction:W($H,t),dataZoomInfoMap:null,controller:null},i=n.controller=new lA(t.getZr());return B(["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=gt())).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),Mm(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else XH(i,t)}))}))}var KH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return o(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){UH(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:H(JH.pan,this),zoom:H(JH.zoom,this),scrollMove:H(JH.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=UH(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],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return DL(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:QH((function(t,e,n,i,r,o){var a=tW[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:QH((function(t,e,n,i,r,o){return tW[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function QH(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return DL(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 tW={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(),u=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=u[1]-u[0],a.pixelStart=u[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}},eW=KH;function nW(t){_V(t),t.registerComponentModel(ZH),t.registerComponentView(eW),qH(t)}var iW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ih(aV.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(aV),rW=iW,oW=qs,aW="horizontal",sW="vertical",lW=["line","bar","candlestick","scatter"],uW={easing:"cubicOut",duration:100,delay:0},hW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return o(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=H(this._onBrush,this),this._onBrushEnd=H(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Mm(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(){Tm(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 Ur;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===aW?{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=ac(t.option);B(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=nc(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===sW&&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!==aW||r?n===aW&&r?{scaleY:a?1:-1,scaleX:-1}:n!==sW||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 oW({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new oW({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:H(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 u=r.getDataExtent(a),h=.3*(u[1]-u[0]);u=[u[0]-h,u[1]+h];var c,p=[0,e[1]],f=[0,e[0]],d=[[e[0],0],[0,0]],g=[],m=f[1]/(r.count()-1),v=0,y=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(y>0&&e%y)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:to(t,u,p,!0);n&&!c&&e?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&c&&(d.push([v,0]),g.push([v,0])),d.push([v,i]),g.push([v,i]),v+=m,c=n}})),s=this._shadowPolygonPts=d,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,x=0;x<3;x++){var b=w(1===x);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new Ur,i=new og({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new lg({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){B(t.getAxisProxy(r,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&R(lW,t.get("type"))<0)){var a,s=i.getComponent(tV(r),o).axis,l=function(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.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,u=a.get("brushSelect"),h=e.filler=new oW({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new oW({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)"}})),B([0,1],(function(e){var o=a.get("handleIcon");!Cv[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=kv(o,-1,0,2,2,null,!0);s.attr({cursor:cW(this._orient),draggable:!0,drift:H(this._onDragMove,this,e),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=eo(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),ou(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new pl({silent:!0,invisible:!p,style:Du(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))}),this);var c=h;if(u){var p=eo(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new qs({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),d=.8*p,g=e.moveHandleIcon=kv(a.get("moveHandleIcon"),-d/2,-d/2,d,d,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(p,10));(c=e.moveZone=new qs({invisible:!0,shape:{y:o[1]-m,height:p+m}})).on("mouseover",(function(){s.enterEmphasis(f)})).on("mouseout",(function(){s.leaveEmphasis(f)})),r.add(f),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:cW(this._orient),drift:H(this._onDragMove,this,"all"),ondragstart:H(this._showDataInfo,this,!0),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[to(t[0],[0,100],e,!0),to(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];DL(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?to(o.minSpan,a,r,!0):null,null!=o.maxSpan?to(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=io([to(i[0],r,a,!0),to(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=io(n.slice()),r=this._size;B([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 Me(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=io([to(n.x,i,r,!0),to(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&&(ce(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 oW({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),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?uW:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=nV(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}(hV);function cW(t){return"vertical"===t?"ns-resize":"ew-resize"}var pW=hW;function fW(t){t.registerComponentModel(rW),t.registerComponentView(pW),_V(t)}var dW={get:function(t,e,n){var i=D((gW[t]||{})[e]);return n&&Z(i)?i[i.length-1]:i}},gW={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]}},mW=dW,vW=yD.mapVisual,yW=yD.eachVisual,_W=Z,xW=B,bW=io,wW=to,SW=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 o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Uj(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=H(t,this),this.controllerVisuals=Zj(this.option.controller,e,t),this.targetVisuals=Zj(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=Co(t),e},e.prototype.eachTargetSeries=function(t,e){B(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||["<",">"],Z(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return X(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):U(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 u(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=bW([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={});P(i,n),P(r,n);var o=this.isCategory();function a(n){_W(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]={},xW(i,(function(t,e){if(yD.isValidType(e)){var n=mW.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";xW(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&&D(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&D(n)||(o?s[0]:[s[0],s[0]])),l.symbol=vW(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var h=-1/0;yW(u,(function(t){t>h&&(h=t)})),l.symbolSize=vW(u,(function(t){return wW(t,[0,h],[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}(hc),MW=SW,TW=[20,140],CW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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]=TW[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=TW[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Z(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),B(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=io((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=AW(this,"outOfRange",this.getExtent()),n=AW(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 Ur("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(),l=this._applyTransform("left",n.mainGroup);RW([0,1],(function(u){var h=r[u];h.setStyle("fill",e.handlesColor[u]),h.y=t[u];var c=OW(t[u],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=p/a[0],h.x=a[0]-p/2;var f=Jg(n.handleLabelPoints[u],Kg(h,this.group));if("horizontal"===this._orient){var d="left"===l||"top"===l?(a[0]-p)/2:(a[0]-p)/-2;f[1]+=d}o[u].setStyle({x:f[0],y:f[1],text:i.formatValueText(this._dataInterval[u]),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,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=OW(t,o,s,!0),f=a[0]-c/2,d={x:u.x,y:u.y};u.y=p,u.x=f;var g=Jg(l.indicatorLabelPoint,Kg(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var _={x:f,y:p,style:{fill:h}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=d.x,u.y=d.y,u.animateTo(_,b),m.animateTo(x,b)}else u.attr(_),m.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;Sr[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var h=this._hoverLinkDataIndices,c=[];(e||VW(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));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 UW(t,e,n,i){for(var r=e.targetVisuals[i],o=yD.prepareVisualTypes(r),a={color:pv(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(HW,WW),B(ZW,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor($W))}function JW(t){t.registerComponentModel(IW),t.registerComponentView(GW),KW(t)}var QW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return o(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],tZ[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=D(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=z(this._pieceList,(function(t){return t=D(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=yD.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}B(e.pieces,(function(t){B(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),B(n,(function(t,n){var i=!1;B(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&B(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=mW.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,B(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;B(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=D(t)},e.prototype.getValueState=function(t){var e=yD.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){yD.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 B(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=ih(MW.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}(MW),tZ={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","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function eZ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var nZ=QW,iZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(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(),u=l.endsText,h=nt(e.get("showLabel",!0),!u),c=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,h,a),B(l.viewPieceList,(function(i){var l=i.piece,u=new Ur;u.onclick=H(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]],c),h){var f=this.visualMapModel.getValueState(p);u.add(new pl({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"===f?.5:1},silent:c}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,h,a),ec(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:EW(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return LW(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 Ur,a=this.visualMapModel.textStyleModel;o.add(new pl({style:Du(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=z(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,i){var r=kv(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=D(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,B(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}(DW),rZ=iZ;function oZ(t){t.registerComponentModel(nZ),t.registerComponentView(rZ),KW(t)}var aZ={label:{enabled:!0},decal:{show:!1}},sZ=Bo(),lZ={};function uZ(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=D(aZ);P(i.label,t.getLocaleModel().get("aria"),!1),P(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=gt();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),sZ(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(U(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Fc(e.ecModel,e.name,lZ,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=sZ(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+"",h=Fc(e.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,h))}))}}function u(t,e){var n=t?E(E({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=e.getZr().dom;if(!i)return;var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=O(a.option,o),!a.get("enabled"))return;if(i.setAttribute("role","img"),a.get("description"))return void i.setAttribute("aria-label",a.get("description"));var s,l=t.getSeriesCount(),u=a.get(["data","maxCount"])||10,h=a.get(["series","maxCount"])||10,c=Math.min(l,h);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(a.get(["general","withTitle"]),{title:p}):a.get(["general","withoutTitle"]);var f=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,b=t.getLocaleModel().get(["series","typeNames"]),b[x]||b.chart)});var s=e.getData();if(s.count()>u)i+=r(a.get(["data","partialData"]),{displayCnt:u});else i+=a.get(["data","allData"]);for(var h=a.get(["data","separator","middle"]),p=a.get(["data","separator","end"]),d=a.get(["data","excludeDimensionId"]),g=[],m=0;m":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pZ=function(){function t(t){var e;if(null==(this._condVal=X(t)?new RegExp(t):(e=t,"[object RegExp]"===y.call(e)?t:null))){0,Qp("")}}return t.prototype.evaluate=function(t){var e=typeof t;return X(e)?this._condVal.test(t):!!Y(e)&&this._condVal.test(t+"")},t}(),fZ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),dZ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function d(t,n,i,r){AZ(t,i)&&AZ(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,u=nM:A2&&l.push(e),l}function kZ(t,e,n,i,r,o,a,s,l,u){if(AZ(t,n)&&AZ(e,i)&&AZ(r,a)&&AZ(o,s))l.push(a,s);else{var h=2/u,c=h*h,p=a-t,f=s-e,d=Math.sqrt(p*p+f*f);p/=d,f/=d;var g=n-t,m=i-e,v=r-a,y=o-s,_=g*g+m*m,x=v*v+y*y;if(_=0&&x-w*w=0)l.push(a,s);else{var S=[],M=[];Cn(t,n,r,a,.5,S),Cn(e,i,o,s,.5,M),kZ(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),kZ(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function DZ(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=[],u=0;u0)for(u=0;uMath.abs(u),c=DZ([l,u],h?0:1,e),p=(h?s:u)/c.length,f=0;f1?null:new Me(f*l+t,f*u+e)}function OZ(t,e,n){var i=new Me;Me.sub(i,n,e),i.normalize();var r=new Me;return Me.sub(r,t,e),r.dot(i)}function RZ(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function NZ(t){var e=t.points,n=[],i=[];ja(e,n,i);var r=new Oe(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Me,h=new Me;return o>a?(u.x=h.x=s+o/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;or,a=DZ([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",h=o?"y":"x",c=t[s]/a.length,p=0;p0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),T=0;for(_=0;_0;l/=2){var u=0,h=0;(t&l)>0&&(u=1),(e&l)>0&&(h=1),s+=l*l*(3*u^h),0===h&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function QZ(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=z(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 z(o,(function(o,a){return{cp:o,z:JZ(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 tU(t){return zZ(t.path,t.count)}function eU(t){return Z(t[0])}function nU(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 u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var iU={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);eU(t)&&(s=t,l=e),eU(e)&&(s=e,l=t);for(var c=s?s===t:t.length>e.length,p=s?nU(l,s):nU(c?e:t,[c?t:e]),f=0,d=0;daU))for(var r=n.getIndices(),o=0;o0&&i.group.traverse((function(t){t instanceof Rs&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function yU(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function _U(t){return Z(t)?t.sort().join(","):t}function xU(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function bU(t,e){var n=gt(),i=gt(),r=gt();return B(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=yU(e),l=_U(s);i.set(l,{dataGroupId:o,data:a}),Z(s)&&B(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),B(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=yU(t),s=_U(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:xU(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:xU(o),data:o}]});else if(Z(a)){0;var u=[];B(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:xU(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:xU(o)}]})}else{var h=r.get(a);if(h){var c=n.get(h.key);c||(c={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:xU(h.data)}],newSeries:[]},n.set(h.key,c)),c.newSeries.push({dataGroupId:e,data:o,divide:xU(o)})}}}})),n}function wU(t,e){for(var n=0;n=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:xU(e.oldData[n]),groupIdDim:t.dimension})})),B(Co(t.to),(function(t){var i=wU(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:xU(r),groupIdDim:t.dimension})}})),r.length>0&&o.length>0&&vU(r,o,i)}(t,i,n,e)}));else{var o=bU(i,n);B(o.keys(),(function(t){var n=o.get(t);vU(n.oldSeries,n.newSeries,e)}))}B(n.updatedSeries,(function(t){t[Jf]&&(t[Jf]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],h=0;h-1};var h=function(t,e){var n=this.__data__,i=o(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},f=p(h);var d=function(t,e){return f(s(t,e,r.Z),t+"")},g=n(9651),m=n(585),v=n(6009),y=n(7226);var _=function(t,e,n){if(!(0,y.Z)(n))return!1;var i=typeof e;return!!("number"==i?(0,m.Z)(n)&&(0,v.Z)(e,n.length):"string"==i&&e in n)&&(0,g.Z)(n[e],t)};var x=function(t){return d((function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&_(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++i0&&r(h)?n>1?t(h,n-1,r,o,a):(0,i.Z)(a,h):o||(a[a.length]=h)}return a};var h=function(t){return(null==t?0:t.length)?u(t,Infinity):[]}},7452:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=Object.prototype.hasOwnProperty;var r=function(t,e){return null!=t&&i.call(t,e)},o=n(6174);var a=function(t,e){return null!=t&&(0,o.Z)(t,e,r)}},5487:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=function(t,e){return null!=t&&e in Object(t)},r=n(6174);var o=function(t,e){return null!=t&&(0,r.Z)(t,e,i)}},9203:function(t,e){"use strict";e.Z=function(t){return t}},9169:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(3589),r=n(8533);var o=function(t){return(0,r.Z)(t)&&"[object Arguments]"==(0,i.Z)(t)},a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable,u=o(function(){return arguments}())?o:function(t){return(0,r.Z)(t)&&s.call(t,"callee")&&!l.call(t,"callee")},h=u},7771:function(t,e){"use strict";var n=Array.isArray;e.Z=n},585:function(t,e,n){"use strict";var i=n(3234),r=n(1656);e.Z=function(t){return null!=t&&(0,r.Z)(t.length)&&!(0,i.Z)(t)}},7008:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(6092);var r=function(){return!1},o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=a&&a.exports===o?i.Z.Buffer:void 0,l=(s?s.isBuffer:void 0)||r},3234:function(t,e,n){"use strict";var i=n(3589),r=n(7226);e.Z=function(t){if(!(0,r.Z)(t))return!1;var e=(0,i.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1656:function(t,e){"use strict";e.Z=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7226:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},8533:function(t,e){"use strict";e.Z=function(t){return null!=t&&"object"==typeof t}},6378:function(t,e,n){"use strict";var i=n(3589),r=n(7771),o=n(8533);e.Z=function(t){return"string"==typeof t||!(0,r.Z)(t)&&(0,o.Z)(t)&&"[object String]"==(0,i.Z)(t)}},2714:function(t,e,n){"use strict";var i=n(3589),r=n(8533);e.Z=function(t){return"symbol"==typeof t||(0,r.Z)(t)&&"[object Symbol]"==(0,i.Z)(t)}},8843:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(3589),r=n(1656),o=n(8533),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=function(t){return(0,o.Z)(t)&&(0,r.Z)(t.length)&&!!a[(0,i.Z)(t)]},l=n(1162),u=n(8351),h=u.Z&&u.Z.isTypedArray,c=h?(0,l.Z)(h):s},9360:function(t,e){"use strict";e.Z=function(t){return void 0===t}},4329:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(7668),r=n(2764),o=(0,n(1851).Z)(Object.keys,Object),a=Object.prototype.hasOwnProperty;var s=function(t){if(!(0,r.Z)(t))return o(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e},l=n(585);var u=function(t){return(0,l.Z)(t)?(0,i.Z)(t):s(t)}},2957:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(7668),r=n(7226),o=n(2764);var a=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},s=Object.prototype.hasOwnProperty;var l=function(t){if(!(0,r.Z)(t))return a(t);var e=(0,o.Z)(t),n=[];for(var i in t)("constructor"!=i||!e&&s.call(t,i))&&n.push(i);return n},u=n(585);var h=function(t){return(0,u.Z)(t)?(0,i.Z)(t,!0):l(t)}},6458:function(t,e,n){"use strict";n.d(e,{Z:function(){return ot}});var i=n(4073),r=n(1667),o=n(7834);var a=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var s=function(t){return this.__data__.has(t)};function l(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o.Z;++es))return!1;var p=o.get(t),f=o.get(e);if(p&&f)return p==e&&f==t;var d=-1,g=!0,m=2&n?new u:void 0;for(o.set(t,e),o.set(e,t);++de(t[n],n,t)));return t}function r(t,e){const n=d(e);if(v(e)||n){let i=n?"":{};if(t){const r=window.getComputedStyle(t,null);i=n?At(t,r,e):e.reduce(((e,n)=>(e[n]=At(t,r,n),e)),i)}return i}t&&i(k(e),(n=>It(t,n,e[n])))}n.d(e,{UN:function(){return Gn},ZA:function(){return Ve}});const o=(t,e)=>{const{o:n,u:i,_:r}=t;let o,a=n;const s=(t,e)=>{const n=a,s=t,l=e||(i?!i(n,s):n!==s);return(l||r)&&(a=s,o=n),[a,l,o]};return[e?t=>s(e(a,o),t):s,t=>[a,!!t,o]]},a=()=>"undefined"!=typeof window,s=a()&&Node.ELEMENT_NODE,{toString:l,hasOwnProperty:u}=Object.prototype,h=t=>void 0===t,c=t=>null===t,p=t=>h(t)||c(t)?`${t}`:l.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),f=t=>"number"==typeof t,d=t=>"string"==typeof t,g=t=>"boolean"==typeof t,m=t=>"function"==typeof t,v=t=>Array.isArray(t),y=t=>"object"==typeof t&&!v(t)&&!c(t),_=t=>{const e=!!t&&t.length,n=f(e)&&e>-1&&e%1==0;return!!(v(t)||!m(t)&&n)&&(!(e>0&&y(t))||e-1 in t)},x=t=>{if(!t||!y(t)||"object"!==p(t))return!1;let e;const n="constructor",i=t[n],r=i&&i.prototype,o=u.call(t,n),a=r&&u.call(r,"isPrototypeOf");if(i&&!o&&!a)return!1;for(e in t);return h(e)||u.call(t,e)},b=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===s)},w=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===s)},S=(t,e,n)=>t.indexOf(e,n),M=(t,e,n)=>(n||d(e)||!_(e)?t.push(e):Array.prototype.push.apply(t,e),t),T=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach((t=>{M(n,t)})):i(t,(t=>{M(n,t)})),n)},C=t=>!!t&&0===t.length,A=(t,e,n)=>{i(t,(t=>t&&t.apply(void 0,e||[]))),!n&&(t.length=0)},I=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),k=t=>t?Object.keys(t):[],D=(t,e,n,r,o,a,s)=>{const l=[e,n,r,o,a,s];return"object"==typeof t&&!c(t)||m(t)||(t={}),i(l,(e=>{i(k(e),(n=>{const i=e[n];if(t===i)return!0;const r=v(i);if(i&&(x(i)||r)){const e=t[n];let o=e;r&&!v(e)?o=[]:r||x(e)||(o={}),t[n]=D(o,i)}else t[n]=i}))})),t},P=t=>{for(const e in t)return!1;return!0},L=(t,e,n,i)=>{if(h(i))return n?n[t]:e;n&&(d(i)||f(i))&&(n[t]=i)},E=(t,e,n)=>{if(h(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},O=(t,e)=>{t&&t.removeAttribute(e)},R=(t,e,n,i)=>{if(n){const r=E(t,e)||"",o=new Set(r.split(" "));o[i?"add":"delete"](n);const a=T(o).join(" ").trim();E(t,e,a)}},N=(t,e)=>L("scrollLeft",0,t,e),F=(t,e)=>L("scrollTop",0,t,e),B=a()&&Element.prototype,z=(t,e)=>{const n=[],i=e?w(e)?e:null:document;return i?M(n,i.querySelectorAll(t)):n},V=(t,e)=>{if(w(t)){return(B.matches||B.msMatchesSelector).call(t,e)}return!1},j=t=>t?T(t.childNodes):[],G=t=>t?t.parentElement:null,H=(t,e)=>{if(w(t)){const n=B.closest;if(n)return n.call(t,e);do{if(V(t,e))return t;t=G(t)}while(t)}return null},W=(t,e,n)=>{const i=t&&H(t,e),r=t&&((t,e)=>{const n=e?w(e)?e:null:document;return n?n.querySelector(t):null})(n,i),o=H(r,e)===i;return!(!i||!r)&&(i===t||r===t||o&&H(H(t,n),e)!==i)},Z=(t,e,n)=>{if(n&&t){let r,o=e;_(n)?(r=document.createDocumentFragment(),i(n,(t=>{t===o&&(o=t.previousSibling),r.appendChild(t)}))):r=n,e&&(o?o!==e&&(o=o.nextSibling):o=t.firstChild),t.insertBefore(r,o||null)}},U=(t,e)=>{Z(t,null,e)},X=(t,e)=>{Z(G(t),t&&t.nextSibling,e)},$=t=>{if(_(t))i(T(t),(t=>$(t)));else if(t){const e=G(t);e&&e.removeChild(t)}},Y=t=>{const e=document.createElement("div");return t&&E(e,"class",t),e},q=t=>{const e=Y();return e.innerHTML=t.trim(),i(j(e),(t=>$(t)))},K=t=>t.charAt(0).toUpperCase()+t.slice(1),J=["-webkit-","-moz-","-o-","-ms-"],Q=["WebKit","Moz","O","MS","webkit","moz","o","ms"],tt={},et={},nt=t=>{let e=et[t];if(I(et,t))return e;const n=K(t),r=Y().style;return i(J,(i=>{const o=i.replace(/-/g,""),a=[t,i+t,o+n,K(o)+n];return!(e=a.find((t=>void 0!==r[t])))})),et[t]=e||""},it=t=>{if(a()){let e=tt[t]||window[t];return I(tt,t)||(i(Q,(n=>(e=e||window[n+K(t)],!e))),tt[t]=e),e}},rt=it("MutationObserver"),ot=it("IntersectionObserver"),at=it("ResizeObserver"),st=it("cancelAnimationFrame"),lt=it("requestAnimationFrame"),ut=a()&&window.setTimeout,ht=a()&&window.clearTimeout,ct=/[^\x20\t\r\n\f]+/g,pt=(t,e,n)=>{const i=t&&t.classList;let r,o=0,a=!1;if(i&&e&&d(e)){const t=e.match(ct)||[];for(a=t.length>0;r=t[o++];)a=!!n(i,r)&&a}return a},ft=(t,e)=>{pt(t,e,((t,e)=>t.remove(e)))},dt=(t,e)=>(pt(t,e,((t,e)=>t.add(e))),ft.bind(0,t,e)),{max:gt}=Math,mt=()=>performance.now(),vt=(t,e,n,r)=>{if(t&&e){let o=!0;return i(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},yt=(t,e)=>vt(t,e,["w","h"]),_t=(t,e)=>vt(t,e,["x","y"]),xt=(t,e)=>vt(t,e,["t","r","b","l"]),bt=(t,e,n)=>vt(t,e,["width","height"],n&&(t=>Math.round(t))),wt=()=>{},St=t=>{let e;const n=t?ut:lt,i=t?ht:st;return[r=>{i(e),e=n(r,m(t)?t():t)},()=>i(e)]},Mt=(t,e)=>{let n,i,r,o=wt;const{v:a,g:s,p:l}=e||{},u=function(e){o(),ht(n),n=i=void 0,o=wt,t.apply(this,e)},h=t=>l&&i?l(i,t):t,c=()=>{o!==wt&&u(h(r)||r)},p=function(){const t=T(arguments),e=m(a)?a():a;if(f(e)&&e>=0){const a=m(s)?s():s,l=f(a)&&a>=0,p=e>0?ut:lt,d=e>0?ht:st,g=h(t)||t,v=u.bind(0,g);o();const y=p(v,e);o=()=>d(y),l&&!n&&(n=ut(c,a)),i=r=g}else u(t)};return p.m=c,p},Tt={opacity:1,zindex:1},Ct=(t,e)=>{const n=e?parseFloat(t):parseInt(t,10);return n==n?n:0},At=(t,e,n)=>null!=e?e[n]||e.getPropertyValue(n):t.style[n],It=(t,e,n)=>{try{const{style:i}=t;h(i[e])?i.setProperty(e,n):i[e]=((t,e)=>!Tt[t.toLowerCase()]&&f(e)?`${e}px`:e)(e,n)}catch(t){}},kt=t=>"rtl"===r(t,"direction"),Dt=(t,e,n)=>{const i=e?`${e}-`:"",o=n?`-${n}`:"",a=`${i}top${o}`,s=`${i}right${o}`,l=`${i}bottom${o}`,u=`${i}left${o}`,h=r(t,[a,s,l,u]);return{t:Ct(h[a],!0),r:Ct(h[s],!0),b:Ct(h[l],!0),l:Ct(h[u],!0)}},{round:Pt}=Math,Lt={w:0,h:0},Et=t=>t?{w:t.offsetWidth,h:t.offsetHeight}:Lt,Ot=t=>t?{w:t.clientWidth,h:t.clientHeight}:Lt,Rt=t=>t?{w:t.scrollWidth,h:t.scrollHeight}:Lt,Nt=t=>{const e=parseFloat(r(t,"height"))||0,n=parseFloat(r(t,"width"))||0;return{w:n-Pt(n),h:e-Pt(e)}},Ft=t=>t.getBoundingClientRect();let Bt;const zt=t=>t.split(" "),Vt=(t,e,n,r)=>{i(zt(e),(e=>{t.removeEventListener(e,n,r)}))},jt=(t,e,n,r)=>{var o;const a=(()=>{if(h(Bt)){Bt=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){Bt=!0}}))}catch(t){}}return Bt})(),s=null!=(o=a&&r&&r.S)?o:a,l=r&&r.$||!1,u=r&&r.C||!1,c=[],p=a?{passive:s,capture:l}:l;return i(zt(e),(e=>{const i=u?r=>{t.removeEventListener(e,i,l),n&&n(r)}:n;M(c,Vt.bind(null,t,e,i,l)),t.addEventListener(e,i,p)})),A.bind(0,c)},Gt=t=>t.stopPropagation(),Ht=t=>t.preventDefault(),Wt={x:0,y:0},Zt=t=>{const e=t?Ft(t):0;return e?{x:e.left+window.pageYOffset,y:e.top+window.pageXOffset}:Wt},Ut=(t,e)=>{i(v(e)?e:[e],t)},Xt=t=>{const e=new Map,n=(t,n)=>{if(t){const i=e.get(t);Ut((t=>{i&&i[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(d(t)){const i=e.get(t)||new Set;return e.set(t,i),Ut((t=>{m(t)&&i.add(t)}),o),n.bind(0,t,o)}g(o)&&o&&n();const a=k(t),s=[];return i(a,(e=>{const n=t[e];n&&M(s,r(e,n))})),A.bind(0,s)};return r(t||{}),[r,n,(t,n)=>{const r=e.get(t);i(T(r),(t=>{n&&!C(n)?t.apply(0,n):t()}))}]},$t=t=>JSON.stringify(t,((t,e)=>{if(m(e))throw new Error;return e})),Yt={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},qt=(t,e)=>{const n={};return i(k(e).concat(k(t)),(i=>{const r=t[i],o=e[i];if(y(r)&&y(o))D(n[i]={},qt(r,o)),P(n[i])&&delete n[i];else if(I(e,i)&&o!==r){let t=!0;if(v(r)||v(o))try{$t(r)===$t(o)&&(t=!1)}catch(t){}t&&(n[i]=o)}})),n},Kt="os-environment",Jt=`${Kt}-flexbox-glue`,Qt=`${Jt}-max`,te="os-scrollbar-hidden",ee="data-overlayscrollbars-initialize",ne="data-overlayscrollbars",ie=`${ne}-overflow-x`,re=`${ne}-overflow-y`,oe="overflowVisible",ae="scrollbarPressed",se="updating",le="data-overlayscrollbars-viewport",ue="arrange",he="scrollbarHidden",ce=oe,pe="data-overlayscrollbars-padding",fe=ce,de="data-overlayscrollbars-content",ge="os-size-observer",me=`${ge}-appear`,ve=`${ge}-listener`,ye="os-scrollbar",_e=`${ye}-rtl`,xe=`${ye}-horizontal`,be=`${ye}-vertical`,we=`${ye}-track`,Se=`${ye}-handle`,Me=`${ye}-visible`,Te=`${ye}-cornerless`,Ce=`${ye}-transitionless`,Ae=`${ye}-interaction`,Ie=`${ye}-unusable`,ke=`${ye}-auto-hidden`,De=`${ye}-wheel`,Pe=`${we}-interactive`,Le=`${Se}-interactive`,Ee={},Oe=()=>Ee,Re="__osSizeObserverPlugin";const{round:Ne,abs:Fe}=Math,Be="__osScrollbarsHidingPlugin",ze="__osClickScrollPlugin",Ve=(()=>({[ze]:{O:(t,e,n,i,r)=>{let o=0,a=wt;const s=l=>{a=((t,e,n,i,r)=>{let o=0;const a=mt(),s=gt(0,n),l=n=>{const u=mt(),h=u-a>=s,c=n?1:1-(gt(0,a+s-u)/s||0),p=(e-t)*(m(r)?r(c,c*s,0,1,s):c)+t,f=h||1===c;i&&i(p,c,f),o=f?0:lt((()=>l()))};return l(),t=>{st(o),t&&l(t)}})(l,l+i*Math.sign(n),133,((n,l,u)=>{t(n);const h=e();if(u&&!(r>=h&&r<=h+i)){if(o)s(n);else{const t=setTimeout((()=>{s(n)}),222);a=()=>{clearTimeout(t)}}o++}}))};return s(0),()=>a()}}}))();let je;const Ge=(t,e,n,i)=>{U(t,e);const r=Ot(e),o=Et(e),a=Nt(n);return i&&$(e),{x:o.h-r.h+a.h,y:o.w-r.w+a.w}},He=(t,e)=>{const n="hidden";r(t,{overflowX:n,overflowY:n,direction:"rtl"}),N(t,0);const i=Zt(t),o=Zt(e);N(t,-999);const a=Zt(e);return{i:i.x===o.x,n:o.x!==a.x}},We=(t,e)=>{const n=dt(t,Jt),i=Ft(t),r=Ft(e),o=bt(r,i,!0),a=dt(t,Qt),s=Ft(t),l=Ft(e),u=bt(l,s,!0);return n(),a(),o&&u},Ze=()=>{const{body:t}=document,e=q(`
`)[0],n=e.firstChild,[i,,a]=Xt(),[s,l]=o({o:Ge(t,e,n),u:_t},Ge.bind(0,t,e,n,!0)),[u]=l(),h=(t=>{let e=!1;const n=dt(t,te);try{e="none"===r(t,nt("scrollbar-width"))||"none"===window.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")}catch(t){}return n(),e})(e),c={x:0===u.x,y:0===u.y},p={elements:{host:null,padding:!h,viewport:t=>h&&t===t.ownerDocument.body&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},f=D({},Yt),d=D.bind(0,{},f),g=D.bind(0,{},p),m={k:u,A:c,I:h,L:"-1"===r(e,"zIndex"),B:He(e,n),V:We(e,n),Y:i.bind(0,"z"),j:i.bind(0,"r"),N:g,q:t=>D(p,t)&&g(),F:d,G:t=>D(f,t)&&d(),X:D({},p),U:D({},f)},v=window.addEventListener,y=Mt((t=>a(t?"z":"r")),{v:33,g:99});if(O(e,"style"),$(e),v("resize",y.bind(0,!1)),!(h||c.x&&c.y)){let t;v("resize",(()=>{const e=Oe()[Be];t=t||e&&e.R(),t&&t(m,s,y.bind(0,!0))}))}return m},Ue=()=>(je||(je=Ze()),je),Xe=(t,e)=>m(e)?e.apply(0,t):e,$e=(t,e,n,i)=>{const r=h(i)?n:i;return Xe(t,r)||e.apply(0,t)},Ye=(t,e,n,i)=>{const r=h(i)?n:i,o=Xe(t,r);return!!o&&(b(o)?o:e.apply(0,t))},qe=new WeakMap,Ke=t=>qe.get(t),Je=(t,e)=>t?e.split(".").reduce(((t,e)=>t&&I(t,e)?t[e]:void 0),t):void 0,Qe=(t,e,n)=>i=>[Je(t,i),n||void 0!==Je(e,i)],tn=t=>{let e=t;return[()=>e,t=>{e=D({},e,t)}]},en="tabindex",nn=Y.bind(0,""),rn=t=>{U(G(t),j(t)),$(t)},on=t=>{const e=Ue(),{N:n,I:i}=e,r=Oe()[Be],o=r&&r.T,{elements:a}=n(),{host:s,padding:l,viewport:u,content:h}=a,c=b(t),p=c?{}:t,{elements:f}=p,{host:d,padding:g,viewport:m,content:v}=f||{},y=c?t:p.target,_=V(y,"textarea"),x=y.ownerDocument,w=x.documentElement,T=y===x.body,C=x.defaultView,I=$e.bind(0,[y]),D=Ye.bind(0,[y]),P=Xe.bind(0,[y]),L=I.bind(0,nn,u),N=D.bind(0,nn,h),F=L(m),B=F===y,z=B&&T,H=!B&&N(v),W=!B&&b(F)&&F===H,Y=W&&!!P(h),q=Y?L():F,K=Y?H:N(),J=z?w:W?q:F,Q=_?I(nn,s,d):y,tt=z?J:Q,et=W?K:H,nt=x.activeElement,it=!B&&C.top===C&&nt===y,rt={W:y,Z:tt,J:J,K:!B&&D(nn,l,g),tt:et,nt:!B&&!i&&o&&o(e),ot:z?w:J,st:z?x:J,et:C,ct:x,rt:_,it:T,lt:c,ut:B,dt:W,ft:(t,e)=>((t,e,n)=>{const i=E(t,e)||"";return new Set(i.split(" ")).has(n)})(J,B?ne:le,B?e:t),_t:(t,e,n)=>R(J,B?ne:le,B?e:t,n)},ot=k(rt).reduce(((t,e)=>{const n=rt[e];return M(t,!(!n||G(n))&&n)}),[]),at=t=>t?S(ot,t)>-1:null,{W:st,Z:lt,K:ut,J:ht,tt:ct,nt:pt}=rt,ft=[()=>{O(lt,ne),O(lt,ee),O(st,ee),T&&(O(w,ne),O(w,ee))}],gt=_&&at(lt);let mt=_?st:j([ct,ht,ut,lt,st].find((t=>!1===at(t))));const vt=z?st:ct||ht;return[rt,()=>{E(lt,ne,B?"viewport":"host"),E(ut,pe,""),E(ct,de,""),B||E(ht,le,"");const t=T&&!B?dt(G(y),te):wt;if(gt&&(X(st,lt),M(ft,(()=>{X(lt,st),$(lt)}))),U(vt,mt),U(lt,ut),U(ut||lt,!B&&ht),U(ht,ct),M(ft,(()=>{t(),O(ut,pe),O(ct,de),O(ht,ie),O(ht,re),O(ht,le),at(ct)&&rn(ct),at(ht)&&rn(ht),at(ut)&&rn(ut)})),i&&!B&&(R(ht,le,he,!0),M(ft,O.bind(0,ht,le))),pt&&(((t,e)=>{Z(G(t),t,e)})(ht,pt),M(ft,$.bind(0,pt))),it){const t=E(ht,en);E(ht,en,"-1"),ht.focus();const e=()=>t?E(ht,en,t):O(ht,en),n=jt(x,"pointerdown keydown",(()=>{e(),n()}));M(ft,[e,n])}else nt&&nt.focus&&nt.focus();mt=0},A.bind(0,ft)]},an=(t,e)=>{const{tt:n}=t,[i]=e;return t=>{const{V:e}=Ue(),{ht:o}=i(),{vt:a}=t,s=(n||!e)&&a;return s&&r(n,{height:o?"":"100%"}),{gt:s,wt:s}}},sn=(t,e)=>{const[n,i]=e,{Z:a,K:s,J:l,ut:u}=t,[h,c]=o({u:xt,o:Dt()},Dt.bind(0,a,"padding",""));return(t,e,o)=>{let[a,p]=c(o);const{I:f,V:d}=Ue(),{bt:g}=n(),{gt:m,wt:v,yt:y}=t,[_,x]=e("paddingAbsolute");(m||p||!d&&v)&&([a,p]=h(o));const b=!u&&(x||y||p);if(b){const t=!_||!s&&!f,e=a.r+a.l,n=a.t+a.b,o={marginRight:t&&!g?-e:0,marginBottom:t?-n:0,marginLeft:t&&g?-e:0,top:t?-a.t:0,right:t?g?-a.r:"auto":0,left:t?g?"auto":-a.l:0,width:t?`calc(100% + ${e}px)`:""},u={paddingTop:t?a.t:0,paddingRight:t?a.r:0,paddingBottom:t?a.b:0,paddingLeft:t?a.l:0};r(s||l,o),r(l,u),i({K:a,St:!t,P:s?u:D({},o,u)})}return{xt:b}}},{max:ln}=Math,un=ln.bind(0,0),hn="visible",cn="hidden",pn={u:yt,o:{w:0,h:0}},fn={u:_t,o:{x:cn,y:cn}},dn=t=>0===t.indexOf(hn),gn=(t,e)=>{const[n,i]=e,{Z:a,K:s,J:l,nt:u,ut:h,_t:c,it:p,et:f}=t,{k:d,V:g,I:m,A:v}=Ue(),y=Oe()[Be],_=!h&&!m&&(v.x||v.y),x=p&&h,[b,w]=o(pn,Nt.bind(0,l)),[S,M]=o(pn,Rt.bind(0,l)),[T,C]=o(pn),[A,I]=o(pn),[k]=o(fn),D=(t,e)=>{if(r(l,{height:""}),e){const{St:e,K:i}=n(),{$t:o,D:s}=t,u=Nt(a),h=Ot(a),c="content-box"===r(l,"boxSizing"),p=e||c?i.b+i.t:0,f=!(v.x&&c);r(l,{height:h.h+u.h+(o.x&&f?s.x:0)-p})}},P=(t,e)=>{const n=m||t?0:42,i=(t,i,o)=>{const a=r(l,t),s="scroll"===(e?e[t]:a);return[a,s,s&&!m?i?n:o:0,i&&!!n]},[o,a,s,u]=i("overflowX",v.x,d.x),[h,c,p,f]=i("overflowY",v.y,d.y);return{Ct:{x:o,y:h},$t:{x:a,y:c},D:{x:s,y:p},M:{x:u,y:f}}},L=(t,e,i,r)=>{const{D:o,M:a}=t,{x:s,y:l}=a,{x:u,y:h}=o,{P:c}=n(),p=e?"marginLeft":"marginRight",f=e?"paddingLeft":"paddingRight",d=c[p],g=c.marginBottom,m=c[f],v=c.paddingBottom;r.width=`calc(100% + ${h+-1*d}px)`,r[p]=-h+d,r.marginBottom=-u+g,i&&(r[f]=m+(l?h:0),r.paddingBottom=v+(s?u:0))},[O,N]=y?y.H(_,g,l,u,n,P,L):[()=>_,()=>[wt]];return(t,e,o)=>{const{gt:u,Ot:p,wt:d,xt:y,vt:_,yt:F}=t,{ht:B,bt:z}=n(),[V,j]=e("showNativeOverlaidScrollbars"),[G,H]=e("overflow"),W=V&&v.x&&v.y,Z=!h&&!g&&(u||d||p||j||_),U=dn(G.x),X=dn(G.y),$=U||X;let Y,q=w(o),K=M(o),J=C(o),Q=I(o);if(j&&m&&c(he,"scrollbarHidden",!W),Z&&(Y=P(W),D(Y,B)),u||y||d||F||j){$&&c(ce,oe,!1);const[t,e]=N(W,z,Y),[n,i]=q=b(o),[r,a]=K=S(o),s=Ot(l);let u=r,h=s;t(),(a||i||j)&&e&&!W&&O(e,r,n,z)&&(h=Ot(l),u=Rt(l));const p={w:un(ln(r.w,u.w)+n.w),h:un(ln(r.h,u.h)+n.h)},d={w:un((x?f.innerWidth:h.w+un(s.w-r.w))+n.w),h:un((x?f.innerHeight+n.h:h.h+un(s.h-r.h))+n.h)};Q=A(d),J=T(((t,e)=>{const n=window.devicePixelRatio%1!=0?1:0,i={w:un(t.w-e.w),h:un(t.h-e.h)};return{w:i.w>n?i.w:0,h:i.h>n?i.h:0}})(p,d),o)}const[tt,et]=Q,[nt,it]=J,[rt,ot]=K,[at,st]=q,lt={x:nt.w>0,y:nt.h>0},ut=U&&X&&(lt.x||lt.y)||U&<.x&&!lt.y||X&<.y&&!lt.x;if(y||F||st||ot||et||it||H||j||Z){const t={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},e=((t,e,n,i)=>{const r=(t,e)=>{const n=dn(t),i=e&&n&&t.replace(`${hn}-`,"")||"";return[e&&!n?t:"",dn(i)?"hidden":i]},[o,a]=r(n.x,e.x),[s,l]=r(n.y,e.y);return i.overflowX=a&&s?a:o,i.overflowY=l&&o?l:s,P(t,i)})(W,lt,G,t),n=O(e,rt,at,z);h||L(e,z,n,t),Z&&D(e,B),h?(E(a,ie,t.overflowX),E(a,re,t.overflowY)):r(l,t)}R(a,ne,oe,ut),R(s,pe,fe,ut),h||R(l,le,ce,$);const[ht,ct]=k(P(W).Ct);return i({Ct:ht,zt:{x:tt.w,y:tt.h},Tt:{x:nt.w,y:nt.h},Et:lt}),{It:ct,At:et,Lt:it}}},mn=(t,e,n)=>{const r={},o=e||{};return i(k(t).concat(k(o)),(e=>{const i=t[e],a=o[e];r[e]=!!(n||i||a)})),r},vn=(t,e,n,r)=>{let o=!1;const{Ht:a,Pt:s,Dt:l,Mt:u,Rt:h,kt:c}=r||{},p=Mt((()=>{o&&n(!0)}),{v:33,g:99}),[f,g]=((t,e,n)=>{let r,o=!1;const a=a=>{if(n){const s=n.reduce(((e,n)=>{if(n){const[i,r]=n,o=r&&i&&(a?a(i):z(i,t));o&&o.length&&r&&d(r)&&M(e,[o,r.trim()],!0)}return e}),[]);i(s,(n=>i(n[0],(i=>{const a=n[1],s=r.get(i)||[];if(t.contains(i)){const t=jt(i,a,(n=>{o?(t(),r.delete(i)):e(n)}));r.set(i,M(s,t))}else A(s),r.delete(i)}))))}};return n&&(r=new WeakMap,a()),[()=>{o=!0},a]})(t,p,l),m=s||[],v=(a||[]).concat(m),y=(o,a)=>{const s=h||wt,l=c||wt,p=new Set,f=new Set;let v=!1,y=!1;if(i(o,(n=>{const{attributeName:o,target:a,type:h,oldValue:c,addedNodes:g,removedNodes:_}=n,x="attributes"===h,b="childList"===h,w=t===a,M=x&&d(o)?E(a,o):0,T=0!==M&&c!==M,C=S(m,o)>-1&&T;if(e&&(b||!w)){const e=!x,h=x&&T,f=h&&u&&V(a,u),d=(f?!s(a,o,c,M):e||h)&&!l(n,!!f,t,r);i(g,(t=>p.add(t))),i(_,(t=>p.add(t))),y=y||d}!e&&w&&T&&!s(a,o,c,M)&&(f.add(o),v=v||C)})),p.size>0&&g((t=>T(p).reduce(((e,n)=>(M(e,z(t,n)),V(n,t)?M(e,n):e)),[]))),e)return!a&&y&&n(!1),[!1];if(f.size>0||v){const t=[T(f),v];return!a&&n.apply(0,t),t}},_=new rt((t=>y(t)));return _.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:e,childList:e,characterData:e}),o=!0,[()=>{o&&(f(),_.disconnect(),o=!1)},()=>{if(o){p.m();const t=_.takeRecords();return!C(t)&&y(t,!0)}}]},yn=3333333,_n=t=>t&&(t.height||t.width),xn=(t,e,n)=>{const{Bt:i=!1,Vt:r=!1}=n||{},a=Oe()[Re],{B:s}=Ue(),l=q(`
`)[0],u=l.firstChild,h=kt.bind(0,t),[c]=o({o:void 0,_:!0,u:(t,e)=>!(!t||!_n(t)&&_n(e))}),p=t=>{const n=v(t)&&t.length>0&&y(t[0]),r=!n&&g(t[0]);let o=!1,a=!1,u=!0;if(n){const[e,,n]=c(t.pop().contentRect),i=_n(e);o=!n||!i,a=!_n(n)&&i,u=!o}else r?[,u]=t:a=!0===t;if(i&&u){const e=r?t[0]:kt(l);N(l,e?s.n?-yn:s.i?0:yn:yn),F(l,yn)}o||e({gt:!r,Yt:r?t:void 0,Vt:!!a})},f=[];let d=!!r&&p;return[()=>{A(f),$(l)},()=>{if(at){const t=new at(p);t.observe(u),M(f,(()=>{t.disconnect()}))}else if(a){const[t,e]=a.O(u,p,r);d=t,M(f,e)}if(i){const[t]=o({o:void 0},h);M(f,jt(l,"scroll",(e=>{const n=t(),[i,r,o]=n;r&&(ft(u,"ltr rtl"),dt(u,i?"rtl":"ltr"),p([!!i,r,o])),Gt(e)})))}d&&(dt(l,me),M(f,jt(l,"animationstart",d,{C:!!at}))),(at||a)&&U(t,l)}]},bn=(t,e)=>{let n;const i=Y("os-trinsic-observer"),r=[],[a]=o({o:!1}),s=(t,n)=>{if(t){const i=a((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,r]=i;if(r)return!n&&e(i),[i]}},l=(t,e)=>{if(t&&t.length>0)return s(t.pop(),e)};return[()=>{A(r),$(i)},()=>{if(ot)n=new ot((t=>l(t)),{root:t}),n.observe(i),M(r,(()=>{n.disconnect()}));else{const t=()=>{const t=Et(i);s(t)},[e,n]=xn(i,t);M(r,e),n(),t()}U(t,i)},()=>{if(n)return l(n.takeRecords(),!0)}]},wn=`[${ne}]`,Sn=`[${le}]`,Mn=["tabindex"],Tn=["wrap","cols","rows"],Cn=["id","class","style","open"],An=(t,e,n)=>{let r,a,s;const{Z:l,J:u,tt:h,rt:c,ut:p,ft:g,_t:y}=t,{V:_}=Ue(),[x]=o({u:yt,o:{w:0,h:0}},(()=>{const t=g(ce,oe),e=g(ue,""),n=e&&N(u),i=e&&F(u);y(ce,oe),y(ue,""),y("",se,!0);const r=Rt(h),o=Rt(u),a=Nt(u);return y(ce,oe,t),y(ue,"",e),y("",se),N(u,n),F(u,i),{w:o.w+r.w+a.w,h:o.h+r.h+a.h}})),b=c?Tn:Cn.concat(Tn),w=Mt(n,{v:()=>r,g:()=>a,p(t,e){const[n]=t,[i]=e;return[k(n).concat(k(i)).reduce(((t,e)=>(t[e]=n[e]||i[e],t)),{})]}}),T=t=>{i(t||Mn,(t=>{if(S(Mn,t)>-1){const e=E(l,t);d(e)?E(u,t,e):O(u,t)}}))},C=(t,i)=>{const[r,o]=t,a={vt:o};return e({ht:r}),!i&&n(a),a},A=({gt:t,Yt:i,Vt:r})=>{const o=!t||r?n:w;let a=!1;if(i){const[t,n]=i;a=n,e({bt:t})}o({gt:t,yt:a})},I=(t,e)=>{const[,i]=x(),r={wt:i};return i&&!e&&(t?n:w)(r),r},P=(t,e,n)=>{const i={Ot:e};return e?!n&&w(i):p||T(t),i},[L,R,B]=h||!_?bn(l,C):[wt,wt,wt],[z,V]=p?[wt,wt]:xn(l,A,{Vt:!0,Bt:!0}),[j,G]=vn(l,!1,P,{Pt:Cn,Ht:Cn.concat(Mn)}),Z=p&&at&&new at(A.bind(0,{gt:!0}));return Z&&Z.observe(l),T(),[()=>{L(),z(),s&&s[0](),Z&&Z.disconnect(),j()},()=>{V(),R()},()=>{const t={},e=G(),n=B(),i=s&&s[1]();return e&&D(t,P.apply(0,M(e,!0))),n&&D(t,C.apply(0,M(n,!0))),i&&D(t,I.apply(0,M(i,!0))),t},t=>{const[e]=t("update.ignoreMutation"),[n,i]=t("update.attributes"),[o,l]=t("update.elementEvents"),[c,d]=t("update.debounce"),g=t=>m(e)&&e(t);if((l||i)&&(s&&(s[1](),s[0]()),s=vn(h||u,!0,I,{Ht:b.concat(n||[]),Dt:o,Mt:wn,kt:(t,e)=>{const{target:n,attributeName:i}=t;return!(e||!i||p)&&W(n,wn,Sn)||!!H(n,`.${ye}`)||!!g(t)}})),d)if(w.m(),v(c)){const t=c[0],e=c[1];r=f(t)&&t,a=f(e)&&e}else f(c)?(r=c,a=!1):(r=!1,a=!1)}]},In={x:0,y:0},kn=(t,e)=>{const n=Qe(e,{}),[r,o,a]=Xt(),[s,l,u]=on(t),h=tn((t=>({K:{t:0,r:0,b:0,l:0},St:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:In,Tt:In,Ct:{x:"hidden",y:"hidden"},Et:{x:!1,y:!1},ht:!1,bt:kt(t.Z)}))(s)),[c,p]=h,f=((t,e)=>{const{W:n,J:r,_t:o,ut:a}=t,{I:s,A:l,V:u}=Ue(),h=!s&&(l.x||l.y),c=[an(t,e),sn(t,e),gn(t,e)];return(t,e,s)=>{const l=mn(D({gt:!1,xt:!1,yt:!1,vt:!1,At:!1,Lt:!1,It:!1,Ot:!1,wt:!1},e),{},s),p=h||!u,f=p&&N(r),d=p&&F(r);o("",se,!0);let g=l;return i(c,(e=>{g=mn(g,e(g,t,!!s)||{},s)})),N(r,f),F(r,d),o("",se),a||(N(n,0),F(n,0)),g}})(s,h),d=(t,e,n)=>{const i=k(t).some((e=>t[e])),r=i||!P(e)||n;return r&&a("u",[t,e,n]),r},[g,m,v,y]=An(s,p,(t=>d(f(n,t),{},!1))),_=c.bind(0);return _.jt=t=>r("u",t),_.Nt=()=>{const{W:t,J:e}=s,n=N(t),i=F(t);m(),l(),N(e,n),F(e,i)},_.qt=s,[(t,n)=>{const i=Qe(e,t,n);return y(i),d(f(i,v(),n),t,!!n)},_,()=>{o(),g(),u()}]},{round:Dn}=Math,Pn=(t,e)=>jt(t,"mousedown",jt.bind(0,e,"click",Gt,{C:!0,$:!0}),{$:!0}),Ln="pointerup pointerleave pointercancel lostpointercapture",En=(t,e,n,i,r,o,a)=>{const{B:s}=Ue(),{Ft:l,Gt:u,Xt:h}=i,c="scroll"+(a?"Left":"Top"),p="client"+(a?"X":"Y"),f=a?"width":"height",d=a?"left":"top",g=a?"w":"h",m=a?"x":"y",v=(t,e)=>n=>{const{Tt:i}=o(),p=Et(u)[g]-Et(l)[g],f=e*n/p*i[m],d=kt(h)&&a?s.n||s.i?1:-1:1;r[c]=t+f*d};return jt(u,"pointerdown",(i=>{const o=H(i.target,`.${Se}`)===l,a=o?l:u;if(R(e,ne,ae,!0),((t,e,n)=>{const i=e.scrollbars,{button:r,isPrimary:o,pointerType:a}=t,{pointers:s}=i;return 0===r&&o&&i[n?"dragScroll":"clickScroll"]&&(s||[]).includes(a)})(i,t,o)){const t=!o&&i.shiftKey,s=()=>Ft(l),h=()=>Ft(u),g=(t,e)=>(t||s())[d]-(e||h())[d],y=v(r[c]||0,1/(t=>{const{width:e,height:n}=Ft(t),{w:i,h:r}=Et(t);return{x:Dn(e)/i||1,y:Dn(n)/r||1}})(r)[m]),_=i[p],x=s(),b=h(),w=x[f],S=g(x,b)+w/2,T=_-b[d],C=o?0:T-S,I=t=>{A(k),a.releasePointerCapture(t.pointerId)},k=[R.bind(0,e,ne,ae),jt(n,Ln,I),jt(n,"selectstart",(t=>Ht(t)),{S:!1}),jt(u,Ln,I),jt(u,"pointermove",(e=>{const n=e[p]-_;(o||t)&&y(C+n)}))];if(t)y(C);else if(!o){const t=Oe()[ze];t&&M(k,t.O(y,g,C,w,T))}a.setPointerCapture(i.pointerId)}}))},{min:On,max:Rn,abs:Nn,round:Fn}=Math,Bn=(t,e,n,i)=>{if(i){const t=n?"x":"y",{Tt:e,zt:r}=i,o=r[t],a=e[t];return Rn(0,On(1,o/(o+a)))}const r=n?"width":"height",o=Ft(t)[r],a=Ft(e)[r];return Rn(0,On(1,o/a))},zn=(t,e,n)=>{const{N:o,L:a}=Ue(),{scrollbars:s}=o(),{slot:l}=s,{ct:u,W:h,Z:c,J:p,lt:f,ot:d,it:m,ut:v}=e,{scrollbars:y}=f?{}:t,{slot:_}=y||{},x=Ye([h,c,p],(()=>v&&m?h:c),l,_),b=(t,e,n)=>{const r=n?dt:ft;i(t,(t=>{r(t.Xt,e)}))},w=(t,e)=>{i(t,(t=>{const[n,i]=e(t);r(n,i)}))},S=(t,e,n)=>{w(t,(t=>{const{Ft:i,Gt:r}=t;return[i,{[n?"width":"height"]:`${(100*Bn(i,r,n,e)).toFixed(3)}%`}]}))},T=(t,e,n)=>{const i=n?"X":"Y";w(t,(t=>{const{Ft:r,Gt:o,Xt:a}=t,s=((t,e,n,i,r,o)=>{const{B:a}=Ue(),s=o?"x":"y",l=o?"Left":"Top",{Tt:u}=i,h=Fn(u[s]),c=Nn(n[`scroll${l}`]),p=o&&r,f=a.i?c:h-c,d=On(1,(p?f:c)/h),g=Bn(t,e,o);return 1/g*(1-g)*d})(r,o,d,e,kt(a),n);return[r,{transform:s==s?`translate${i}(${(100*s).toFixed(3)}%)`:""}]}))},I=[],k=[],D=[],P=(t,e,n)=>{const i=g(n),r=!i||!n;(!i||n)&&b(k,t,e),r&&b(D,t,e)},L=t=>{const e=t?xe:be,i=t?k:D,r=C(i)?Ce:"",o=Y(`${ye} ${e} ${r}`),s=Y(we),l=Y(Se),h={Xt:o,Gt:s,Ft:l};return a||dt(o,"os-no-css-vars"),U(o,s),U(s,l),M(i,h),M(I,[$.bind(0,o),n(h,P,u,c,d,t)]),h},E=L.bind(0,!0),O=L.bind(0,!1);return E(),O(),[{Ut:t=>{S(k,t,!0),S(D,t)},Wt:t=>{T(k,t,!0),T(D,t)},Zt:P,Jt:{Kt:k,Qt:E,tn:w.bind(0,k)},nn:{Kt:D,Qt:O,tn:w.bind(0,D)}},()=>{U(x,k[0].Xt),U(x,D[0].Xt),ut((()=>{P(Ce)}),300)},A.bind(0,I)]},Vn=(t,e,n,i)=>{let r,o,a,s,l,u=0;const h=tn({}),[c]=h,[p,f]=St(),[d,g]=St(),[m,v]=St(100),[y,_]=St(100),[x,b]=St((()=>u)),[w,S,M]=zn(t,n.qt,((t,e)=>(n,i,r,o,a,s)=>{const{Xt:l}=n,[u,h]=St(333),c=!!a.scrollBy;let p=!0;return A.bind(0,[jt(l,"pointerenter",(()=>{i(Ae,!0)})),jt(l,"pointerleave pointercancel",(()=>{i(Ae)})),jt(l,"wheel",(t=>{const{deltaX:e,deltaY:n,deltaMode:r}=t;c&&p&&0===r&&G(l)===o&&a.scrollBy({left:e,top:n,behavior:"smooth"}),p=!1,i(De,!0),u((()=>{p=!0,i(De)})),Ht(t)}),{S:!1,$:!0}),Pn(l,r),En(t,o,r,n,a,e,s),h])})(e,n)),{Z:T,J:C,ot:I,st:k,ut:D,it:P}=n.qt,{Jt:L,nn:E,Zt:O,Ut:R,Wt:B}=w,{tn:z}=L,{tn:V}=E,j=t=>{const{Xt:e}=t,n=D&&!P&&G(e)===C&&e;return[n,{transform:n?`translate(${N(I)}px, ${F(I)}px)`:""}]},H=(t,e)=>{if(b(),t)O(ke);else{const t=()=>O(ke,!0);u>0&&!e?x(t):t()}},W=()=>{s=o,s&&H(!0)},Z=[v,b,_,g,f,M,jt(T,"pointerover",W,{C:!0}),jt(T,"pointerenter",W),jt(T,"pointerleave",(()=>{s=!1,o&&H(!1)})),jt(T,"pointermove",(()=>{r&&p((()=>{v(),H(!0),y((()=>{r&&H(!1)}))}))})),jt(k,"scroll",(t=>{d((()=>{B(n()),a&&H(!0),m((()=>{a&&!s&&H(!1)}))})),i(t),D&&z(j),D&&V(j)}))],U=c.bind(0);return U.qt=w,U.Nt=S,[(t,i,s)=>{const{At:h,Lt:c,It:p,yt:f}=s,{A:d}=Ue(),g=Qe(e,t,i),m=n(),{Tt:v,Ct:y,bt:_}=m,[x,b]=g("showNativeOverlaidScrollbars"),[w,S]=g("scrollbars.theme"),[M,T]=g("scrollbars.visibility"),[C,A]=g("scrollbars.autoHide"),[I]=g("scrollbars.autoHideDelay"),[k,D]=g("scrollbars.dragScroll"),[L,E]=g("scrollbars.clickScroll"),N=h||c||f,F=p||T,z=x&&d.x&&d.y,V=(t,e)=>{const n="visible"===M||"auto"===M&&"scroll"===t;return O(Me,n,e),n};if(u=I,b&&O("os-theme-none",z),S&&(O(l),O(w,!0),l=w),A&&(r="move"===C,o="leave"===C,a="never"!==C,H(!a,!0)),D&&O(Le,k),E&&O(Pe,L),F){const t=V(y.x,!0),e=V(y.y,!1);O(Te,!(t&&e))}N&&(R(m),B(m),O(Ie,!v.x,!0),O(Ie,!v.y,!1),O(_e,_&&!P))},U,A.bind(0,Z)]},jn=(t,e,n)=>{m(t)&&t(e||void 0,n||void 0)},Gn=(t,e,n)=>{const{F:r,N:o,Y:a,j:s}=Ue(),l=Oe(),u=b(t),p=u?t:t.target,f=Ke(p);if(e&&!f){let f=!1;const d=t=>{const e=Oe().__osOptionsValidationPlugin,n=e&&e.O;return n?n(t,!0):t},g=D({},r(),d(e)),[m,v,y]=Xt(n),[_,x,b]=kn(t,g),[w,S,M]=Vn(t,g,x,(t=>y("scroll",[E,t]))),T=(t,e)=>_(t,!!e),C=T.bind(0,{},!0),A=a(C),I=s(C),L=t=>{(t=>{qe.delete(t)})(p),A(),I(),M(),b(),f=!0,y("destroyed",[E,!!t]),v()},E={options(t,e){if(t){const n=e?r():{},i=qt(g,D(n,d(t)));P(i)||(D(g,i),T(i))}return D({},g)},on:m,off:(t,e)=>{t&&e&&v(t,e)},state(){const{zt:t,Tt:e,Ct:n,Et:i,K:r,St:o,bt:a}=x();return D({},{overflowEdge:t,overflowAmount:e,overflowStyle:n,hasOverflow:i,padding:r,paddingAbsolute:o,directionRTL:a,destroyed:f})},elements(){const{W:t,Z:e,K:n,J:i,tt:r,ot:o,st:a}=x.qt,{Jt:s,nn:l}=S.qt,u=t=>{const{Ft:e,Gt:n,Xt:i}=t;return{scrollbar:i,track:n,handle:e}},h=t=>{const{Kt:e,Qt:n}=t,i=u(e[0]);return D({},i,{clone:()=>{const t=u(n());return w({},!0,{}),t}})};return D({},{target:t,host:e,padding:n||i,viewport:i,content:r||i,scrollOffsetElement:o,scrollEventElement:a,scrollbarHorizontal:h(s),scrollbarVertical:h(l)})},update:t=>T({},t),destroy:L.bind(0)};return x.jt(((t,e,n)=>{w(e,n,t)})),((t,e)=>{qe.set(t,e)})(p,E),i(k(l),(t=>jn(l[t],0,E))),((t,e,n)=>{const{nativeScrollbarsOverlaid:i,body:r}=n||{},{A:o,I:a}=Ue(),{nativeScrollbarsOverlaid:s,body:l}=e,u=null!=i?i:s,p=h(r)?l:r,f=(o.x||o.y)&&u,d=t&&(c(p)?!a:p);return!!f||!!d})(x.qt.it,o().cancel,!u&&t.cancel)?(L(!0),E):(x.Nt(),S.Nt(),y("initialized",[E]),x.jt(((t,e,n)=>{const{gt:i,yt:r,vt:o,At:a,Lt:s,It:l,wt:u,Ot:h}=t;y("updated",[E,{updateHints:{sizeChanged:i,directionChanged:r,heightIntrinsicChanged:o,overflowEdgeChanged:a,overflowAmountChanged:s,overflowStyleChanged:l,contentMutation:u,hostMutation:h},changedOptions:e,force:n}])})),E.update(!0),E)}return f};Gn.plugin=t=>{i((t=>{const e=[];return i(v(t)?t:[t],(t=>{i(k(t),(n=>{M(e,Ee[n]=t[n])}))})),e})(t),(t=>jn(t,Gn)))},Gn.valid=t=>{const e=t&&t.elements,n=m(e)&&e();return x(n)&&!!Ke(n.target)},Gn.env=()=>{const{k:t,A:e,I:n,B:i,V:r,L:o,X:a,U:s,N:l,q:u,F:h,G:c}=Ue();return D({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:i,flexboxGlue:r,cssCustomProperties:o,staticDefaultInitialization:a,staticDefaultOptions:s,getDefaultInitialization:l,setDefaultInitialization:u,getDefaultOptions:h,setDefaultOptions:c})}},7628:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function r(t={},e={}){Object.keys(e).forEach((n=>{void 0===t[n]?t[n]=e[n]:i(e[n])&&i(t[n])&&Object.keys(e[n]).length>0&&r(t[n],e[n])}))}n.d(e,{Jj:function(){return l},Me:function(){return a}});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const t="undefined"!=typeof document?document:{};return r(t,o),t}const s={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function l(){const t="undefined"!=typeof window?window:{};return r(t,s),t}},7873: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,{Z:function(){return o}});n(1703);function r(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}function o(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}}}]);