(window["webpackJsonp_ops-web"]=window["webpackJsonp_ops-web"]||[]).push([["chunk-libs"],{"003a":function(e,t,n){"use strict";var r=n("6b1d"),i=n("54f4");r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},"004f":function(e,t,n){"use strict";var r=n("c42f"),i=n("4912"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a constructor")}},"008b":function(e,t,n){var r=n("a531");function i(e,t,n){var i=[],a=arguments.length;if(e){if(t=a>=2?r(t):0,n=a>=3?r(n):e.length,e.slice)return e.slice(t,n);for(;t1?i[1]:""},s.path=l.replace(/^([a-z0-9.+-]*:)\/\//,(function(e,t){return s.protocol=t,""})).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,(function(e,t,r){return n=r||"",s.port=n.replace(":",""),s.hostname=t,s.host=t+n,"/"})).replace(/(#.*)/,(function(e,t){return s.hash=t.length>1?t:"",""})),t=s.hash.match(/#((.*)\?|(.*))/),s.pathname=s.path.replace(/(\?|#.*).*/,""),s.origin=s.protocol+"//"+s.host,s.hashKey=t&&(t[2]||t[1])||"",s.hashQuery=o(s.hash),s.searchQuery=o(s.search),s}e.exports=s},"01a6":function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(...e){const t=e.map(e=>n(e)).join("");return t}function i(e){const t=/([-a-zA-Z$._][\w$.-]*)/,n={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},a={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:"variable",variants:[{begin:r(/%/,t)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:r(/@/,t)},{begin:/@\d+/},{begin:r(/!/,t)},{begin:r(/!\d+/,t)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[n,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},c,a,i,l,s,o]}}e.exports=i},"0237":function(e,t){var n=Object.prototype.toString;e.exports=n},"0244":function(e,t,n){"use strict";var r=n("6b1d"),i=n("b546"),a=n("881c"),o=n("f297").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=a.f(this);return i(t.reject,void 0,e),t.promise}})},"02b5":function(e,t){function n(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}e.exports=n},"02fb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"032a":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"032e":function(e,t,n){"use strict";var r=n("3f48"),i=n("4a86"),a=n("4367"),o=n("7868"),s=n("d335"),l=n("a505");e.exports=function(e){return new Promise((function(t,c){var u=e.data,d=e.headers;r.isFormData(u)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(f+":"+h)}if(p.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?p.response:p.responseText,a={data:r,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};i(t,c,a),p=null}},p.onerror=function(){c(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){c(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var m=n("ca6e"),_=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;_&&(d[e.xsrfHeaderName]=_)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){"undefined"===typeof u&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(g){if("json"!==e.responseType)throw g}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),c(e),p=null)})),void 0===u&&(u=null),p.send(u)}))}},"0341":function(e,t,n){var r=n("5d8c"),i=n("5617"),a=n("5aaa");function o(e,t){var n=i(e),o=i(t),s=r(n),l=r(o),c=l-s,u=c<0,d=Math.pow(10,u?Math.abs(c):c);return a(n.replace(".","")/o.replace(".",""),u?1/d:d)}e.exports=o},"03ec":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},"0446":function(e,t,n){"use strict";var r=n("da06"),i=n("60de"),a=n("6566"),o=n("5bb7"),s=n("7d53"),l=s("iterator");e.exports=function(e){if(!a(e))return i(e,l)||i(e,"@@iterator")||o[r(e)]}},"0449":function(e,t,n){var r=n("8437"),i=r;e.exports=i},"046c":function(e,t){function n(e){const t="ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts",n={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons "+t},r={className:"string",begin:'"',end:'"',illegal:"\\n"},i={className:"string",begin:"'",end:"'",illegal:"\\n"},a={className:"string",begin:"<<",end:">>"},o={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},s={beginKeywords:"import",end:"$",keywords:n,contains:[r]},l={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:n}})]};return{name:"XL",aliases:["tao"],keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,i,a,l,s,o,e.NUMBER_MODE]}}e.exports=n},"0481":function(e,t,n){"use strict";var r=n("b495");e.exports=function(e){return r(e.length)}},"04df":function(e,t,n){var r=n("008b");function i(e,t,n){var i=0,a=[];return n=n||this,function(){var o=arguments;i++,i
'};function n(e,t,n){return en?n:e}function r(e){return 100*(-1+e)}function i(e,n,i){var a;return a="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},a.transition="all "+n+"ms "+i,a}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var l=e.render(!s),c=l.querySelector(t.barSelector),u=t.speed,d=t.easing;return l.offsetWidth,a((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),o(c,i(r,u,d)),1===r?(o(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){o(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),u)}),u)):setTimeout(n,u)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var a,s=i.querySelector(t.barSelector),c=n?"-100":r(e.status||0),u=document.querySelector(t.parent);return o(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(a=i.querySelector(t.spinnerSelector),a&&d(a)),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(i),i},e.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),o=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;var r,i=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);while(i--)if(r=e[i]+a,r in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&a(e,n,r);else a(e,i[1],i[2])}}();function s(e,t){var n="string"==typeof e?e:u(e);return n.indexOf(" "+t+" ")>=0}function l(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function c(e,t){var n,r=u(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},"06a6":function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(e){return i("(?=",e,")")}function i(...e){const t=e.map(e=>n(e)).join("");return t}function a(e){const t=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],n=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],i=["__debug__","Ellipsis","False","None","NotImplemented","True"],a=["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:t,built_in:n,literal:i,type:a},s={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},c={begin:/\{\{/,relevance:0},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,c,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,c,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},d="[0-9](_?[0-9])*",p=`(\\b(${d}))?\\.(${d})|\\b(${d})\\.`,f={className:"number",relevance:0,variants:[{begin:`(\\b(${d})|(${p}))[eE][+-]?(${d})[jJ]?\\b`},{begin:`(${p})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${d})[jJ]\\b`}]},h={className:"comment",begin:r(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",s,f,u,e.HASH_COMMENT_MODE]}]};return l.contains=[u,f,s],{name:"Python",aliases:["py","gyp","ipython"],keywords:o,illegal:/(<\/|->|\?)|=>/,contains:[s,f,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},u,h,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,m,{begin:/->/,endsWithParent:!0,keywords:o}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,m,u]}]}}e.exports=a},"06d4":function(e,t,n){"use strict";var r=n("3f48"),i=n("e067"),a=n("5816"),o=n("7723"),s=n("04ff"),l=n("13b8");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||o.adapter;return t(e).then((function(t){return c(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"06fa":function(e,t,n){var r=n("1485"),i=n("3ce3"),a=n("6c67"),o=n("3060"),s=n("cc9a"),l=n("5dd9");function c(e){return l(e)?"null":r(e)?"symbol":i(e)?"date":a(e)?"array":o(e)?"regexp":s(e)?"error":typeof e}e.exports=c},"070a":function(e,t){function n(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}e.exports=n},"0721":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0761":function(e,t,n){var r=n("a819");function i(e,t,n,r,a,o,s,l){var c,u,d,p,f,h;if(t)for(u=0,d=t.length;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function re(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,p=u.left,f=u.top;o.push(p,f),l=l&&a&&p===a[d]&&f===a[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?X(s,o):X(o,s))}function ie(e){return"CANVAS"===e.nodeName.toUpperCase()}var ae=/([&<>"'])/g,oe={"&":"&","<":"<",">":">",'"':""","'":"'"};function se(e){return null==e?"":(e+"").replace(ae,(function(e,t){return oe[t]}))}var le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ce=[],ue=m["a"].browser.firefox&&+m["a"].browser.version.split(".")[0]<39;function de(e,t,n,r){return n=n||{},r?pe(e,t,n):ue&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):pe(e,t,n),n}function pe(e,t,n){if(m["a"].domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(ie(e)){var a=e.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=i-a.top)}if(te(ce,e,r,i))return n.zrX=ce[0],void(n.zrY=ce[1])}n.zrX=n.zrY=0}function fe(e){return e||window.event}function he(e,t,n){if(t=fe(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&de(e,a,t,n)}else{de(e,t,t,n);var o=me(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&le.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function me(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function _e(e,t,n,r){e.addEventListener(t,n,r)}function ge(e,t,n,r){e.removeEventListener(t,n,r)}var ve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ye(e){return 2===e.which||3===e.which}var be=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=Se(r)/Se(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ee(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function we(){return[1,0,0,1,0,0]}function Te(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ce(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Oe(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Me(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ae(e,t,n){var r=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=r*u+o*c,e[1]=-r*c+o*u,e[2]=i*u+s*c,e[3]=-i*c+u*s,e[4]=u*a+c*l,e[5]=u*l-c*a,e}function De(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function ke(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}function Le(e){var t=we();return Ce(t,e),t}var Ie=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Ne=Ie,Re=Math.min,Pe=Math.max,Fe=new Ne,Ye=new Ne,je=new Ne,Be=new Ne,Ue=new Ne,He=new Ne,Ge=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=Re(e.x,this.x),n=Re(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pe(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pe(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=we();return Me(i,i,[-t.x,-t.y]),De(i,i,[n,r]),Me(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,p=!(ah&&(h=y,m<_?Ne.set(He,-m,0):Ne.set(He,_,0)):yh&&(h=b,g=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];return t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Fe.x=je.x=n.x,Fe.y=Be.y=n.y,Ye.x=Be.x=n.x+n.width,Ye.y=je.y=n.y+n.height,Fe.transform(r),Be.transform(r),Ye.transform(r),je.transform(r),t.x=Re(Fe.x,Ye.x,je.x,Be.x),t.y=Re(Fe.y,Ye.y,je.y,Be.y);var l=Pe(Fe.x,Ye.x,je.x,Be.x),c=Pe(Fe.y,Ye.y,je.y,Be.y);t.width=l-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),ze=Ge,Ve="silent";function We(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:qe}}function qe(){ve(this.event)}var $e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return v(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}($),Ke=function(){function e(e,t){this.x=e,this.y=t}return e}(),Qe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xe=new ze(0,0,0,0),Ze=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Ke(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new $e,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new W(o),o}return v(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(_["each"](Qe,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=tt(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Ke(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ke(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,a=We(t,e,n);while(r)if(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,a),e.trigger&&e.trigger(t,a)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Ke(e,t);if(et(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new ze(e-s,t-s,o,o),c=r.length-1;c>=0;c--){var u=r[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Xe.copy(u.getBoundingRect()),u.transform&&Xe.applyTransform(u.transform),Xe.intersect(l)&&a.push(u))}if(a.length)for(var d=4,p=Math.PI/12,f=2*Math.PI,h=0;h=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Je(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Ve)){t.target=o;break}}}function tt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}_["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ze.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=tt(this,i,a);if("mouseup"===e&&o||(n=this.findHover(i,a),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||P(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var nt=Ze,rt=32,it=7;function at(e){var t=0;while(e>=rt)t|=1&e,e>>=1;return e+t}function ot(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i=0)i++;return i-t}function st(e,t,n){n--;while(t>>1,i(o,e[a])<0?l=a:s=a+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=o}}function ct(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){s=r-i;while(l0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{s=i+1;while(ls&&(l=s);var c=o;o=i-l,l=i-c}o++;while(o>>1);a(e,t[n+u])>0?o=u+1:l=u}return l}function ut(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])<0){s=i+1;while(ls&&(l=s);var c=o;o=i-l,l=i-c}else{s=r-i;while(l=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}o++;while(o>>1);a(e,t[n+u])<0?l=u:o=u+1}return l}function dt(e,t){var n,r,i=it,a=0,o=0;a=e.length;var s=[];function l(e,t){n[o]=e,r[o]=t,o+=1}function c(){while(o>1){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]r[e+1])break;d(e)}}function u(){while(o>1){var e=o-2;e>0&&r[e-1]=it||f>=it);if(h)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===r){for(l=0;l=0;l--)e[f+l]=e[p+l];if(0===r){g=!0;break}}if(e[d--]=s[u--],1===--o){g=!0;break}if(_=o-ct(e[c],s,0,o,o-1,t),0!==_){for(d-=_,u-=_,o-=_,f=d+1,p=u+1,l=0;l<_;l++)e[f+l]=s[p+l];if(o<=1){g=!0;break}}if(e[d--]=e[c--],0===--r){g=!0;break}h--}while(m>=it||_>=it);if(g)break;h<0&&(h=0),h+=2}if(i=h,i<1&&(i=1),1===o){for(d-=r,c-=r,f=d+1,p=c+1,l=r-1;l>=0;l--)e[f+l]=e[p+l];e[d]=s[u]}else{if(0===o)throw new Error;for(p=d-(o-1),l=0;l=0;l--)e[f+l]=e[p+l];e[d]=s[u]}else for(p=d-(o-1),l=0;ls&&(l=s),lt(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}var ft=1,ht=2,mt=4,_t=!1;function gt(){_t||(_t=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var yt,bt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vt}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(gt(),c.z=0),isNaN(c.z2)&&(gt(),c.z2=0),isNaN(c.zlevel)&&(gt(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),St=bt;yt=m["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Et=yt,xt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*xt.bounceIn(2*e):.5*xt.bounceOut(2*e-1)+.5}},wt=xt,Tt=Math.pow,Ct=Math.sqrt,Ot=1e-8,Mt=1e-4,At=Ct(3),Dt=1/3,kt=y(),Lt=y(),It=y();function Nt(e){return e>-Ot&&eOt||e<-Ot}function Pt(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Ft(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Yt(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-i,u=s*s-3*o*l,d=s*l-9*o*c,p=l*l-3*s*c,f=0;if(Nt(u)&&Nt(d))if(Nt(s))a[0]=0;else{var h=-l/s;h>=0&&h<=1&&(a[f++]=h)}else{var m=d*d-4*u*p;if(Nt(m)){var _=d/u,g=(h=-s/o+_,-_/2);h>=0&&h<=1&&(a[f++]=h),g>=0&&g<=1&&(a[f++]=g)}else if(m>0){var v=Ct(m),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Tt(-y,Dt):Tt(y,Dt),b=b<0?-Tt(-b,Dt):Tt(b,Dt);h=(-s-(y+b))/(3*o);h>=0&&h<=1&&(a[f++]=h)}else{var S=(2*u*s-3*o*d)/(2*Ct(u*u*u)),E=Math.acos(S)/3,x=Ct(u),w=Math.cos(E),T=(h=(-s-2*x*w)/(3*o),g=(-s+x*(w+At*Math.sin(E)))/(3*o),(-s+x*(w-At*Math.sin(E)))/(3*o));h>=0&&h<=1&&(a[f++]=h),g>=0&&g<=1&&(a[f++]=g),T>=0&&T<=1&&(a[f++]=T)}}return f}function jt(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Nt(o)){if(Rt(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var u=a*a-4*o*s;if(Nt(u))i[0]=-a/(2*o);else if(u>0){var d=Ct(u),p=(c=(-a+d)/(2*o),(-a-d)/(2*o));c>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function Bt(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-o)*i+o,u=(l-s)*i+s,d=(u-c)*i+c;a[0]=e,a[1]=o,a[2]=c,a[3]=d,a[4]=d,a[5]=u,a[6]=l,a[7]=r}function Ut(e,t,n,r,i,a,o,s,l,c,u){var d,p,f,h,m,_=.005,g=1/0;kt[0]=l,kt[1]=c;for(var v=0;v<1;v+=.05)Lt[0]=Pt(e,n,i,o,v),Lt[1]=Pt(t,r,a,s,v),h=Y(kt,Lt),h=0&&h=0&&c<=1&&(i[l++]=c)}}else{var u=o*o-4*a*s;if(Nt(u)){c=-o/(2*a);c>=0&&c<=1&&(i[l++]=c)}else if(u>0){var d=Ct(u),p=(c=(-o+d)/(2*a),(-o-d)/(2*a));c>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function Wt(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function qt(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function $t(e,t,n,r,i,a,o,s,l){var c,u=.005,d=1/0;kt[0]=o,kt[1]=s;for(var p=0;p<1;p+=.05){Lt[0]=Gt(e,n,i,p),Lt[1]=Gt(t,r,a,p);var f=Y(kt,Lt);f=0&&f=1?1:Yt(0,r,a,1,e,s)&&Pt(0,i,o,1,s[0])}}}var Zt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||_["noop"],this.ondestroy=e.ondestroy||_["noop"],this.onrestart=e.onrestart||_["noop"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(_["isFunction"])(e)?e:wt[e]||Xt(e)},e}(),Jt=Zt,en=n("4aa5"),tn=n("9ed0"),nn=Array.prototype.slice;function rn(e,t,n){return(t-e)*n+e}function an(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)r.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=bn,s=t;if(Object(_["isArrayLike"])(t)){var l=fn(t);o=l,(1===l&&!Object(_["isNumber"])(t[0])||2===l&&!Object(_["isNumber"])(t[0][0]))&&(a=!0)}else if(Object(_["isNumber"])(t)&&!Object(_["eqNaN"])(t))o=hn;else if(Object(_["isString"])(t))if(isNaN(+t)){var c=en["parse"](t);c&&(s=c,o=gn)}else o=hn;else if(Object(_["isGradientObject"])(t)){var u=Object(_["extend"])({},s);u.colorStops=Object(_["map"])(t.colorStops,(function(e){return{offset:e.offset,color:en["parse"](e.color)}})),Object(tn["m"])(t)?o=vn:Object(tn["o"])(t)&&(o=yn),s=u}0===i?this.valType=o:o===this.valType&&o!==bn||(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Object(_["isFunction"])(n)?n:wt[n]||Xt(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=En(r),l=Sn(r),c=0;c=0;n--)if(l[n].percent<=t)break;n=f(n,c-2)}else{for(n=p;nt)break;n=f(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var m=i.percent-r.percent,g=0===m?1:f((t-r.percent)/m,1);i.easingFunc&&(g=i.easingFunc(g));var v=a?this._additiveValue:d?xn:e[u];if(!En(s)&&!d||v||(v=this._additiveValue=[]),this.discrete)e[u]=g<1?r.rawValue:i.rawValue;else if(En(s))s===mn?an(v,r[o],i[o],g):on(v,r[o],i[o],g);else if(Sn(s)){var y=r[o],b=i[o],S=s===vn;e[u]={type:S?"linear":"radial",x:rn(y.x,b.x,g),y:rn(y.y,b.y,g),colorStops:Object(_["map"])(y.colorStops,(function(e,t){var n=b.colorStops[t];return{offset:rn(e.offset,n.offset,g),color:pn(an([],e.color,n.color,g))}})),global:b.global},S?(e[u].x2=rn(y.x2,b.x2,g),e[u].y2=rn(y.y2,b.y2,g)):e[u].r=rn(y.r,b.r,g)}else if(d)an(v,r[o],i[o],g),a||(e[u]=pn(v));else{var E=rn(r[o],i[o],g);a?this._additiveValue=E:e[u]=E}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===hn?e[n]=e[n]+r:t===gn?(en["parse"](e[n],xn),sn(xn,xn,r,1),e[n]=pn(xn)):t===mn?sn(e[n],e[n],r,1):t===_n&&ln(e[n],e[n],r,1)},e}(),Tn=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(_["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(_["keys"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,dn(l),r),this._trackKeys.push(o)}s.addKeyframe(e,dn(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Cn=Tn;function On(){return(new Date).getTime()}var Mn=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return v(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=On()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,a=r.step(t,n);a?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(Et(t),!e._paused&&e.update())}this._running=!0,Et(t)},t.prototype.start=function(){this._running||(this._time=On(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=On(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=On()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Cn(e,t.loop);return this.addAnimator(n),n},t}($),An=Mn,Dn=300,kn=m["a"].domSupported,Ln=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=_["map"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),In={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Nn=!1;function Rn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Pn(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function Fn(e){e&&(e.zrByTouch=!0)}function Yn(e,t){return he(e.dom,new Bn(e,t),!0)}function jn(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Bn=function(){function e(e,t){this.stopPropagation=_["noop"],this.stopImmediatePropagation=_["noop"],this.preventDefault=_["noop"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Un={mousedown:function(e){e=he(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=he(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=he(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=he(this.dom,e);var t=e.toElement||e.relatedTarget;jn(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Nn=!0,e=he(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Nn||(e=he(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=he(this.dom,e),Fn(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Un.mousemove.call(this,e),Un.mousedown.call(this,e)},touchmove:function(e){e=he(this.dom,e),Fn(e),this.handler.processGesture(e,"change"),Un.mousemove.call(this,e)},touchend:function(e){e=he(this.dom,e),Fn(e),this.handler.processGesture(e,"end"),Un.mouseup.call(this,e),+new Date-+this.__lastTouchMomentrr||e<-rr}var ar=[],or=[],sr=we(),lr=Math.abs,cr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ir(this.rotation)||ir(this.x)||ir(this.y)||ir(this.scaleX-1)||ir(this.scaleY-1)||ir(this.skewX)||ir(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||we(),t?this.getLocalTransform(n):nr(n),e&&(t?Oe(n,e,n):Ce(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(nr(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(ar);var n=ar[0]<0?-1:1,r=ar[1]<0?-1:1,i=((ar[0]-n)*t+n)/ar[0]||0,a=((ar[1]-r)*t+r)/ar[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||we(),ke(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Oe(or,e.invTransform,t),t=or);var n=this.originX,r=this.originY;(n||r)&&(sr[4]=n,sr[5]=r,Oe(or,t,sr),or[4]-=n,or[5]-=r,t=or),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&U(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&U(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&lr(e[0]-1)>1e-10&&lr(e[3]-1)>1e-10?Math.sqrt(lr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){dr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,l=e.rotation||0,c=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var f=n+o,h=r+s;t[4]=-f*i-d*h*a,t[5]=-h*a-p*f*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=p*i,t[2]=d*a,l&&Ae(t,t,l),t[4]+=n+c,t[5]+=r+u,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ur=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dr(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function xr(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,c=n.y,u="left",d="top";if(r instanceof Array)l+=Er(r[0],n.width),c+=Er(r[1],n.height),u=null,d=null;else switch(r){case"left":l-=i,c+=s,u="right",d="middle";break;case"right":l+=i+o,c+=s,d="middle";break;case"top":l+=o/2,c-=i,u="center",d="bottom";break;case"bottom":l+=o/2,c+=a+i,u="center";break;case"inside":l+=o/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=i,c+=s,d="middle";break;case"insideRight":l+=o-i,c+=s,u="right",d="middle";break;case"insideTop":l+=o/2,c+=i,u="center";break;case"insideBottom":l+=o/2,c+=a-i,u="center",d="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=o-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,c+=a-i,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var wr="__zr_normal__",Tr=ur.concat(["ignore"]),Cr=Object(_["reduce"])(ur,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Or={},Mr=new ze(0,0,0,0),Ar=function(){function e(e){this.id=Object(_["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var c=Mr;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Or,n,c):xr(Or,n,c),i.x=Or.x,i.y=Or.y,a=Or.align,o=Or.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var d=void 0,p=void 0;"center"===u?(d=.5*c.width,p=.5*c.height):(d=Er(u[0],c.width),p=Er(u[1],c.height)),l=!0,i.originX=-i.x+d+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var h=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,g=void 0,v=void 0;h&&this.canBeInsideText()?(_=n.insideFill,g=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=g&&"auto"!==g||(g=this.getInsideTextStroke(_),v=!0)):(_=n.outsideFill,g=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=g&&"auto"!==g||(g=this.getOutsideStroke(_),v=!0)),_=_||"#000",_===m.fill&&g===m.stroke&&v===m.autoStroke&&a===m.align&&o===m.verticalAlign||(s=!0,m.fill=_,m.stroke=g,m.autoStroke=v,m.align=a,m.verticalAlign=o,t.setDefaultTextStyle(m)),t.__dirty|=ft,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?er:Jn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(en["parse"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Object(en["stringify"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(_["extend"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(_["isObject"])(e))for(var n=e,r=Object(_["keys"])(n),i=0;i0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(wr,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===wr,a=this.hasState();if(a||!i){var o=this.currentStates,s=this.stateTransition;if(!(Object(_["indexOf"])(o,e)>=0)||!t&&1!==o.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||i){i||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,d=this._textGuide;return u&&u.useState(e,t,n,c),d&&d.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ft),l}Object(_["logError"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o)for(var s=0;s0,f);var h=this._textContent,m=this._textGuide;h&&h.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ft)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(_["indexOf"])(r,e),a=Object(_["indexOf"])(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during((function(e,t){n.during(t)}));for(var p=0;p0||i.force&&!o.length){var T=void 0,C=void 0,O=void 0;if(s){C={},p&&(T={});for(S=0;S=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=_["indexOf"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=_["indexOf"](n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*c+o}function ti(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return _["isString"](e)?Jr(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function ni(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Zr),e=(+e).toFixed(t),n?e:+e}function ri(e){return e.sort((function(e,t){return e-t})),e}function ii(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return ai(e)}function ai(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function oi(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function si(e,t,n){if(!e[t])return 0;var r=li(e,n);return r[t]||0}function li(e,t){var n=_["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),i=_["map"](e,(function(e){return(isNaN(e)?0:e)/n*r*100})),a=100*r,o=_["map"](i,(function(e){return Math.floor(e)})),s=_["reduce"](o,(function(e,t){return e+t}),0),l=_["map"](i,(function(e,t){return e-o[t]}));while(sc&&(c=l[d],u=d);++o[u],l[u]=0,++s}return _["map"](o,(function(e){return e/r}))}function ci(e,t){var n=Math.max(ii(e),ii(t)),r=e+t;return n>Zr?r:ni(r,n)}var ui=9007199254740991;function di(e){var t=2*Math.PI;return(e%t+t)%t}function pi(e){return e>-Xr&&e=10&&t++,t}function gi(e,t){var n,r=_i(e),i=Math.pow(10,r),a=e/i;return n=t?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,e=n*i,r>=-20?+e.toFixed(r<0?-r:0):e}function vi(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function yi(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r=0||i&&_["indexOf"](i,s)<0)){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var xa=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],wa=Ea(xa),Ta=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return wa(this,e,t)},e}(),Ca=new fr["a"](50);function Oa(e){if("string"===typeof e){var t=Ca.get(e);return t&&t.image}return e}function Ma(e,t,n,r,i){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=Ca.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Da(t)&&a.pending.push(o)):(t=hr["d"].loadImage(e,Aa,Aa),t.__zrImageSrc=e,Ca.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function Aa(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var c=_r(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function Na(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=_r(e,r);if(a<=n)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=0===o?Ra(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=_r(e,r)}return""===e&&(e=t.placeholder),e}function Ra(e,t,n,r){for(var i=0,a=0,o=e.length;af&&u){var h=Math.floor(f/l);n=n.slice(0,h)}if(e&&o&&null!=d)for(var m=Ia(d,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gl&&Ua(n,e.substring(l,c),t,s),Ua(n,r[2],t,s,r[1]),l=ka.lastIndex}la){E>0?(y.tokens=y.tokens.slice(0,E),g(y,S,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var A=w.width,D=null==A||"auto"===A;if("string"===typeof A&&"%"===A.charAt(A.length-1))x.percentWidth=A,u.push(x),x.contentWidth=_r(x.text,O);else{if(D){var k=w.backgroundColor,L=k&&k.image;L&&(L=Oa(L),Da(L)&&(x.width=Math.max(x.width,L.width*M/L.height)))}var I=h&&null!=i?i-S:null;null!=I&&I0&&h+r.accumWidth>r.width&&(a=t.split("\n"),d=!0),r.accumWidth=h}else{var m=Va(t,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+f,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var _=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Ga=Object(_["reduce"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function za(e){return!Ha(e)||!!Ga[e]}function Va(e,t,n,r,i){for(var a=[],o=[],s="",l="",c=0,u=0,d=0;dn:i+u+f>n)?u?(s||l)&&(h?(s||(s=l,l="",c=0,u=c),a.push(s),o.push(u-c),l+=p,c+=f,s="",u=c):(l&&(s+=l,l="",c=0),a.push(s),o.push(u),s=p,u=f)):h?(a.push(l),o.push(c),l=p,c=f):(a.push(p),o.push(f)):(u+=f,h?(l+=p,c+=f):(l&&(s+=l,l="",c=0),s+=p))}else l&&(s+=l,u+=c),a.push(s),o.push(u),s="",l="",c=0,u=0}return a.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(a.push(s),o.push(u)),1===a.length&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var Wa="__zr_style_"+Math.round(10*Math.random()),qa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$a={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qa[Wa]=!0;var Ka=["z","z2","invisible"],Qa=["invisible"],Xa=function(e){function t(t){return e.call(this,t)||this}return v(t,e),t.prototype._init=function(t){for(var n=Object(_["keys"])(t),r=0;r1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(so[0]=ao(i)*n+e,so[1]=io(i)*r+t,lo[0]=ao(a)*n+e,lo[1]=io(a)*r+t,c(s,so,lo),u(l,so,lo),i%=oo,i<0&&(i+=oo),a%=oo,a<0&&(a+=oo),i>a&&!o?a+=oo:ii&&(co[0]=ao(f)*n+e,co[1]=io(f)*r+t,c(s,co,s),u(l,co,l))}var vo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},yo=[],bo=[],So=[],Eo=[],xo=[],wo=[],To=Math.min,Co=Math.max,Oo=Math.cos,Mo=Math.sin,Ao=Math.abs,Do=Math.PI,ko=2*Do,Lo="undefined"!==typeof Float32Array,Io=[];function No(e){var t=Math.round(e/Do*1e8)/1e8;return t%2*Do}function Ro(e,t){var n=No(e[0]);n<0&&(n+=ko);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=ko?i=n+ko:t&&n-i>=ko?i=n-ko:!t&&n>i?i=n+(ko-No(n-i)):t&&n0&&(this._ux=Ao(n/Xn/e)||0,this._uy=Ao(n/Xn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(vo.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Ao(e-this._xi),r=Ao(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(vo.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(vo.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(vo.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Io[0]=r,Io[1]=i,Ro(Io,a),r=Io[0],i=Io[1];var o=i-r;return this.addData(vo.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Oo(i)*n+e,this._yi=Mo(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(vo.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(vo.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Lo||(this.data=new Float32Array(t));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){So[0]=So[1]=xo[0]=xo[1]=Number.MAX_VALUE,Eo[0]=Eo[1]=wo[0]=wo[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;en||Ao(v)>r||d===t-1)&&(h=Math.sqrt(g*g+v*v),i=m,a=_);break;case vo.C:var y=e[d++],b=e[d++],S=(m=e[d++],_=e[d++],e[d++]),E=e[d++];h=Ht(i,a,y,b,m,_,S,E,10),i=S,a=E;break;case vo.Q:y=e[d++],b=e[d++],m=e[d++],_=e[d++];h=Kt(i,a,y,b,m,_,10),i=m,a=_;break;case vo.A:var x=e[d++],w=e[d++],T=e[d++],C=e[d++],O=e[d++],M=e[d++],A=M+O;d+=1;e[d++];f&&(o=Oo(O)*T+x,s=Mo(O)*C+w),h=Co(T,C)*To(ko,Math.abs(M)),i=Oo(A)*T+x,a=Mo(A)*C+w;break;case vo.R:o=i=e[d++],s=a=e[d++];var D=e[d++],k=e[d++];h=2*D+2*k;break;case vo.Z:g=o-i,v=s-a;h=Math.sqrt(g*g+v*v),i=o,a=s;break}h>=0&&(l[u++]=h,c+=h)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,c,u,d,p,f=this.data,h=this._ux,m=this._uy,_=this._len,g=t<1,v=0,y=0,b=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=t*c,u))e:for(var S=0;S<_;){var E=f[S++],x=1===S;switch(x&&(i=f[S],a=f[S+1],n=i,r=a),E!==vo.L&&b>0&&(e.lineTo(d,p),b=0),E){case vo.M:n=i=f[S++],r=a=f[S++],e.moveTo(i,a);break;case vo.L:o=f[S++],s=f[S++];var w=Ao(o-i),T=Ao(s-a);if(w>h||T>m){if(g){var C=l[y++];if(v+C>u){var O=(u-v)/C;e.lineTo(i*(1-O)+o*O,a*(1-O)+s*O);break e}v+=C}e.lineTo(o,s),i=o,a=s,b=0}else{var M=w*w+T*T;M>b&&(d=o,p=s,b=M)}break;case vo.C:var A=f[S++],D=f[S++],k=f[S++],L=f[S++],I=f[S++],N=f[S++];if(g){C=l[y++];if(v+C>u){O=(u-v)/C;Bt(i,A,k,I,O,yo),Bt(a,D,L,N,O,bo),e.bezierCurveTo(yo[1],bo[1],yo[2],bo[2],yo[3],bo[3]);break e}v+=C}e.bezierCurveTo(A,D,k,L,I,N),i=I,a=N;break;case vo.Q:A=f[S++],D=f[S++],k=f[S++],L=f[S++];if(g){C=l[y++];if(v+C>u){O=(u-v)/C;qt(i,A,k,O,yo),qt(a,D,L,O,bo),e.quadraticCurveTo(yo[1],bo[1],yo[2],bo[2]);break e}v+=C}e.quadraticCurveTo(A,D,k,L),i=k,a=L;break;case vo.A:var R=f[S++],P=f[S++],F=f[S++],Y=f[S++],j=f[S++],B=f[S++],U=f[S++],H=!f[S++],G=F>Y?F:Y,z=Ao(F-Y)>.001,V=j+B,W=!1;if(g){C=l[y++];v+C>u&&(V=j+B*(u-v)/C,W=!0),v+=C}if(z&&e.ellipse?e.ellipse(R,P,F,Y,U,j,V,H):e.arc(R,P,G,j,V,H),W)break e;x&&(n=Oo(j)*F+R,r=Mo(j)*Y+P),i=Oo(V)*F+R,a=Mo(V)*Y+P;break;case vo.R:n=i=f[S],r=a=f[S+1],o=f[S++],s=f[S++];var q=f[S++],$=f[S++];if(g){C=l[y++];if(v+C>u){var K=u-v;e.moveTo(o,s),e.lineTo(o+To(K,q),s),K-=q,K>0&&e.lineTo(o+q,s+To(K,$)),K-=$,K>0&&e.lineTo(o+Co(q-K,0),s+$),K-=q,K>0&&e.lineTo(o,s+Co($-K,0));break e}v+=C}e.rect(o,s,q,$);break;case vo.Z:if(g){C=l[y++];if(v+C>u){O=(u-v)/C;e.lineTo(i*(1-O)+n*O,a*(1-O)+r*O);break e}v+=C}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=vo,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Fo=Po;function Yo(e,t,n,r,i,a,o){if(0===i)return!1;var s=i,l=0,c=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&c>n+d&&c>i+d&&c>o+d||ct+c&&l>r+c&&l>a+c||le+c&&s>n+c&&s>i+c||sn||u+ci&&(i+=Go);var p=Math.atan2(l,s);return p<0&&(p+=Go),p>=r&&p<=i||p+Go>=r&&p+Go<=i}function Vo(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var Wo=Fo.CMD,qo=2*Math.PI,$o=1e-4;function Ko(e,t){return Math.abs(e-t)<$o}var Qo=[-1,-1,-1],Xo=[-1,-1];function Zo(){var e=Xo[0];Xo[0]=Xo[1],Xo[1]=e}function Jo(e,t,n,r,i,a,o,s,l,c){if(c>t&&c>r&&c>a&&c>s||c1&&Zo(),f=Pt(t,r,a,s,Xo[0]),p>1&&(h=Pt(t,r,a,s,Xo[1]))),2===p?_t&&s>r&&s>a||s=0&&c<=1){for(var u=0,d=Gt(t,r,a,c),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Qo[0]=-l,Qo[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=qo-1e-4){r=0,i=qo;var u=a?1:-1;return o>=Qo[0]+e&&o<=Qo[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=qo,i+=qo);for(var p=0,f=0;f<2;f++){var h=Qo[f];if(h+e>o){var m=Math.atan2(s,h);u=a?1:-1;m<0&&(m=qo+m),(m>=r&&m<=i||m+qo>=r&&m+qo<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(u=-u),p+=u)}}return p}function ns(e,t,n,r,i){for(var a,o,s=e.data,l=e.len(),c=0,u=0,d=0,p=0,f=0,h=0;h1&&(n||(c+=Vo(u,d,p,f,r,i))),_&&(u=s[h],d=s[h+1],p=u,f=d),m){case Wo.M:p=s[h++],f=s[h++],u=p,d=f;break;case Wo.L:if(n){if(Yo(u,d,s[h],s[h+1],t,r,i))return!0}else c+=Vo(u,d,s[h],s[h+1],r,i)||0;u=s[h++],d=s[h++];break;case Wo.C:if(n){if(jo(u,d,s[h++],s[h++],s[h++],s[h++],s[h],s[h+1],t,r,i))return!0}else c+=Jo(u,d,s[h++],s[h++],s[h++],s[h++],s[h],s[h+1],r,i)||0;u=s[h++],d=s[h++];break;case Wo.Q:if(n){if(Bo(u,d,s[h++],s[h++],s[h],s[h+1],t,r,i))return!0}else c+=es(u,d,s[h++],s[h++],s[h],s[h+1],r,i)||0;u=s[h++],d=s[h++];break;case Wo.A:var g=s[h++],v=s[h++],y=s[h++],b=s[h++],S=s[h++],E=s[h++];h+=1;var x=!!(1-s[h++]);a=Math.cos(S)*y+g,o=Math.sin(S)*b+v,_?(p=a,f=o):c+=Vo(u,d,a,o,r,i);var w=(r-g)*b/y+g;if(n){if(zo(g,v,b,S,S+E,x,t,w,i))return!0}else c+=ts(g,v,b,S,S+E,x,w,i);u=Math.cos(S+E)*y+g,d=Math.sin(S+E)*b+v;break;case Wo.R:p=u=s[h++],f=d=s[h++];var T=s[h++],C=s[h++];if(a=p+T,o=f+C,n){if(Yo(p,f,a,f,t,r,i)||Yo(a,f,a,o,t,r,i)||Yo(a,o,p,o,t,r,i)||Yo(p,o,p,f,t,r,i))return!0}else c+=Vo(a,f,a,o,r,i),c+=Vo(p,o,p,f,r,i);break;case Wo.Z:if(n){if(Yo(u,d,p,f,t,r,i))return!0}else c+=Vo(u,d,p,f,r,i);u=p,d=f;break}}return n||Ko(d,f)||(c+=Vo(u,d,p,f,r,i)||0),0!==c}function rs(e,t,n){return ns(e,0,!1,t,n)}function is(e,t,n,r){return ns(e,t,!0,n,r)}var as=Object(_["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qa),os={style:Object(_["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$a.style)},ss=ur.concat(["invisible","culling","z","z2","zlevel","parent"]),ls=function(e){function t(t){return e.call(this,t)||this}return v(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Jn:t>.2?tr:er}if(e)return er}return Jn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(_["isString"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(en["lum"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&mt)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),is(a,o/s,e,t)))return!0}if(this.hasFill())return rs(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=mt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(_["extend"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&mt)},t.prototype.createStyle=function(e){return Object(_["createObject"])(as,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(_["extend"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=Object(_["extend"])({},r.shape),Object(_["extend"])(s,n.shape)):(s=Object(_["extend"])({},i?this.shape:r.shape),Object(_["extend"])(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=Object(_["extend"])({},this.shape);for(var c={},u=Object(_["keys"])(s),d=0;d0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(_["createObject"])(us,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=vr(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(to);ds.prototype.type="tspan";var ps=ds,fs=Object(_["defaults"])({x:0,y:0},qa),hs={style:Object(_["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$a.style)};function ms(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var _s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return v(t,e),t.prototype.createStyle=function(e){return Object(_["createObject"])(fs,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=ms(t.image)?t.image:this.__image;if(!r)return 0;var i="width"===e?"height":"width",a=t[i];return null==a?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hs},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ze(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(to);_s.prototype.type="image";var gs=_s;function vs(e,t){var n,r,i,a,o,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?n=r=i=a=d:d instanceof Array?1===d.length?n=r=i=a=d[0]:2===d.length?(n=i=d[0],r=a=d[1]):3===d.length?(n=d[0],r=a=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],a=d[3]):n=r=i=a=0,n+r>c&&(o=n+r,n*=c/o,r*=c/o),i+a>c&&(o=i+a,i*=c/o,a*=c/o),r+i>u&&(o=r+i,r*=u/o,i*=u/o),n+a>u&&(o=n+a,n*=u/o,a*=u/o),e.moveTo(s+n,l),e.lineTo(s+c-r,l),0!==r&&e.arc(s+c-r,l+r,r,-Math.PI/2,0),e.lineTo(s+c,l+u-i),0!==i&&e.arc(s+c-i,l+u-i,i,0,Math.PI/2),e.lineTo(s+a,l+u),0!==a&&e.arc(s+a,l+u-a,a,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ys=Math.round;function bs(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(ys(2*r)===ys(2*i)&&(e.x1=e.x2=Es(r,s,!0)),ys(2*a)===ys(2*o)&&(e.y1=e.y2=Es(a,s,!0)),e):e}}function Ss(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Es(r,s,!0),e.y=Es(i,s,!0),e.width=Math.max(Es(r+a,s,!1)-e.x,0===a?0:1),e.height=Math.max(Es(i+o,s,!1)-e.y,0===o?0:1),e):e}}function Es(e,t,n){if(!t)return e;var r=ys(2*e);return(r+ys(t))%2===0?r/2:(r+(n?1:-1))/2}var xs=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),ws={},Ts=function(e){function t(t){return e.call(this,t)||this}return v(t,e),t.prototype.getDefaultShape=function(){return new xs},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Ss(ws,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?vs(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(cs);Ts.prototype.type="rect";var Cs=Ts,Os={fill:"#000"},Ms=2,As={style:Object(_["defaults"])({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},$a.style)},Ds=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Os,n.attr(t),n}return v(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),O=i.calculatedLineHeight,M=0;M=0&&(M=b[O],"right"===M.align))this._placeToken(M,e,E,m,C,"right",g),x-=M.width,C-=M.width,O--;T+=(r-(T-h)-(_-C)-x)/2;while(w<=O)M=b[w],this._placeToken(M,e,E,m,T+M.width/2,"center",g),T+=M.width,w++;m+=E}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=r+n/2;"top"===l?c=r+e.height/2:"bottom"===l&&(c=r+n-e.height/2);var u=!e.isLineHolder&&Gs(s);u&&this._renderBackground(s,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,c-e.height/2,e.width,e.height);var d=!!s.backgroundColor,p=e.textPadding;p&&(i=Us(i,a,p),c-=e.height/2-p[0]-e.innerHeight/2);var f=this._getOrCreateChild(ps),h=f.createStyle();f.useStyle(h);var m=this._defaultStyle,g=!1,v=0,y=Bs("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,m.fill)),b=js("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||o||m.autoStroke&&!g?null:(v=Ms,m.stroke)),S=s.textShadowBlur>0||t.textShadowBlur>0;h.text=e.text,h.x=i,h.y=c,S&&(h.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,h.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",h.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,h.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),h.textAlign=a,h.textBaseline="middle",h.font=e.font||hr["a"],h.opacity=Object(_["retrieve3"])(s.opacity,t.opacity,1),Rs(h,s),b&&(h.lineWidth=Object(_["retrieve3"])(s.lineWidth,t.lineWidth,v),h.lineDash=Object(_["retrieve2"])(s.lineDash,t.lineDash),h.lineDashOffset=t.lineDashOffset||0,h.stroke=b),y&&(h.fill=y);var E=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new ze(yr(h.x,E,h.textAlign),br(h.y,x,h.textBaseline),E,x))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l=e.backgroundColor,c=e.borderWidth,u=e.borderColor,d=l&&l.image,p=l&&!d,f=e.borderRadius,h=this;if(p||e.lineHeight||c&&u){o=this._getOrCreateChild(Cs),o.useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=n,m.y=r,m.width=i,m.height=a,m.r=f,o.dirtyShape()}if(p){var g=o.style;g.fill=l||null,g.fillOpacity=Object(_["retrieve2"])(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(gs),s.onload=function(){h.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=r,v.width=i,v.height=a}if(c&&u){g=o.style;g.lineWidth=c,g.stroke=u,g.strokeOpacity=Object(_["retrieve2"])(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Object(_["retrieve3"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return Ps(e)&&(t=[e.fontStyle,e.fontWeight,Ns(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(_["trim"])(t)||e.textFont||e.font},t}(to),ks={left:!0,right:1,center:1},Ls={top:1,bottom:1,middle:1},Is=["fontStyle","fontWeight","fontSize","fontFamily"];function Ns(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?hr["c"]+"px":e+"px":e}function Rs(e,t){for(var n=0;n=0,a=!1;if(e instanceof cs){var o=Ks(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(cl(s)||cl(l)){r=r||{};var c=r.style||{};"inherit"===c.fill?(a=!0,r=Object(_["extend"])({},r),c=Object(_["extend"])({},c),c.fill=s):!cl(c.fill)&&cl(s)?(a=!0,r=Object(_["extend"])({},r),c=Object(_["extend"])({},c),c.fill=dl(s)):!cl(c.stroke)&&cl(l)&&(a||(r=Object(_["extend"])({},r),c=Object(_["extend"])({},c)),c.stroke=dl(l)),r.style=c}}if(r&&null==r.z2){a||(r=Object(_["extend"])({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(null!=u?u:nl)}return r}function wl(e,t,n){if(n&&null==n.z2){n=Object(_["extend"])({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:rl)}return n}function Tl(e,t,n){var r=Object(_["indexOf"])(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:El(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return null==o.opacity&&(n=Object(_["extend"])({},n),o=Object(_["extend"])({opacity:r?i:.1*a.opacity},o),n.style=o),n}function Cl(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return xl(this,e,t,n);if("blur"===e)return Tl(this,e,n);if("select"===e)return wl(this,e,n)}return n}function Ol(e){e.stateProxy=Cl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Cl),n&&(n.stateProxy=Cl)}function Ml(e,t){!Pl(e,t)&&!e.__highByOuter&&bl(e,fl)}function Al(e,t){!Pl(e,t)&&!e.__highByOuter&&bl(e,hl)}function Dl(e,t){e.__highByOuter|=1<<(t||0),bl(e,fl)}function kl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&bl(e,hl)}function Ll(e){bl(e,ml)}function Il(e){bl(e,_l)}function Nl(e){bl(e,gl)}function Rl(e){bl(e,vl)}function Pl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Fl(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var a=Qs(i),o="series"===t,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse((function(e){_l(e)})),o&&n.push(i)),a.isBlured=!1})),Object(_["each"])(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Yl(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}}))})),t}function ql(e,t,n){ec(e,!0),bl(e,Ol),Ql(e,t,n)}function $l(e){ec(e,!1)}function Kl(e,t,n,r){r?$l(e):ql(e,t,n)}function Ql(e,t,n){var r=Vs(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Xl=["emphasis","blur","select"],Zl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jl(e,t,n,r){n=n||"itemStyle";for(var i=0;i0){var d=u.duration,p=u.delay,f=u.easing,h={duration:d,delay:p||0,easing:f,done:a,force:!!a||!!o,setToFinal:!c,scope:e,during:o};l?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!l&&t.attr(n),o&&o(1),a&&a()}function uc(e,t,n,r,i,a){cc("update",e,t,n,r,i,a)}function dc(e,t,n,r,i,a){cc("enter",e,t,n,r,i,a)}function pc(e){if(!e.__zr)return!0;for(var t=0;t=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,i){if(e.length){var a=n(t),o=a.graph,s=a.noEntryList,l={};_["each"](e,(function(e){l[e]=!0}));while(s.length){var c=s.pop(),u=o[c],d=!!l[c];d&&(r.call(i,c,u.originalDeps.slice()),delete l[c]),_["each"](u.successor,d?f:p)}_["each"](l,(function(){var e="";throw new Error(e)}))}function p(e){o[e].entryCount--,0===o[e].entryCount&&s.push(e)}function f(e){l[e]=!0,p(e)}}}function Zc(e,t){return _["merge"](_["merge"]({},e,!0),t,!0)}var Jc={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},eu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},tu="ZH",nu="EN",ru=nu,iu={},au={},ou=m["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(tu)>-1?tu:ru}():ru;function su(e,t){e=e.toUpperCase(),au[e]=new qc(t),iu[e]=t}function lu(e){if(Object(_["isString"])(e)){var t=iu[e.toUpperCase()]||{};return e===tu||e===nu?Object(_["clone"])(t):Object(_["merge"])(Object(_["clone"])(t),Object(_["clone"])(iu[ru]),!1)}return Object(_["merge"])(Object(_["clone"])(e),Object(_["clone"])(iu[ru]),!1)}function cu(e){return au[e]}function uu(){return au[ru]}su(nu,Jc),su(tu,eu);var du=1e3,pu=60*du,fu=60*pu,hu=24*fu,mu=365*hu,_u={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}"},gu="{yyyy}-{MM}-{dd}",vu={year:"{yyyy}",month:"{yyyy}-{MM}",day:gu,hour:gu+" "+_u.hour,minute:gu+" "+_u.minute,second:gu+" "+_u.second,millisecond:_u.none},yu=["year","month","day","hour","minute","second","millisecond"],bu=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Su(e,t){return e+="","0000".substr(0,t-e.length)+e}function Eu(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function xu(e){return e===Eu(e)}function wu(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Tu(e,t,n,r){var i=hi(e),a=i[Au(n)](),o=i[Du(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[ku(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[Lu(n)](),d=(u-1)%12+1,p=i[Iu(n)](),f=i[Nu(n)](),h=i[Ru(n)](),m=r instanceof qc?r:cu(r||ou)||uu(),_=m.getModel("time"),g=_.get("month"),v=_.get("monthAbbr"),y=_.get("dayOfWeek"),b=_.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Su(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,v[o-1]).replace(/{MM}/g,Su(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Su(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[c]).replace(/{ee}/g,b[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Su(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Su(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Su(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Su(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Su(h,3)).replace(/{S}/g,h+"")}function Cu(e,t,n,r,i){var a=null;if(_["isString"](n))a=n;else if(_["isFunction"](n))a=n(e.value,t,{level:e.level});else{var o=_["extend"]({},_u);if(e.level>0)for(var s=0;s=0;--s)if(l[c]){a=l[c];break}a=a||o.none}if(_["isArray"](a)){var d=null==e.level?0:e.level>=0?e.level:a.length+e.level;d=Math.min(d,a.length-1),a=a[d]}}return Tu(new Date(e.value),a,i,r)}function Ou(e,t){var n=hi(e),r=n[Du(t)]()+1,i=n[ku(t)](),a=n[Lu(t)](),o=n[Iu(t)](),s=n[Nu(t)](),l=n[Ru(t)](),c=0===l,u=c&&0===s,d=u&&0===o,p=d&&0===a,f=p&&1===i,h=f&&1===r;return h?"year":f?"month":p?"day":d?"hour":u?"minute":c?"second":"millisecond"}function Mu(e,t,n){var r=_["isNumber"](e)?hi(e):e;switch(t=t||Ou(e,n),t){case"year":return r[Au(n)]();case"half-year":return r[Du(n)]()>=6?1:0;case"quarter":return Math.floor((r[Du(n)]()+1)/4);case"month":return r[Du(n)]();case"day":return r[ku(n)]();case"half-day":return r[Lu(n)]()/24;case"hour":return r[Lu(n)]();case"minute":return r[Iu(n)]();case"second":return r[Nu(n)]();case"millisecond":return r[Ru(n)]()}}function Au(e){return e?"getUTCFullYear":"getFullYear"}function Du(e){return e?"getUTCMonth":"getMonth"}function ku(e){return e?"getUTCDate":"getDate"}function Lu(e){return e?"getUTCHours":"getHours"}function Iu(e){return e?"getUTCMinutes":"getMinutes"}function Nu(e){return e?"getUTCSeconds":"getSeconds"}function Ru(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Pu(e){return e?"setUTCFullYear":"setFullYear"}function Fu(e){return e?"setUTCMonth":"setMonth"}function Yu(e){return e?"setUTCDate":"setDate"}function ju(e){return e?"setUTCHours":"setHours"}function Bu(e){return e?"setUTCMinutes":"setMinutes"}function Uu(e){return e?"setUTCSeconds":"setSeconds"}function Hu(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gu(e){if(!Si(e))return _["isString"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function zu(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Vu=_["normalizeCssArray"];function Wu(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(e){return e&&_["trim"](e)?e:"-"}function a(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,s=e instanceof Date;if(o||s){var l=o?hi(e):e;if(!isNaN(+l))return Tu(l,r,n);if(s)return"-"}if("ordinal"===t)return _["isStringSafe"](e)?i(e):_["isNumber"](e)&&a(e)?e+"":"-";var c=bi(e);return a(c)?Gu(c):_["isStringSafe"](e)?i(e):"boolean"===typeof e?e+"":"-"}var qu=["a","b","c","d","e","f","g"],$u=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Ku(e,t,n){_["isArray"](t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=n.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Zu(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=hi(t),i=n?"getUTC":"get",a=r[i+"FullYear"](),o=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),c=r[i+"Minutes"](),u=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return e=e.replace("MM",Su(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Su(a%100+"",2)).replace("dd",Su(s,2)).replace("d",s).replace("hh",Su(l,2)).replace("h",l).replace("mm",Su(c,2)).replace("m",c).replace("ss",Su(u,2)).replace("s",u).replace("SSS",Su(d,3)),e}function Ju(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function ed(e,t){return t=t||"transparent",_["isString"](e)?e:_["isObject"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function td(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var nd=_["each"],rd=["left","right","top","bottom","width","height"],id=[["width","left","right"],["height","top","bottom"]];function ad(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,c){var u,d,p=l.getBoundingRect(),f=t.childAt(c+1),h=f&&f.getBoundingRect();if("horizontal"===e){var m=p.width+(h?-h.x+p.x:0);u=a+m,u>r||l.newline?(a=0,u=m,o+=s+n,s=p.height):s=Math.max(s,p.height)}else{var _=p.height+(h?-h.y+p.y:0);d=o+_,d>i||l.newline?(a+=s+n,o=0,d=_,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=u+n:o=d+n)}))}var od=ad;_["curry"](ad,"vertical"),_["curry"](ad,"horizontal");function sd(e,t,n){var r=t.width,i=t.height,a=ti(e.left,r),o=ti(e.top,i),s=ti(e.right,r),l=ti(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),n=Vu(n||0),{width:Math.max(s-a-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function ld(e,t,n){n=Vu(n||0);var r=t.width,i=t.height,a=ti(e.left,r),o=ti(e.top,i),s=ti(e.right,r),l=ti(e.bottom,i),c=ti(e.width,r),u=ti(e.height,i),d=n[2]+n[0],p=n[1]+n[3],f=e.aspect;switch(isNaN(c)&&(c=r-s-p-a),isNaN(u)&&(u=i-l-d-o),null!=f&&(isNaN(c)&&isNaN(u)&&(f>r/i?c=.8*r:u=.8*i),isNaN(c)&&(c=f*u),isNaN(u)&&(u=c/f)),isNaN(a)&&(a=r-s-c-p),isNaN(o)&&(o=i-l-u-d),e.left||e.right){case"center":a=r/2-c/2-n[3];break;case"right":a=r-c-p;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-u/2-n[0];break;case"bottom":o=i-u-d;break}a=a||0,o=o||0,isNaN(c)&&(c=r-p-a-(s||0)),isNaN(u)&&(u=i-d-o-(l||0));var h=new ze(a+n[3],o+n[0],c,u);return h.margin=n,h}function cd(e,t,n,r,i,a){var o,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!s&&!l)return!1;if("raw"===c)o="group"===e.type?new ze(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(o=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();o=o.clone(),o.applyTransform(u)}var d=ld(_["defaults"]({width:o.width,height:o.height},t),n,r),p=s?d.x-o.x:0,f=l?d.y-o.y:0;return"raw"===c?(a.x=p,a.y=f):(a.x+=p,a.y+=f),a===e&&e.markRedraw(),!0}function ud(e,t){return null!=e[id[t][0]]||null!=e[id[t][1]]&&null!=e[id[t][2]]}function dd(e){var t=e.layoutMode||e.constructor.layoutMode;return _["isObject"](t)?t:t?{type:t}:null}function pd(e,t,n){var r=n&&n.ignoreSize;!_["isArray"](r)&&(r=[r,r]);var i=o(id[0],0),a=o(id[1],1);function o(n,i){var a={},o=0,c={},u=0,d=2;if(nd(n,(function(t){c[t]=e[t]})),nd(n,(function(e){s(t,e)&&(a[e]=c[e]=t[e]),l(a,e)&&o++,l(c,e)&&u++})),r[i])return l(t,n[1])?c[n[2]]=null:l(t,n[2])&&(c[n[1]]=null),c;if(u!==d&&o){if(o>=d)return a;for(var p=0;p=0;o--)a=_["merge"](a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return na(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(qc);function gd(e){var t=[];return _["each"](_d.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=_["map"](t,(function(e){return da(e).main})),"dataset"!==e&&_["indexOf"](t,"dataset")<=0&&t.unshift("dataset"),t}_a(_d,qc),Sa(_d),Qc(_d),Xc(_d,gd);var vd=_d,yd="";"undefined"!==typeof navigator&&(yd=navigator.platform||"");var bd="rgba(0, 0, 0, 0.2)",Sd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:bd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:bd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:bd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:bd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:bd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:bd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yd.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},Ed=Object(_["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),xd="original",wd="arrayRows",Td="objectRows",Cd="keyedColumns",Od="typedArray",Md="unknown",Ad="column",Dd="row",kd={Must:1,Might:2,Not:3},Ld=Qi();function Id(e){Ld(e).datasetMap=Object(_["createHashMap"])()}function Nd(e,t,n){var r={},i=Pd(t);if(!i||!e)return r;var a,o,s=[],l=[],c=t.ecModel,u=Ld(c).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(_["each"])(e,(function(t,n){var i=Object(_["isObject"])(t)?t:e[n]={name:t};"ordinal"===i.type&&null==a&&(a=n,o=h(i)),r[i.name]=[]}));var p=u.get(d)||u.set(d,{categoryWayDim:o,valueWayDim:0});function f(e,t,n){for(var r=0;rt)return e[r];return e[n-1]}function $d(e,t,n,r,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=null!=o&&r?qd(r,o):n;if(u=u||n,u&&u.length){var d=u[l];return i&&(c[i]=d),s.paletteIdx=(l+1)%u.length,d}}function Kd(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Qd,Xd,Zd;"undefined"!==typeof console&&console.warn&&console.log;function Jd(e){0}function ep(e){throw new Error(e)}var tp="\0_ec_inner",np=1;var rp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new qc(r),this._locale=new qc(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=lp(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,lp(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Zd(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&Object(_["each"])(o,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Object(_["createHashMap"])(),s=t&&t.replaceMergeMainTypeMap;function l(t){var a=Hd(this,t,Mi(e[t])),o=r.get(t),l=o?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=Ii(o,a,l);Wi(c,t,vd),n[t]=null,r.set(t,null),i.set(t,0);var u,d=[],p=[],f=0;Object(_["each"])(c,(function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=vd.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(u)return void 0;u=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(_["extend"])({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),Object(_["extend"])(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),p.push(r),f++):(d.push(void 0),p.push(void 0))}),this),n[t]=d,r.set(t,p),i.set(t,f),"series"===t&&Qd(this)}Id(this),Object(_["each"])(e,(function(e,t){null!=e&&(vd.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?Object(_["clone"])(e):Object(_["merge"])(n[t],e,!0))})),s&&s.each((function(e,t){vd.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))})),vd.topologicalTravel(a,vd.getAllClassMainTypes(),l,this),this._seriesIndices||Qd(this)},t.prototype.getOption=function(){var e=Object(_["clone"])(this.option);return Object(_["each"])(e,(function(t,n){if(vd.hasClass(n)){for(var r=Mi(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!zi(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}})),delete e[tp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i=t:"max"===n?e<=t:e===t}function Sp(e,t){return e.join(",")===t.join(",")}var Ep=gp,xp=_["each"],wp=_["isObject"],Tp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cp(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Tp.length;n=0;m--){var _=e[m];if(s||(p=_.data.rawIndexOf(_.stackedByDimension,d)),p>=0){var g=_.data.getByRawIndex(_.stackResultDimension,p);if("all"===l||"positive"===l&&g>0||"negative"===l&&g<0||"samesign"===l&&f>=0&&g>0||"samesign"===l&&f<=0&&g<0){f=ci(f,g),h=g;break}}}return r[0]=f,r[1]=h,r}))}))}var Kp,Qp,Xp,Zp,Jp,ef=function(){function e(e){this.data=e.data||(e.sourceFormat===Cd?{}:[]),this.sourceFormat=e.sourceFormat||Md,this.seriesLayoutBy=e.seriesLayoutBy||Ad,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nc&&(c=f)}s[0]=l,s[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return xf(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Cf(e){var t,n;return _["isObject"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Of(e){return new Mf(e)}var Mf=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,o=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}o===l&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=l,this._modDataCount=c;var d=e&&e.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!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||p1&&r>0?s:o}};return a;function o(){return t=e?null:at},gte:function(e,t){return e>=t}},Nf=function(){function e(e,t){if(!Object(_["isNumber"])(t)){var n="";0,ep(n)}this._opFn=If[e],this._rvalFloat=bi(t)}return e.prototype.evaluate=function(e){return Object(_["isNumber"])(e)?this._opFn(e,this._rvalFloat):this._opFn(bi(e),this._rvalFloat)},e}(),Rf=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(_["isNumber"])(e)?e:bi(e),r=Object(_["isNumber"])(t)?t:bi(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=Object(_["isString"])(e),s=Object(_["isString"])(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}(),Pf=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=bi(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=bi(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Ff(e,t){return"eq"===e||"ne"===e?new Pf("eq"===e,t):Object(_["hasOwn"])(If,e)?new Nf(e,t):null}var Yf=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Df(e,t)},e}();function jf(e,t){var n=new Yf,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ad&&ep(o);var s=[],l={},c=e.dimensionsDefine;if(c)Object(_["each"])(c,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),null!=n){var i="";Object(_["hasOwn"])(l,n)&&ep(i),l[n]=r}}));else for(var u=0;u65535?Xf:Zf}function rh(){return[1/0,-1/0]}function ih(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ah(e,t,n,r,i){var a=th[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),c=0;cm[1]&&(m[1]=h)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=Object(_["map"])(a,(function(e){return e.property})),c=0;cg[1]&&(g[1]=m)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return a;i=a-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks,i=r[e],a=[];if(!i)return a;null==n&&(n=1/0);for(var o=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(o=f,s=p,l=0),p===s&&(a[l++]=c))}return a.length=l,a},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=u&&v<=d||isNaN(v))&&(s[l++]=h),h++}f=!0}else if(2===i){m=p[r[0]];var y=p[r[1]],b=e[r[1]][0],S=e[r[1]][1];for(g=0;g=u&&v<=d||isNaN(v))&&(E>=b&&E<=S||isNaN(E))&&(s[l++]=h),h++}f=!0}}if(!f)if(1===i)for(g=0;g=u&&v<=d||isNaN(v))&&(s[l++]=x)}else for(g=0;ge[C][1])&&(w=!1)}w&&(s[l++]=t.getRawIndex(g))}return l_[1]&&(_[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks,s=o[e],l=this.count(),c=0,u=Math.floor(1/t),d=this.getRawIndex(0),p=new(nh(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));p[c++]=d;for(var f=1;fn&&(n=r,i=y))}C>0&&Cc-f&&(s=c-f,o.length=s);for(var h=0;hu[1]&&(u[1]=_),d[p++]=g}return i._count=p,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();is&&(s=u)}return r=[o,s],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Df(e[r],this._dimensions[r])}Kf={arrayRows:e,objectRows:function(e,t,n,r){return Df(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return Df(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),sh=oh,lh=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(uh(n)){var a=n,o=void 0,s=void 0,l=void 0;if(i){var c=r[0];c.prepareSource(),l=c.getSource(),o=l.data,s=l.sourceFormat,t=[c._getVersionSign()]}else o=a.get("data",!0),s=Object(_["isTypedArray"])(o)?Od:xd,t=[];var u=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},p=Object(_["retrieve2"])(u.seriesLayoutBy,d.seriesLayoutBy)||null,f=Object(_["retrieve2"])(u.sourceHeader,d.sourceHeader),h=Object(_["retrieve2"])(u.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!f!==!!d.sourceHeader||h;e=m?[nf(o,{seriesLayoutBy:p,sourceHeader:f,dimensions:h},s)]:[]}else{var g=n;if(i){var v=this._applyTransform(r);e=v.sourceList,t=v.upstreamSignList}else{var y=g.get("source",!0);e=[nf(y,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var a="";1!==e.length&&dh(a)}var o=[],s=[];return Object(_["each"])(e,(function(e){e.prepareSource();var t=e.getSource(i||0),n="";null==i||t||dh(n),o.push(t),s.push(e._getVersionSign())})),r?t=Wf(r,o,{datasetIndex:n.componentIndex}):null!=i&&(t=[af(o[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return Object(_["each"])(e.blocks,(function(e){var n=yh(e);n>=t&&(t=n+ +(r&&(!n||gh(e)&&!e.noHeader)))})),t}return 0}function bh(e,t,n,r){var i=t.noHeader,a=xh(yh(t)),o=[],s=t.blocks||[];Object(_["assert"])(!s||Object(_["isArray"])(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(_["hasOwn"])(c,l)){var u=new Rf(c[l],null);s.sort((function(e,t){return u.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(_["each"])(s,(function(n,i){var s=t.valueFormatter,l=vh(n)(s?Object(_["extend"])(Object(_["extend"])({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);null!=l&&o.push(l)}));var d="richText"===e.renderMode?o.join(a.richText):wh(o.join(""),i?n:a.html);if(i)return d;var p=Wu(t.header,"ordinal",e.useUTC),f=fh(r,e.renderMode).nameStyle;return"richText"===e.renderMode?Oh(e,p,f)+a.richText+d:wh('
'+se(p)+"
"+d,n)}function Sh(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=Object(_["isArray"])(e)?e:[e],Object(_["map"])(e,(function(e,t){return Wu(e,Object(_["isArray"])(f)?f[t]:f,c)}))};if(!a||!o){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=a?"":Wu(l,"ordinal",c),f=t.valueType,h=o?[]:u(t.value),m=!s||!a,g=!s&&a,v=fh(r,i),y=v.nameStyle,b=v.valueStyle;return"richText"===i?(s?"":d)+(a?"":Oh(e,p,y))+(o?"":Mh(e,h,m,g,b)):wh((s?"":d)+(a?"":Th(p,!s,y))+(o?"":Ch(h,m,g,b)),n)}}function Eh(e,t,n,r,i,a){if(e){var o=vh(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function xh(e){return{html:hh[e],richText:mh[e]}}function wh(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function Th(e,t,n){var r=t?"margin-left:2px":"";return''+se(e)+""}function Ch(e,t,n,r){var i=n?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Object(_["isArray"])(e)?e:[e],''+Object(_["map"])(e,(function(e){return se(e)})).join("  ")+""}function Oh(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Mh(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(_["isArray"])(t)?t.join(" "):t,a)}function Ah(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return ed(r)}function Dh(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var kh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ei()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=Xu({color:t,type:e,renderMode:n,markerId:r});return Object(_["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(_["isArray"])(t)?Object(_["each"])(t,(function(e){return Object(_["extend"])(n,e)})):Object(_["extend"])(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Lh(e){var t,n,r,i,a=e.series,o=e.dataIndex,s=e.multipleSeries,l=a.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,d=a.getRawValue(o),p=Object(_["isArray"])(d),f=Ah(a,o);if(u>1||p&&!u){var h=Ih(d,a,o,c,f);t=h.inlineValues,n=h.inlineValueTypes,r=h.blocks,i=h.inlineValues[0]}else if(u){var m=l.getDimensionInfo(c[0]);i=t=xf(l,o,c[0]),n=m.type}else i=t=p?d[0]:d;var g=Gi(a),v=g&&a.name||"",y=l.getName(o),b=s?v:y;return _h("section",{header:v,noHeader:s||!g,sortParam:i,blocks:[_h("nameValue",{markerType:"item",markerColor:f,name:b,noName:!Object(_["trim"])(b),value:t,valueType:n})].concat(r||[])})}function Ih(e,t,n,r,i){var a=t.getData(),o=Object(_["reduce"])(e,(function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],c=[];function u(e,t){var n=a.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(o?c.push(_h("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?Object(_["each"])(r,(function(e){u(xf(a,n,e),e)})):Object(_["each"])(e,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}var Nh=Qi();function Rh(e,t){return e.getName(t)||e.getId(t)}var Ph="__universalTransitionEnabled",Fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return h(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Of({count:Bh,reset:Uh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=Nh(this).sourceManager=new lh(this);r.prepareSource();var i=this.getInitialData(e,n);Gh(i,this),this.dataTask.context.data=i,Nh(this).dataBeforeProcessed=i,Yh(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=dd(this),r=n?fd(e):{},i=this.subType;vd.hasClass(i)&&(i+="Series"),_["merge"](e,t.getTheme().get(this.subType)),_["merge"](e,this.getDefaultOption()),Ai(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&pd(e,r,n)},t.prototype.mergeOption=function(e,t){e=_["merge"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=dd(this);n&&pd(this.option,e,n);var r=Nh(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Gh(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Nh(this).dataBeforeProcessed=i,Yh(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!_["isTypedArray"](e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Vd.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[Rh(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ph])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o)if("series"===a)i.selectedMap="all";else if("multiple"===a){_["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return vd.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(vd);function Yh(e){var t=e.name;Gi(e)||(e.name=jh(e)||t)}function jh(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return _["each"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Bh(e){return e.model.getRawData().count()}function Uh(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Hh}function Hh(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Gh(e,t){_["each"](_["concatArray"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,_["curry"](zh,t))}))}function zh(e,t){var n=Vh(e);return n&&n.setOutputEnd((t||this).count()),t}function Vh(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}_["mixin"](Fh,Tf),_["mixin"](Fh,Vd),_a(Fh,vd);var Wh=Fh,qh=function(){function e(){this.group=new jr,this.uid=Kc("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ha(qh),Sa(qh);var $h=qh;function Kh(){var e=Qi();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}var Qh=Fo.CMD,Xh=[[],[],[]],Zh=Math.sqrt,Jh=Math.atan2;function em(e,t){if(t){var n,r,i,a,o,s,l=e.data,c=e.len(),u=Qh.M,d=Qh.C,p=Qh.L,f=Qh.R,h=Qh.A,m=Qh.Q;for(i=0,a=0;i1&&(o*=tm(h),s*=tm(h));var m=(i===a?-1:1)*tm((o*o*(s*s)-o*o*(f*f)-s*s*(p*p))/(o*o*(f*f)+s*s*(p*p)))||0,_=m*o*f/s,g=m*-s*p/o,v=(e+n)/2+rm(d)*_-nm(d)*g,y=(t+r)/2+nm(d)*_+rm(d)*g,b=sm([1,0],[(p-_)/o,(f-g)/s]),S=[(p-_)/o,(f-g)/s],E=[(-1*p-_)/o,(-1*f-g)/s],x=sm(S,E);if(om(S,E)<=-1&&(x=im),om(S,E)>=1&&(x=0),x<0){var w=Math.round(x/im*1e6)/1e6;x=2*im+w%2*im}u.addData(c,v,y,o,s,b,x,d,a)}var cm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,um=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dm(e){var t=new Fo;if(!e)return t;var n,r=0,i=0,a=r,o=i,s=Fo.CMD,l=e.match(cm);if(!l)return t;for(var c=0;cD*D+k*k&&(w=C,T=O),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/S-1),y1:T*(i/S-1)}}function Ym(e){var t;if(Object(_["isArray"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function jm(e,t){var n,r=Im(t.r,0),i=Im(t.r0||0,0),a=r>0,o=i>0;if(a||o){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,c=t.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=t.cx,d=t.cy,p=!!t.clockwise,f=km(c-l),h=f>Cm&&f%Cm;if(h>Rm&&(f=h),r>Rm)if(f>Cm-Rm)e.moveTo(u+r*Mm(l),d+r*Om(l)),e.arc(u,d,r,l,c,!p),i>Rm&&(e.moveTo(u+i*Mm(c),d+i*Om(c)),e.arc(u,d,i,c,l,p));else{var m=void 0,_=void 0,g=void 0,v=void 0,y=void 0,b=void 0,S=void 0,E=void 0,x=void 0,w=void 0,T=void 0,C=void 0,O=void 0,M=void 0,A=void 0,D=void 0,k=r*Mm(l),L=r*Om(l),I=i*Mm(c),N=i*Om(c),R=f>Rm;if(R){var P=t.cornerRadius;P&&(n=Ym(P),m=n[0],_=n[1],g=n[2],v=n[3]);var F=km(r-i)/2;if(y=Nm(F,g),b=Nm(F,v),S=Nm(F,m),E=Nm(F,_),T=x=Im(y,b),C=w=Im(S,E),(x>Rm||w>Rm)&&(O=r*Mm(c),M=r*Om(c),A=i*Mm(l),D=i*Om(l),fRm){var V=Nm(g,T),W=Nm(v,T),q=Fm(A,D,k,L,r,V,p),$=Fm(O,M,I,N,r,W,p);e.moveTo(u+q.cx+q.x0,d+q.cy+q.y0),T0&&e.arc(u+q.cx,d+q.cy,V,Dm(q.y0,q.x0),Dm(q.y1,q.x1),!p),e.arc(u,d,r,Dm(q.cy+q.y1,q.cx+q.x1),Dm($.cy+$.y1,$.cx+$.x1),!p),W>0&&e.arc(u+$.cx,d+$.cy,W,Dm($.y1,$.x1),Dm($.y0,$.x0),!p))}else e.moveTo(u+k,d+L),e.arc(u,d,r,l,c,!p);else e.moveTo(u+k,d+L);if(i>Rm&&R)if(C>Rm){V=Nm(m,C),W=Nm(_,C),q=Fm(I,N,O,M,i,-W,p),$=Fm(k,L,A,D,i,-V,p);e.lineTo(u+q.cx+q.x0,d+q.cy+q.y0),C0&&e.arc(u+q.cx,d+q.cy,W,Dm(q.y0,q.x0),Dm(q.y1,q.x1),!p),e.arc(u,d,i,Dm(q.cy+q.y1,q.cx+q.x1),Dm($.cy+$.y1,$.cx+$.x1),p),V>0&&e.arc(u+$.cx,d+$.cy,V,Dm($.y1,$.x1),Dm($.y0,$.x0),!p))}else e.lineTo(u+I,d+N),e.arc(u,d,i,c,l,p);else e.lineTo(u+I,d+N)}else e.moveTo(u,d);e.closePath()}}}var Bm=function(){function e(){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}return e}(),Um=function(e){function t(t){return e.call(this,t)||this}return v(t,e),t.prototype.getDefaultShape=function(){return new Bm},t.prototype.buildPath=function(e,t){jm(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(cs);Um.prototype.type="sector";var Hm=Um,Gm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zm=function(e){function t(t){return e.call(this,t)||this}return v(t,e),t.prototype.getDefaultShape=function(){return new Gm},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(cs);zm.prototype.type="ring";var Vm=zm;function Wm(e,t,n,r){var i,a,o,s,l=[],c=[],u=[],d=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=e.length;p=2){if(r){var a=Wm(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],c=a[2*s+1],u=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;sS_[1]){if(o=!1,i)return o;var c=Math.abs(S_[0]-b_[1]),u=Math.abs(b_[0]-S_[1]);Math.min(c,u)>r.len()&&(cMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function $_(e){return!e.isGroup}function K_(e){return null!=e.shape}function Q_(e,t,n){if(e&&t){var r=i(e);t.traverse((function(e){if($_(e)&&e.anid){var t=r[e.anid];if(t){var i=a(e);e.attr(a(t)),uc(e,i,n,Vs(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){$_(e)&&e.anid&&(t[e.anid]=e)})),t}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return K_(e)&&(t.shape=Object(_["extend"])({},e.shape)),t}}function X_(e,t){return Object(_["map"])(e,(function(e){var n=e[0];n=A_(n,t.x),n=D_(n,t.x+t.width);var r=e[1];return r=A_(r,t.y),r=D_(r,t.y+t.height),[n,r]}))}function Z_(e,t){var n=A_(e.x,t.x),r=D_(e.x+e.width,t.x+t.width),i=A_(e.y,t.y),a=D_(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function J_(e,t,n){var r=Object(_["extend"])({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(_["defaults"])(i,n),new gs(r)):F_(e.replace("path://",""),r,n,"center")}function eg(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var _=ng(f,h,u,d)/p;return!(_<0||_>1)}function ng(e,t,n,r){return e*r-n*t}function rg(e){return e<=1e-6&&e>=-1e-6}function ig(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(_["isString"])(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&Object(_["each"])(Object(_["keys"])(l),(function(e){Object(_["hasOwn"])(s,e)||(s[e]=l[e],s.$vars.push(e))}));var c=Vs(e.el);c.componentMainType=a,c.componentIndex=o,c.tooltipConfig={name:r,option:Object(_["defaults"])({content:r,formatterParams:s},i)}}function ag(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function og(e,t){if(e)if(Object(_["isArray"])(e))for(var n=0;n=0?d():u=setTimeout(d,-i),l=r};return p.clear=function(){u&&(clearTimeout(u),u=null)},p.debounceNextCall=function(e){s=e},p}function bg(e,t,n,r){var i=e[t];if(i){var a=i[_g]||i,o=i[vg],s=i[gg];if(s!==n||o!==r){if(null==n||!r)return e[t]=a;i=e[t]=yg(a,n,"debounce"===r),i[_g]=a,i[vg]=r,i[gg]=n}return i}}function Sg(e,t){var n=e[t];n&&n[_g]&&(n.clear&&n.clear(),e[t]=n[_g])}var Eg=Qi(),xg={itemStyle:Ea(Gc,!0),lineStyle:Ea(Bc,!0)},wg={lineStyle:"stroke",itemStyle:"fill"};function Tg(e,t){var n=e.visualStyleMapper||xg[t];return n||(console.warn("Unknown style type '"+t+"'."),xg.itemStyle)}function Cg(e,t){var n=e.visualDrawType||wg[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Og={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=Tg(e,r),o=a(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Cg(e,r),c=o[l],u=Object(_["isFunction"])(c)?c:null,d="auto"===o.fill||"auto"===o.stroke;if(!o[l]||u||d){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=p,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(_["isFunction"])(o.fill)?p:o.fill,o.stroke="auto"===o.stroke||Object(_["isFunction"])(o.stroke)?p:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(_["extend"])({},o);i[l]=u(r),t.setItemVisual(n,"style",i)}}}},Mg=new qc,Ag={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Tg(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Mg.option=n[r];var o=i(Mg),s=e.ensureUniqueItemVisual(t,"style");Object(_["extend"])(s,o),Mg.option.decal&&(e.setItemVisual(t,"decal",Mg.option.decal),Mg.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Dg={performRawSeries:!0,overallReset:function(e){var t=Object(_["createHashMap"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),Eg(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),a=Eg(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=Cg(t,o);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var o=r[e],l=i.getItemVisual(o,"colorFromPalette");if(l){var c=i.ensureUniqueItemVisual(o,"style"),u=n.getName(e)||e+"",d=n.count();c[s]=t.getColorFromPalette(u,a,d)}}))}}))}},kg=Math.PI;function Lg(e,t){t=t||{},_["defaults"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new jr,r=new Cs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new zs({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Cs({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(o),t.showSpinner&&(i=new d_({shape:{startAngle:-kg/2,endAngle:-kg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*kg/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*kg/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:c}),o.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Ig=function(){function e(e,t,n,r){this._stageTaskMap=Object(_["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,a=i?n.step:null,o=r&&r.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),a=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,o=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(_["createHashMap"])();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(_["each"])(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a="";Object(_["assert"])(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(_["each"])(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,p=u.agentStubMap;p.each((function(e){o(r,e)&&(e.dirty(),d=!0)})),d&&u.dirty(),a.updatePayload(u,n);var f=a.getPerformArgs(u,r.block);p.each((function(e){e.perform(f)})),u.perform(f)&&(i=!0)}else c&&c.each((function(s,l){o(r,s)&&s.dirty();var c=a.getPerformArgs(s,r.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(c)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Object(_["createHashMap"])(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=o.set(s,a&&a.get(s)||Of({plan:Yg,reset:jg,count:Hg}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||Of({reset:Ng});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Object(_["createHashMap"])(),l=e.seriesType,c=e.getTargetSeries,u=!0,d=!1,p="";function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,Of({reset:Rg,onDirty:Fg})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}Object(_["assert"])(!e.createOnAllSeries,p),l?n.eachRawSeriesByType(l,f):c?c(n,r).each(f):(u=!1,Object(_["each"])(n.getSeries(),f)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(_["isFunction"])(e)&&(e={overallReset:e,seriesType:Gg(e)}),e.uid=Kc("stageHandler"),t&&(e.visualType=t),e},e}();function Ng(e){e.overallReset(e.ecModel,e.api,e.payload)}function Rg(e){return e.overallProgress&&Pg}function Pg(){this.agent.dirty(),this.getDownstream().dirty()}function Fg(){this.agent&&this.agent.dirty()}function Yg(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function jg(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Mi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(_["map"])(t,(function(e,t){return Ug(t)})):Bg}var Bg=Ug(0);function Ug(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-c.length){var d=i.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,a,"mainType")&&c(s,a,"subType")&&c(s,a,"index","componentIndex")&&c(s,a,"name")&&c(s,a,"id")&&c(l,i,"name")&&c(l,i,"dataIndex")&&c(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),iv=["symbol","symbolSize","symbolRotate","symbolOffset"],av=iv.concat(["symbolKeepAspect"]),ov={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o=0&&kv(l)?l:.5;var c=e.createRadialGradient(o,s,0,o,s,l);return c}function Nv(e,t,n){for(var r="radial"===t.type?Iv(e,t,n):Lv(e,t,n),i=t.colorStops,a=0;a0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(_["isNumber"])(e)?[e]:Object(_["isArray"])(e)?e:null:null}function jv(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Yv(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&1!==i&&(n=Object(_["map"])(n,(function(e){return e/i})),r/=i)}return[n,r]}var Bv=new Fo(!0);function Uv(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function Hv(e){return"string"===typeof e&&"none"!==e}function Gv(e){var t=e.fill;return null!=t&&"none"!==t}function zv(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Vv(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Wv(e,t,n){var r=Ma(t.image,t.__image,n);if(Da(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*_["RADIAN_TO_DEGREE"]),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function qv(e,t,n,r){var i,a=Uv(n),o=Gv(n),s=n.strokePercent,l=s<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var u=t.path||Bv,d=t.__dirty;if(!r){var p=n.fill,f=n.stroke,h=o&&!!p.colorStops,m=a&&!!f.colorStops,_=o&&!!p.image,g=a&&!!f.image,v=void 0,y=void 0,b=void 0,S=void 0,E=void 0;(h||m)&&(E=t.getBoundingRect()),h&&(v=d?Nv(e,p,E):t.__canvasFillGradient,t.__canvasFillGradient=v),m&&(y=d?Nv(e,f,E):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),_&&(b=d||!t.__canvasFillPattern?Wv(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=b),g&&(S=d||!t.__canvasStrokePattern?Wv(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),h?e.fillStyle=v:_&&(b?e.fillStyle=b:o=!1),m?e.strokeStyle=y:g&&(S?e.strokeStyle=S:a=!1)}var x,w,T=t.getGlobalScale();u.setScale(T[0],T[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=jv(t),x=i[0],w=i[1]);var C=!0;(c||d&mt)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),C=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),C&&u.rebuildPath(e,l?s:1),x&&(e.setLineDash(x),e.lineDashOffset=w),r||(n.strokeFirst?(a&&Vv(e,n),o&&zv(e,n)):(o&&zv(e,n),a&&Vv(e,n))),x&&e.setLineDash([])}function $v(e,t,n){var r=t.__image=Ma(n.image,t.__image,t,t.onload);if(r&&Da(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(r,c,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){c=n.sx,u=n.sy;var d=o-c,p=s-u;e.drawImage(r,c,u,d,p,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function Kv(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||hr["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=jv(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Uv(n)&&e.strokeText(i,n.x,n.y),Gv(n)&&e.fillText(i,n.x,n.y)):(Gv(n)&&e.fillText(i,n.x,n.y),Uv(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Qv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zv(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){cy(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?qa.opacity:o}(r||t.blend!==n.blend)&&(a||(cy(e,i),a=!0),e.globalCompositeOperation=t.blend||qa.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[$y])if(this._disposed)Mb(this.id);else{var r,i,a;if(Object(_["isObject"])(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[$y]=!0,!this._model||t){var o=new Ep(this._api),s=this._theme,l=this._model=new cp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Lb);var c={seriesTransition:a,optionChanged:!0};if(n)this[Ky]={silent:r,updateParams:c},this[$y]=!1,this.getZr().wakeUp();else{try{ab(this),lb.update.call(this,null,c)}catch(u){throw this[Ky]=null,this[$y]=!1,u}this._ssr||this._zr.flush(),this[Ky]=null,this[$y]=!1,pb.call(this,r),fb.call(this,r)}}},t.prototype.setTheme=function(){Jd("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||m["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(m["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(_["each"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;Object(_["each"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(_["each"])(r,(function(e){e.group.ignore=!1})),a}Mb(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Fb[n]){var o=a,s=a,l=-a,c=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(_["each"])(Pb,(function(a,d){if(a.group===n){var p=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(Object(_["clone"])(e)),f=a.getDom().getBoundingClientRect();o=r(f.left,o),s=r(f.top,s),l=i(f.right,l),c=i(f.bottom,c),u.push({dom:p,left:f.left,top:f.top})}})),o*=d,s*=d,l*=d,c*=d;var p=l-o,f=c-s,h=hr["d"].createCanvas(),m=Vr(h,{renderer:t?"svg":"canvas"});if(m.resize({width:p,height:f}),t){var g="";return Object(_["each"])(u,(function(e){var t=e.left-o,n=e.top-s;g+=''+e.dom+""})),m.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new Cs({shape:{x:0,y:0,width:p,height:f},style:{fill:e.connectedBackgroundColor}})),Object(_["each"])(u,(function(e){var t=new gs({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)})),m.refreshImmediately(),h.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Mb(this.id)},t.prototype.convertToPixel=function(e,t){return cb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return cb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=Zi(r,e);return Object(_["each"])(i,(function(e,r){r.indexOf("Models")>=0&&Object(_["each"])(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}else 0}),this)}),this),!!n}Mb(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=Zi(n,e,{defaultMainType:"series"}),i=r.seriesModel;var a=i.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return null!=o?lv(a,o,t):cv(a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(_["each"])(Ob,(function(t){var n=function(n){var r,i=e.getModel(),a=n.target,o="globalout"===t;if(o?r={}:a&&hv(a,(function(e){var t=Vs(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return r=Object(_["extend"])({},t.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var c=s&&null!=l&&i.getComponent(s,l),u=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:u},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(_["each"])(Db,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(_["each"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),fv(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Mb(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Mb(this.id);else{this._disposed=!0;var e=this.getDom();e&&ra(this.getDom(),Bb,"");var t=this,n=t._api,r=t._model;Object(_["each"])(t._componentsViews,(function(e){e.dispose(r,n)})),Object(_["each"])(t._chartsViews,(function(e){e.dispose(r,n)})),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 Pb[t.id]}},t.prototype.resize=function(e){if(!this[$y])if(this._disposed)Mb(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[Ky]&&(null==r&&(r=this[Ky].silent),n=!0,this[Ky]=null),this[$y]=!0;try{n&&ab(this),lb.update.call(this,{type:"resize",animation:Object(_["extend"])({duration:0},e&&e.animation)})}catch(i){throw this[$y]=!1,i}this[$y]=!1,pb.call(this,r),fb.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Mb(this.id);else if(Object(_["isObject"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Rb[e]){var n=Rb[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Mb(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(_["extend"])({},e);return t.type=Db[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Mb(this.id);else if(Object(_["isObject"])(t)||(t={silent:!!t}),Ab[e.type]&&this._model)if(this[$y])this._pendingActions.push(e);else{var n=t.silent;db.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&m["a"].browser.weChat&&this._throttledZrFlush(),pb.call(this,n),fb.call(this,n)}},t.prototype.updateLabelLayout=function(){Ty.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Mb(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var a=i.get("zlevel")||0,o=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})})),r){var i,a,o=t.concat(n);pt(o,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(_["each"])(o,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)}))}}function n(e){for(var t=[],n=e.currentStates,r=0;rt.get("hoverLayerThreshold")&&!m["a"].node&&!m["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function i(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function a(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return o(e,n,r,-1/0),!0}))}}function o(e,t,n,r){var i=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),c=0;c0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(pc(e))return;if(e instanceof cs&&oc(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&n(e)}}))}ab=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),ob(e,!0),ob(e,!1),t.plan()},ob=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l=0)){aS.push(n);var a=$g.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function sS(e,t){Rb[e]=t}function lS(e){Object(hr["e"])({createCanvas:e})}function cS(e,t,n){var r=My("registerMap");r&&r(e,t,n)}function uS(e){var t=My("getMap");return t&&t(e)}var dS=Vf;iS(jy,Og),iS(Hy,Ag),iS(Hy,Dg),iS(jy,ov),iS(Hy,sv),iS(Wy,xy),Kb(Wp),Qb(Iy,qp),sS("default",Lg),eS({type:il,event:il,update:il},_["noop"]),eS({type:al,event:al,update:al},_["noop"]),eS({type:ol,event:ol,update:ol},_["noop"]),eS({type:sl,event:sl,update:sl},_["noop"]),eS({type:ll,event:ll,update:ll},_["noop"]),$b("light",Qg),$b("dark",nv);var pS={},fS=[],hS={registerPreprocessor:Kb,registerProcessor:Qb,registerPostInit:Xb,registerPostUpdate:Zb,registerUpdateLifecycle:Jb,registerAction:eS,registerCoordinateSystem:tS,registerLayout:rS,registerVisual:iS,registerTransform:dS,registerLoading:sS,registerMap:cS,registerImpl:Oy,PRIORITY:qy,ComponentModel:vd,ComponentView:$h,SeriesModel:Wh,ChartView:mg,registerComponentModel:function(e){vd.registerClass(e)},registerComponentView:function(e){$h.registerClass(e)},registerSeriesModel:function(e){Wh.registerClass(e)},registerChartView:function(e){mg.registerClass(e)},registerSubTypeDefaulter:function(e,t){vd.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Kr(e,t)}};function mS(e){Object(_["isArray"])(e)?Object(_["each"])(e,(function(e){mS(e)})):Object(_["indexOf"])(fS,e)>=0||(fS.push(e),Object(_["isFunction"])(e)&&(e={install:e}),e.install(hS))}function _S(e){return null==e?0:e.length||1}function gS(e){return e}var vS=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||gS,this._newKeyGetter=r||gS,this.context=i,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var a=0;a1){var c=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(c,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,a,"_newKeyGetter");for(var o=0;o1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,l),r[s]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,l),r[s]=null;else if(1===u&&1===d)this._update&&this._update(c,l),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,l),r[s]=null;else if(u>1)for(var p=0;p1)for(var o=0;o30}var NS,RS,PS,FS,YS,jS,BS,US=_["isObject"],HS=_["map"],GS="undefined"===typeof Int32Array?Array:Int32Array,zS="e\0\0",VS=-1,WS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qS=["_approximateExtent"],$S=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;DS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},c=0;c=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,a=this._idList,o=r.getSource().sourceFormat,s=o===xd;if(s&&!r.pure)for(var l=[],c=e;c0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),_["isArray"](i)?i=i.slice():US(i)&&(i=_["extend"]({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,US(t)?_["extend"](r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){US(e)?_["extend"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?_["extend"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Ws(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){_["each"](this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:HS(this.dimensions,this._getDimInfo,this),this.hostModel)),YS(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];_["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(_["slice"](arguments)))})},e.internalField=function(){NS=function(e){var t=e._invertedIndicesMap;_["each"](t,(function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new GS(a.categories.length);for(var s=0;s1&&(s+="__ec__"+c),r[t]=s}}}(),e}(),KS=$S;function QS(e,t){return XS(e,t).dimensions}function XS(e,t){tf(e)||(e=rf(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(_["createHashMap"])(),a=[],o=JS(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&IS(o),l=r===e.dimensionsDefine,c=l?LS(e):kS(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Object(_["createHashMap"])(u),p=new Jf(o),f=0;f0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function JS(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(_["each"])(t,(function(e){var t;Object(_["isObject"])(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}function eE(e,t,n){if(n||t.hasKey(e)){var r=0;while(t.hasKey(e+r))r++;e+=r}return t.set(e,!0),e}var tE=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(_["createHashMap"])(),this.categoryAxisMap=Object(_["createHashMap"])(),this.coordSysName=e}return e}();function nE(e){var t=e.get("coordinateSystem"),n=new tE(t),r=rE[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var rE={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",ea).models[0],a=e.getReferringComponents("yAxis",ea).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),iE(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),iE(a)&&(r.set("y",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",ea).models[0];t.coordSysDims=["single"],n.set("single",i),iE(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",ea).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),iE(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),iE(o)&&(r.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();Object(_["each"])(a.parallelAxisIndex,(function(e,a){var s=i.getComponent("parallelAxis",e),l=o[a];n.set(l,s),iE(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=a))}))}};function iE(e){return"category"===e.get("type")}function aE(e,t,n){n=n||{};var r,i,a,o=n.byIndex,s=n.stackedCoordDimension;oE(t)?r=t:(i=t.schema,r=i.dimensions,a=t.store);var l,c,u,d,p=!(!e||!e.get("stack"));if(Object(_["each"])(r,(function(e,t){Object(_["isString"])(e)&&(r[t]=e={name:e}),p&&!e.isExtraCoord&&(o||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||o||l||(o=!0),c){u="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var f=c.coordDim,h=c.type,m=0;Object(_["each"])(r,(function(e){e.coordDim===f&&m++}));var g={name:u,coordDim:f,coordDimIndex:m,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:d,coordDim:d,coordDimIndex:m+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(a&&(g.storeDimIndex=a.ensureCalculationDimension(d,h),v.storeDimIndex=a.ensureCalculationDimension(u,h)),i.appendCalculationDimension(g),i.appendCalculationDimension(v)):(r.push(g),r.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:d,stackResultDimension:u}}function oE(e){return!DS(e.schema)}function sE(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function lE(e,t){return sE(e,t)?e.getCalculationInfo("stackResultDimension"):t}function cE(e,t){var n,r=e.get("coordinateSystem"),i=mp.get(r);return t&&t.coordSysDims&&(n=_["map"](t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=xS(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function uE(e,t,n){var r,i;return n&&_["each"](e,(function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=a),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}function dE(e,t,n){n=n||{};var r,i=t.getSourceManager(),a=!1;e?(a=!0,r=rf(e)):(r=i.getSource(),a=r.sourceFormat===xd);var o=nE(t),s=cE(t,o),l=n.useEncodeDefaulter,c=_["isFunction"](l)?l:l?_["curry"](Nd,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},d=XS(r,u),p=uE(d.dimensions,n.createInvertedIndices,o),f=a?null:i.getSharedDataStore(d),h=aE(t,{schema:d,store:f}),m=new KS(d,t);m.setCalculationInfo(h);var g=null!=p&&pE(r)?function(e,t,n,r){return r===p?n:this.defaultDimValueGetter(e,t,n,r)}:null;return m.hasItemOption=!1,m.initData(a?r:f,null,g),m}function pE(e){if(e.sourceFormat===xd){var t=fE(e.data||[]);return!_["isArray"](ki(t))}}function fE(e){var t=0;while(tt[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Sa(mE);var _E=mE,gE=0,vE=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gE}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Object(_["map"])(r,yE);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(_["isString"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(_["createHashMap"])(this.categories))},e}();function yE(e){return Object(_["isObject"])(e)&&null!=e.value?e.value:e+""}var bE=vE;function SE(e){return"interval"===e.type||"log"===e.type}function EE(e,t,n,r){var i={},a=e[1]-e[0],o=i.interval=gi(a/t,!0);null!=n&&or&&(o=i.interval=r);var s=i.intervalPrecision=wE(o),l=i.niceTickExtent=[ni(Math.ceil(e[0]/o)*o,s),ni(Math.floor(e[1]/o)*o,s)];return CE(l,e),i}function xE(e){var t=Math.pow(10,_i(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ni(n*t)}function wE(e){return ii(e)+2}function TE(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function CE(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),TE(e,0,t),TE(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function OE(e,t){return e>=t[0]&&e<=t[1]}function ME(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function AE(e,t){return e*(t[1]-t[0])+t[0]}var DE=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new bE({})),Object(_["isArray"])(r)&&(r=new bE({categories:Object(_["map"])(r,(function(e){return Object(_["isObject"])(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return h(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(_["isString"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),OE(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ME(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(AE(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(_E);_E.registerClass(DE);var kE=DE,LE=ni,IE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return h(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return OE(e,this._extent)},t.prototype.normalize=function(e){return ME(e,this._extent)},t.prototype.scale=function(e){return AE(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=wE(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;var o=1e4;n[0]o)return[]}var l=a.length?a[a.length-1].value:r[1];return n[1]>l&&(e?a.push({value:LE(l+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&d0&&(a=null===a?s:Math.min(a,s))}n[r]=a}}return n}function zE(e){var t=GE(e),n=[];return Object(_["each"])(e,(function(e){var r,i=e.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent();if("category"===a.type)r=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=t[s],c=Math.abs(o[1]-o[0]),u=a.scale.getExtent(),d=Math.abs(u[1]-u[0]);r=l?c/d*l:c}else{var p=e.getData();r=Math.abs(o[1]-o[0])/p.count()}var f=ti(e.get("barWidth"),r),h=ti(e.get("barMaxWidth"),r),m=ti(e.get("barMinWidth")||(QE(e)?.5:1),r),_=e.get("barGap"),g=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:f,barMaxWidth:h,barMinWidth:m,barGap:_,barCategoryGap:g,axisKey:BE(a),stackId:jE(e)})})),VE(n)}function VE(e){var t={};Object(_["each"])(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;null!=d&&(a.gap=d);var p=e.barCategoryGap;null!=p&&(a.categoryGap=p)}));var n={};return Object(_["each"])(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(null==a){var o=Object(_["keys"])(r).length;a=Math.max(35-4*o,15)+"%"}var s=ti(a,i),l=ti(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),Object(_["each"])(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,c-=r+l*r,u--}else{var r=d;t&&tr&&(r=n),r!==d&&(e.width=r,c-=r+l*r,u--)}})),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var p,f=0;Object(_["each"])(r,(function(e,t){e.width||(e.width=d),p=e,f+=e.width*(1+l)})),p&&(f-=p.width*l);var h=-f/2;Object(_["each"])(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:h,width:e.width},h+=e.width*(1+l)}))})),n}function WE(e,t,n){if(e&&t){var r=e[BE(t)];return null!=r&&null!=n?r[jE(n)]:r}}function qE(e,t){var n=HE(e,t),r=zE(n);Object(_["each"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=jE(e),o=r[BE(i)][a],s=o.offset,l=o.width;t.setLayout({bandWidth:o.bandWidth,offset:s,size:l})}))}function $E(e){return{seriesType:e,plan:Kh(),reset:function(e){if(KE(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),u=sE(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=XE(r,i),f=QE(e),h=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),_=t.getLayout("size"),g=t.getLayout("offset");return{progress:function(e,t){var r,i=e.count,l=f&&FE(3*i),c=f&&s&&FE(3*i),v=f&&FE(i),y=n.master.getRect(),b=d?y.width:y.height,S=t.getStore(),E=0;while(null!=(r=e.next())){var x=S.get(u?m:a,r),w=S.get(o,r),T=p,C=void 0;u&&(C=+x-S.get(a,r));var O=void 0,M=void 0,A=void 0,D=void 0;if(d){var k=n.dataToPoint([x,w]);if(u){var L=n.dataToPoint([C,w]);T=L[0]}O=T,M=k[1]+g,A=k[0]-T,D=_,Math.abs(A)>>1;e[i][1]n&&(this._approxInterval=n);var a=ex.length,o=Math.min(ZE(ex,this._approxInterval,0,a),a-1);this._interval=ex[o][1],this._minLevelUnit=ex[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return Object(_["isNumber"])(e)?e:+hi(e)},t.prototype.contain=function(e){return OE(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ME(this.parse(e),this._extent)},t.prototype.scale=function(e){return AE(e,this._extent)},t.type="time",t}(NE),ex=[["second",du],["minute",pu],["hour",fu],["quarter-day",6*fu],["half-day",12*fu],["day",1.2*hu],["half-week",3.5*hu],["week",7*hu],["month",31*hu],["quarter",95*hu],["half-year",mu/2],["year",mu]];function tx(e,t,n,r){var i=hi(t),a=hi(n),o=function(e){return Mu(i,e,r)===Mu(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},u=function(){return c()&&o("hour")},d=function(){return u()&&o("minute")},p=function(){return d()&&o("second")},f=function(){return p()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return p();case"millisecond":return f()}}function nx(e,t){return e/=hu,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function rx(e){var t=30*hu;return e/=t,e>6?6:e>3?3:e>2?2:1}function ix(e){return e/=fu,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function ax(e,t){return e/=t?pu:du,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ox(e){return gi(e,!0)}function sx(e,t,n){var r=new Date(e);switch(Eu(t)){case"year":case"month":r[Fu(n)](0);case"day":r[Yu(n)](1);case"hour":r[ju(n)](0);case"minute":r[Bu(n)](0);case"second":r[Uu(n)](0),r[Hu(n)](0)}return r.getTime()}function lx(e,t,n,r){var i=1e4,a=bu,o=0;function s(e,t,n,i,a,o,s){var l=new Date(t),c=t,u=l[i]();while(c1&&0===c&&a.unshift({value:a[0].value-p})}}for(c=0;c=r[0]&&y<=r[1]&&d++)}var b=(r[1]-r[0])/t;if(d>1.5*b&&p>b/1.5)break;if(c.push(g),d>b||e===a[f])break}u=[]}}}var S=Object(_["filter"])(Object(_["map"])(c,(function(e){return Object(_["filter"])(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),E=[],x=S.length-1;for(f=0;f0)r*=10;var a=[ni(hx(t[0]/r)*r),ni(fx(t[1]/r)*r)];this._interval=r,this._niceExtent=a}},t.prototype.calcNiceExtent=function(e){dx.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=_x(e)/_x(this.base),OE(e,this._extent)},t.prototype.normalize=function(e){return e=_x(e)/_x(this.base),ME(e,this._extent)},t.prototype.scale=function(e){return e=AE(e,this._extent),mx(this.base,e)},t.type="log",t}(_E),vx=gx.prototype;function yx(e,t){return px(e,ii(t))}vx.getMinorTicks=dx.getMinorTicks,vx.getLabel=dx.getLabel,_E.registerClass(gx);var bx=gx,Sx=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!c&&(s=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(o=d,l=!0),null!=p&&(s=p,c=!0),{min:o,max:s,minFixed:l,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[xx[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Ex[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Ex={min:"_determinedMin",max:"_determinedMax"},xx={min:"_dataMin",max:"_dataMax"};function wx(e,t,n){var r=e.rawExtentInfo;return r||(r=new Sx(e,t,n),e.rawExtentInfo=r,r)}function Tx(e,t){return null==t?null:Object(_["eqNaN"])(t)?NaN:e.parse(t)}function Cx(e,t){var n=e.type,r=wx(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&"time"===n){var s=HE("bar",o),l=!1;if(_["each"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var c=zE(s),u=Ox(i,a,t,c);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Ox(e,t,n,r){var i=n.axis.getExtent(),a=i[1]-i[0],o=WE(r,n.axis);if(void 0===o)return{min:e,max:t};var s=1/0;_["each"](o,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;_["each"](o,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/a,p=u/d-u;return t+=p*(l/c),e-=p*(s/c),{min:e,max:t}}function Mx(e,t){var n=t,r=Cx(e,n),i=r.extent,a=n.get("splitNumber");e instanceof bx&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l="interval"===o||"time"===o;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function Ax(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new kE({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new cx({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(_E.getClass(t)||NE)}}function Dx(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function kx(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):_["isString"](t)?function(t){return function(n){var r=e.scale.getLabel(n),i=t.replace("{value}",null!=r?r:"");return i}}(t):_["isFunction"](t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(Lx(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function Lx(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Ix(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,a=n.getExtent();n instanceof kE?i=n.count():(r=n.getTicks(),i=r.length);var o,s=e.getLabelModel(),l=kx(e),c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;ue[1]&&(e[1]=r[1])}))}var jx=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}();function Bx(e){return hE(null,e)}var Ux={isDimensionStacked:sE,enableDataStack:aE,getStackedDimension:lE};function Hx(e,t){var n=t;t instanceof qc||(n=new qc(t));var r=Ax(n);return r.setExtent(e[0],e[1]),Mx(r,n),r}function Gx(e){_["mixin"](e,jx)}function zx(e,t){return t=t||{},xc(e,null,null,"normal"!==t.state)}var Vx=1e-8;function Wx(e,t){return Math.abs(e-t)n&&(e=i,n=o)}if(e)return Xx(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(_["each"])(i,(function(t){"polygon"===t.type?Qx(t.exterior,n,r,e):Object(_["each"])(t.points,(function(t){Qx(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new ze(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=a,i=s,a=l,r.push([s/n,l/n])}return r}function ow(e,t){return e=rw(e),_["map"](_["filter"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var a=r.coordinates;i.push(new Jx(a[0],a.slice(1)));break;case"MultiPolygon":_["each"](r.coordinates,(function(e){e[0]&&i.push(new Jx(e[0],e.slice(1)))}));break;case"LineString":i.push(new ew([r.coordinates]));break;case"MultiLineString":i.push(new ew(r.coordinates))}var o=new tw(n[t||"name"],i,n.cp);return o.properties=n,o}))}function sw(e,t,n,r,i,a,o,s){var l=new zs({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var lw=Qi();function cw(e){return"category"===e.type?dw(e):hw(e)}function uw(e,t){return"category"===e.type?fw(e,t):{ticks:_["map"](e.scale.getTicks(),(function(e){return e.value}))}}function dw(e){var t=e.getLabelModel(),n=pw(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function pw(e,t){var n,r,i=mw(e,"labels"),a=Rx(t),o=_w(i,a);return o||(_["isFunction"](a)?n=Ew(e,a):(r="auto"===a?vw(e):a,n=Sw(e,r)),gw(i,a,{labels:n,labelCategoryInterval:r}))}function fw(e,t){var n,r,i=mw(e,"ticks"),a=Rx(t),o=_w(i,a);if(o)return o;if(t.get("show")&&!e.scale.isBlank()||(n=[]),_["isFunction"](a))n=Ew(e,a,!0);else if("auto"===a){var s=pw(e,e.getLabelModel());r=s.labelCategoryInterval,n=_["map"](s.labels,(function(e){return e.tickValue}))}else r=a,n=Sw(e,r,!0);return gw(i,a,{ticks:n,tickCategoryInterval:r})}function hw(e){var t=e.scale.getTicks(),n=kx(e);return{labels:_["map"](t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function mw(e,t){return lw(e)[t]||(lw(e)[t]=[])}function _w(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(r)),d=Math.abs(c*Math.sin(r)),p=0,f=0;l<=a[1];l+=s){var h=0,m=0,_=vr(n({value:l}),t.font,"center","top");h=1.3*_.width,m=1.3*_.height,p=Math.max(p,h,7),f=Math.max(f,m,7)}var g=p/u,v=f/d;isNaN(g)&&(g=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(g,v))),b=lw(e.model),S=e.getExtent(),E=b.lastAutoInterval,x=b.lastTickCount;return null!=E&&null!=x&&Math.abs(E-y)<=1&&Math.abs(x-o)<=1&&E>y&&b.axisExtent0===S[0]&&b.axisExtent1===S[1]?y=E:(b.lastTickCount=o,b.lastAutoInterval=y,b.axisExtent0=S[0],b.axisExtent1=S[1]),y}function bw(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Sw(e,t,n){var r=kx(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=a[0],u=i.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=Px(e),p=o.get("showMinLabel")||d,f=o.get("showMaxLabel")||d;p&&c!==a[0]&&m(a[0]);for(var h=c;h<=a[1];h+=l)m(h);function m(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return f&&h-l!==a[1]&&m(a[1]),s}function Ew(e,t,n){var r=e.scale,i=kx(e),a=[];return _["each"](r.getTicks(),(function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s})})),a}var xw=[0,1],ww=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return oi(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),Tw(n,r.count())),ei(e,xw,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),Tw(n,r.count()));var i=ei(e,n,xw,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=uw(this,t),r=n.ticks,i=Object(_["map"])(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),a=t.get("alignWithLabel");return Cw(this,i,a,e.clamp),i},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),r=Object(_["map"])(n,(function(e){return Object(_["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return cw(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return yw(this)},e}();function Tw(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Cw(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var a,o,s=e.getExtent();if(1===i)t[0].coord=s[0],a=t[1]={coord:s[1]};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;Object(_["each"])(t,(function(e){e.coord-=c/2}));var u=e.scale.getExtent();o=1+u[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*o},t.push(a)}var d=s[0]>s[1];p(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&p(s[0],t[0].coord)&&t.unshift({coord:s[0]}),p(s[1],a.coord)&&(r?a.coord=s[1]:t.pop()),r&&p(a.coord,s[1])&&t.push({coord:s[1]})}function p(e,t){return e=ni(e),t=ni(t),d?e>t:ei&&(i+=Lw);var f=Math.atan2(s,o);if(f<0&&(f+=Lw),f>=r&&f<=i||f+Lw>=r&&f+Lw<=i)return l[0]=u,l[1]=d,c-n;var h=n*Math.cos(r)+e,m=n*Math.sin(r)+t,_=n*Math.cos(i)+e,g=n*Math.sin(i)+t,v=(h-o)*(h-o)+(m-s)*(m-s),y=(_-o)*(_-o)+(g-s)*(g-s);return v0){t=t/180*Math.PI,Hw.fromArray(e[0]),Gw.fromArray(e[1]),zw.fromArray(e[2]),Ne.sub(Vw,Hw,Gw),Ne.sub(Ww,zw,Gw);var n=Vw.len(),r=Ww.len();if(!(n<.001||r<.001)){Vw.scale(1/n),Ww.scale(1/r);var i=Vw.dot(Ww),a=Math.cos(t);if(a1&&Ne.copy(Kw,zw),Kw.toArray(e[1])}}}}function Xw(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Hw.fromArray(e[0]),Gw.fromArray(e[1]),zw.fromArray(e[2]),Ne.sub(Vw,Gw,Hw),Ne.sub(Ww,zw,Gw);var r=Vw.len(),i=Ww.len();if(!(r<.001||i<.001)){Vw.scale(1/r),Ww.scale(1/i);var a=Vw.dot(t),o=Math.cos(n);if(a=l)Ne.copy(Kw,zw);else{Kw.scaleAndAdd(Ww,s/Math.tan(Math.PI/2-u));var d=zw.x!==Gw.x?(Kw.x-Gw.x)/(zw.x-Gw.x):(Kw.y-Gw.y)/(zw.y-Gw.y);if(isNaN(d))return;d<0?Ne.copy(Kw,Gw):d>1&&Ne.copy(Kw,zw)}Kw.toArray(e[1])}}}}function Zw(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Jw(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=P(r[0],r[1]),a=P(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=B([],r[1],r[0],o/i),l=B([],r[1],r[2],o/a),c=B([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u0&&a&&E(-d/o,0,o);var _,g,v=e[0],y=e[o-1];return b(),_<0&&x(-_,.8),g<0&&x(g,.8),b(),S(_,g,1),S(g,_,-1),b(),_<0&&w(-_),g<0&&w(g),c}function b(){_=v.rect[t]-r,g=i-y.rect[t]-y.rect[n]}function S(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){E(r*n,0,o);var i=r+e;i<0&&x(-i*n,1)}else x(-e*n,1)}}function E(n,r,i){0!==n&&(c=!0);for(var a=r;a0)for(l=0;l0;l--){p=a[l-1]*d;E(-p,l,o)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r0?E(n,0,r+1):E(-n,o-r-1,o),e-=n,e<=0)return}}function iT(e,t,n,r){return rT(e,"x","width",t,n,r)}function aT(e,t,n,r){return rT(e,"y","height",t,n,r)}function oT(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new ze(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(_["indexOf"])(u,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),uc(n,l,t,s)}else if(n.attr(l),!Lc(n).valueAnimation){var d=Object(_["retrieve2"])(n.style.opacity,1);n.style.opacity=0,dc(n,{style:{opacity:d}},t,s)}if(i.oldLayout=l,n.states.select){var p=i.oldLayoutSelect={};fT(p,l,hT),fT(p,n.states.select,hT)}if(n.states.emphasis){var f=i.oldLayoutEmphasis={};fT(f,l,hT),fT(f,n.states.emphasis,hT)}Nc(n,s,c,t,t)}if(r&&!r.ignore&&!r.invisible){i=pT(r),a=i.oldLayout;var h={points:r.shape.points};a?(r.attr({shape:a}),uc(r,{shape:h},t)):(r.setShape(h),r.style.strokePercent=0,dc(r,{style:{strokePercent:1}},t)),i.oldLayout=h}},e}(),_T=mT,gT=Qi();function vT(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=gT(t).labelManager;r||(r=gT(t).labelManager=new _T),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=gT(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function yT(e,t,n){var r=hr["d"].createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=a*n,r}mS(vT);var bT=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||Xn,"string"===typeof t?i=yT(t,n,r):_["isObject"](t)&&(i=t,t=i.id),a.id=t,a.dom=i;var o=i.style;return o&&(_["disableUserSelect"](i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return v(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=yT("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new ze(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===a.length){var t=new ze(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,r=1/0,i=0,c=0;c=o)}}for(var u=this.__startIndex;u15)break}}n.prevElClipPaths&&d.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var b=p.dpr,S=0;S0&&e>r[0]){for(s=0;se)break;o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r0?wT:0),this._needsManuallyCompositing),c.__builtin__||_["logError"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==a&&(c.__dirty=!0),c.__startIndex=a,c.incremental?c.__drawIndex=-1:c.__drawIndex=a,t(a),o=c),r.__dirty&ft&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=a))}t(a),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,_["each"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?_["merge"](n[e],t,!0):n[e]=t;for(var r=0;r=NT:-l>=NT),p=l>0?l%NT:l%NT+NT,f=!1;f=!!d||!Object(tn["j"])(u)&&p>=IT===!!c;var h=e+n*LT(a),m=t+r*kT(a);this._start&&this._add("M",h,m);var _=Math.round(i*RT);if(d){var g=1/this._p,v=(c?1:-1)*(NT-g);this._add("A",n,r,_,1,+c,e+n*LT(a+v),t+r*kT(a+v)),g>.01&&this._add("A",n,r,_,0,+c,h,m)}else{var y=e+n*LT(o),b=t+r*kT(o);this._add("A",n,r,_,+f,+c,y,b)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,a,o,s,l){for(var c=[],u=this._p,d=1;d"}function ZT(e){return""}function JT(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return XT(i,a)+("style"!==i?se(o):o||"")+(t?""+n+Object(_["map"])(t,(function(e){return r(e)})).join(n)+n:"")+ZT(i)}return r(e)}function eC(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,a=r+"}",o=Object(_["map"])(Object(_["keys"])(e),(function(t){return t+i+Object(_["map"])(Object(_["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+a})).join(r),s=Object(_["map"])(Object(_["keys"])(t),(function(e){return"@keyframes "+e+i+Object(_["map"])(Object(_["keys"])(t[e]),(function(n){return n+i+Object(_["map"])(Object(_["keys"])(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+a})).join(r)+a})).join(r);return o||s?[""].join(r):""}function tC(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nC(e,t,n,r){return QT("svg","root",{width:e,height:t,xmlns:VT,"xmlns:xlink":WT,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var rC={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"},iC="transform-origin";function aC(e,t,n){var r=Object(_["extend"])({},e.shape);Object(_["extend"])(r,t),e.buildPath(n,r);var i=new FT;return i.reset(Object(tn["f"])(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function oC(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[iC]=n+"px "+r+"px")}var sC={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function lC(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function cC(e,t,n){var r,i,a=e.shape.paths,o={};if(Object(_["each"])(a,(function(e){var t=tC(n.zrId);t.animation=!0,dC(e,{},t,!0);var a=t.cssAnims,s=t.cssNodes,l=Object(_["keys"])(a),c=l.length;if(c){i=l[c-1];var u=a[i];for(var d in u){var p=u[d];o[d]=o[d]||{d:""},o[d].d+=p.d||""}for(var f in s){var h=s[f].animation;h.indexOf(i)>=0&&(r=h)}}})),r){t.d=!1;var s=lC(o,n);return r.replace(i,s)}}function uC(e){return Object(_["isString"])(e)?rC[e]?"cubic-bezier("+rC[e]+")":Xt(e)?e:"":""}function dC(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof f_){var s=cC(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},c=0;c0})).length){var D=lC(u,n);return D+" "+i[0]+" both"}}for(var g in l){s=m(l[g]);s&&o.push(s)}if(o.length){var v=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+v]={animation:o.join(",")},t["class"]=v}}var pC=Math.round;function fC(e){return e&&Object(_["isString"])(e.src)}function hC(e){return e&&Object(_["isFunction"])(e.toDataURL)}function mC(e,t,n,r){zT((function(i,a){var o="fill"===i||"stroke"===i;o&&Object(tn["k"])(a)?AC(t,e,i,r):o&&Object(tn["n"])(a)?DC(n,e,i,r):e[i]=a}),t,n,!1),MC(n,e,r)}function _C(e){return Object(tn["j"])(e[0]-1)&&Object(tn["j"])(e[1])&&Object(tn["j"])(e[2])&&Object(tn["j"])(e[3]-1)}function gC(e){return Object(tn["j"])(e[4])&&Object(tn["j"])(e[5])}function vC(e,t,n){if(t&&(!gC(t)||!_C(t))){var r=n?10:1e4;e.transform=_C(t)?"translate("+pC(t[4]*r)/r+" "+pC(t[5]*r)/r+")":Object(tn["e"])(t)}}function yC(e,t,n){for(var r=e.points,i=[],a=0;ac?(o=null==n[p+1]?null:n[p+1].elm,qC(e,o,n,l,p)):$C(e,t,s,c))}function XC(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(KC(e,t),HC(t.text)?GC(r)&&GC(i)?r!==i&&QC(n,r,i):GC(i)?(GC(e.text)&&YC(n,""),qC(n,null,i,0,i.length-1)):GC(r)?$C(n,r,0,r.length-1):GC(e.text)&&YC(n,""):e.text!==t.text&&(GC(r)&&$C(n,r,0,r.length-1),YC(n,t.text)))}function ZC(e,t){if(VC(e,t))XC(e,t);else{var n=e.elm,r=PC(n);WC(t),null!==r&&(IC(r,t.elm,FC(n)),$C(r,[e],0,0))}return t}var JC=0,eO=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=tO("refreshHover"),this.configLayer=tO("configLayer"),this.storage=t,this._opts=n=Object(_["extend"])({},n),this.root=e,this._id="zr"+JC++,this._oldVNode=nC(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=KT("svg");KC(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",ZC(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return OC(e,tC(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=tC(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var a=[],o=this._bgVNode=nO(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=QT("g","main",{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var l=Object(_["map"])(Object(_["keys"])(i.defs),(function(e){return i.defs[e]}));if(l.length&&a.push(QT("defs","defs",{},l)),e.animation){var c=eC(i.cssNodes,i.cssAnims,{newline:!0});if(c){var u=QT("style","stl",{},[],c);a.push(u)}}return nC(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},JT(this.renderToVNode({animation:Object(_["retrieve2"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(_["retrieve2"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,a=e.length,o=[],s=0,l=0,c=0;c=0;h--)if(d&&i&&d[h]===i[h])break;for(var m=f-1;m>h;m--)s--,r=o[s-1];for(var _=h+1;_-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Wh),oO=aO;function sO(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=xf(e,t,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(" ")}var cO=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return h(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=Mv(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=uO,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Dl(this.childAt(0))},t.prototype.downplay=function(){kl(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=a!==this._symbolType,c=i&&i.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,s,u)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):uc(d,p,o,n),_c(d)}if(this._updateCommon(e,n,s,r,i),l){d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,dc(d,p,o,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,s,l,c,u,d,p,f,h=this.childAt(0),m=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,c=r.blurScope,d=r.labelStatesModels,p=r.hoverScale,f=r.cursorStyle,u=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),v=g.getModel("emphasis");a=v.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),o=g.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),d=Ec(g),p=v.getShallow("scale"),f=g.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");h.attr("rotation",(y||0)*Math.PI/180||0);var b=Dv(e.getItemVisual(t,"symbolOffset"),n);b&&(h.x=b[0],h.y=b[1]),f&&h.attr("cursor",f);var S=e.getItemVisual(t,"style"),E=S.fill;if(h instanceof gs){var x=h.style;h.useStyle(Object(_["extend"])({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},S))}else h.__isEmptyBrush?h.useStyle(Object(_["extend"])({},S)):h.useStyle(S),h.style.decal=null,h.setColor(E,i&&i.symbolInnerColor),h.style.strokeNoScale=!0;var w=e.getItemVisual(t,"liftZ"),T=this._z2;null!=w?null==T&&(this._z2=h.z2,h.z2+=w):null!=T&&(h.z2=T,this._z2=null);var C=i&&i.useNameLabel;function O(t){return C?e.getName(t):sO(e,t)}Sc(h,d,{labelFetcher:m,labelDataIndex:t,defaultText:O,inheritColor:E,defaultOpacity:S.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=h.ensureState("emphasis");M.style=a,h.ensureState("select").style=s,h.ensureState("blur").style=o;var A=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*A,M.scaleY=this._sizeY*A,this.setSymbolScale(1),Kl(this,l,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Vs(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&fc(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();fc(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Av(e.getItemVisual(t,"symbolSize"))},t}(jr);function uO(e,t){this.parent.drift(e,t)}var dO=cO;function pO(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function fO(e){return null==e||Object(_["isObject"])(e)||(e={isIgnore:e}),e||{}}function hO(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ec(t),cursorStyle:t.get("cursor")}}var mO=function(){function e(e){this.group=new jr,this._SymbolCtor=e||dO}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=fO(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=hO(e),l={disableAnimation:o},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=c(r);if(pO(e,i,r,t)){var o=new a(e,r,s,l);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}})).update((function(u,d){var p=i.getItemGraphicEl(d),f=c(u);if(pO(e,f,u,t)){var h=e.getItemVisual(u,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==h)n.remove(p),p=new a(e,u,s,l),p.setPosition(f);else{p.updateData(e,u,s,l);var _={x:f[0],y:f[1]};o?p.attr(_):uc(p,_,r)}n.add(p),e.setItemGraphicEl(u,p)}else n.remove(p)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hO(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=fO(n);for(var i=e.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function yO(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function bO(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function SO(e,t,n,r,i,a,o,s){for(var l=bO(e,t),c=[],u=[],d=[],p=[],f=[],h=[],m=[],_=gO(i,t,o),g=e.getLayout("points")||[],v=t.getLayout("points")||[],y=0;y=i||m<0)break;if(wO(g,v)){if(l){m+=a;continue}break}if(m===n)e[a>0?"moveTo":"lineTo"](g,v),d=g,p=v;else{var y=g-c,b=v-u;if(y*y+b*b<.5){m+=a;continue}if(o>0){var S=m+a,E=t[2*S],x=t[2*S+1];while(E===g&&x===v&&_=r||wO(E,x))f=g,h=v;else{C=E-c,O=x-u;var D=g-c,k=E-g,L=v-u,I=x-v,N=void 0,R=void 0;if("x"===s){N=Math.abs(D),R=Math.abs(k);var P=C>0?1:-1;f=g-P*N*o,h=v,M=g+P*R*o,A=v}else if("y"===s){N=Math.abs(L),R=Math.abs(I);var F=O>0?1:-1;f=g,h=v-F*N*o,M=g,A=v+F*R*o}else N=Math.sqrt(D*D+L*L),R=Math.sqrt(k*k+I*I),T=R/(R+N),f=g-C*o*(1-T),h=v-O*o*(1-T),M=g+C*o*T,A=v+O*o*T,M=EO(M,xO(E,g)),A=EO(A,xO(x,v)),M=xO(M,EO(E,g)),A=xO(A,EO(x,v)),C=M-g,O=A-v,f=g-C*N/R,h=v-O*N/R,f=EO(f,xO(c,g)),h=EO(h,xO(u,v)),f=xO(f,EO(c,g)),h=xO(h,EO(u,v)),C=g-f,O=v-h,M=g+C*R/N,A=v+O*R/N}e.bezierCurveTo(d,p,f,h,g,v),d=M,p=A}else e.lineTo(g,v)}c=g,u=v,m+=a}return _}var CO=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),OO=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return h(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CO},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!wO(n[2*i-2],n[2*i-1]))break;for(;r=0){var v=s?(p-r)*g+r:(d-n)*g+n;return s?[e,v]:[v,e]}n=d,r=p;break;case o.C:d=a[c++],p=a[c++],f=a[c++],h=a[c++],m=a[c++],_=a[c++];var y=s?Yt(n,d,f,m,e,l):Yt(r,p,h,_,e,l);if(y>0)for(var b=0;b=0){v=s?Pt(r,p,h,_,S):Pt(n,d,f,m,S);return s?[e,v]:[v,e]}}n=m,r=_;break}}},t}(cs),MO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(CO),AO=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return h(t,e),t.prototype.getDefaultShape=function(){return new MO},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0;a--)if(!wO(n[2*a-2],n[2*a-1]))break;for(;it){r?i.push(o(r,l,t)):n&&i.push(o(n,l,0),o(n,l,t));break}n&&(i.push(o(n,l,0)),n=null),i.push(l),r=l}}return i}function UO(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){a=r[o];break}}if(a){var l=t.getAxis(i),c=_["map"](a.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,d=a.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var p=BO(c,"x"===i?n.getWidth():n.getHeight()),f=p.length;if(!f&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var h=10,m=p[0].coord-h,g=p[f-1].coord+h,v=g-m;if(v<.001)return"transparent";_["each"](p,(function(e){e.offset=(e.coord-m)/v})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var y=new g_(0,0,0,0,p,!0);return y[i]=m,y[i+"2"]=g,y}}}function HO(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!GO(a,t))){var o=t.mapDimension(a.dim),s={};return _["each"](a.getViewLabels(),(function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function GO(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function zO(e,t){return isNaN(e)||isNaN(t)}function VO(e){for(var t=e.length/2;t>0;t--)if(!zO(e[2*t-2],e[2*t-1]))break;return t-1}function WO(e,t){return[e[2*t],e[2*t+1]]}function qO(e,t,n){for(var r,i,a=e.length/2,o="x"===n?0:1,s=0,l=-1,c=0;c=t||r>=t&&i<=t){l=c;break}s=c,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}function $O(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var R=f.getState("emphasis").style;R.lineWidth=+f.style.lineWidth+1}Vs(f).seriesIndex=e.seriesIndex,Kl(f,L,I,N);var P=FO(e.get("smooth")),F=e.get("smoothMonotone");if(f.setShape({smooth:P,smoothMonotone:F,connectNulls:x}),h){var Y=o.getCalculationInfo("stackedOnSeries"),j=0;h.useStyle(_["defaults"](l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),Y&&(j=FO(Y.get("smooth"))),h.setShape({smooth:P,stackedOnSmooth:j,smoothMonotone:F,connectNulls:x}),Jl(h,e,"areaStyle"),Vs(h).seriesIndex=e.seriesIndex,Kl(h,L,I,N)}var B=function(e){r._changePolyState(e)};o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=o,this._coordSys=i,this._stackedOnPoints=S,this._points=c,this._step=O,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,f),h&&this.packEventData(e,h))},t.prototype.packEventData=function(e,t){Vs(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Ki(i,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(a);if(!s){var l=o[2*a],c=o[2*a+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,d=e.get("z")||0;s=new dO(i,a),s.x=l,s.y=c,s.setZ(u,d);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=u,p.z=d,p.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else mg.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Ki(i,r);if(this._changePolyState("normal"),null!=a&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else mg.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Sl(this._polyline,e),t&&Sl(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new OO({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new AO({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;"cartesian2d"===t.type?(r=a.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===a.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");_["isFunction"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=_["isFunction"](c)?c(null):c;e.eachItemGraphicEl((function(e,a){var s=e;if(s){var d=[e.x,e.y],p=void 0,f=void 0,h=void 0;if(n)if(i){var m=n,g=t.pointToCoord(d);r?(p=m.startAngle,f=m.endAngle,h=-g[1]/180*Math.PI):(p=m.r0,f=m.r,h=g[0])}else{var v=n;r?(p=v.x,f=v.x+v.width,h=e.x):(p=v.y+v.height,f=v.y,h=e.y)}var y=f===p?0:(h-p)/(f-p);o&&(y=1-y);var b=_["isFunction"](c)?c(a):l*y+u,S=s.getSymbolPath(),E=S.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:b}),S.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if($O(e)){var i=e.getData(),a=this._polyline,o=i.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new zs({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=VO(o);l>=0&&(Sc(a,Ec(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?lO(i,n):sO(i,e)},enableTextSetter:!0},QO(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,d=u.get("connectNulls"),p=a.get("precision"),f=a.get("distance")||0,h=o.getBaseAxis(),m=h.isHorizontal(),_=h.inverse,g=t.shape,v=_?m?g.x:g.y+g.height:m?g.x+g.width:g.y,y=(m?f:0)*(_?-1:1),b=(m?0:-f)*(_?-1:1),S=m?"x":"y",E=qO(c,v,S),x=E.range,w=x[1]-x[0],T=void 0;if(w>=1){if(w>1&&!d){var C=WO(c,x[0]);s.attr({x:C[0]+y,y:C[1]+b}),i&&(T=u.getRawValue(x[0]))}else{C=l.getPointOn(v,S);C&&s.attr({x:C[0]+y,y:C[1]+b});var O=u.getRawValue(x[0]),M=u.getRawValue(x[1]);i&&(T=sa(n,p,O,M,E.t))}r.lastFrameIndex=x[0]}else{var A=1===e||r.lastFrameIndex>0?x[0]:0;C=WO(c,A);i&&(T=u.getRawValue(A)),s.attr({x:C[0]+y,y:C[1]+b})}if(i){var D=Lc(s);"function"===typeof D.setLabelText&&D.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,l=this._polygon,c=e.hostModel,u=SO(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,p=u.stackedOnCurrent,f=u.next,h=u.stackedOnNext;if(i&&(d=jO(u.current,n,i,o),p=jO(u.stackedOnCurrent,n,i,o),f=jO(u.next,n,i,o),h=jO(u.stackedOnNext,n,i,o)),PO(d,f)>3e3||l&&PO(p,h)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:h})));s.shape.__points=u.current,s.shape.points=d;var m={shape:{points:f}};u.current!==d&&(m.shape.__points=u.next),s.stopAnimation(),uc(s,m,c),l&&(l.setShape({points:d,stackedOnPoints:p}),l.stopAnimation(),uc(l,{shape:{stackedOnPoints:h}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var _=[],g=u.status,v=0;vt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&"cartesian2d"===a.type&&i){var s=a.getBaseAxis(),l=a.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(u||1),p=Math.round(o/d);if(isFinite(p)&&p>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/p));var f=void 0;Object(_["isString"])(i)?f=eM[i]:Object(_["isFunction"])(i)&&(f=i),f&&e.setData(r.downSample(r.mapDimension(l.dim),1/p,f,tM))}}}}}function rM(e){e.registerChartView(ZO),e.registerSeriesModel(oO),e.registerLayout(JO("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,nM("line"))}var iM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.getInitialData=function(e,t){return hE(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)Object(_["each"])(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),o=i[n],s="x1"===t[n]||"y1"===t[n];if(s&&(o+=1),r.length<2)return;if(2===r.length)return void(a[n]=e.toGlobalCoord(e.getExtent()[s?1:0]));for(var l=void 0,c=void 0,u=1,d=0;do){c=(p+l)/2;break}1===d&&(u=f-r[0].tickValue)}null==c&&(l?l&&(c=r[r.length-1].coord):c=r[0].coord),a[n]=e.toGlobalCoord(c)}}));else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;a[c]+=s+l/2}return a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Wh);Wh.registerClass(iM);var aM=iM,oM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.getInitialData=function(){return hE(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Zc(aM.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(aM),sM=oM,lM=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),cM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return h(t,e),t.prototype.getDefaultShape=function(){return new lM},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,l=t.startAngle,c=t.endAngle,u=t.clockwise,d=2*Math.PI,p=u?c-lMath.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function fM(e,t,n){return t*Math.sin(e)*(n?-1:1)}function hM(e,t,n){return t*Math.cos(e)*(n?1:-1)}function mM(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(_["isArray"])(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(_["map"])(r,(function(e){return Er(e,i)}))}}var _M=Math.max,gM=Math.min;function vM(e,t){var n=e.getArea&&e.getArea();if(IO(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var yM=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return h(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){og(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?i=c.isHorizontal():"polar"===l.type&&(i="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=EM(e,l);d&&this._enableRealtimeSort(d,o,n);var p=e.get("clip",!0)||d,f=vM(l,o);a.removeClipPath();var h=e.get("roundCap",!0),m=e.get("showBackground",!0),_=e.getModel("backgroundStyle"),g=_.get("borderRadius")||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,S=r&&"changeAxisOrder"===r.type;function E(e){var t=MM[l.type](o,e),n=jM(l,i,t);return n.useStyle(_.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",g):n.setShape("cornerRadius",g),v[e]=n,n}o.diff(s).add((function(t){var n=o.getItemModel(t),r=MM[l.type](o,t,n);if(m&&E(t),o.hasValue(t)&&OM[l.type](r)){var s=!1;p&&(s=bM[l.type](f,r));var _=SM[l.type](e,o,t,r,i,u,c.model,!1,h);d&&(_.forceLabelAnimation=!0),kM(_,o,t,n,r,e,i,"polar"===l.type),b?_.attr({shape:r}):d?xM(d,u,_,r,t,i,!1,!1):dc(_,{shape:r},e,t),o.setItemGraphicEl(t,_),a.add(_),_.ignore=s}})).update((function(t,n){var r=o.getItemModel(t),x=MM[l.type](o,t,r);if(m){var w=void 0;0===y.length?w=E(n):(w=y[n],w.useStyle(_.getItemStyle()),"cartesian2d"===l.type?w.setShape("r",g):w.setShape("cornerRadius",g),v[t]=w);var T=MM[l.type](o,t),C=YM(i,T,l);uc(w,{shape:C},u,t)}var O=s.getItemGraphicEl(n);if(o.hasValue(t)&&OM[l.type](x)){var M=!1;if(p&&(M=bM[l.type](f,x),M&&a.remove(O)),O?_c(O):O=SM[l.type](e,o,t,x,i,u,c.model,!!O,h),d&&(O.forceLabelAnimation=!0),S){var A=O.getTextContent();if(A){var D=Lc(A);null!=D.prevValue&&(D.prevValue=D.value)}}else kM(O,o,t,r,x,e,i,"polar"===l.type);b?O.attr({shape:x}):d?xM(d,u,O,x,t,i,!0,S):uc(O,{shape:x},e,t,null),o.setItemGraphicEl(t,O),O.ignore=M,a.add(O)}else a.remove(O)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&mc(n,e,t)})).execute();var x=this._backgroundGroup||(this._backgroundGroup=new jr);x.removeAll();for(var w=0;wa)return!0;a=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){mc(t,e,Vs(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(mg),bM={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=_M(t.x,e.x),s=gM(t.x+t.width,i),l=_M(t.y,e.y),c=gM(t.y+t.height,a),u=si?s:o,t.y=d&&l>a?c:l,t.width=u?0:s-o,t.height=d?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=gM(t.r,e.r),a=_M(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},SM={cartesian2d:function(e,t,n,r,i,a,o,s,l){var c=new Cs({shape:Object(_["extend"])({},r),z2:1});if(c.__dataIndex=n,c.name="item",a){var u=c.shape,d=i?"height":"width";u[d]=0}return c},polar:function(e,t,n,r,i,a,o,s,l){var c=!i&&l?uM:Hm,u=new c({shape:r,z2:1});u.name="item";var d=DM(i);if(u.calculateTextPosition=dM(d,{isRoundCap:c===uM}),a){var p=u.shape,f=i?"r":"endAngle",h={};p[f]=i?r.r0:r.startAngle,h[f]=r[f],(s?uc:dc)(u,{shape:h},a)}return u}};function EM(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function xM(e,t,n,r,i,a,o,s){var l,c;a?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?uc:dc)(n,{shape:l},t,i,null);var u=t?e.baseAxis.model:null;(o?uc:dc)(n,{shape:c},u,i)}function wM(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function AM(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function DM(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function kM(e,t,n,r,i,a,o,s){var l=t.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var c=e.shape,u=mM(r.getModel("itemStyle"),c,!0);Object(_["extend"])(c,u),e.setShape(c)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var p=r.getShallow("cursor");p&&e.attr("cursor",p);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=Ec(r);Sc(e,h,{labelFetcher:a,labelDataIndex:n,defaultText:sO(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var g=r.get(["label","position"]);e.textConfig.inside="middle"===g||null,pM(e,"outside"===g?f:g,DM(o),r.get(["label","rotate"]))}Ic(m,h,a.getRawValue(n),(function(e){return lO(t,e)}));var v=r.getModel(["emphasis"]);Kl(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Jl(e,r),AM(i)&&(e.style.fill="none",e.style.stroke="none",Object(_["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function LM(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var IM=function(){function e(){}return e}(),NM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return h(t,e),t.prototype.getDefaultShape=function(){return new IM},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function FM(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[u]}return-1}function YM(e,t,n){if(IO(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}function jM(e,t,n){var r="polar"===e.type?Hm:Cs;return new r({shape:YM(t,n,e),silent:!0,z2:0})}var BM=yM;function UM(e){e.registerChartView(BM),e.registerSeriesModel(sM),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,_["curry"](qE,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$E("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,nM("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var HM=2*Math.PI,GM=Math.PI/180;function zM(e,t){return ld(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function VM(e,t){var n=zM(e,t),r=e.get("center"),i=e.get("radius");_["isArray"](i)||(i=[0,i]);var a,o,s=ti(n.width,t.getWidth()),l=ti(n.height,t.getHeight()),c=Math.min(s,l),u=ti(i[0],c/2),d=ti(i[1],c/2),p=e.coordinateSystem;if(p){var f=p.dataToPoint(r);a=f[0]||0,o=f[1]||0}else _["isArray"](r)||(r=[r,r]),a=ti(r[0],s)+n.x,o=ti(r[1],l)+n.y;return{cx:a,cy:o,r0:u,r:d}}function WM(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=zM(e,n),a=VM(e,n),o=a.cx,s=a.cy,l=a.r,c=a.r0,u=-e.get("startAngle")*GM,d=e.get("minAngle")*GM,p=0;t.each(r,(function(e){!isNaN(e)&&p++}));var f=t.getSum(r),h=Math.PI/(f||p)*2,m=e.get("clockwise"),_=e.get("roseType"),g=e.get("stillShowZeroSum"),v=t.getDataExtent(r);v[0]=0;var y=HM,b=0,S=u,E=m?1:-1;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:o,cy:s,r0:c,r:_?NaN:l});else{r="area"!==_?0===f&&g?h:e*h:HM/p,rn?o:a,u=Math.abs(l.label.y-n);if(u>=c.maxY){var d=l.label.x-t-l.len2*i,p=r+l.len,h=Math.abs(d)e.unconstrainedWidth?null:f:null;r.setStyle("width",h)}var m=r.getBoundingRect();a.width=m.width;var _=(r.style.margin||0)+2.1;a.height=m.height+_,a.y-=(a.height-d)/2}}}function ZM(e){return"center"===e.position}function JM(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get("minShowLabelAngle")||0)*$M,s=r.getLayout("viewRect"),l=r.getLayout("r"),c=s.width,u=s.x,d=s.y,p=s.height;function f(e){e.ignore=!0}function h(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var s=r.getItemGraphicEl(e),d=s.shape,p=s.getTextContent(),m=s.getTextGuideLine(),g=r.getItemModel(e),v=g.getModel("label"),y=v.get("position")||g.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),S=v.get("alignTo"),E=ti(v.get("edgeDistance"),c),x=v.get("bleedMargin"),w=g.getModel("labelLine"),T=w.get("length");T=ti(T,c);var C=w.get("length2");if(C=ti(C,c),Math.abs(d.endAngle-d.startAngle)0?"right":"left":L>0?"left":"right"}var U=Math.PI,H=0,G=v.get("rotate");if(Object(_["isNumber"])(G))H=G*(U/180);else if("center"===y)H=0;else if("radial"===G||!0===G){var z=L<0?-k+U:-k;H=z}else if("tangential"===G&&"outside"!==y&&"outer"!==y){var V=Math.atan2(L,I);V<0&&(V=2*U+V);var W=I>0;W&&(V=U+V),H=V-U}if(a=!!H,p.x=O,p.y=M,p.rotation=H,p.setStyle({verticalAlign:"middle"}),N){p.setStyle({align:D});var q=p.states.select;q&&(q.x+=p.x,q.y+=p.y)}else{var $=p.getBoundingRect().clone();$.applyTransform(p.getComputedTransform());var K=(p.style.margin||0)+2.1;$.y-=K/2,$.height+=K,i.push({label:p,labelLine:m,position:y,len:T,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Ne(L,I),linePoints:A,textAlign:D,labelDistance:b,labelAlignTo:S,edgeDistance:E,bleedMargin:x,rect:$,unconstrainedWidth:$.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:N})}})),!a&&e.get("avoidLabelOverlap")&&QM(i,t,n,l,c,p,u,d);for(var m=0;m0){for(var l=a.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=r.r0}},t.type="pie",t}(mg),nA=tA;function rA(e,t,n){t=Object(_["isArray"])(t)&&{coordDimensions:t}||Object(_["extend"])({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=XS(r,t).dimensions,a=new KS(i,e);return a.initData(r,n),a}var iA=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),aA=iA,oA=Qi(),sA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new aA(_["bind"](this.getData,this),_["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return rA(this,{coordDimensions:["value"],encodeDefaulter:_["curry"](Rd,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=oA(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension("value"),(function(e){a.push(e)})),i=r.seats=li(a,n.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){Ai(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Wh),lA=sA;function cA(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(_["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function uA(e){e.registerChartView(nA),e.registerSeriesModel(lA),dv("pie",e.registerAction),e.registerLayout(Object(_["curry"])(WM,"pie")),e.registerProcessor(qM("pie")),e.registerProcessor(cA("pie"))}var dA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return h(t,e),t.prototype.getInitialData=function(e,t){return hE(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Wh),pA=dA,fA=4,hA=function(){function e(){}return e}(),mA=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return h(t,e),t.prototype.getDefaultShape=function(){return new hA},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,a=this.symbolProxy,o=a.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;s--){var l=2*s,c=r[l]-a/2,u=r[l+1]-o/2;if(e>=c&&t>=u&&e<=c+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),gA=_A,vA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=JO("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new gA:new _O,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(mg),yA=vA,bA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(vd),SA=bA,EA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ea).models[0]},t.type="cartesian2dAxis",t}(vd);_["mixin"](EA,jx);var xA={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},wA=_["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},xA),TA=_["merge"]({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}}},xA),CA=_["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},TA),OA=_["defaults"]({logBase:10},TA),MA={category:wA,value:TA,time:CA,log:OA},AA={value:1,category:1,time:1,log:1};function DA(e,t,n,r){Object(_["each"])(AA,(function(i,a){var o=Object(_["merge"])(Object(_["merge"])({},MA[a],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return h(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=dd(this),r=n?fd(e):{},i=t.getTheme();Object(_["merge"])(e,i.get(a+"Axis")),Object(_["merge"])(e,this.getDefaultOption()),e.type=kA(e),n&&pd(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=bE.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",kA)}function kA(e){return e.type||(e.data?"category":"value")}var LA=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return _["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),_["filter"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),IA=LA,NA=["x","y"];function RA(e){return"interval"===e.type||"time"===e.type}var PA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=NA,t}return h(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(RA(e)&&RA(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var l=(a[0]-i[0])/o,c=(a[1]-i[1])/s,u=i[0]-n[0]*l,d=i[1]-r[0]*c,p=this._transform=[l,0,0,c,u,d];this._invTransform=ke([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new ze(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return U(n,e,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return U(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,a=Math.max(t[0],t[1])-r;return new ze(n,r,i,a)},t}(IA),FA=PA,YA=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||"value",o.position=a||"bottom",o}return h(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Ow),jA=YA;function BA(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,c=i.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,h="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));h[p.onZero]=Math.max(Math.min(m,h[1]),h[0])}a.position=["y"===c?h[p[l]]:d[0],"x"===c?h[p[l]]:d[3]],a.rotation=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?h[p[s]]-h[p.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),_["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-v:v,a.z2=1,a}function UA(e){return"cartesian2d"===e.get("coordinateSystem")}function HA(e){var t={xAxisModel:null,yAxisModel:null};return _["each"](t,(function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,ea).models[0];t[r]=a})),t}var GA=Math.log;function zA(e,t,n){var r=NE.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),l=Cx(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;if("log"===e.type){var p=GA(e.base);c=[GA(c[0])/p,GA(c[1])/p]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var f=r.getExtent.call(e);u&&(c[0]=f[0]),d&&(c[1]=f[1]);var h=r.getInterval.call(e),m=c[0],_=c[1];if(u&&d)h=(_-m)/o;else if(u){_=c[0]+h*o;while(_c[0]&&isFinite(m)&&isFinite(c[0]))h=xE(h),m=c[1]-h*o}else{var g=e.getTicks().length-1;g>o&&(h=xE(h));var v=h*o;_=Math.ceil(c[1]/h)*h,m=ni(_-v),m<0&&c[0]>=0?(m=0,_=ni(v)):_>0&&c[1]<=0&&(_=0,m=-ni(v))}var y=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+h*y,_+h*b),r.setInterval.call(e,h),(y||b)&&r.setNiceExtent.call(e,m+h,_-h)}var VA=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=NA,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(_["keys"])(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=+n[a],s=e[o],l=s.model,c=s.scale;SE(c)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(Mx(c,l),SE(c)&&(t=s))}i.length&&(t||(t=i.pop(),Mx(t.scale,t.model)),Object(_["each"])(i,(function(e){zA(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(_["each"])(n.x,(function(e){qA(n,"y",e,i)})),Object(_["each"])(n.y,(function(e){qA(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),a=ld(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;function s(){Object(_["each"])(o,(function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),KA(e,t?a.x:a.y)}))}s(),i&&(Object(_["each"])(o,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Ix(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);a[n]-=t[n]+r,"top"===e.position?a.y+=t.height+r:"left"===e.position&&(a.x+=t.width+r)}}})),s()),Object(_["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(_["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r0?"top":"bottom",r="center"):pi(a-XA)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),JA={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],c=s[0]>l[0];o&&(U(s,s,o),U(l,l,o));var u=Object(_["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new r_({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});H_(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var f=t.get(["axisLine","symbolSize"]);Object(_["isString"])(p)&&(p=[p,p]),(Object(_["isString"])(f)||Object(_["isNumber"])(f))&&(f=[f,f]);var h=Dv(t.get(["axisLine","symbolOffset"])||0,f),m=f[0],g=f[1];Object(_["each"])([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==p[r]&&null!=p[r]){var i=Mv(p[r],-m/2,-g/2,m,g,u.stroke,!0),a=t.r+t.offset,o=c?l:s;i.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=oD(n,r,t,e),a=lD(n,r,t,e);if(tD(t,a,i),sD(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=nT(Object(_["map"])(a,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));oT(o)}},axisName:function(e,t,n,r){var i=Object(_["retrieve"])(e.axisName,t.get("name"));if(i){var a,o,s=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,d=t.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===s?d[0]-p*u:"end"===s?d[1]+p*u:(d[0]+d[1])/2,iD(s)?e.labelOffset+l*u:0],h=t.get("nameRotate");null!=h&&(h=h*XA/180),iD(s)?a=ZA.innerTextLayout(e.rotation,null!=h?h:e.rotation,l):(a=eD(e.rotation,s,h||0,d),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var m=c.getFont(),g=t.get("nameTruncate",!0)||{},v=g.ellipsis,y=Object(_["retrieve"])(e.nameTruncateMaxWidth,g.maxWidth,o),b=new zs({x:f[0],y:f[1],rotation:a.rotation,silent:ZA.isLabelSilent(t),style:xc(c,{text:i,font:m,overflow:"truncate",width:y,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||a.textAlign,verticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(ig({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var S=ZA.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Vs(b).eventData=S}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function eD(e,t,n,r){var i,a,o=di(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return pi(o-XA/2)?(a=l?"bottom":"top",i="center"):pi(o-1.5*XA)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*XA&&o>XA/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:i,textVerticalAlign:a}}function tD(e,t,n){if(!Px(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],d=n[n.length-1],p=n[n.length-2];!1===r?(nD(a),nD(c)):rD(a,o)&&(r?(nD(o),nD(u)):(nD(a),nD(c))),!1===i?(nD(s),nD(d)):rD(l,s)&&(i?(nD(l),nD(p)):(nD(s),nD(d)))}}function nD(e){e&&(e.ignore=!0)}function rD(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=Te([]);return Ae(i,i,-e.rotation),n.applyTransform(Oe([],i,e.getLocalTransform())),r.applyTransform(Oe([],i,t.getLocalTransform())),n.intersect(r)}}function iD(e){return"middle"===e||"center"===e}function aD(e,t,n,r,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function _D(e){var t=gD(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=yD(n);null==a&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=o;null!=d.color&&(p=_["defaults"]({color:d.color},o));var f=_["merge"](_["clone"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:u},!1);if(_["isString"](l)){var h=f.name;f.name=l.replace("{value}",null!=h?h:"")}else _["isFunction"](l)&&(f.name=l(f.name,f));var m=new qc(f,null,this.ecModel);return _["mixin"](m,jx.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_["merge"]({lineStyle:{color:"#bbb"}},VD.axisLine),axisLabel:WD(VD.axisLabel,!1),axisTick:WD(VD.axisTick,!1),splitLine:WD(VD.splitLine,!0),splitArea:WD(VD.splitArea,!0),indicator:[]},t}(vd),$D=qD,KD=["axisLine","axisTickLabel","axisName"],QD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=_["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",r=new cD(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));_["each"](r,(function(e){_["each"](KD,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),o=i.getModel("lineStyle"),s=a.getModel("areaStyle"),l=i.get("show"),c=a.get("show"),u=o.get("color"),d=s.get("color"),p=_["isArray"](u)?u:[u],f=_["isArray"](d)?d:[d],h=[],m=[];if("circle"===r)for(var g=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;uk(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:a,originY:o,isAvailableBehavior:null})}if(n){var c=Math.abs(r),u=(r>0?1:-1)*(c>3?.4:c>1?.15:.05);uk(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!sk(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;uk(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}($);function uk(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(ve(r.event),dk(e,t,n,r,i))}function dk(e,t,n,r,i){i.isAvailableBehavior=Object(_["bind"])(pk,null,n,r),e.trigger(t,i)}function pk(e,t,n){var r=n[e];return!e||r&&(!Object(_["isString"])(r)||t.event[r+"Key"])}var fk=ck;function hk(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function mk(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var c=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(c-1),i.y-=(r-i.y)*(c-1),i.scaleX*=c,i.scaleY*=c,i.dirty()}var _k,gk={axisPointer:1,tooltip:1,brush:1};function vk(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!gk.hasOwnProperty(r.mainType)&&i&&i.model!==n}function yk(e){if(Object(_["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var bk={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"},Sk=Object(_["keys"])(bk),Ek={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xk=Object(_["keys"])(Ek),wk=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=yk(e);this._defsUsePending=[];var r=new jr;this._root=r;var i=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Dk(n,r,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,r,i,null,!1,!1),u=u.nextSibling;if(Nk(this._defs,this._defsUsePending),this._defsUsePending=[],a){var d=Pk(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=o&&null!=s&&(c=Gk(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var p=r;r=new jr,r.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return t.ignoreRootClip||null==o||null==s||r.setClipPath(new Cs({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:c,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=t;else{if(!i){var c=_k[s];if(c&&Object(_["hasOwn"])(_k,s)){o=c.call(this,e,t);var u=e.getAttribute("name");if(u){var d={name:u,namedFrom:null,svgNodeTagLower:s,el:o};n.push(d),"g"===s&&(l=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:o});t.add(o)}}var p=Tk[s];if(p&&Object(_["hasOwn"])(Tk,s)){var f=p.call(this,e),h=e.getAttribute("id");h&&(this._defs[h]=f)}}if(o&&o.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,o,n,l,i,a):3===m.nodeType&&a&&this._parseText(m,o),m=m.nextSibling}},e.prototype._parseText=function(e,t){var n=new ps({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Mk(t,n),Dk(e,n,this._defsUsePending,!1,!1),kk(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var o=n.getBoundingRect();return this._textX+=o.width,t.add(n),n},e.internalField=function(){_k={g:function(e,t){var n=new jr;return Mk(t,n),Dk(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Cs;return Mk(t,n),Dk(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Sm;return Mk(t,n),Dk(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new r_;return Mk(t,n),Dk(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new wm;return Mk(t,n),Dk(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=Ak(r));var i=new Qm({shape:{points:n||[]},silent:!0});return Mk(t,i),Dk(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=Ak(r));var i=new Jm({shape:{points:n||[]},silent:!0});return Mk(t,i),Dk(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new gs;return Mk(t,n),Dk(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new jr;return Mk(t,o),Dk(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",o=new jr;return Mk(t,o),Dk(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=e.getAttribute("d")||"",r=mm(n);return Mk(t,r),Dk(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),Tk={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new g_(t,n,r,i);return Ck(e,a),Ok(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new y_(t,n,r);return Ck(e,i),Ok(e,i),i}};function Ck(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function Ok(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};Uk(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function Mk(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(_["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function Ak(e){for(var t=Pk(e),n=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],l=Pk(o);switch(i=i||we(),s){case"translate":Me(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":De(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ae(i,i,-parseFloat(l[0])*Yk);break;case"skewX":var c=Math.tan(parseFloat(l[0])*Yk);Oe(i,[1,0,c,1,0,0],i);break;case"skewY":var u=Math.tan(parseFloat(l[0])*Yk);Oe(i,[1,u,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var Bk=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Uk(e,t,n){var r=e.getAttribute("style");if(r){var i;Bk.lastIndex=0;while(null!=(i=Bk.exec(r))){var a=i[1],o=Object(_["hasOwn"])(bk,a)?bk[a]:null;o&&(t[o]=i[2]);var s=Object(_["hasOwn"])(Ek,a)?Ek[a]:null;s&&(n[s]=i[2])}}}function Hk(e,t,n){for(var r=0;r0,m={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:h,isGeo:a,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=_["createHashMap"](),n=_["createHashMap"](),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!l&&s&&s.project,r=0;r=0)&&(p=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Sc(t,Ec(r),{labelFetcher:p,labelDataIndex:d,defaultText:n},f);var h=t.getTextContent();if(h&&(mL(h).ignore=h.ignore,t.textConfig&&o)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function SL(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):Vs(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function EL(e,t,n,r,i){e.data||ig({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function xL(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return Kl(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&nc(t,i,n),o}function wL(e,t,n){var r,i=[];function a(){r=[]}function o(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),_["each"](e,(function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Wh),AL=ML;function DL(e,t){var n={};return _["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var a,o="ec-"+e[0].getName(i),s=0,l=1/0,c=-1/0,u=n[o].length,d=0;d1?(f.width=p,f.height=p/y):(f.height=p,f.width=p*y),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var S=e.getBoxLayoutParams();S.aspect=y,f=ld(S,{width:g,height:v})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function GL(e,t){_["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var zL=function(){function e(){this.dimensions=YL}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var a=e.get("map"),o=new UL(a+i,a,_["extend"]({nameMap:e.get("nameMap")},r(e)));o.zoomLimit=e.get("scaleLimit"),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=HL,o.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),_["each"](i,(function(e,i){var a=_["map"](e,(function(e){return e.get("nameMap")})),o=new UL(i,i,_["extend"]({nameMap:_["mergeAll"](a)},r(e[0])));o.zoomLimit=_["retrieve"].apply(null,_["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(o),o.resize=HL,o.resize(e[0],t),_["each"](e,(function(e){e.coordinateSystem=o,GL(o,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=_["createHashMap"](),o=0;o=0;o--){var s=r[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(s)}}function rI(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){lI(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=cI(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function iI(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function aI(e){return arguments.length?e:hI}function oI(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function sI(e,t){return ld(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lI(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function cI(e,t,n,r){if(t){var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,c=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;while(s=uI(s),a=dI(a),s&&a){i=uI(i),o=dI(o),i.hierNode.ancestor=e;var p=s.hierNode.prelim+d-a.hierNode.prelim-c+r(s,a);p>0&&(fI(pI(s,e,n),e,p),c+=p,l+=p),d+=s.hierNode.modifier,c+=a.hierNode.modifier,l+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!uI(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),a&&!dI(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=c-u,n=e)}return n}function uI(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function dI(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function pI(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function fI(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function hI(e,t){return e.parentNode===t.parentNode?1:2}var mI=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),_I=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mI},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(a[0],a[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=ti(t.forkPosition,1),d=[];d[l]=i[l],d[c]=i[c]+(o[c]-i[c])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[l]=a[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var p=1;py.x,E||(S-=Math.PI));var w=E?"left":"right",T=s.getModel("label"),C=T.get("rotate"),O=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:null==C?-S:O,origin:"center"}),M.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?_["concatArray"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===A?o.getAncestorsIndices():"descendant"===A?o.getDescendantIndices():null;D&&(Vs(n).focus=D),bI(i,o,u,n,h,f,m,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===Zs||Sl(n.__edge,t)}})}function bI(e,t,n,r,i,a,o,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),m=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new l_({shape:wI(u,d,p,i,i)})),uc(m,{shape:wI(u,d,p,a,o)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var g=t.children,v=[],y=0;yt&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=n.getData().tree.root,i=e.targetNode;if(_["isString"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(null!=a&&(i=r.getNodeById(a)))return{node:i}}}function HI(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function GI(e,t){var n=HI(e);return _["indexOf"](n,t)>=0}function zI(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var VI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return h(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new qc(n,this,this.ecModel),i=BI.createTree(t,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var o=0;i.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;while(a&&a!==i)s=a.parentNode.name+"."+s,a=a.parentNode;return _h("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=zI(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Wh),WI=VI;function qI(e,t,n){var r,i=[e],a=[];while(r=i.pop())if(a.push(r),r.isExpand){var o=r.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function KI(e,t){e.eachSeriesByType("tree",(function(e){QI(e,t)}))}function QI(e,t){var n=sI(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,a=0,o=null;"radial"===r?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=aI((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,a=n.height,o=aI());var s=e.getData().tree.root,l=s.children[0];if(l){nI(s),qI(l,rI,o),s.hierNode.modifier=-l.hierNode.prelim,$I(l,iI);var c=l,u=l,d=l;$I(l,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)}));var p=c===u?1:o(c,u)/2,f=p-c.getLayout().x,h=0,m=0,_=0,g=0;if("radial"===r)h=i/(u.getLayout().x+p+f),m=a/(d.depth-1||1),$I(l,(function(e){_=(e.getLayout().x+f)*h,g=(e.depth-1)*m;var t=oI(_,g);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:g},!0)}));else{var v=e.getOrient();"RL"===v||"LR"===v?(m=a/(u.getLayout().x+p+f),h=i/(d.depth-1||1),$I(l,(function(e){g=(e.getLayout().x+f)*m,_="LR"===v?(e.depth-1)*h:i-(e.depth-1)*h,e.setLayout({x:_,y:g},!0)}))):"TB"!==v&&"BT"!==v||(h=i/(u.getLayout().x+p+f),m=a/(d.depth-1||1),$I(l,(function(e){_=(e.getLayout().x+f)*h,g="TB"===v?(e.depth-1)*m:a-(e.depth-1)*m,e.setLayout({x:_,y:g},!0)})))}}}function XI(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(_["extend"])(i,r)}))}))}function ZI(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,i=QL(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function JI(e){e.registerChartView(TI),e.registerSeriesModel(WI),e.registerLayout(KI),e.registerVisual(XI),ZI(e)}var eN=["treemapZoomToNode","treemapRender","treemapMove"];function tN(e){for(var t=0;t1)n=n.parentNode;var i=Wd(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var rN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return h(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};iN(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},a=new qc({itemStyle:i},this,t);r=e.levels=aN(r,t);var o=_["map"](r||[],(function(e){return new qc(e,a,t)}),this),s=BI.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?o[n.depth]:null;return e.parentModel=r||a,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return _h("nameValue",{name:a,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=zI(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},_["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=_["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){nN(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Wh);function iN(e){var t=0;_["each"](e.children,(function(e){iN(e);var n=e.value;_["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;_["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),_["isArray"](e.value)?e.value[0]=n:e.value=n}function aN(e,t){var n=Mi(t.get("color")),r=Mi(t.get(["aria","decal","decals"]));if(n){var i,a;e=e||[],_["each"](e,(function(e){var t=new qc(e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(a=!0)}));var o=e[0]||(e[0]={});return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var oN=rN,sN=8,lN=8,cN=5,uN=function(){function e(e){this.group=new jr,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),i.get("show")&&n){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,o,s,l,c,r),cd(a,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Hi(r.getModel().get("name"),""),a=n.getTextRect(i),o=Math.max(a.width+2*sN,t.emptyItemWidth);t.totalWidth+=o+lN,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=sd(t.pos,t.box),d=t.totalWidth,p=t.renderList,f=r.getModel("itemStyle").getItemStyle(),h=p.length-1;h>=0;h--){var m=p[h],g=m.node,v=m.width,y=m.text;d>u.width&&(d-=v-l,v=l,y=null);var b=new Qm({shape:{points:dN(s,0,v,c,h===p.length-1,0===h)},style:Object(_["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new zs({style:xc(i,{text:y})}),textConfig:{position:"inside"},z2:1e4*nl,onclick:Object(_["curry"])(o,g)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=xc(a,{text:y}),b.ensureState("emphasis").style=f,Kl(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),pN(b,e,g),s+=v+lN}},e.prototype.remove=function(){this.group.removeAll()},e}();function dN(e,t,n,r,i,a){var o=[[i?e:e-cN,t],[e+n,t],[e+n,t+r],[i?e:e-cN,t+r]];return!a&&o.splice(2,0,[e+n+cN,t+r/2]),!i&&o.push([e,t+r/2]),o}function pN(e,t,n){Vs(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&zI(n,t)}}var fN=uN,hN=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;rvN||Math.abs(e.dy)>vN)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var a=new ze(i.x,i.y,i.width,i.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=we();Me(s,s,[-t,-n]),De(s,s,[e.scale,e.scale]),Me(s,s,[t,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&td(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new fN(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(GI(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=MN(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:r,offsetX:a[0],offsetY:a[1]}}}),this),n},t.type="treemap",t}(mg);function MN(){return{nodeGroup:[],background:[],content:[]}}function AN(e,t,n,r,i,a,o,s,l,c){if(o){var u=o.getLayout(),d=e.getData(),p=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),u&&u.isInView){var f=u.width,h=u.height,m=u.borderWidth,g=u.invisible,v=o.getRawIndex(),y=s&&s.getRawIndex(),b=o.viewChildren,S=u.upperHeight,E=b&&b.length,x=p.getModel("itemStyle"),w=p.getModel(["emphasis","itemStyle"]),T=p.getModel(["blur","itemStyle"]),C=p.getModel(["select","itemStyle"]),O=x.get("borderRadius")||0,M=U("nodeGroup",_N);if(M){if(l.add(M),M.x=u.x||0,M.y=u.y||0,M.markRedraw(),CN(M).nodeWidth=f,CN(M).nodeHeight=h,u.isAboveViewRoot)return M;var A=U("background",gN,c,EN);A&&P(M,A,E&&u.upperLabelHeight);var D=p.getModel("emphasis"),k=D.get("focus"),L=D.get("blurScope"),I=D.get("disabled"),N="ancestor"===k?o.getAncestorsIndices():"descendant"===k?o.getDescendantIndices():k;if(E)tc(M)&&ec(M,!1),A&&(ec(A,!I),d.setItemGraphicEl(o.dataIndex,A),Ql(A,N,L));else{var R=U("content",gN,c,xN);R&&F(M,R),A.disableMorphing=!0,A&&tc(A)&&ec(A,!1),ec(M,!I),d.setItemGraphicEl(o.dataIndex,M),Ql(M,N,L)}return M}}}function P(t,n,r){var i=Vs(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:h,r:O}),g)Y(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=TN(x);l.fill=s;var c=wN(w);c.fill=w.get("borderColor");var u=wN(T);u.fill=T.get("borderColor");var d=wN(C);if(d.fill=C.get("borderColor"),r){var p=f-2*m;j(n,s,a.opacity,{x:m,y:0,width:p,height:S})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,Ol(n)}t.add(n)}function F(t,n){var r=Vs(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(f-2*m,0),a=Math.max(h-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:a,r:O}),g)Y(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=TN(x);c.fill=l,c.decal=s.decal;var u=wN(w),d=wN(T),p=wN(C);j(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=p,Ol(n)}t.add(n)}function Y(e){!e.invisible&&a.push(e)}function j(t,n,r,i){var a=p.getModel(i?bN:yN),s=Hi(p.get("name"),null),l=a.getShallow("show");Sc(t,Ec(p,i?bN:yN),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var c=t.getTextContent();if(c){var d=c.style,f=Object(_["normalizeCssArray"])(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-f[1]-f[3],0),n=Math.max((i?i.height:t.shape.height)-f[0]-f[2],0);d.width===e&&d.height===n||c.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",B(d,i,u);var h=c.getState("emphasis");B(h?h.style:null,i,u)}}function B(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+i:i}}function U(e,r,a,o){var s=null!=y&&n[e][y],l=i[e];return s?(n[e][y]=null,H(l,s)):g||(s=new r,s instanceof to&&(s.z2=DN(a,o)),G(l,s)),t[e][v]=s}function H(e,t){var n=e[v]={};t instanceof _N?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(_["extend"])({},t.shape)}function G(e,t){var n=e[v]={},a=o.parentNode,s=t instanceof jr;if(a&&(!r||"drillDown"===r.direction)){var l=0,c=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function DN(e,t){return e*SN+t}var kN=ON,LN=_["each"],IN=_["isObject"],NN=-1,RN=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=_["clone"](t);this.type=r,this.mappingMethod=n,this._normalizeData=qN[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(YN(i),PN(i)):"category"===n?i.categories?FN(i):YN(i,!0):(_["assert"]("linear"!==n||i.dataExtent),YN(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return _["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return _["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){_["isObject"](e)?_["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=_["isArray"](t)?[]:_["isObject"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o})),a},e.retrieveVisuals=function(t){var n,r={};return t&&LN(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(_["isArray"](e))e=e.slice();else{if(!IN(e))return[];var t=[];LN(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)null==r[a]&&(delete n[t[a]],t.pop())}function YN(e,t){var n=e.visual,r=[];_["isObject"](n)?LN(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),WN(e,r)}function jN(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:zN([0,1])}}function BN(e){var t=this.option.visual;return t[Math.round(ei(e,[0,1],[0,t.length-1],!0))]||{}}function UN(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function HN(e){var t=this.option.visual;return t[this.option.loop&&e!==NN?e%t.length:e]}function GN(){return this.option.visual[0]}function zN(e){return{linear:function(t){return ei(t,e,this.option.visual,!0)},category:HN,piecewise:function(t,n){var r=VN.call(this,n);return null==r&&(r=ei(t,e,this.option.visual,!0)),r},fixed:GN}}function VN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=RN.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function WN(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=_["map"](t,(function(e){var t=en["parse"](e);return t||[0,0,0,1]}))),t}var qN={linear:function(e){return ei(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=RN.findPieceIndex(e,t,!0);if(null!=n)return ei(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?NN:t},fixed:_["noop"]};function $N(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var a=oR(i,c,e,t,h,r);JN(e,a,n,r)}}))}else s=tR(c),u.fill=s}}function eR(e,t,n){var r=Object(_["extend"])({},t),i=n.designatedVisualItemStyle;return Object(_["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var a=e.get(n);i[n]=null,null!=a&&(r[n]=a)})),r}function tR(e){var t=rR(e,"color");if(t){var n=rR(e,"colorAlpha"),r=rR(e,"colorSaturation");return r&&(t=Object(en["modifyHSL"])(t,null,null,r)),n&&(t=Object(en["modifyAlpha"])(t,n)),t}}function nR(e,t){return null!=t?Object(en["modifyHSL"])(t,null,null,e):null}function rR(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function iR(e,t,n,r,i,a){if(a&&a.length){var o=aR(t,"color")||null!=i.color&&"none"!==i.color&&(aR(t,"colorAlpha")||aR(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new KN(d);return XN(p).drColorMappingBy=u,p}}}function aR(e,t){var n=e.get(t);return Object(_["isArray"])(n)&&n.length?{name:t,range:n}:null}function oR(e,t,n,r,i,a){var o=Object(_["extend"])({},t);if(i){var s=i.type,l="color"===s&&XN(i).drColorMappingBy,c="index"===l?r:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(c)}return o}var sR=Math.max,lR=Math.min,cR=_["retrieve"],uR=_["each"],dR=["itemStyle","borderWidth"],pR=["itemStyle","gapWidth"],fR=["upperLabel","show"],hR=["upperLabel","height"],mR={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),a=n.getHeight(),o=e.option,s=ld(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],c=ti(cR(s.width,l[0]),i),u=ti(cR(s.height,l[1]),a),d=r&&r.type,p=["treemapZoomToNode","treemapRootToNode"],f=UI(r,p,e),h="treemapRender"===d||"treemapMove"===d?r.rootRect:null,m=e.getViewRoot(),g=HI(m);if("treemapMove"!==d){var v="treemapZoomToNode"===d?xR(e,f,m,c,u):h?[h.width,h.height]:[c,u],y=o.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var b={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var S={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};m.setLayout(S),_R(m,b,!1,0),S=m.getLayout(),uR(g,(function(e,t){var n=(g[t+1]||m).getValue();e.setLayout(_["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},S))}))}var E=e.getData().tree.root;E.setLayout(wR(s,h,f),!0),e.setLayoutInfo(s),TR(E,new ze(-s.x,-s.y,i,a),g,m,0)}};function _R(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(dR),c=s.get(pR)/2,u=CR(s),d=Math.max(l,u),p=l-c,f=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),i=sR(i-2*p,0),a=sR(a-p-f,0);var h=i*a,m=gR(e,s,h,t,n,r);if(m.length){var _={x:p,y:f,width:i,height:a},g=lR(i,a),v=1/0,y=[];y.area=0;for(var b=0,S=m.length;b=0;l--){var c=i["asc"===r?o-l-1:l].getValue();c/n*to[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:r,dataExtent:o}}function SR(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;ar&&(r=o));var l=e.area*e.area,c=t*t*n;return l?sR(c*r/l,l/(c*i)):1/0}function ER(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],c=n[s[a]],u=t?e.area/t:0;(i||u>n[l[o]])&&(u=n[l[o]]);for(var d=0,p=e.length;dui&&(c=ui),o=a}cr&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o0&&(v[0]=-v[0],v[1]=-v[1]);var b=g[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var S=-Math.atan2(g[1],g[0]);c[0].8?"left":u[0]<-.8?"right":"center",p=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":r.x=-u[0]*h+l[0],r.y=-u[1]*m+l[1],d=u[0]>.8?"right":u[0]<-.8?"left":"center",p=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=h*b+l[0],r.y=l[1]+E,d=g[0]<0?"right":"left",r.originX=-h*b,r.originY=-E;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=y[0],r.y=y[1]+E,d="center",r.originY=-E;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-h*b+c[0],r.y=c[1]+E,d=g[0]>=0?"right":"left",r.originX=h*b,r.originY=-E;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||d})}}}function x(e,t){var n=e.__specifiedRotation;if(null==n){var r=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(jr),vP=gP,yP=function(){function e(e){this.group=new jr,this._LineCtor=e||vP}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=SP(e);e.diff(i).add((function(n){t._doAdd(e,n,a)})).update((function(n,r){t._doUpdate(i,e,r,n,a)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=SP(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||bP(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r0}function SP(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Ec(t)}}function EP(e){return isNaN(e[0])||isNaN(e[1])}function xP(e){return e&&!EP(e[0])&&!EP(e[1])}var wP=yP,TP=[],CP=[],OP=[],MP=Gt,AP=Y,DP=Math.abs;function kP(e,t,n){for(var r,i=e[0],a=e[1],o=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){TP[0]=MP(i[0],a[0],o[0],u),TP[1]=MP(i[1],a[1],o[1],u);var d=DP(AP(TP,t)-l);d=0?r+=c:r-=c:h>=0?r-=c:r+=c}return r}function LP(e,t){var n=[],r=qt,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[S(l[0]),S(l[1])],l[2]&&l.__original.push(S(l[2])));var d=l.__original;if(null!=l[2]){if(b(i[0],d[0]),b(i[1],d[2]),b(i[2],d[1]),c&&"none"!==c){var p=qR(e.node1),f=kP(i,d[0],p*t);r(i[0][0],i[1][0],i[2][0],f,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],f,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&"none"!==u){p=qR(e.node2),f=kP(i,d[1],p*t);r(i[0][0],i[1][0],i[2][0],f,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],f,n),i[1][1]=n[1],i[2][1]=n[2]}b(l[0],i[0]),b(l[1],i[2]),b(l[2],i[1])}else{if(b(a[0],d[0]),b(a[1],d[1]),T(o,a[1],a[0]),N(o,o),c&&"none"!==c){p=qR(e.node1);w(a[0],a[0],o,p*t)}if(u&&"none"!==u){p=qR(e.node2);w(a[1],a[1],o,-p*t)}b(l[0],a[0]),b(l[1],a[1])}}))}function IP(e){return"view"===e.type}var NP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(e,t){var n=new _O,r=new wP,i=this.group;this._controller=new fk(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(IP(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):uc(s,l,e)}LP(e.getGraph(),WR(e));var c=e.getData();a.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p);var f=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),a=t.getModel();if(i){i.off("drag").off("dragend");var o=a.get("draggable");o&&i.on("drag",(function(a){switch(f){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,p),d.setFixed(n),c.setItemLayout(n,[i.x,i.y]);break;case"circular":c.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),QR(e,"symbolSize",t,[a.offsetX,a.offsetY]),r.updateLayout(e);break;case"none":default:c.setItemLayout(n,[i.x,i.y]),zR(e.getGraph(),e),r.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),i.setDraggable(o,!!a.get("cursor"));var s=a.get(["emphasis","focus"]);"adjacency"===s&&(Vs(i).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Vs(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var h="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode((function(e){ZR(e,h,m,_)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!vk(t,n,e)})),IP(e.coordinateSystem)?(i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){hk(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){mk(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),LP(e.getGraph(),WR(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=WR(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){LP(e.getGraph(),WR(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(mg),RP=NP;function PP(e){return"_EC_"+e}var FP=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[PP(e)]){var r=new YP(e,t);return r.hostGraph=this,this.nodes.push(r),n[PP(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[PP(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(_["isNumber"](e)&&(e=this.nodes[e]),_["isNumber"](t)&&(t=this.nodes[t]),e instanceof YP||(e=r[PP(e)]),t instanceof YP||(t=r[PP(t)]),e&&t){var a=e.id+"-"+t.id,o=new jP(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof YP&&(e=e.id),t instanceof YP&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof YP||(t=this._nodesMap[PP(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a=0&&n.node2.dataIndex>=0}));for(i=0,a=r.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}_["mixin"](YP,BP("hostGraph","data")),_["mixin"](jP,BP("hostGraph","edgeData"));var UP=FP;function HP(e,t,n,r,i){for(var a=new UP(r),o=0;o "+p)),c++)}var f,h=n.get("coordinateSystem");if("cartesian2d"===h||"polar"===h)f=hE(e,n);else{var m=mp.get(h),g=m&&m.dimensions||[];_["indexOf"](g,"value")<0&&g.concat(["value"]);var v=XS(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;f=new KS(v,n),f.initData(e)}var y=new KS(["value"],n);return y.initData(l,s),i&&i(f,y),PI({mainData:f,struct:a,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var GP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return h(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new aA(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Ai(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){BR(this);var a=HP(r,n,this,!0,o);return _["each"](a.edges,(function(e){UR(e.node1,e.node2,this,e.dataIndex)}),this),a.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=qc.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}function a(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=a,e.getModel=r,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),_h("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var c=Lh({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=_["map"](this.option.categories||[],(function(e){return null!=e.value?e:_["extend"]({value:0},e)})),t=new KS(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Wh),zP=GP,VP={type:"graphRoam",event:"graphRoam",update:"none"};function WP(e){e.registerChartView(RP),e.registerSeriesModel(zP),e.registerProcessor(MR),e.registerVisual(AR),e.registerVisual(kR),e.registerLayout(VR),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,JR),e.registerLayout(nP),e.registerCoordinateSystem("graphView",{dimensions:PL.dimensions,create:iP}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},_["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},_["noop"]),e.registerAction(VP,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,i=QL(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var qP=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),$P=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return h(t,e),t.prototype.getDefaultShape=function(){return new qP},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),l=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,l)},t}(cs),KP=$P;function QP(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i),o=ti(n[0],t.getWidth()),s=ti(n[1],t.getHeight()),l=ti(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function XP(e,t){var n=null==e?"":e+"";return t&&(Object(_["isString"])(t)?n=t.replace("{value}",n):Object(_["isFunction"])(t)&&(n=t(e))),n}var ZP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=QP(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),d=u?uM:Hm,p=c.get("show"),f=c.getModel("lineStyle"),h=f.get("width"),m=[s,l];Ro(m,!o),s=m[0],l=m[1];for(var g=l-s,v=s,y=[],b=0;p&&b=e&&(0===t?0:r[t-1][0])Math.PI/2&&(j+=Math.PI)):"tangential"===Y?j=-T-Math.PI/2:Object(_["isNumber"])(Y)&&(j=Y*Math.PI/180),0===j?d.add(new zs({style:xc(b,{text:N,x:P,y:F,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:R}),silent:!0})):d.add(new zs({style:xc(b,{text:N,x:P,y:F,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:P,originY:F,rotation:j}))}if(y.get("show")&&k!==S){L=y.get("distance");L=L?L+l:l;for(var B=0;B<=E;B++){c=Math.cos(T),u=Math.sin(T);var U=new r_({shape:{x1:c*(h-L)+p,y1:u*(h-L)+f,x2:c*(h-w-L)+p,y2:u*(h-w-L)+f},silent:!0,style:A});"auto"===A.stroke&&U.setStyle({stroke:r((k+B/E)/S)}),d.add(U),T+=O}T-=O}else T+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,l){var c=this.group,u=this._data,d=this._progressEls,p=[],f=e.get(["pointer","show"]),h=e.getModel("progress"),m=h.get("show"),g=e.getData(),v=g.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),S=[y,b],E=[a,o];function x(t,n){var r,a=g.getItemModel(t),o=a.getModel("pointer"),s=ti(o.get("width"),i.r),l=ti(o.get("length"),i.r),c=e.get(["pointer","icon"]),u=o.get("offsetCenter"),d=ti(u[0],i.r),p=ti(u[1],i.r),f=o.get("keepAspect");return r=c?Mv(c,d-s/2,p-l,s,l,null,f):new KP({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:p}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function w(e,t){var n=h.get("roundCap"),r=n?uM:Hm,o=h.get("overlap"),c=o?h.get("width"):l/g.count(),u=o?i.r-c:i.r-(e+1)*c,d=o?i.r:i.r-e*c,p=new r({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:u,r:d}});return o&&(p.z2=b-g.get(v,e)%b),p}(m||f)&&(g.diff(u).add((function(t){var n=g.get(v,t);if(f){var r=x(t,a);dc(r,{rotation:-((isNaN(+n)?E[0]:ei(n,S,E,!0))+Math.PI/2)},e),c.add(r),g.setItemGraphicEl(t,r)}if(m){var i=w(t,a),o=h.get("clip");dc(i,{shape:{endAngle:ei(n,S,E,o)}},e),c.add(i),Ws(e.seriesIndex,g.dataType,t,i),p[t]=i}})).update((function(t,n){var r=g.get(v,t);if(f){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=x(t,o);s.rotation=o,uc(s,{rotation:-((isNaN(+r)?E[0]:ei(r,S,E,!0))+Math.PI/2)},e),c.add(s),g.setItemGraphicEl(t,s)}if(m){var l=d[n],_=l?l.shape.endAngle:a,y=w(t,_),b=h.get("clip");uc(y,{shape:{endAngle:ei(r,S,E,b)}},e),c.add(y),Ws(e.seriesIndex,g.dataType,t,y),p[t]=y}})).execute(),g.each((function(e){var t=g.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled");if(f){var s=g.getItemGraphicEl(e),l=g.getItemVisual(e,"style"),c=l.fill;if(s instanceof gs){var u=s.style;s.useStyle(Object(_["extend"])({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(ei(g.get(v,e),S,[0,1],!0))),s.z2EmphasisLift=0,Jl(s,t),Kl(s,i,a,o)}if(m){var d=p[e];d.useStyle(g.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Jl(d,t),Kl(d,i,a,o)}})),this._progressEls=p)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),a=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=Mv(a,t.cx-i/2+ti(o[0],t.r),t.cy-i/2+ti(o[1],t.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new jr,d=[],p=[],f=e.isAnimationEnabled(),h=e.get(["pointer","showAbove"]);o.diff(this._data).add((function(e){d[e]=new zs({silent:!0}),p[e]=new zs({silent:!0})})).update((function(e,t){d[e]=a._titleEls[t],p[e]=a._detailEls[t]})).execute(),o.each((function(t){var n=o.getItemModel(t),a=o.get(s,t),m=new jr,_=r(ei(a,[l,c],[0,1],!0)),g=n.getModel("title");if(g.get("show")){var v=g.get("offsetCenter"),y=i.cx+ti(v[0],i.r),b=i.cy+ti(v[1],i.r),S=d[t];S.attr({z2:h?0:2,style:xc(g,{x:y,y:b,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:_})}),m.add(S)}var E=n.getModel("detail");if(E.get("show")){var x=E.get("offsetCenter"),w=i.cx+ti(x[0],i.r),T=i.cy+ti(x[1],i.r),C=ti(E.get("width"),i.r),O=ti(E.get("height"),i.r),M=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:_,A=(S=p[t],E.get("formatter"));S.attr({z2:h?0:2,style:xc(E,{x:w,y:T,text:XP(a,A),width:isNaN(C)?null:C,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:M})}),Ic(S,{normal:E},a,(function(e){return XP(e,A)})),f&&Nc(S,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return XP(o?o.interpolatedValue:a,A)}}),m.add(S)}u.add(m)})),this.group.add(u),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(mg),JP=ZP,eF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return h(t,e),t.prototype.getInitialData=function(e,t){return rA(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Wh),tF=eF;function nF(e){e.registerChartView(JP),e.registerSeriesModel(tF)}var rF=["itemStyle","opacity"],iF=function(e){function t(t,n){var r=e.call(this)||this,i=r,a=new Jm,o=new zs;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return h(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel("emphasis"),l=a.get(rF);l=null==l?1:l,n||_c(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:o.points}),r.style.opacity=0,dc(r,{style:{opacity:l}},i,t)):uc(r,{style:{opacity:l},shape:{points:o.points}},i,t),Jl(r,a),this._updateLabel(e,t),Kl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;Sc(i,Ec(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var d=l.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ne(d[0][0],d[0][1]):null},uc(i,{style:{x:l.x,y:l.y}},a,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),eT(n,tT(o),{stroke:u})},t}(Qm),aF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return h(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add((function(e){var t=new iF(r,e);r.setItemGraphicEl(e,t),a.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);mc(n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(mg),oF=aF,sF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new aA(_["bind"](this.getData,this),_["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return rA(this,{coordDimensions:["value"],encodeDefaulter:_["curry"](Rd,this)})},t.prototype._defaultLabelLine=function(e){Ai(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Wh),lF=sF;function cF(e,t){return ld(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uF(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],a="ascending"===t,o=0,s=e.count();oIF)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&PF(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function PF(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var FF=NF,YF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&_["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){_["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=_["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);_["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(vd),jF=YF,BF=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.axisIndex=a,o}return h(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Ow),UF=BF;function HF(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(null!=i&&(i=zF(i,[0,o])),null!=a&&(a=Math.max(a,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=zF(s,[0,o]),i=a=zF(s,[i,a]),r=0}t[0]=zF(t[0],n),t[1]=zF(t[1],n);var l=GF(t,r);t[r]+=e;var c,u=i||0,d=n.slice();return l.sign<0?d[0]+=u:d[1]-=u,t[r]=zF(t[r],d),c=GF(t,r),null!=i&&(c.sign!==l.sign||c.spana&&(t[1-r]=t[r]+c.sign*a),t}function GF(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function zF(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var VF=_["each"],WF=Math.min,qF=Math.max,$F=Math.floor,KF=Math.ceil,QF=ni,XF=Math.PI,ZF=function(){function e(e,t,n){this.type="parallel",this._axesMap=_["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;VF(r,(function(e,n){var r=i[n],a=t.getComponent("parallelAxis",r),o=this._axesMap.set(e,new UF(e,Ax(a),[0,0],a.get("type"),r)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();VF(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),Mx(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=ld(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],a=t.get("layout"),o="horizontal"===a?0:1,s=n[i[o]],l=[0,s],c=this.dimensions.length,u=JF(t.get("axisExpandWidth"),l),d=JF(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,f=t.get("axisExpandWindow");if(f)e=JF(f[1]-f[0],l),f[1]=f[0]+e;else{e=JF(u*(d-1),l);var h=t.get("axisExpandCenter")||$F(c/2);f=[u*h-e/2],f[1]=f[0]+e}var m=(s-e)/(c-d);m<3&&(m=0);var _=[$F(QF(f[0]/u,1))+1,KF(QF(f[1]/u,1))-1],g=m/u*f[0];return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:_,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),VF(n,(function(t,n){var a=(r.axisExpandable?tY:eY)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:XF/2,vertical:0},l=[o[i].x+e.x,o[i].y+e.y],c=s[i],u=we();Ae(u,u,c),Me(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,a=this.dimensions,o=[],s=[];_["each"](a,(function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;ci*(1-u[0])?(l="jump",o=s-i*(1-u[2])):(o=s-i*u[1])>=0&&(o=s-i*(1-u[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?HF(o,r,a,"all"):l="none";else{var p=r[1]-r[0],f=a[1]*s/p;r=[qF(0,f-p/2)],r[1]=WF(a[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},e}();function JF(e,t){return WF(qF(e,t[0]),t[1])}function eY(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function tY(e,t){var n,r,i=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=0;n--)ri(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;rfY}function LY(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function IY(e,t,n,r){var i=new jr;return i.add(new Cs({name:"main",style:FY(n),silent:!0,draggable:!0,cursor:"move",drift:Object(_["curry"])(HY,e,t,i,["n","s","w","e"]),ondragend:Object(_["curry"])(DY,t,{isEnd:!0})})),Object(_["each"])(r,(function(n){i.add(new Cs({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(_["curry"])(HY,e,t,i,n),ondragend:Object(_["curry"])(DY,t,{isEnd:!0})}))})),i}function NY(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=uY(i,hY),o=n[0][0],s=n[1][0],l=o-i/2,c=s-i/2,u=n[0][1],d=n[1][1],p=u-a+i/2,f=d-a+i/2,h=u-o,m=d-s,_=h+i,g=m+i;PY(e,t,"main",o,s,h,m),r.transformable&&(PY(e,t,"w",l,c,a,g),PY(e,t,"e",p,c,a,g),PY(e,t,"n",l,c,_,a),PY(e,t,"s",l,f,_,a),PY(e,t,"nw",l,c,a,a),PY(e,t,"ne",p,c,a,a),PY(e,t,"sw",l,f,a,a),PY(e,t,"se",p,f,a,a))}function RY(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(FY(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(_["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),a=1===n.length?BY(e,n[0]):UY(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?gY[a]+"-resize":null})}))}function PY(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(WY(VY(e,t,[[r,i],[r+a,i+o]])))}function FY(e){return Object(_["defaults"])({strokeNoScale:!0},e.brushStyle)}function YY(e,t,n,r){var i=[cY(e,n),cY(t,r)],a=[uY(e,n),uY(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function jY(e){return V_(e.group)}function BY(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=q_(n[t],jY(e));return r[i]}function UY(e,t){var n=[BY(e,t[0]),BY(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function HY(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),l=zY(t,i,a);Object(_["each"])(r,(function(e){var t=_Y[e];s[t[0]][t[1]]+=l[t[0]]})),o.range=e.fromRectRange(YY(s[0][0],s[1][0],s[0][1],s[1][1])),TY(t,n),DY(t,{isEnd:!1})}function GY(e,t,n,r){var i=t.__brushOption.range,a=zY(e,n,r);Object(_["each"])(i,(function(e){e[0]+=a[0],e[1]+=a[1]})),TY(e,t),DY(e,{isEnd:!1})}function zY(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function VY(e,t,n){var r=MY(e,t);return r&&r!==lY?r.clipPath(n,e._transform):Object(_["clone"])(n)}function WY(e){var t=cY(e[0][0],e[1][0]),n=cY(e[0][1],e[1][1]),r=uY(e[0][0],e[1][0]),i=uY(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function qY(e,t,n){if(e._brushType&&!ej(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=OY(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var tj={lineX:nj(0),lineY:nj(1),rect:{createCover:function(e,t){function n(e){return e}return IY({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=LY(e);return YY(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){NY(e,t,n,r)},updateCommon:RY,contain:KY},polygon:{createCover:function(e,t){var n=new jr;return n.add(new Jm({name:"main",style:FY(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Qm({name:"main",draggable:!0,drift:Object(_["curry"])(GY,e,t),ondragend:Object(_["curry"])(DY,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:VY(e,t,n)})},updateCommon:RY,contain:KY}};function nj(e){return{createCover:function(t,n){return IY({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=LY(t),r=cY(n[0][e],n[1][e]),i=uY(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var a,o=MY(t,n);if(o!==lY&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,a];e&&l.reverse(),NY(t,n,l,i)},updateCommon:RY,contain:KY}}var rj=bY;function ij(e){return e=sj(e),function(t){return X_(t,e)}}function aj(e,t){return e=sj(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function oj(e,t,n){var r=sj(e);return function(e,i){return r.contain(i[0],i[1])&&!vk(e,t,n)}}function sj(e){return ze.create(e)}var lj=["axisLine","axisTickLabel","axisName"],cj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new rj(n.getZr())).on("brush",_["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!uj(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new jr,this.group.add(this._axisGroup),e.get("show")){var a=pj(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=o.getAxisLayout(c),d=_["extend"]({strokeContainThreshold:l},u),p=new cD(e,d);_["each"](lj,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,s,e,a,l,n),Q_(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),c=ze.create({x:o[0],y:-i/2,width:s,height:i});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ij(c),isTargetByCursor:oj(c,a,r),getLinearBrushOtherExtent:aj(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(dj(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=_["map"](t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}($h);function uj(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function dj(e){var t=e.axis;return _["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function pj(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var fj=cj,hj={type:"axisAreaSelect",event:"axisAreaSelected"};function mj(e){e.registerAction(hj,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var _j={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function gj(e){e.registerComponentView(FF),e.registerComponentModel(jF),e.registerCoordinateSystem("parallel",aY),e.registerPreprocessor(DF),e.registerComponentModel(sY),e.registerComponentView(fj),DA(e,"parallel",sY,_j),mj(e)}function vj(e){mS(gj),e.registerChartView(EF),e.registerSeriesModel(CF),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,AF)}var yj=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),bj=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.getDefaultShape=function(){return new yj},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Dl(this)},t.prototype.downplay=function(){kl(this)},t}(cs),Sj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return h(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this.group,o=e.layoutInfo,s=o.width,l=o.height,c=e.getData(),u=e.getData("edge"),d=e.get("orient");this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,i.eachEdge((function(t){var n=new bj,r=Vs(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,o,c,p,f,h,m,g,v=t.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),S=t.node1.getLayout(),E=t.node1.getModel(),x=E.get("localX"),w=E.get("localY"),T=t.node2.getLayout(),C=t.node2.getModel(),O=C.get("localX"),M=C.get("localY"),A=t.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=d,"vertical"===d?(i=(null!=x?x*s:S.x)+A.sy,o=(null!=w?w*l:S.y)+S.dy,c=(null!=O?O*s:T.x)+A.ty,p=null!=M?M*l:T.y,f=i,h=o*(1-b)+p*b,m=c,g=o*b+p*(1-b)):(i=(null!=x?x*s:S.x)+S.dx,o=(null!=w?w*l:S.y)+A.sy,c=null!=O?O*s:T.x,p=(null!=M?M*l:T.y)+A.ty,f=i*(1-b)+c*b,h=o,m=i*b+c*(1-b),g=p),n.setShape({x1:i,y1:o,x2:c,y2:p,cpx1:f,cpy1:h,cpx2:m,cpy2:g}),n.useStyle(y.getItemStyle()),Ej(n.style,d,t);var D=""+v.get("value"),k=Ec(v,"edgeLabel");Sc(n,k,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,"edge",i,Object(_["retrieve3"])(a,k.normal&&k.normal.get("formatter"),D),o)}},labelDataIndex:t.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var L=v.getModel("emphasis");Jl(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return Ej(n,d,t),n})),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var I=L.get("focus");Kl(n,"adjacency"===I?t.getAdjacentDataIndices():"trajectory"===I?t.getTrajectoryDataIndices():I,L.get("blurScope"),L.get("disabled"))})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),o=r.get("localY"),u=r.getModel("emphasis"),d=new Cs({shape:{x:null!=i?i*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Sc(d,Ec(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Jl(d,r),a.add(d),c.setItemGraphicEl(t.dataIndex,d),Vs(d).dataType="node";var p=u.get("focus");Kl(d,"adjacency"===p?t.getAdjacentDataIndices():"trajectory"===p?t.getTrajectoryDataIndices():p,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,i){var a=c.getItemModel(i);a.get("draggable")&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&a.setClipPath(xj(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(mg);function Ej(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Object(_["isString"])(r)&&Object(_["isString"])(i)&&(e.fill=new g_(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:i,offset:1}]))}}function xj(e,t,n){var r=new Cs({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return dc(r,{shape:{width:e.width+20}},t,n),r}var wj=Sj,Tj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new qc(i[o],this,t));if(r&&n){var s=HP(r,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var a=i.depth,o=n.levelModels[a];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,r=n[e];r.localX=t[0],r.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),a=i.data,o=i.value,s=a.source+" -- "+a.target;return _h("nameValue",{name:s,value:o,noValue:r(o)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return _h("nameValue",{name:null!=u?u+"":null,value:c,noValue:r(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),a=i.getLayout().value;r.value=a}return r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},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},t}(Wh),Cj=Tj;function Oj(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=Mj(e,t);e.layoutInfo=i;var a=i.width,o=i.height,s=e.getGraph(),l=s.nodes,c=s.edges;Dj(l);var u=_["filter"](l,(function(e){return 0===e.getLayout().value})),d=0!==u.length?0:e.get("layoutIterations"),p=e.get("orient"),f=e.get("nodeAlign");Aj(l,c,n,r,a,o,d,p,f)}))}function Mj(e,t){return ld(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Aj(e,t,n,r,i,a,o,s,l){kj(e,t,n,i,a,s,l),Pj(e,t,a,i,r,o,s),Kj(e,s)}function Dj(e){_["each"](e,(function(e){var t=qj(e.outEdges,Wj),n=qj(e.inEdges,Wj),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function kj(e,t,n,r,i,a,o){for(var s=[],l=[],c=[],u=[],d=0,p=0;p=0;g&&_.depth>f&&(f=_.depth),m.setLayout({depth:g?_.depth:d},!0),"vertical"===a?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var v=0;vd-1?f:d-1;o&&"left"!==o&&Ij(e,o,a,x);var w="vertical"===a?(i-n)/x:(r-n)/x;Rj(e,w,a)}function Lj(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Ij(e,t,n,r){if("right"===t){var i=[],a=e,o=0;while(a.length){for(var s=0;s0;a--)l*=.99,Bj(s,l,o),jj(s,i,n,r,o),$j(s,l,o),jj(s,i,n,r,o)}function Fj(e,t){var n=[],r="vertical"===t?"y":"x",i=oa(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),_["each"](i.keys,(function(e){n.push(i.buckets.get(e))})),n}function Yj(e,t,n,r,i,a){var o=1/0;_["each"](e,(function(e){var t=e.length,s=0;_["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===a?(r-(t-1)*i)/s:(n-(t-1)*i)/s;l0&&(o=s.getLayout()[a]+l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[a]+s.getLayout()[d]+t;var f="vertical"===i?r:n;if(l=c-t-f,l>0){o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),c=o;for(p=u-2;p>=0;--p)s=e[p],l=s.getLayout()[a]+s.getLayout()[d]+t-c,l>0&&(o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[a]}}))}function Bj(e,t,n){_["each"](e.slice().reverse(),(function(e){_["each"](e,(function(e){if(e.outEdges.length){var r=qj(e.outEdges,Uj,n)/qj(e.outEdges,Wj);if(isNaN(r)){var i=e.outEdges.length;r=i?qj(e.outEdges,Hj,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-Vj(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Vj(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function Uj(e,t){return Vj(e.node2,t)*e.getValue()}function Hj(e,t){return Vj(e.node2,t)}function Gj(e,t){return Vj(e.node1,t)*e.getValue()}function zj(e,t){return Vj(e.node1,t)}function Vj(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Wj(e){return e.getValue()}function qj(e,t,n){var r=0,i=e.length,a=-1;while(++aa&&(a=t)})),_["each"](n,(function(t){var n=new KN({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",r),t.setVisual("style",{fill:r}))}))}r.length&&_["each"](r,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function Xj(e){e.registerChartView(wj),e.registerSeriesModel(Cj),e.registerLayout(Oj),e.registerVisual(Qj),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var Zj=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type");"category"===o?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(e.layout="vertical",n=a.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],d=l[1-c],p=[i,a],f=p[c].get("type"),h=p[1-c].get("type"),m=e.data;if(m&&r){var g=[];_["each"](m,(function(e,t){var n;_["isArray"](e)?(n=e.slice(),e.unshift(t)):_["isArray"](e.value)?(n=_["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)})),e.data=g}var v=this.defaultValueDimensions,y=[{name:u,type:xS(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:xS(h),dimsDef:v.slice()}];return rA(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:_["curry"](Nd,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Jj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return h(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Wh);Object(_["mixin"])(Jj,Zj,!0);var eB=Jj,tB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o="horizontal"===e.get("layout")?1:0;r.diff(a).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=iB(t,r,e,o,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(_c(n),aB(s,n,r,e)):n=iB(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(mg),nB=function(){function e(){}return e}(),rB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return h(t,e),t.prototype.getDefaultShape=function(){return new nB},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();rm){var S=[v,b];r.push(S)}}}return{boxData:n,outliers:r}}var hB={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==wd){var n="";0,ep(n)}var r=fB(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function mB(e){e.registerSeriesModel(eB),e.registerChartView(sB),e.registerLayout(cB),e.registerTransform(hB)}var _B=["color","borderColor"],gB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){og(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&SB(s,o))return;var l=bB(o,n,!0);dc(l,{shape:{points:o.ends}},e,n),EB(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}})).update((function(o,l){var c=n.getItemGraphicEl(l);if(t.hasValue(o)){var u=t.getItemLayout(o);a&&SB(s,u)?r.remove(c):(c?(uc(c,{shape:{points:u.ends}},e,o),_c(c)):c=bB(u,o),EB(c,t,o,i),r.add(c),t.setItemGraphicEl(o,c))}else r.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),CB(e,this.group);var t=e.get("clip",!0)?LO(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var a=r.getItemLayout(n),o=bB(a,n);EB(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){CB(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(mg),vB=function(){function e(){}return e}(),yB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return h(t,e),t.prototype.getDefaultShape=function(){return new vB},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(cs);function bB(e,t,n){var r=e.ends;return new yB({shape:{points:n?xB(r,e):r},z2:100})}function SB(e,t){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(i=n.get(["itemStyle","borderColorDoji"]));var a=n.getModel("itemStyle").getItemStyle(_B);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var MB=gB,AB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return h(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Wh);Object(_["mixin"])(AB,Zj,!0);var DB=AB;function kB(e){e&&_["isArray"](e.series)&&_["each"](e.series,(function(e){_["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var LB=["itemStyle","borderColor"],IB=["itemStyle","borderColor0"],NB=["itemStyle","borderColorDoji"],RB=["itemStyle","color"],PB=["itemStyle","color0"],FB={seriesType:"candlestick",plan:Kh(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?RB:PB)}function r(e,t){return t.get(0===e?NB:e>0?LB:IB)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(e,t){var i;while(null!=(i=e.next())){var a=t.getItemModel(i),o=t.getItemLayout(i).sign,s=a.getItemStyle();s.fill=n(o,a),s.stroke=r(o,a)||s.fill;var l=t.ensureUniqueItemVisual(i,"style");Object(_["extend"])(l,s)}}}}}},YB=FB,jB={seriesType:"candlestick",plan:Kh(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=UB(e,n),i=0,a=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[i])),l=Object(_["map"])(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),c=l[0],u=l[1],d=l[2],p=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?h:f};function f(e,n){var o,l=n.getStore();while(null!=(o=e.next())){var f=l.get(s,o),h=l.get(c,o),m=l.get(u,o),_=l.get(d,o),g=l.get(p,o),v=Math.min(h,m),y=Math.max(h,m),b=O(v,f),S=O(y,f),E=O(_,f),x=O(g,f),w=[];M(w,S,0),M(w,b,1),w.push(D(x),D(S),D(E),D(b));var T=n.getItemModel(o),C=!!T.get(["itemStyle","borderColorDoji"]);n.setItemLayout(o,{sign:BB(l,o,h,m,u,C),initBaseline:h>m?S[a]:b[a],ends:w,brushRect:A(_,g,f)})}function O(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function M(e,t,n){var a=t.slice(),o=t.slice();a[i]=z_(a[i]+r/2,1,!1),o[i]=z_(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function A(e,t,n){var o=O(e,n),s=O(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function D(e){return e[i]=z_(e[i],1),e}}function h(n,r){var o,l,f=FE(4*n.count),h=0,m=[],_=[],g=r.getStore(),v=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var y=g.get(s,l),b=g.get(c,l),S=g.get(u,l),E=g.get(d,l),x=g.get(p,l);isNaN(y)||isNaN(E)||isNaN(x)?(f[h++]=NaN,h+=3):(f[h++]=BB(g,l,b,S,u,v),m[i]=y,m[a]=E,o=t.dataToPoint(m,null,_),f[h++]=o?o[0]:NaN,f[h++]=o?o[1]:NaN,m[a]=x,o=t.dataToPoint(m,null,_),f[h++]=o?o[1]:NaN)}r.setLayout("largePoints",f)}}};function BB(e,t,n,r,i,a){var o;return o=n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1,o}function UB(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=ti(Object(_["retrieve2"])(e.get("barMaxWidth"),i),i),o=ti(Object(_["retrieve2"])(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?ti(s,i):Math.max(Math.min(i/2,a),o)}var HB=jB;function GB(e){e.registerChartView(MB),e.registerSeriesModel(DB),e.registerPreprocessor(kB),e.registerVisual(YB),e.registerLayout(HB)}function zB(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var VB=function(e){function t(t,n){var r=e.call(this)||this,i=new dO(t,n),a=new jr;return r.add(i),r.add(a),r.updateData(t,n),r}return h(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a0&&(a=this._getLineLength(r)/l*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=_["isFunction"](c)?c(n):c,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during((function(){a._updateSymbolPosition(e)}));r||o.done((function(){a.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return P(e.__p1,e.__cp1)+P(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=Gt,l=zt;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var c=e.__t<1?l(t[0],r[0],n[0],i):l(n[0],r[0],t[0],1-i),u=e.__t<1?l(t[1],r[1],n[1],i):l(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;a--)if(r[a]<=t)break;a=Math.min(a,i-2)}else{for(a=o;at)break;a=Math.min(a-1,i-2)}var l=(t-r[a])/(r[a+1]-r[a]),c=n[a],u=n[a+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var d=e.__t<1?u[0]-c[0]:c[0]-u[0],p=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(p,d)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},t}(JB),rU=nU,iU=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),aU=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return h(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iU},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(r[n++],r[n++]);for(var o=1;o0){var d=(s+c)/2-(l-u)*i,p=(l+u)/2-(c-s)*i;e.quadraticCurveTo(d,p,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s0)for(var c=r[s++],u=r[s++],d=1;d0){var h=(c+p)/2-(u-f)*i,m=(u+f)/2-(p-c)*i;if(Bo(c,u,h,m,p,f,a,e,t))return o}else if(Yo(c,u,p,f,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,r=1/0,i=1/0,a=-1/0,o=-1/0,s=0;s0&&(a.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),sU=oU,lU={seriesType:"lines",plan:Kh(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var c=0,u=i.start;u0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var c=e.get("clip",!0)&&LO(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=cU.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),a=t.pipelineContext,o=a.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new sU:new wP(i?r?rU:tU:r?JB:vP),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(mg),dU=uU,pU="undefined"===typeof Uint32Array?Array:Uint32Array,fU="undefined"===typeof Float64Array?Array:Float64Array;function hU(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(_["map"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(_["mergeAll"])([n,e[0],e[1]])})))}var mU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return h(t,e),t.prototype.init=function(t){t.data=t.data||[],hU(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(hU(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(_["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(_["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Wh),_U=mU;function gU(e){return e instanceof Array||(e=[e,e]),e}var vU={seriesType:"lines",reset:function(e){var t=gU(e.get("symbol")),n=gU(e.get("symbolSize")),r=e.getData();function i(e,t){var n=e.getItemModel(t),r=gU(n.getShallow("symbol",!0)),i=gU(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},yU=vU;function bU(e){e.registerChartView(dU),e.registerSeriesModel(_U),e.registerLayout(cU),e.registerVisual(yU)}var SU=256,EU=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=hr["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),p=e.length;u.width=t,u.height=n;for(var f=0;f0){var O=a(v)?s:l;v>0&&(v=v*T+x),b[S++]=O[C],b[S++]=O[C+1],b[S++]=O[C+2],b[S++]=O[C+3]*v*256}else S+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=hr["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}(),xU=EU;function wU(e,t,n){var r=e[1]-e[0];t=_["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}function CU(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var OU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):CU(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(CU(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){og(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var a,o,s,l,c=e.coordinateSystem,u=IO(c,"cartesian2d");if(u){var d=c.getAxis("x"),p=c.getAxis("y");0,a=d.getBandWidth()+.5,o=p.getBandWidth()+.5,s=d.scale.getExtent(),l=p.scale.getExtent()}for(var f=this.group,h=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),g=e.getModel(["select","itemStyle"]).getItemStyle(),v=e.get(["itemStyle","borderRadius"]),y=Ec(e),b=e.getModel("emphasis"),S=b.get("focus"),E=b.get("blurScope"),x=b.get("disabled"),w=u?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],T=n;Ts[1]||Al[1])continue;var D=c.dataToPoint([M,A]);C=new Cs({shape:{x:D[0]-a/2,y:D[1]-o/2,width:a,height:o},style:O})}else{if(isNaN(h.get(w[1],T)))continue;C=new Cs({z2:1,shape:c.dataToRect([h.get(w[0],T)]).contentShape,style:O})}if(h.hasItemOption){var k=h.getItemModel(T),L=k.getModel("emphasis");m=L.getModel("itemStyle").getItemStyle(),_=k.getModel(["blur","itemStyle"]).getItemStyle(),g=k.getModel(["select","itemStyle"]).getItemStyle(),v=k.get(["itemStyle","borderRadius"]),S=L.get("focus"),E=L.get("blurScope"),x=L.get("disabled"),y=Ec(k)}C.shape.r=v;var I=e.getRawValue(T),N="-";I&&null!=I[2]&&(N=I[2]+""),Sc(C,y,{labelFetcher:e,labelDataIndex:T,defaultOpacity:O.opacity,defaultText:N}),C.ensureState("emphasis").style=m,C.ensureState("blur").style=_,C.ensureState("select").style=g,Kl(C,S,E,x),C.incremental=i,i&&(C.states.emphasis.hoverLayer=!0),f.add(C),h.setItemGraphicEl(T,C),this._progressiveEls&&this._progressiveEls.push(C)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new xU;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),d=Math.max(l.y,0),p=Math.min(l.width+l.x,r.getWidth()),f=Math.min(l.height+l.y,r.getHeight()),h=p-u,m=f-d,_=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],g=o.mapArray(_,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i})),v=n.getExtent(),y="visualMap.continuous"===n.type?TU(v,n.option.range):wU(v,n.getPieceList(),n.option.selected);s.update(g,h,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new gs({style:{width:h,height:m,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(mg),MU=OU,AU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.getInitialData=function(e,t){return hE(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=mp.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Wh),DU=AU;function kU(e){e.registerChartView(MU),e.registerSeriesModel(DU)}var LU=["itemStyle","borderWidth"],IU=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],NU=new Sm,RU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),c=o.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:IU[+l],categoryDim:IU[1-+l]};return i.diff(a).add((function(e){if(i.hasValue(e)){var t=qU(i,e),n=PU(i,e,t,u),a=QU(i,u,n);i.setItemGraphicEl(e,a),r.add(a),nH(a,u,n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var o=qU(i,e),s=PU(i,e,o,u),l=JU(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?XU(n,u,s):n=QU(i,u,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),nH(n,u,s)}else r.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&ZU(a,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){ZU(r,Vs(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(mg);function PU(e,t,n,r){var i=e.getItemLayout(t),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),p={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};FU(n,a,i,r,p),jU(e,t,i,a,o,p.boundingLength,p.pxSign,u,r,p),BU(n,p.symbolScale,c,r,p);var f=p.symbolSize,h=Dv(n.get("symbolOffset"),f);return UU(n,f,i,a,o,h,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,r,p),p}function FU(e,t,n,r,i){var a,o=r.valueDim,s=e.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[o.wh]<=0);if(_["isArray"](s)){var d=[YU(l,s[0])-c,YU(l,s[1])-c];d[1]0?1:-1}function YU(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function jU(e,t,n,r,i,a,o,s,l,c){var u,d=l.valueDim,p=l.categoryDim,f=Math.abs(n[p.wh]),h=e.getItemVisual(t,"symbolSize");u=_["isArray"](h)?h.slice():null==h?["100%","100%"]:[h,h],u[p.index]=ti(u[p.index],f),u[d.index]=ti(u[d.index],r?f:Math.abs(a)),c.symbolSize=u;var m=c.symbolScale=[u[0]/s,u[1]/s];m[d.index]*=(l.isHorizontal?-1:1)*o}function BU(e,t,n,r,i){var a=e.get(LU)||0;a&&(NU.attr({scaleX:t[0],scaleY:t[1],rotation:n}),NU.updateTransform(),a/=NU.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function UU(e,t,n,r,i,a,o,s,l,c,u,d){var p=u.categoryDim,f=u.valueDim,h=d.pxSign,m=Math.max(t[f.index]+s,0),g=m;if(r){var v=Math.abs(l),y=_["retrieve"](e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var S=ti(y,t[f.index]),E=Math.max(m+2*S,0),x=b?0:2*S,w=Si(r),T=w?r:rH((v+x)/E),C=v-T*m;S=C/2/(b?T:Math.max(T-1,1)),E=m+2*S,x=b?0:2*S,w||"fixed"===r||(T=c?rH((Math.abs(c)+x)/E):0),g=T*E-x,d.repeatTimes=T,d.symbolMargin=S}var O=h*(g/2),M=d.pathPosition=[];M[p.index]=n[p.wh]/2,M[f.index]="start"===o?O:"end"===o?l-O:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var A=d.bundlePosition=[];A[p.index]=n[p.xy],A[f.index]=n[f.xy];var D=d.barRectShape=_["extend"]({},n);D[f.wh]=h*Math.max(Math.abs(n[f.wh]),Math.abs(M[f.index]+O)),D[p.wh]=n[p.wh];var k=d.clipShape={};k[p.xy]=-n[p.xy],k[p.wh]=u.ecSize[p.wh],k[f.xy]=0,k[f.wh]=n[f.wh]}function HU(e){var t=e.symbolPatternSize,n=Mv(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function GU(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+2*n.symbolMargin;for(eH(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:r<0)&&(i=c-1-e),t[l.index]=d*(i-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function zU(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?tH(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=HU(n),i.add(a),tH(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function VU(e,t,n){var r=_["extend"]({},t.barRectShape),i=e.__pictorialBarRect;i?tH(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Cs({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function WU(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=_["extend"]({},n.clipShape),s=t.valueDim,l=n.animationModel,c=n.dataIndex;if(i)uc(i,{shape:a},l,c);else{a[s.wh]=0,i=new Cs({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[s.wh]=n.clipShape[s.wh],o[r?"updateProps":"initProps"](i,{shape:u},l,c)}}}function qU(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=$U,n.isAnimationEnabled=KU,n}function $U(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function KU(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function QU(e,t,n,r){var i=new jr,a=new jr;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?GU(i,t,n):zU(i,t,n),VU(i,n,r),WU(i,t,n,r),i.__pictorialShapeStr=JU(e,n),i.__pictorialSymbolMeta=n,i}function XU(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;uc(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?GU(e,t,n,!0):zU(e,t,n,!0),VU(e,n,!0),WU(e,t,n,!0)}function ZU(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];eH(r,(function(e){a.push(e)})),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),_["each"](a,(function(e){fc(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function JU(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function eH(e,t,n){_["each"](e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function tH(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&o[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function nH(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),u=a.get("focus"),d=a.get("blurScope"),p=a.get("scale");eH(e,(function(e){if(e instanceof gs){var t=e.style;e.useStyle(_["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=o,p&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=n.z2}));var f=t.valueDim.posDesc[+(n.boundingLength>0)],h=e.__pictorialBarRect;Sc(h,Ec(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:sO(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Kl(e,u,d,a.get("disabled"))}function rH(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var iH=RU,aH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return h(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Zc(aM.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(aM),oH=aH;function sH(e){e.registerChartView(iH),e.registerSeriesModel(oH),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(_["curry"])(qE,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$E("pictorialBar"))}var lH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return h(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}a.x=0,a.y=l.y+c[0];var d=new yS(this._layersSeries||[],o,u,u),p=[];function f(t,n,s){var l=i._layers;if("remove"!==t){for(var c,u,d=[],f=[],h=o[n].indices,m=0;ma&&(a=s),r.push(s)}for(var c=0;ca&&(a=d)}return{y0:i,max:a}}function gH(e){e.registerChartView(uH),e.registerSeriesModel(fH),e.registerLayout(hH),e.registerProcessor(qM("themeRiver"))}var vH=2,yH=4,bH=function(e){function t(t,n,r,i){var a=e.call(this)||this;a.z2=vH,a.textConfig={inside:!0},Vs(a).seriesIndex=n.seriesIndex;var o=new zs({z2:yH,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return h(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;Vs(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),c=_["extend"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var d=t.getVisual("decal");d&&(u.decal=gy(d,i));var p=mM(o.getModel("itemStyle"),c,!0);_["extend"](c,p),_["each"](el,(function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=mM(n,c);r&&(t.shape=r)})),e?(a.setShape(c),a.shape.r=l.r0,dc(a,{shape:{r:l.r}},n,t.dataIndex)):(uc(a,{shape:c},n),_c(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow("cursor");f&&a.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var h=s.get("focus"),m="ancestor"===h?t.getAncestorsIndices():"descendant"===h?t.getDescendantIndices():h;Kl(this,m,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),l=Math.sin(o),c=this,u=c.getTextContent(),d=this.node.dataIndex,p=r.get("minAngle")/180*Math.PI,f=r.get("show")&&!(null!=p&&Math.abs(a)Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(y=i.r0+x,o>Math.PI/2&&(w="right")):"right"===w&&(y=i.r-x,o>Math.PI/2&&(w="left")):(y=a===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,w="center"),m.style.align=w,m.style.verticalAlign=h(p,"verticalAlign")||"middle",m.x=y*s+i.cx,m.y=y*l+i.cy;var T=h(p,"rotate"),C=0;"radial"===T?(C=Ho(-o),C>Math.PI/2&&C<1.5*Math.PI&&(C+=Math.PI)):"tangential"===T?(C=Math.PI/2-o,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):_["isNumber"](T)&&(C=T*Math.PI/180),m.rotation=Ho(C)})),u.dirtyStyle()},t}(Hm),SH=bH,EH="sunburstRootToNode",xH="sunburstHighlight",wH="sunburstUnhighlight";function TH(e){e.registerAction({type:EH,update:"updateView"},(function(e,t){function n(t,n){var r=UI(e,[EH],t);if(r){var i=t.getViewRoot();i&&(e.direction=GI(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:xH,update:"none"},(function(e,t,n){function r(t){var n=UI(e,[xH],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(_["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},r),n.dispatchAction(Object(_["extend"])(e,{type:"highlight"}))})),e.registerAction({type:wH,update:"updateView"},(function(e,t,n){e=Object(_["extend"])({},e),n.dispatchAction(Object(_["extend"])(e,{type:"downplay"}))}))}var CH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];s.eachNode((function(e){u.push(e)}));var d=this._oldChildren||[];function p(e,t){function n(e){return e.getId()}function r(n,r){var i=null==n?null:e[n],a=null==r?null:t[r];f(i,a)}0===e.length&&0===t.length||new yS(t,e,n,n).add(r).update(r).remove(_["curry"](r,null)).execute()}function f(r,i){if(c||!r||r.getValue()||(r=null),r!==o&&i!==o)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):h(i);else if(r){var s=new SH(r,e,t,n);l.add(s),a.setItemGraphicEl(r.dataIndex,s)}}function h(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new SH(r,e,t,n),l.add(i.virtualPiece)),a.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(a.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}p(u,d),m(o,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var a=r.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";td(o,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:EH,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,a=e[1]-r.cy,o=Math.sqrt(i*i+a*a);return o<=r.r&&o>=r.r0}},t.type="sunburst",t}(mg),OH=CH,MH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return h(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};AH(n);var r=this._levelModels=_["map"](e.levels||[],(function(e){return new qc(e,this,t)}),this),i=BI.createTree(n,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),a=r[n.depth];return a&&(e.parentModel=a),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=zI(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){nN(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Wh);function AH(e){var t=0;_["each"](e.children,(function(e){AH(e);var n=e.value;_["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;_["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),_["isArray"](e.value)?e.value[0]=n:e.value=n}var DH=MH,kH=Math.PI/180;function LH(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");_["isArray"](r)||(r=[0,r]),_["isArray"](t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=ti(t[0],i),l=ti(t[1],a),c=ti(r[0],o/2),u=ti(r[1],o/2),d=-e.get("startAngle")*kH,p=e.get("minAngle")*kH,f=e.getData().tree.root,h=e.getViewRoot(),m=h.depth,g=e.get("sort");null!=g&&IH(h,g);var v=0;_["each"](h.children,(function(e){!isNaN(e.getValue())&&v++}));var y=h.getValue(),b=Math.PI/(y||v)*2,S=h.depth>0,E=h.height-(S?-1:1),x=(u-c)/(E||1),w=e.get("clockwise"),T=e.get("stillShowZeroSum"),C=w?1:-1,O=function(t,n){if(t){var r=n;if(t!==f){var i=t.getValue(),a=0===y&&T?b:i*b;a1)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(_["isString"])(a)&&(a=Object(en["lift"])(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(i,e,r.root.height));var s=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(_["extend"])(s,o)}))}))}function PH(e){e.registerChartView(OH),e.registerSeriesModel(DH),e.registerLayout(Object(_["curry"])(LH,"sunburst")),e.registerProcessor(Object(_["curry"])(qM,"sunburst")),e.registerVisual(RH),TH(e)}var FH={color:"fill",borderColor:"stroke"},YH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},jH=Qi(),BH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return hE(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=jH(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Wh),UH=BH;function HH(e,t){return t=t||[0,0],_["map"](["x","y"],(function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))}),this)}function GH(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:_["bind"](HH,e)}}}function zH(e,t){return t=t||[0,0],_["map"]([0,1],(function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function VH(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:_["bind"](zH,e)}}}function WH(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function qH(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(_["bind"])(WH,e)}}}function $H(e,t){return t=t||[0,0],_["map"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",a=this[i](),o=t[r],s=e[r]/2,l="category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function KH(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:_["bind"]($H,e)}}}function QH(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function XH(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(_["hasOwn"])(e,"text")))}function ZH(e,t,n){var r,i,a,o=e;if("text"===t)a=o;else{a={},Object(_["hasOwn"])(o,"text")&&(a.text=o.text),Object(_["hasOwn"])(o,"rich")&&(a.rich=o.rich),Object(_["hasOwn"])(o,"textFill")&&(a.fill=o.textFill),Object(_["hasOwn"])(o,"textStroke")&&(a.stroke=o.textStroke),Object(_["hasOwn"])(o,"fontFamily")&&(a.fontFamily=o.fontFamily),Object(_["hasOwn"])(o,"fontSize")&&(a.fontSize=o.fontSize),Object(_["hasOwn"])(o,"fontStyle")&&(a.fontStyle=o.fontStyle),Object(_["hasOwn"])(o,"fontWeight")&&(a.fontWeight=o.fontWeight),i={type:"text",style:a,silent:!0},r={};var s=Object(_["hasOwn"])(o,"textPosition");n?r.position=s?o.textPosition:"inside":s&&(r.position=o.textPosition),Object(_["hasOwn"])(o,"textPosition")&&(r.position=o.textPosition),Object(_["hasOwn"])(o,"textOffset")&&(r.offset=o.textOffset),Object(_["hasOwn"])(o,"textRotation")&&(r.rotation=o.textRotation),Object(_["hasOwn"])(o,"textDistance")&&(r.distance=o.textDistance)}return JH(a,e),Object(_["each"])(a.rich,(function(e){JH(e,e)})),{textConfig:r,textContent:i}}function JH(e,t){t&&(t.font=t.textFont||t.font,Object(_["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(_["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(_["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(_["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(_["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(_["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(_["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(_["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(_["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(_["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(_["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(_["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(_["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(_["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(_["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function eG(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,a=e.fill||"#000";tG(r,t);var o=null==r.textFill;return i?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(_["each"])(t.rich,(function(e){tG(e,e)})),r}function tG(e,t){t&&(Object(_["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(_["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(_["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(_["hasOwn"])(t,"font")&&(e.font=t.font),Object(_["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(_["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(_["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(_["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(_["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(_["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(_["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(_["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(_["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(_["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(_["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(_["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(_["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(_["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(_["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(_["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(_["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(_["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(_["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(_["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(_["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(_["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var nG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},rG=Object(_["keys"])(nG),iG=(Object(_["reduce"])(ur,(function(e,t){return e[t]=1,e}),{}),ur.join(", "),["","style","shape","extra"]),aG=Qi();function oG(e,t,n,r,i){var a=e+"Animation",o=lc(e,r,i)||{},s=aG(t).userDuring;return o.duration>0&&(o.during=s?Object(_["bind"])(_G,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Object(_["extend"])(o,n[a]),o}function sG(e,t,n,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=aG(e),c=t.style;l.userDuring=t.during;var u={},d={};if(bG(e,t,d),vG("shape",t,d),vG("extra",t,d),!a&&s&&(yG(e,t,u),gG("shape",e,t,u),gG("extra",e,t,u),SG(e,t,c,u)),d.style=c,dG(e,d,o),fG(e,t),s)if(a){var p={};Object(_["each"])(iG,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(p[e]=p[e]||{}),Object(_["extend"])(e?p[e]:p,n.enterFrom))}));var f=oG("enter",e,t,n,i);f.duration>0&&e.animateFrom(p,f)}else pG(e,t,i||0,n,u);lG(e,t),c?e.dirty():e.markRedraw()}function lG(e,t){for(var n=aG(e).leaveToProps,r=0;r0&&e.animateFrom(i,a)}}function fG(e,t){Object(_["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(_["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof to&&Object(_["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof cs&&Object(_["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var hG={},mG={setTransform:function(e,t){return hG.el[e]=t,this},getTransform:function(e){return hG.el[e]},setShape:function(e,t){var n=hG.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=hG.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=hG.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=hG.el.style;if(t)return t[e]},setExtra:function(e,t){var n=hG.el.extra||(hG.el.extra={});return n[e]=t,this},getExtra:function(e){var t=hG.el.extra;if(t)return t[e]}};function _G(){var e=this,t=e.el;if(t){var n=aG(t).userDuring,r=e.userDuring;n===r?(hG.el=t,r(mG)):e.el=e.userDuring=null}}function gG(e,t,n,r){var i=n[e];if(i){var a,o=t[e];if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[e]={}),uG(l))Object(_["extend"])(a,o);else for(var c=Mi(l),u=0;u=0){!a&&(a=r[e]={});var f=Object(_["keys"])(o);for(u=0;u=0)){var p=e.getAnimationStyleProps(),f=p?p.style:null;if(f){!i&&(i=r.style={});var h=Object(_["keys"])(n);for(c=0;c=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function x(n,r){null==r&&(r=s);var i=t.getItemVisual(r,"style"),a=i&&i.fill,o=i&&i.opacity,l=y(r,MG).getItemStyle();null!=a&&(l.fill=a),null!=o&&(l.opacity=o);var c={inheritColor:Object(_["isString"])(a)?a:"#000"},u=b(r,MG),d=xc(u,null,c,!1,!0);d.text=u.getShallow("show")?Object(_["retrieve2"])(e.getFormattedLabel(r,MG),sO(t,r)):null;var p=wc(u,c,!1);return C(n,l),l=eG(l,d,p),n&&T(l,n),l.legacy=!0,l}function w(n,r){null==r&&(r=s);var i=y(r,OG).getItemStyle(),a=b(r,OG),o=xc(a,null,null,!0,!0);o.text=a.getShallow("show")?Object(_["retrieve3"])(e.getFormattedLabel(r,OG),e.getFormattedLabel(r,MG),sO(t,r)):null;var l=wc(a,null,!0);return C(n,i),i=eG(i,o,l),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Object(_["hasOwn"])(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function O(e,n){if(null==n&&(n=s),Object(_["hasOwn"])(FH,e)){var r=t.getItemVisual(n,"style");return r?r[FH[e]]:null}if(Object(_["hasOwn"])(YH,e))return t.getItemVisual(n,e)}function M(e){if("cartesian2d"===a.type){var t=a.getBaseAxis();return UE(Object(_["defaults"])({axis:t},e))}}function A(){return n.getCurrentSeriesIndices()}function D(e){return kc(e,n)}}function KG(e){var t={};return Object(_["each"])(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function QG(e,t,n,r,i,a,o){if(r){var s=XG(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Kl(s,r.focus,r.blurScope,r.emphasisDisabled),s}a.remove(t)}function XG(e,t,n,r,i,a){var o=-1,s=t;t&&ZG(t,r,i)&&(o=Object(_["indexOf"])(a.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=GG(r),s&&BG(s,c)),!1===r.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),PG.normal.cfg=PG.normal.conOpt=PG.emphasis.cfg=PG.emphasis.conOpt=PG.blur.cfg=PG.blur.conOpt=PG.select.cfg=PG.select.conOpt=null,PG.isLegacy=!1,ez(c,n,r,i,l,PG),JG(c,n,r,i,l),zG(e,c,n,r,PG,i,l),Object(_["hasOwn"])(r,"info")&&(jH(c).info=r.info);for(var u=0;u=0?a.replaceAt(c,o):a.add(c),c}function ZG(e,t,n){var r=jH(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&dz(a)&&uz(a)!==r.customPathData||"image"===i&&Object(_["hasOwn"])(o,"image")&&o.image!==r.customImagePath}function JG(e,t,n,r,i){var a=n.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&ZG(o,a,r)&&(o=null),o||(o=GG(a),e.setClipPath(o)),zG(null,o,t,a,null,r,i)}}function ez(e,t,n,r,i,a){if(!e.isGroup){tz(n,null,a),tz(n,OG,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,c=a.select.conOpt;if(null!=o||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=GG(o),e.setTextContent(u)),zG(null,u,t,o,null,r,i);for(var d=o&&o.style,p=0;p=u;f--){var h=t.childAt(f);az(t,h,i)}}}function az(e,t,n){t&&cG(t,jH(e).option,n)}function oz(e){new yS(e.oldChildren,e.newChildren,sz,sz,e).add(lz).update(lz).remove(cz).execute()}function sz(e,t){var n=e&&e.name;return null!=n?n:RG+t}function lz(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;XG(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function cz(e){var t=this.context,n=t.oldChildren[e];n&&cG(n,jH(n).option,t.seriesModel)}function uz(e){return e&&(e.pathData||e.d)}function dz(e){return e&&(Object(_["hasOwn"])(e,"pathData")||Object(_["hasOwn"])(e,"d"))}function pz(e){e.registerChartView(HG),e.registerSeriesModel(UH)}var fz=Qi(),hz=_["clone"],mz=_["bind"],_z=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var d=_["curry"](gz,t,u);this.updatePointerEl(o,l,d),this.updateLabelEl(o,l,d,t)}else o=this._group=new jr,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),n.getZr().add(o);Sz(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,a=t.get("snap");if(!a&&!i)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=gD(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=fz(e).pointerEl=new o[i.type](hz(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=fz(e).labelEl=new zs(hz(t.label));e.add(i),yz(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=fz(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=fz(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),yz(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=J_(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ve(e.event)},onmousedown:mz(this._onHandleDragMove,this,0,0),drift:mz(this._onHandleDragMove,this),ondragend:mz(this._onHandleDragEnd,this)}),r.add(i)),Sz(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");_["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,bg(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){gz(this._axisPointerModel,!t&&this._moveAnimation,this._handle,bz(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(bz(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(bz(r)),fz(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Sg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function gz(e,t,n,r){vz(fz(n).lastProp,r)||(fz(n).lastProp=r,t?uc(n,r,e):(n.stopAnimation(),n.attr(r)))}function vz(e,t){if(_["isObject"](e)&&_["isObject"](t)){var n=!0;return _["each"](t,(function(t,r){n=n&&vz(e[r],t)})),!!n}return e===t}function yz(e,t){e[t.get(["label","show"])?"show":"hide"]()}function bz(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Sz(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var Ez=_z;function xz(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function wz(e,t,n,r,i){var a=n.get("value"),o=Cz(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Vu(s.get("padding")||0),c=s.getFont(),u=vr(o,c),d=i.position,p=u.width+l[1]+l[3],f=u.height+l[0]+l[2],h=i.align;"right"===h&&(d[0]-=p),"center"===h&&(d[0]-=p/2);var m=i.verticalAlign;"bottom"===m&&(d[1]-=f),"middle"===m&&(d[1]-=f/2),Tz(d,p,f,r);var _=s.get("backgroundColor");_&&"auto"!==_||(_=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:xc(s,{text:o,font:c,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function Tz(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Cz(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Lx(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};_["each"](r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),_["isString"](o)?a=o.replace("{value}",a):_["isFunction"](o)&&(a=o(s))}return a}function Oz(e,t,n){var r=we();return Ae(r,r,n.rotation),Me(r,r,n.position),W_([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Mz(e,t,n,r,i,a){var o=cD.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),wz(t,r,i,a,{position:Oz(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Az(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Dz(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function kz(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}var Lz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),l=Iz(o,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var u=xz(r),d=Nz[s](a,c,l);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=BA(o.model,n);Mz(t,e,p,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=BA(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Oz(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=Iz(a,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(o[1],c[l]),c[l]=Math.max(o[0],c[l]);var u=(s[1]+s[0])/2,d=[u,u];d[l]=c[l];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:p[l]}},t}(Ez);function Iz(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Nz={line:function(e,t,n){var r=Az([t,n[0]],[t,n[1]],Rz(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Dz([t-r/2,n[0]],[r,i],Rz(e))}}};function Rz(e){return"x"===e.dim?0:1}var Pz=Lz,Fz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="axisPointer",t.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}},t}(vd),Yz=Fz,jz=Qi(),Bz=_["each"];function Uz(e,t,n){if(!m["a"].node){var r=t.getZr();jz(r).records||(jz(r).records={}),Hz(r,t);var i=jz(r).records[e]||(jz(r).records[e]={});i.handler=n}}function Hz(e,t){function n(n,r){e.on(n,(function(n){var i=Wz(t);Bz(jz(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),Gz(i.pendings,t)}))}jz(e).initialized||(jz(e).initialized=!0,n("click",_["curry"](Vz,"click")),n("mousemove",_["curry"](Vz,"mousemove")),n("globalout",zz))}function Gz(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function zz(e,t,n){e.handler("leave",null,n)}function Vz(e,t,n,r){t.handler(e,n,r)}function Wz(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function qz(e,t){if(!m["a"].node){var n=t.getZr(),r=(jz(n).records||{})[e];r&&(jz(n).records[e]=null)}}var $z=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";Uz("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){qz("axisPointer",t)},t.prototype.dispose=function(e,t){qz("axisPointer",t)},t.type="axisPointer",t}($h),Kz=$z;function Qz(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Ki(a,e);if(null==o||o<0||_["isArray"](o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,p=c.dim,f="x"===d||"radius"===d?1:0,h=a.mapDimension(p),m=[];m[f]=a.get(h,o),m[1-f]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(a.getValues(_["map"](l.dimensions,(function(e){return a.mapDimension(e)})),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Xz=Qi();function Zz(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Object(_["bind"])(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){lV(i)&&(i=Qz({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=lV(i),c=a.axesInfo,u=s.axesInfo,d="leave"===r||lV(i),p={},f={},h={list:[],map:{}},m={showPointer:Object(_["curry"])(tV,f),showTooltip:Object(_["curry"])(nV,h)};Object(_["each"])(s.coordSysMap,(function(e,t){var n=l||e.containPoint(i);Object(_["each"])(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,a=oV(c,e);if(!d&&n&&(!c||a)){var o=a&&a.value;null!=o||l||(o=r.pointToData(i)),null!=o&&Jz(e,o,m,!1,p)}}))}));var g={};return Object(_["each"])(u,(function(e,t){var n=e.linkGroup;n&&!f[t]&&Object(_["each"])(n.axesInfo,(function(t,r){var i=f[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,sV(t),sV(e)))),g[e.key]=a}}))})),Object(_["each"])(g,(function(e,t){Jz(u[t],e,m,!0,p)})),rV(f,u,p),iV(h,i,e,o),aV(u,o,n),p}}function Jz(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var o=eV(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==i.seriesIndex&&Object(_["extend"])(i,s[0]),!r&&e.snap&&a.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}else n.showPointer(e,t)}function eV(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Object(_["each"])(t.seriesModels,(function(t,l){var c,u,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,n);u=p.dataIndices,c=p.nestestValue}else{if(u=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!u.length)return;c=t.getData().get(d[0],u[0])}if(null!=c&&isFinite(c)){var f=e-c,h=Math.abs(f);h<=o&&((h=0&&s<0)&&(o=h,s=f,i=c,a.length=0),Object(_["each"])(u,(function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:a,snapToValue:i}}function tV(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function nV(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,c=bD(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function rV(e,t,n){var r=n.axesInfo=[];Object(_["each"])(t,(function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status="show"),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function iV(e,t,n,r){if(!lV(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function aV(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=Xz(r)[i]||{},o=Xz(r)[i]={};Object(_["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(_["each"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var s=[],l=[];Object(_["each"])(a,(function(e,t){!o[t]&&l.push(e)})),Object(_["each"])(o,(function(e,t){!a[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function oV(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function sV(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function lV(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function cV(e){xD.registerAxisPointerClass("CartesianAxisPointer",Pz),e.registerComponentModel(Yz),e.registerComponentView(Kz),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(_["isArray"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=uD(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Zz)}function uV(e){mS(RD),mS(cV)}var dV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a),l=s.getExtent(),c=a.dataToCoord(t),u=r.get("type");if(u&&"none"!==u){var d=xz(r),p=fV[u](a,o,c,l);p.style=d,e.graphicKey=p.type,e.pointer=p}var f=r.get(["label","margin"]),h=pV(t,n,r,o,f);wz(e,n,r,i,h)},t}(Ez);function pV(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=r.getRadiusAxis().getExtent();if("radius"===a.dim){var p=we();Ae(p,p,s),Me(p,p,[r.cx,r.cy]),l=W_([o,-i],p);var f=t.getModel("axisLabel").get("rotate")||0,h=cD.innerTextLayout(s,f*Math.PI/180,-1);c=h.textAlign,u=h.textVerticalAlign}else{var m=d[1];l=r.coordToPoint([m+i,o]);var _=r.cx,g=r.cy;c=Math.abs(l[0]-_)/m<.3?"center":l[0]>_?"left":"right",u=Math.abs(l[1]-g)/m<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var fV={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:Az(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:kz(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(i/2-n)*a)}:{type:"Sector",shape:kz(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},hV=dV,mV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(vd),_V=mV,gV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ea).models[0]},t.type="polarAxis",t}(vd);_["mixin"](gV,jx);var vV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="angleAxis",t}(gV),yV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="radiusAxis",t}(gV),bV=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return h(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Ow);bV.prototype.dataToRadius=Ow.prototype.dataToCoord,bV.prototype.radiusToData=Ow.prototype.coordToData;var SV=bV,EV=Qi(),xV=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return h(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),l=vr(null==a?"":a+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var d=Math.max(0,Math.floor(u)),p=EV(e.model),f=p.lastAutoInterval,h=p.lastTickCount;return null!=f&&null!=h&&Math.abs(f-d)<=1&&Math.abs(h-i)<=1&&f>d?d=f:(p.lastTickCount=i,p.lastAutoInterval=d),d},t}(Ow);xV.prototype.dataToAngle=Ow.prototype.dataToCoord,xV.prototype.angleToData=Ow.prototype.coordToData;var wV=xV,TV=["radius","angle"],CV=function(){function e(e){this.dimensions=TV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new SV,this._angleAxis=new wV,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=lo)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r-1e-4,a=this.r,o=this.r0;return i<=a*a&&i>=o*o}}},e.prototype.convertToPixel=function(e,t,n){var r=OV(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=OV(t);return r===this?this.pointToData(n):null},e}();function OV(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var MV=CV;function AV(e,t,n){var r=t.get("center"),i=n.getWidth(),a=n.getHeight();e.cx=ti(r[0],i),e.cy=ti(r[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");null==l?l=[0,"100%"]:_["isArray"](l)||(l=[0,l]);var c=[ti(l[0],s),ti(l[1],s)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}function DV(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();_["each"](Fx(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),_["each"](Fx(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),Mx(r.scale,r.model),Mx(i.scale,i.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function kV(e){return"angleAxis"===e.mainType}function LV(e,t){if(e.type=t.get("type"),e.scale=Ax(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),kV(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var IV={dimensions:TV,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new MV(r+"");i.update=DV;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");LV(a,s),LV(o,l),AV(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",ea).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},NV=IV,RV=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function PV(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function FV(e){var t=e.getRadiusAxis();return t.inverse?0:1}function YV(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var jV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return h(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=_["map"](n.getViewLabels(),(function(e){e=_["clone"](e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));YV(s),YV(a),_["each"](RV,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||BV[t](this.group,e,r,a,o,i,s)}),this)}},t.type="angleAxis",t}(xD),BV={axisLine:function(e,t,n,r,i,a){var o,s=t.getModel(["axisLine","lineStyle"]),l=FV(n),c=l?0:1;o=0===a[c]?new Sm({shape:{cx:n.cx,cy:n.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Vm({shape:{cx:n.cx,cy:n.cy,r:a[l],r0:a[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,e.add(o)},axisTick:function(e,t,n,r,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[FV(n)],c=_["map"](r,(function(e){return new r_({shape:PV(n,[l,l+s],e.coord)})}));e.add(B_(c,{style:_["defaults"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),c=a[FV(n)],u=[],d=0;dh?"left":"right",v=Math.abs(f[1]-m)/p<.3?"middle":f[1]>m?"top":"bottom";if(s&&s[d]){var y=s[d];_["isObject"](y)&&y.textStyle&&(o=new qc(y.textStyle,l,l.ecModel))}var b=new zs({silent:cD.isLabelSilent(t),style:xc(o,{x:f[0],y:f[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:g,verticalAlign:v})});if(e.add(b),u){var S=cD.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=r.rawLabel,Vs(b).eventData=S}}),this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d=0?"p":"n",C=b;v&&(r[s][w]||(r[s][w]={p:b,n:b}),C=r[s][w][T]);var O=void 0,M=void 0,A=void 0,D=void 0;if("radius"===d.dim){var k=d.dataToCoord(x)-b,L=a.dataToCoord(w);Math.abs(k)=D})}}}))}function XV(e){var t={};_["each"](e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=KV(i,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),c=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[o]=c;var d=$V(e);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var p=ti(e.get("barWidth"),l),f=ti(e.get("barMaxWidth"),l),h=e.get("barGap"),m=e.get("barCategoryGap");p&&!u[d].width&&(p=Math.min(c.remainedWidth,p),u[d].width=p,c.remainedWidth-=p),f&&(u[d].maxWidth=f),null!=h&&(c.gap=h),null!=m&&(c.categoryGap=m)}));var n={};return _["each"](t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=ti(e.categoryGap,i),o=ti(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-a)/(l+(l-1)*o);c=Math.max(c,0),_["each"](r,(function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=mW(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=mW(t);return r===this?this.pointToData(n):null},e}();function mW(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var _W=hW;function gW(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var a=new _W(r,e,t);a.name="single_"+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",ea).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var vW={create:gW,dimensions:fW},yW=vW,bW=["x","y"],SW=["width","height"],EW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=TW(o,1-wW(a)),l=o.dataToPoint(t)[0],c=r.get("type");if(c&&"none"!==c){var u=xz(r),d=xW[c](a,l,s);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=rW(n);Mz(t,e,p,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=rW(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Oz(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=wW(i),s=TW(a,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=TW(a,1-o),u=(c[1]+c[0])/2,d=[u,u];return d[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(Ez),xW={line:function(e,t,n){var r=Az([t,n[0]],[t,n[1]],wW(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:Dz([t-r/2,n[0]],[r,i],wW(e))}}};function wW(e){return e.isHorizontal()?0:1}function TW(e,t){var n=e.getRect();return[n[bW[t]],n[bW[t]]+n[SW[t]]]}var CW=EW,OW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="single",t}($h);function MW(e){mS(cV),xD.registerAxisPointerClass("SingleAxisPointer",CW),e.registerComponentView(OW),e.registerComponentView(lW),e.registerComponentModel(uW),DA(e,"single",uW,uW.defaultOption),e.registerCoordinateSystem("single",yW)}var AW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(t,n,r){var i=fd(t);e.prototype.init.apply(this,arguments),DW(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),DW(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(vd);function DW(e,t){var n,r=e.cellSize;n=_["isArray"](r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=_["map"]([0,1],(function(e){return ud(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));pd(e,t,{type:"box",ignoreSize:i})}var kW=AW,LW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,c=new Cs({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:i});n.add(c)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){p(c.formatedDate),0===u&&(c=a.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=a.getDateInfo(d)}function p(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,o,r)}p(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Jm({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),l=r.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return Object(_["isString"])(e)&&e?Qu(e,t):Object(_["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=["center","bottom"];"bottom"===r?(o+=i,s=["center","top"]):"left"===r?a-=i:"right"===r?(a+=i,s=["center","top"]):o-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),o=i.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var f=i.get("formatter"),h={start:t.start.y,end:t.end.y,nameMap:p},m=this._formatterLabel(f,h),_=new zs({z2:30,style:xc(i,{text:m})});_.attr(this._yearTextPositionControl(_,d[o],n,o,a)),r.add(_)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(a="center"),"start"===r&&(o="bottom")):(s+=i,t&&(o="middle"),"start"===r&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),s=i.get("position"),l=i.get("align"),c=[this._tlpoints,this._blpoints];a&&!Object(_["isString"])(a)||(a&&(t=cu(a)||t),a=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,d="horizontal"===n?0:1;o="start"===s?-o:o;for(var p="center"===l,f=0;f=r.start.time&&n.timeo.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/NW)-Math.floor(n[0].time/NW)+1,i=new Date(n[0].time),a=i.getDate(),o=n[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==o&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var c=Math.floor((r+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&tr.lweek)return null;var i=7*(e-1)-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function PW(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var FW=RW;function YW(e){e.registerComponentModel(kW),e.registerComponentView(IW),e.registerCoordinateSystem("calendar",FW)}function jW(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function BW(e,t){var n;return _["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function UW(e,t,n){var r=_["extend"]({},n),i=e[t],a=n.$action||"merge";"merge"===a?i?(_["merge"](i,r,!0),pd(i,r,{ignoreSize:!0}),hd(n,i),zW(n,i),zW(n,i,"shape"),zW(n,i,"style"),zW(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===a?e[t]=r:"remove"===a&&i&&(e[t]=null)}var HW=["transition","enterFrom","leaveTo"],GW=HW.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function zW(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?HW:GW,i=0;i=0;l--){c=n[l],u=Hi(c.id,null),d=null!=u?i.get(u):null;if(d){p=d.parent,m=$W(p);var g=p===r?{width:a,height:o}:{width:m.width,height:m.height},v={},y=cd(d,c,g,null,{hv:c.hv,boundingMode:c.bounding},v);if(!$W(d).isNew&&y){for(var b=c.transition,S={},E=0;E=0)?S[x]=w:d[x]=w}uc(d,S,e,0)}else d.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){ZW(n,$W(n).option,t,e._lastGraphicModel)})),this._elMap=_["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}($h);function QW(e){var t=_["hasOwn"](qW,e)?qW[e]:P_(e);var n=new t({});return $W(n).type=e,n}function XW(e,t,n,r){var i=QW(n);return t.add(i),r.set(e,i),$W(i).id=e,$W(i).isNew=!0,i}function ZW(e,t,n,r){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){ZW(e,t,n,r)})),cG(e,t,r),n.removeKey($W(e).id))}function JW(e,t,n,r){e.isGroup||_["each"]([["cursor",to.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];_["hasOwn"](t,r)?e[r]=_["retrieve2"](t[r],n[1]):null==e[r]&&(e[r]=n[1])})),_["each"](_["keys"](t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=_["isFunction"](r)?r:null}})),_["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function eq(e){return e=_["extend"]({},e),_["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(rd),(function(t){delete e[t]})),e}function tq(e,t,n){var r=Vs(e).eventData;e.silent||e.ignore||r||(r=Vs(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function nq(e){e.registerComponentModel(WW),e.registerComponentView(KW),e.registerPreprocessor((function(e){var t=e.graphic;Object(_["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var rq=["x","y","radius","angle","single"],iq=["cartesian2d","polar","singleAxis"];function aq(e){var t=e.get("coordinateSystem");return Object(_["indexOf"])(iq,t)>=0}function oq(e){return e+"Axis"}function sq(e,t){var n,r=Object(_["createHashMap"])(),i=[],a=Object(_["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){a.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",o)}while(n);function o(e){!a.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){a.set(e.uid,!0),i.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function lq(e){var t=e.ecModel,n={infoList:[],infoMap:Object(_["createHashMap"])()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(oq(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}})),n}var cq=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),uq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return h(t,e),t.prototype.init=function(e,t,n){var r=dq(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=dq(e);Object(_["merge"])(this.option,e,!0),Object(_["merge"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(_["each"])([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(_["createHashMap"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(_["each"])(rq,(function(n){var r=this.getReferringComponents(oq(n),ta);if(r.specified){t=!0;var i=new cq;Object(_["each"])(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x",a=n.findComponents({mainType:i+"Axis"});o(a,i)}if(r){a=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});o(a,"single")}function o(t,n){var i=t[0];if(i){var a=new cq;if(a.add(i.componentIndex),e.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",ea).models[0];o&&Object(_["each"])(t,(function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",ea).models[0]&&a.add(e.componentIndex)}))}}}r&&Object(_["each"])(rq,(function(t){if(r){var i=n.findComponents({mainType:oq(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var a=new cq;a.add(i[0].componentIndex),e.set(t,a),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(_["each"])([["start","startValue"],["end","endValue"]],(function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(oq(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(_["each"])(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(oq(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(_["each"])([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(_["each"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!p)return!0;u&&(i=!0),d&&(t=!0),p&&(n=!0)}return i&&t&&n}))}else yq(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return o(e)?e:NaN})));else{var r={};r[n]=a,t.selectRange(r)}}));yq(r,(function(e){t.setApproximateExtent(a,e)}))}}))}function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;yq(["min","max"],(function(r){var i=t.get(r+"Span"),a=t.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?i=ei(n[0]+a,n,[0,100],!0):null!=i&&(a=ei(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=a}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=oi(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();function Eq(e,t,n){var r=[1/0,-1/0];yq(n,(function(e){Yx(r,e.getData(),t)}));var i=e.getAxisModel(),a=wx(i.axis.scale,i,r).calculate();return[a.min,a.max]}var xq=Sq,wq={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var a=e.getComponent(oq(r),i);t(r,i,a,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new xq(t,r,a,e),n.push(i.__dzAxisProxy))}));var r=Object(_["createHashMap"])();return Object(_["each"])(n,(function(e){Object(_["each"])(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},Tq=wq;function Cq(e){e.registerAction("dataZoom",(function(e,t){var n=sq(t,e);Object(_["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var Oq=!1;function Mq(e){Oq||(Oq=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Tq),Cq(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Aq(e){e.registerComponentModel(hq),e.registerComponentView(vq),Mq(e)}var Dq=function(){function e(){}return e}(),kq={};function Lq(e,t){kq[e]=t}function Iq(e){return kq[e]}var Nq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;_["each"](this.option.feature,(function(e,n){var r=Iq(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),_["merge"](e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(vd),Rq=Nq;function Pq(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=ld(r,a,i);od(t.get("orient"),e,t.get("itemGap"),o.width,o.height),cd(e,r,a,i)}function Fq(e,t){var n=Vu(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Cs({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Yq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var a=+e.get("itemSize"),o="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),c=[];_["each"](s,(function(e,t){c.push(t)})),new yS(this._featureNames||[],c).add(u).update(u).remove(_["curry"](u,null)).execute(),this._featureNames=c,Pq(i,e,n),i.add(Fq(i.getBoundingRect(),e)),o||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!_["isFunction"](l)&&t){var c=l.style||(l.style={}),u=vr(t,zs.makeFont(c)),d=e.x+i.x,p=e.y+i.y+a,f=!1;p+u.height>n.getHeight()&&(o.position="top",f=!0);var h=f?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=["100%",h],c.align="right"):d-u.width/2<0&&(o.position=[0,h],c.align="left")}}))}function u(i,a){var o,u=c[i],p=c[a],f=s[u],h=new qc(f,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===u&&(f.title=r.newTitle),u&&!p){if(jq(u))o={onclick:h.option.onclick,featureName:u};else{var m=Iq(u);if(!m)return;o=new m}l[u]=o}else if(o=l[p],!o)return;o.uid=Kc("toolbox-feature"),o.model=h,o.ecModel=t,o.api=n;var _=o instanceof Dq;u||!p?!h.get("show")||_&&o.unusable?_&&o.remove&&o.remove(t,n):(d(h,o,u),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Dl:kl)(r[e])},o instanceof Dq&&o.render&&o.render(h,t,n,r)):_&&o.dispose&&o.dispose(t,n)}function d(r,s,l){var c,u,d=r.getModel("iconStyle"),p=r.getModel(["emphasis","iconStyle"]),f=s instanceof Dq&&s.getIcons?s.getIcons():r.get("icon"),h=r.get("title")||{};_["isString"](f)?(c={},c[l]=f):c=f,_["isString"](h)?(u={},u[l]=h):u=h;var m=r.iconPaths={};_["each"](c,(function(l,c){var f=J_(l,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(d.getItemStyle());var h=f.ensureState("emphasis");h.style=p.getItemStyle();var g=new zs({style:{text:u[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});f.setTextContent(g),ig({el:f,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),f.__title=u[c],f.on("mouseover",(function(){var t=p.getItemStyle(),r=o?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";g.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),f.setTextConfig({position:p.get("textPosition")||r}),g.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",c])&&n.leaveEmphasis(this),g.hide()})),("emphasis"===r.get(["iconStatus",c])?Dl:kl)(f),i.add(f),f.on("click",_["bind"](s.onclick,s,t,n,c)),m[c]=f}))}},t.prototype.updateView=function(e,t,n,r){_["each"](this._features,(function(e){e instanceof Dq&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){_["each"](this._features,(function(n){n instanceof Dq&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){_["each"](this._features,(function(n){n instanceof Dq&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}($h);function jq(e){return 0===e.indexOf("my")}var Bq=Yq,Uq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),a=i?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=m["a"].browser;if(Object(_["isFunction"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+a,l.target="_blank",l.href=o;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(","),d=u[0].indexOf("base64")>-1,p=i?decodeURIComponent(u[1]):u[1];d&&(p=window.atob(p));var f=r+"."+a;if(window.navigator.msSaveOrOpenBlob){var h=p.length,g=new Uint8Array(h);while(h--)g[h]=p.charCodeAt(h);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,f)}else{var y=document.createElement("iframe");document.body.appendChild(y);var b=y.contentWindow,S=b.document;S.open("image/svg+xml","replace"),S.write(p),S.close(),b.focus(),S.execCommand("SaveAs",!0,f),document.body.removeChild(y)}}else{var E=n.get("lang"),x='',w=window.open();w.document.write(x),w.document.title=r}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(Dq),Hq=Uq,Gq="__ec_magicType_stack__",zq=[["line","bar"],["stack"]],Vq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return _["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(Wq[n]){var a,o={series:[]},s=function(e){var t=e.subType,i=e.id,a=Wq[n](t,i,e,r);a&&(_["defaults"](a,e.option),o.series.push(a));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",d=e.getReferringComponents(u,ea).models[0],p=d.componentIndex;o[u]=o[u]||[];for(var f=0;f<=p;f++)o[u][p]=o[u][p]||{};o[u][p].boundaryGap="bar"===n}}};_["each"](zq,(function(e){_["indexOf"](e,n)>=0&&_["each"](e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(a=_["merge"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:a,featureName:"magicType"})}},t}(Dq),Wq={line:function(e,t,n,r){if("bar"===e)return _["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return _["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===Gq;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),_["merge"]({id:t,stack:i?"":Gq},r.get(["option","stack"])||{},!0)}};eS({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var qq=Vq,$q=new Array(60).join("-"),Kq="\t";function Qq(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var a=i.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function Xq(e){var t=[];return _["each"](e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis,a=i.dim,o=[" "].concat(_["map"](e.series,(function(e){return e.name}))),s=[r.model.getCategories()];_["each"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(a),(function(e){return e})))}));for(var l=[o.join(Kq)],c=0;c=0)return!0}var n$=new RegExp("["+Kq+"]+","g");function r$(e){for(var t=e.split(/\n+/g),n=e$(t.shift()).split(n$),r=[],i=_["map"](n,(function(e){return{name:e,data:[]}})),a=0;a=0;i--){var a=n[i];if(a[r])break}if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var s=o.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function p$(e){var t=m$(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return c$(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}})),r}function f$(e){u$(e).snapshots=null}function h$(e){return m$(e).length}function m$(e){var t=u$(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var _$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.onclick=function(e,t){f$(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(Dq);eS({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var g$=_$,v$=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],y$=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=S$(t,e);Object(_["each"])(E$,(function(e,t){(!n||!n.include||Object(_["indexOf"])(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=T$[e.brushType](0,n,t);e.__rangeOffset={offset:O$[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(_["each"])(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(_["each"])(r.coordSyses,(function(r){var i=T$[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(_["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=T$[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?O$[e.brushType](r.values,i.offset,A$(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(_["map"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:ij(r),isTargetByCursor:oj(r,e,n.coordSysModel),getLinearBrushOtherExtent:aj(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(_["indexOf"])(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=S$(t,e),i=0;ie[1]&&e.reverse(),e}function S$(e,t){return Zi(e,t,{includeMainTypes:v$})}var E$={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Object(_["createHashMap"])(),o={},s={};(n||r||i)&&(Object(_["each"])(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0})),Object(_["each"])(r,(function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0})),Object(_["each"])(i,(function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0})),a.each((function(e){var i=e.coordinateSystem,a=[];Object(_["each"])(i.getCartesians(),(function(e,t){(Object(_["indexOf"])(n,e.getAxis("x").model)>=0||Object(_["indexOf"])(r,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:w$.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(_["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:w$.geo})}))}},x$=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],w$={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(V_(e)),t}},T$={lineX:Object(_["curry"])(C$,0),lineY:Object(_["curry"])(C$,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[b$([i[0],a[0]]),b$([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=Object(_["map"])(n,(function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}));return{values:a,xyMinMax:i}}};function C$(e,t,n,r){var i=n.getAxis(["x","y"][e]),a=b$(Object(_["map"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var O$={lineX:Object(_["curry"])(M$,0),lineY:Object(_["curry"])(M$,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(_["map"])(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function M$(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function A$(e,t){var n=D$(e),r=D$(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function D$(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var k$=y$,L$=_["each"],I$=Vi("toolbox-dataZoom_"),N$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new rj(n.getZr()),this._brushController.on("brush",_["bind"](this._onBrush,this)).mount()),Y$(e,t,this,r,n),F$(e,t)},t.prototype.onclick=function(e,t,n){R$[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new k$(P$(this.model),r,{include:["grid"]});i.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(a("x",n,t[0]),a("y",n,t[1])):a({lineX:"x",lineY:"y"}[r],n,t)}})),d$(r,n),this._dispatchZoomAction(n)}function a(e,t,i){var a=t.getAxis(e),s=a.model,l=o(e,s,r),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(i=HF(0,i.slice(),a.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function o(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];L$(e,(function(e,n){t.push(_["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(Dq),R$={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(p$(this.ecModel))}};function P$(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function F$(e,t){e.setIconStatus("back",h$(t)>1?"emphasis":"normal")}function Y$(e,t,n,r,i){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new k$(P$(e),t,{include:["grid"]}),s=o.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Ud("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],a=P$(r),o=Zi(e,a);return L$(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),L$(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),i}function s(e,t,n){var a=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:I$+t+a};o[n]=a,i.push(o)}}));var j$=N$;function B$(e){e.registerComponentModel(Rq),e.registerComponentView(Bq),Lq("saveAsImage",Hq),Lq("magicType",qq),Lq("dataView",l$),Lq("dataZoom",j$),Lq("restore",g$),mS(Aq)}var U$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(vd),H$=U$;function G$(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function z$(e){if(m["a"].domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(a="left"===o?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(a="top"===o?225:45)+"deg)");var u=a*Math.PI/180,d=s+i,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),f=Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-d)/2))/100;l+=";"+o+":-"+f+"px";var h=t+" solid "+i+"px;",m=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'
'}function eK(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=m["a"].transformSupported?","+Q$+r:",left"+r+",top"+r),K$+":"+i}function tK(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!m["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=m["a"].transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+Q$+":"+o+";":[["top",0],["left",0],[V$,o]]}function nK(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),Object(_["each"])(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function rK(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=Dh(e,"html"),p=l+"px "+c+"px "+o+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(eK(i,n)),a&&r.push("background-color:"+a),Object(_["each"])(["width","color","radius"],(function(t){var n="border-"+t,i=zu(n),a=e.get(i);null!=a&&r.push(n+":"+a+("color"===t?"":"px"))})),r.push(nK(u)),null!=d&&r.push("padding:"+Vu(d).join("px ")+"px"),r.join(";")+";"}function iK(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&ee(e,o,document.body,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var aK=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,m["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;iK(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(r):e.appendChild(r),this._container=e;var o=this;r.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=i.handler,n=i.painter.getViewportRoot();he(n,e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=$$(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=X$+rK(e,!this._firstShow,this._longHide)+tK(i[0],i[1],!0)+"border-color:"+ed(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(null!=e){var o="";if(Object(_["isString"])(i)&&"item"===n.get("trigger")&&!G$(n)&&(o=J$(n,r,i)),Object(_["isString"])(e))a.innerHTML=e+o;else if(e){a.innerHTML="",Object(_["isArray"])(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!m["a"].node&&n.getDom()){var i=mK(r,n);this._ticket="";var a=r.dataByCoordSys,o=bK(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=pK;l.x=r.x,l.y=r.y,l.update(),Vs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var c=Qz(r,t),u=c.point[0],d=c.point[1];null!=u&&null!=d&&this._tryShow({offsetX:u,offsetY:d,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(mK(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=a&&null!=o){var s=t.getSeriesByIndex(i);if(s){var l=s.getData(),c=hK([l.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:a,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var a,o;this._lastDataByCoordSys=null,hv(n,(function(e){return null!=Vs(e).dataIndex?(a=e,!0):null!=Vs(e).tooltipConfig?(o=e,!0):void 0}),!0),a?this._showSeriesItemTooltip(e,a,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(_["bind"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=hK([t.tooltipOption],r),o=this._renderMode,s=[],l=_h("section",{blocks:[],noHeader:!0}),c=[],u=new kh;Object(_["each"])(e,(function(e){Object(_["each"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var a=Cz(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=_h("section",{header:a,noHeader:!Object(_["trim"])(a),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(_["each"])(e.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=p.getDataParams(f);if(!(h.dataIndex<0)){h.axisDim=e.axisDim,h.axisIndex=e.axisIndex,h.axisType=e.axisType,h.axisId=e.axisId,h.axisValue=Lx(t.axis,{value:i}),h.axisValueLabel=a,h.marker=u.makeTooltipMarker("item",ed(h.color),o);var m=Cf(p.formatTooltip(f,!0,null)),g=m.frag;if(g){var v=hK([p],r).get("valueFormatter");d.blocks.push(v?Object(_["extend"])({valueFormatter:v},g):g)}m.text&&c.push(m.text),s.push(h)}}))}}))})),l.blocks.reverse(),c.reverse();var d=t.position,p=a.get("order"),f=Eh(l,u,o,p,n.get("useUTC"),a.get("textStyle"));f&&c.unshift(f);var h="richText"===o?"\n\n":"
",m=c.join(h);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+"",i[0],i[1],d,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Vs(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,l=i.dataIndex,c=i.dataType,u=s.getData(c),d=this._renderMode,p=e.positionDefault,f=hK([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),h=f.get("trigger");if(null==h||"item"===h){var m=s.getDataParams(l,c),g=new kh;m.marker=g.makeTooltipMarker("item",ed(m.color),d);var v=Cf(s.formatTooltip(l,!1,c)),y=f.get("order"),b=f.get("valueFormatter"),S=v.frag,E=S?Eh(b?Object(_["extend"])({valueFormatter:b},S):S,g,d,y,r.get("useUTC"),f.get("textStyle")):v.text,x="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,E,m,x,e.offsetX,e.offsetY,e.position,e.target,g)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=Vs(t),i=r.tooltipConfig,a=i.option||{};if(Object(_["isString"])(a)){var o=a;a={content:o,formatter:o}}var s=[a],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:a.content});var c=e.positionDefault,u=hK(s,this._tooltipModel,c?{position:c}:null),d=u.get("content"),p=Math.random()+"",f=new kh;this._showOrMove(u,(function(){var n=Object(_["clone"])(u.get("formatterParams")||{});this._showTooltipContent(u,d,n,p,e.offsetX,e.offsetY,e.position,t,f)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");o=o||e.get("position");var d=t,p=this._getNearestPoint([i,a],n,e.get("trigger"),e.get("borderColor")),f=p.color;if(u)if(Object(_["isString"])(u)){var h=e.ecModel.get("useUTC"),m=Object(_["isArray"])(n)?n[0]:n,g=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=u,g&&(d=Tu(m.axisValue,d,h)),d=Ku(d,n,!0)}else if(Object(_["isFunction"])(u)){var v=Object(_["bind"])((function(t,r){t===this._ticket&&(c.setContent(r,l,e,f,o),this._updatePosition(e,o,i,a,c,n,s))}),this);this._ticket=r,d=u(n,r,v)}else d=u;c.setContent(d,l,e,f,o),c.show(e,f),this._updatePosition(e,o,i,a,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(_["isArray"])(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(_["isArray"])(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=i.getSize(),u=e.get("align"),d=e.get("verticalAlign"),p=o&&o.getBoundingRect().clone();if(o&&p.applyTransform(o.transform),Object(_["isFunction"])(t)&&(t=t([n,r],a,i.el,p,{viewSize:[s,l],contentSize:c.slice()})),Object(_["isArray"])(t))n=ti(t[0],s),r=ti(t[1],l);else if(Object(_["isObject"])(t)){var f=t;f.width=c[0],f.height=c[1];var h=ld(f,{width:s,height:l});n=h.x,r=h.y,u=null,d=null}else if(Object(_["isString"])(t)&&o){var m=vK(t,p,c,e.get("borderWidth"));n=m[0],r=m[1]}else{m=_K(n,r,i,s,l,u?null:20,d?null:20);n=m[0],r=m[1]}if(u&&(n-=yK(u)?c[0]/2:"right"===u?c[0]:0),d&&(r-=yK(d)?c[1]/2:"bottom"===d?c[1]:0),G$(e)){m=gK(n,r,i,s,l);n=m[0],r=m[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(_["each"])(n,(function(n,a){var o=n.dataByAxis||[],s=e[a]||{},l=s.dataByAxis||[];i=i&&o.length===l.length,i&&Object(_["each"])(o,(function(e,n){var a=l[n]||{},o=e.seriesDataIndices||[],s=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===s.length,i&&Object(_["each"])(o,(function(e,t){var n=s[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(_["each"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!m["a"].node&&t.getDom()&&(Sg(this,"_updatePosition"),this._tooltipContent.dispose(),qz("itemTooltip",t))},t.type="tooltip",t}($h);function hK(e,t,n){var r,i=t.ecModel;n?(r=new qc(n,i,i),r=new qc(t.option,r,i)):r=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof qc&&(o=o.get("tooltip",!0)),Object(_["isString"])(o)&&(o={formatter:o}),o&&(r=new qc(o,r,i)))}return r}function mK(e,t){return e.dispatchAction||Object(_["bind"])(t.dispatchAction,t)}function _K(e,t,n,r,i,a,o){var s=n.getSize(),l=s[0],c=s[1];return null!=a&&(e+l+a+2>r?e-=l+a:e+=a),null!=o&&(t+c+o>i?t-=c+o:t+=o),[e,t]}function gK(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function vK(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+u/2-a/2;break;case"top":s=t.x+c/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+c/2-i/2,l=t.y+u+o;break;case"left":s=t.x-i-o,l=t.y+u/2-a/2;break;case"right":s=t.x+c+o,l=t.y+u/2-a/2}return[s,l]}function yK(e){return"center"===e||"middle"===e}function bK(e,t,n){var r=Ji(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var a=na(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s,l=n.getViewOfComponentModel(o);return l.group.traverse((function(t){var n=Vs(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:i,componentIndex:o.componentIndex,el:s}:void 0}}}var SK=fK;function EK(e){mS(cV),e.registerComponentModel(H$),e.registerComponentView(SK),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_["noop"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_["noop"])}var xK=["rect","polygon","keep","clear"];function wK(e,t){var n=Mi(e?e.brush:[]);if(n.length){var r=[];_["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;_["isArray"](i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),TK(s),t&&!s.length&&s.push.apply(s,xK)}}function TK(e){var t={};_["each"](e,(function(e){t[e]=1})),e.length=0,_["each"](t,(function(t,n){e.push(n)}))}var CK=_["each"];function OK(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function MK(e,t,n){var r={};return CK(t,(function(t){var a=r[t]=i();CK(e[t],(function(e,r){if(KN.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new KN(i),"opacity"===r&&(i=_["clone"](i),i.type="colorAlpha",a.__hidden.__alphaForOpacity=new KN(i))}}))})),r;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function AK(e,t,n){var r;_["each"](n,(function(e){t.hasOwnProperty(e)&&OK(t[e])&&(r=!0)})),r&&_["each"](n,(function(n){t.hasOwnProperty(n)&&OK(t[n])?e[n]=_["clone"](t[n]):delete e[n]}))}function DK(e,t,n,r,i,a){var o,s={};function l(e){return lv(n,o,e)}function c(e,t){uv(n,o,e,t)}function u(e,u){o=null==a?e:u;var d=n.getRawDataItem(o);if(!d||!1!==d.visualMap)for(var p=r.call(i,e),f=t[p],h=s[p],m=0,_=h.length;m<_;m++){var g=h[m];f[g]&&f[g].applyVisual(e,l,c)}}_["each"](e,(function(e){var n=KN.prepareVisualTypes(t[e]);s[e]=n})),null==a?n.each(u):n.each([a],u)}function kK(e,t,n,r){var i={};return _["each"](e,(function(e){var n=KN.prepareVisualTypes(t[e]);i[e]=n})),{progress:function(e,a){var o,s;function l(e){return lv(a,s,e)}function c(e,t){uv(a,s,e,t)}null!=r&&(o=a.getDimensionIndex(r));var u=a.getStore();while(null!=(s=e.next())){var d=a.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var p=null!=r?u.get(o,s):s,f=n(p),h=t[f],m=i[f],_=0,g=m.length;_t[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&WK(t)}};function WK(e){return new ze(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var qK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new rj(t.getZr())).on("brush",_["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){jK(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:_["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:_["clone"](n),$from:t})},t.type="brush",t}($h),$K=qK,KK="#ddd",QK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return h(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&AK(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:KK},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=_["map"](e,(function(e){return XK(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=XK(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(vd);function XK(e,t){return _["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new qc(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var ZK=QK,JK=["rect","polygon","lineX","lineY","keep","clear"],eQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",a=a||!!e.areas.length})),this._brushType=r,this._brushMode=i,_["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?a:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return _["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:JK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(Dq),tQ=eQ;function nQ(e){e.registerComponentView($K),e.registerComponentModel(ZK),e.registerPreprocessor(wK),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,BK),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},_["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},_["noop"]),Lq("brush",tQ)}var rQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return h(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(vd),iQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),a=e.getModel("subtextStyle"),o=e.get("textAlign"),s=_["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new zs({style:xc(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),d=new zs({style:xc(a,{text:u,fill:a.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),f=e.get("sublink"),h=e.get("triggerEvent",!0);l.silent=!p&&!h,d.silent=!f&&!h,p&&l.on("click",(function(){td(p,"_"+e.get("target"))})),f&&d.on("click",(function(){td(f,"_"+e.get("subtarget"))})),Vs(l).eventData=Vs(d).eventData=h?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),u&&r.add(d);var m=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=m.width,g.height=m.height;var v=ld(g,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o||(o=e.get("left")||e.get("right"),"middle"===o&&(o="center"),"right"===o?v.x+=v.width:"center"===o&&(v.x+=v.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var y={align:o,verticalAlign:s};l.setStyle(y),d.setStyle(y),m=r.getBoundingRect();var b=v.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var E=new Cs({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});r.add(E)}},t.type="title",t}($h);function aQ(e){e.registerComponentModel(rQ),e.registerComponentView(iQ)}var oQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return h(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(_["each"])(n,(function(t,n){var r,a=Hi(ki(t),"");Object(_["isObject"])(t)?(r=Object(_["clone"])(t),r.value=n):r=n,e.push(r),i.push(a)}))):e=n;var a={category:"ordinal",time:"time",value:"number"}[r]||"number",o=this._data=new KS([{name:"value",type:a}],this);o.initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(vd),sQ=oQ,lQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="timeline.slider",t.defaultOption=Zc(sQ.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(sQ);Object(_["mixin"])(lQ,Tf.prototype);var cQ=lQ,uQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="timeline",t}($h),dQ=uQ,pQ=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a}return h(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Ow),fQ=pQ,hQ=Math.PI,mQ=Qi(),_Q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return _h("nameValue",{noName:!0,value:t})},Object(_["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,o,e)}),this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r=e.get(["label","position"]),i=e.get("orient"),a=vQ(e,t);n=null==r||"auto"===r?"horizontal"===i?a.y+a.height/2=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:hQ/2},p="vertical"===i?a.height:a.width,f=e.getModel("controlStyle"),h=f.get("show",!0),m=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,v=m+g,y=e.get(["label","rotate"])||0;y=y*hQ/180;var b=f.get("position",!0),S=h&&f.get("showPlayBtn",!0),E=h&&f.get("showPrevBtn",!0),x=h&&f.get("showNextBtn",!0),w=0,T=p;"left"===b||"bottom"===b?(S&&(o=[0,0],w+=v),E&&(s=[w,0],w+=v),x&&(l=[T-m,0],T-=v)):(S&&(o=[T-m,0],T-=v),E&&(s=[0,0],w+=v),x&&(l=[T-m,0],T-=v));var C=[w,T];return e.get("inverse")&&C.reverse(),{viewRect:a,mainLength:p,orient:i,rotation:d[i],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:m,controlGap:g}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=we(),o=i.x,s=i.y+i.height;Me(a,a,[-o,-s]),Ae(a,a,-hQ/2),Me(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var l=g(i),c=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],p=[r.x,r.y];p[0]=d[0]=l[0][0];var f=e.labelPosOpt;if(null==f||Object(_["isString"])(f)){var h="+"===f?0:1;v(d,c,l,1,h),v(p,u,l,1,1-h)}else{h=f>=0?0:1;v(d,c,l,1,h),p[1]=d[1]+f}function m(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(d),r.setPosition(p),n.rotation=r.rotation=e.rotation,m(n),m(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=gQ(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var a=n.getDataExtent("value");i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new fQ("value",i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new jr;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var a=new r_({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(_["extend"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new r_({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(_["defaults"])({lineCap:"round",lineWidth:a.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(_["each"])(o,(function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),d={x:o,y:0,onclick:Object(_["bind"])(i._changeTimeline,i,e.value)},p=bQ(s,l,t,d);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=u.getItemStyle(),ql(p);var f=Vs(p);s.get("tooltip")?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(p)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this,a=n.getLabelModel();if(a.get("show")){var o=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(_["each"])(s,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),p=new zs({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(_["bind"])(i._changeTimeline,i,a),silent:!1,style:xc(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});p.ensureState("emphasis").style=xc(c),p.ensureState("progress").style=xc(u),t.add(p),ql(p),mQ(p).dataIndex=a,i._tickLabels.push(p)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),c=r.get("inverse",!0);function u(e,n,l,c){if(e){var u=Er(Object(_["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),d=[0,-u/2,u,u],p=yQ(r,n+"Icon",d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:c?-a:0,rectHover:!0,style:o,onclick:l});p.ensureState("emphasis").style=s,t.add(p),ql(p)}}u(e.nextBtnPosition,"next",Object(_["bind"])(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",Object(_["bind"])(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",Object(_["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(_["bind"])(s._handlePointerDrag,s),e.ondragend=Object(_["bind"])(s._handlePointerDragend,s),SQ(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){SQ(e,s._progressLine,a,n,r)}};this._currentPointer=bQ(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=ri(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(o[a]=+o[a].toFixed(p)),[o,d]}var jQ={min:Object(_["curry"])(YQ,"min"),max:Object(_["curry"])(YQ,"max"),average:Object(_["curry"])(YQ,"average"),median:Object(_["curry"])(YQ,"median")};function BQ(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!FQ(t)&&!Object(_["isArray"])(t.coord)&&Object(_["isArray"])(i)){var a=UQ(t,n,r,e);if(t=Object(_["clone"])(t),t.type&&jQ[t.type]&&a.baseAxis&&a.valueAxis){var o=Object(_["indexOf"])(i,a.baseAxis.dim),s=Object(_["indexOf"])(i,a.valueAxis.dim),l=jQ[t.type](n,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(_["isArray"])(i))for(var c=t.coord,u=0;u<2;u++)jQ[c[u]]&&(c[u]=WQ(n,n.mapDimension(i[u]),c[u]));else t.coord=[];return t}}function UQ(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(HQ(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function HQ(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function GQ(e,t){return!(e&&e.containData&&t.coord&&!PQ(t))||e.containData(t.coord)}function zQ(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!PQ(t)&&!PQ(n))||e.containZone(t.coord,n.coord)}function VQ(e,t){return e?function(e,n,r,i){var a=i<2?e.coord&&e.coord[i]:e.value;return Df(a,t[i])}:function(e,n,r,i){return Df(e.value,t[i])}}function WQ(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var qQ=Qi(),$Q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.init=function(){this.markerGroupMap=Object(_["createHashMap"])()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){qQ(e).keep=!1})),t.eachSeries((function(e){var i=IQ.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!qQ(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){qQ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(_["each"])(e,(function(e){var r=IQ.getMarkerModelFromSeries(e,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(e){e&&(t?Ll(e):Il(e))}))}}))},t.type="marker",t}($h),KQ=$Q;function QQ(e,t,n){var r=t.coordinateSystem;e.each((function(i){var a,o=e.getItemModel(i),s=ti(o.get("x"),n.getWidth()),l=ti(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var c=e.get(r.dimensions[0],i),u=e.get(r.dimensions[1],i);a=r.dataToPoint([c,u])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(i,a)}))}var XQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=IQ.getMarkerModelFromSeries(e,"markPoint");t&&(QQ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new _O),c=ZQ(i,e,t);t.setData(c),QQ(t.getData(),e,r),c.each((function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(_["isFunction"])(r)||Object(_["isFunction"])(i)||Object(_["isFunction"])(a)||Object(_["isFunction"])(s)){var u=t.getRawValue(e),d=t.getDataParams(e);Object(_["isFunction"])(r)&&(r=r(u,d)),Object(_["isFunction"])(i)&&(i=i(u,d)),Object(_["isFunction"])(a)&&(a=a(u,d)),Object(_["isFunction"])(s)&&(s=s(u,d))}var p=n.getModel("itemStyle").getItemStyle(),f=cv(o,"color");p.fill||(p.fill=f),c.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Vs(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(KQ);function ZQ(e,t,n){var r;r=e?Object(_["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(_["extend"])(Object(_["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new KS(r,n),a=Object(_["map"])(n.get("data"),Object(_["curry"])(BQ,t));e&&(a=Object(_["filter"])(a,Object(_["curry"])(GQ,e)));var o=VQ(!!e,r);return i.initData(a,null,o),i}var JQ=XQ;function eX(e){e.registerComponentModel(RQ),e.registerComponentView(JQ),e.registerPreprocessor((function(e){AQ(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var tX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(IQ),nX=tX,rX=Qi(),iX=function(e,t,n,r){var i,a=e.getData();if(Object(_["isArray"])(r))i=r;else{var o=r.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),l=Object(_["retrieve"])(r.yAxis,r.xAxis);else{var c=UQ(r,a,t,e);s=c.valueAxis;var u=lE(a,c.valueDataDim);l=WQ(a,u,o)}var d="x"===s.dim?0:1,p=1-d,f=Object(_["clone"])(r),h={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,h.coord[p]=1/0;var m=n.get("precision");m>=0&&Object(_["isNumber"])(l)&&(l=+l.toFixed(Math.min(m,20))),f.coord[d]=h.coord[d]=l,i=[f,h,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[BQ(e,i[0]),BQ(e,i[1]),Object(_["extend"])({},i[2])];return g[2].type=g[2].type||null,Object(_["merge"])(g[2],g[0]),Object(_["merge"])(g[2],g[1]),g};function aX(e){return!isNaN(e)&&!isFinite(e)}function oX(e,t,n,r){var i=1-e,a=r.dimensions[e];return aX(t[i])&&aX(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function sX(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(oX(1,n,r,e)||oX(0,n,r,e)))return!0}return GQ(e,t[0])&&GQ(e,t[1])}function lX(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=ti(s.get("x"),i.getWidth()),c=ti(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);a=o.dataToPoint([d,p])}if(IO(o,"cartesian2d")){var f=o.getAxis("x"),h=o.getAxis("y");u=o.dimensions;aX(e.get(u[0],t))?a[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):aX(e.get(u[1],t))&&(a[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];e.setItemLayout(t,a)}var cX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=IQ.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=rX(t).from,a=rX(t).to;i.each((function(t){lX(i,t,!0,e,n),lX(a,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new wP);this.group.add(l.group);var c=uX(i,e,t),u=c.from,d=c.to,p=c.line;rX(t).from=u,rX(t).to=d,t.setData(p);var f=t.get("symbol"),h=t.get("symbolSize"),m=t.get("symbolRotate"),g=t.get("symbolOffset");function v(t,n,i){var a=t.getItemModel(n);lX(t,n,i,e,r);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=cv(o,"color")),t.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(_["retrieve2"])(a.get("symbolOffset",!0),g[i?0:1]),symbolRotate:Object(_["retrieve2"])(a.get("symbolRotate",!0),m[i?0:1]),symbolSize:Object(_["retrieve2"])(a.get("symbolSize"),h[i?0:1]),symbol:Object(_["retrieve2"])(a.get("symbol",!0),f[i?0:1]),style:s})}Object(_["isArray"])(f)||(f=[f,f]),Object(_["isArray"])(h)||(h=[h,h]),Object(_["isArray"])(m)||(m=[m,m]),Object(_["isArray"])(g)||(g=[g,g]),c.from.each((function(e){v(u,e,!0),v(d,e,!1)})),p.each((function(e){var t=p.getItemModel(e).getModel("lineStyle").getLineStyle();p.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),p.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(p),c.line.eachItemGraphicEl((function(e){Vs(e).dataModel=t,e.traverse((function(e){Vs(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(KQ);function uX(e,t,n){var r;r=e?Object(_["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(_["extend"])(Object(_["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new KS(r,n),a=new KS(r,n),o=new KS([],n),s=Object(_["map"])(n.get("data"),Object(_["curry"])(iX,t,e,n));e&&(s=Object(_["filter"])(s,Object(_["curry"])(sX,e)));var l=VQ(!!e,r);return i.initData(Object(_["map"])(s,(function(e){return e[0]})),null,l),a.initData(Object(_["map"])(s,(function(e){return e[1]})),null,l),o.initData(Object(_["map"])(s,(function(e){return e[2]}))),o.hasItemOption=!0,{from:i,to:a,line:o}}var dX=cX;function pX(e){e.registerComponentModel(nX),e.registerComponentView(dX),e.registerPreprocessor((function(e){AQ(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var fX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(IQ),hX=fX,mX=Qi(),_X=function(e,t,n,r){var i=r[0],a=r[1];if(i&&a){var o=BQ(e,i),s=BQ(e,a),l=o.coord,c=s.coord;l[0]=Object(_["retrieve"])(l[0],-1/0),l[1]=Object(_["retrieve"])(l[1],-1/0),c[0]=Object(_["retrieve"])(c[0],1/0),c[1]=Object(_["retrieve"])(c[1],1/0);var u=Object(_["mergeAll"])([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function gX(e){return!isNaN(e)&&!isFinite(e)}function vX(e,t,n,r){var i=1-e;return gX(t[i])&&gX(n[i])}function yX(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return IO(e,"cartesian2d")?!(!n||!r||!vX(1,n,r,e)&&!vX(0,n,r,e))||zQ(e,i,a):GQ(e,i)||GQ(e,a)}function bX(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=ti(s.get(n[0]),i.getWidth()),c=ti(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(c)){if(r.getMarkerPosition){var u=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=o.clampData(u),f=o.clampData(d),h=[];"x0"===n[0]?h[0]=p[0]>f[0]?d[0]:u[0]:h[0]=p[0]>f[0]?u[0]:d[0],"y0"===n[1]?h[1]=p[1]>f[1]?d[1]:u[1]:h[1]=p[1]>f[1]?u[1]:d[1],a=r.getMarkerPosition(h,n,!0)}else{var m=e.get(n[0],t),_=e.get(n[1],t),g=[m,_];o.clampData&&o.clampData(g,g),a=o.dataToPoint(g,!0)}if(IO(o,"cartesian2d")){var v=o.getAxis("x"),y=o.getAxis("y");m=e.get(n[0],t),_=e.get(n[1],t);gX(m)?a[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):gX(_)&&(a[1]=y.toGlobalCoord(y.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];return a}var SX=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],EX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=IQ.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(_["map"])(SX,(function(i){return bX(r,t,i,e,n)}));r.setItemLayout(t,i);var a=r.getItemGraphicEl(t);a.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new jr});this.group.add(l.group),this.markKeep(l);var c=xX(i,e,t);t.setData(c),c.each((function(t){var n=Object(_["map"])(SX,(function(n){return bX(c,t,n,e,r)})),a=i.getAxis("x").scale,s=i.getAxis("y").scale,l=a.getExtent(),u=s.getExtent(),d=[a.parse(c.get("x0",t)),a.parse(c.get("x1",t))],p=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];ri(d),ri(p);var f=!(l[0]>d[1]||l[1]p[1]||u[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(vd),MX=OX,AX=_["curry"],DX=_["each"],kX=jr,LX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return h(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new kX),this.group.add(this._selectorGroup=new kX),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");var o=e.get("selector",!0),s=e.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,o,a,s);var l=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),d=ld(l,c,u),p=this.layoutInner(e,i,d,r,o,s),f=ld(_["defaults"]({width:p.width,height:p.height},l),c,u);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Fq(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),l=_["createHashMap"](),c=t.get("selectedMode"),u=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),DX(t.getData(),(function(i,a){var o=i.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var d=new kX;return d.newline=!0,void s.add(d)}var p=n.getSeriesByName(o)[0];if(!l.get(o)){if(p){var f=p.getData(),h=f.getVisual("legendLineStyle")||{},m=f.getVisual("legendIcon"),g=f.getVisual("style"),v=this._createItem(p,o,a,i,t,e,h,g,m,c,r);v.on("click",AX(RX,o,null,r,u)).on("mouseover",AX(FX,p.name,null,r,u)).on("mouseout",AX(YX,p.name,null,r,u)),l.set(o,!0)}else n.eachRawSeries((function(n){if(!l.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var d=s.indexOfName(o),p=s.getItemVisual(d,"style"),f=s.getItemVisual(d,"legendIcon"),h=Object(en["parse"])(p.fill);h&&0===h[3]&&(h[3]=.2,p=_["extend"](_["extend"]({},p),{fill:Object(en["stringify"])(h,"rgba")}));var m=this._createItem(n,o,a,i,t,e,{},p,f,c,r);m.on("click",AX(RX,null,o,r,u)).on("mouseover",AX(FX,null,o,r,u)).on("mouseout",AX(YX,null,o,r,u)),l.set(o,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();DX(e,(function(e){var r=e.type,i=new zs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});a.add(i);var o=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);Sc(i,{normal:o,emphasis:s},{defaultText:e.title}),ql(i)}))},t.prototype._createItem=function(e,t,n,r,i,a,o,s,l,c,u){var d=e.visualDrawType,p=i.get("itemWidth"),f=i.get("itemHeight"),h=i.isSelected(t),m=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),v=r.get("icon");l=v||l||"roundRect";var y=IX(l,r,o,s,d,h,u),b=new kX,S=r.getModel("textStyle");if(!_["isFunction"](e.getLegendIcon)||v&&"inherit"!==v){var E="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===m?e.getData().getVisual("symbolRotate"):m:0;b.add(NX({itemWidth:p,itemHeight:f,icon:l,iconRotate:E,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else b.add(e.getLegendIcon({itemWidth:p,itemHeight:f,icon:l,iconRotate:m,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var x="left"===a?p+5:-5,w=a,T=i.get("formatter"),C=t;_["isString"](T)&&T?C=T.replace("{name}",null!=t?t:""):_["isFunction"](T)&&(C=T(t));var O=h?S.getTextColor():r.get("inactiveColor");b.add(new zs({style:xc(S,{text:C,x:x,y:f/2,fill:O,align:w,verticalAlign:"middle"},{inheritColor:O})}));var M=new Cs({shape:b.getBoundingRect(),invisible:!0}),A=r.getModel("tooltip");return A.get("show")&&ig({el:M,componentModel:i,itemName:t,itemTooltipOption:A.option}),b.add(M),b.eachChild((function(e){e.silent=!0})),M.silent=!c,this.getContentGroup().add(b),ql(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();od(e.get("orient"),o,e.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),i){od("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],p=e.get("selectorButtonGap",!0),f=e.getOrient().index,h=0===f?"width":"height",m=0===f?"height":"width",_=0===f?"y":"x";"end"===a?d[f]+=l[h]+p:c[f]+=u[h]+p,d[1-f]+=l[m]/2-u[m]/2,s.x=d[0],s.y=d[1],o.x=c[0],o.y=c[1];var g={x:0,y:0};return g[h]=l[h]+p+u[h],g[m]=Math.max(l[m],u[m]),g[_]=Math.min(0,u[_]+d[1-f]),g}return o.x=c[0],o.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}($h);function IX(e,t,n,r,i,a,o){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),DX(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");c.decal=d&&"inherit"!==d?gy(d,o):r.decal,"inherit"===c.fill&&(c.fill=r[i]),"inherit"===c.stroke&&(c.stroke=r[u]),"inherit"===c.opacity&&(c.opacity=("fill"===i?r:n).opacity),s(c,r);var p=t.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===c.fill&&(c.fill=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!a){var h=t.get("inactiveBorderWidth"),m=c[u];c.lineWidth="auto"===h?r.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:f}}function NX(e){var t=e.icon||"roundRect",n=Mv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function RX(e,t,n,r){YX(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),FX(e,t,n,r)}function PX(e){var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],h=[-d.x,-d.y];t||(h[r]=l[s]);var m=[0,0],g=[-p.x,-p.y],v=_["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var y=e.get("pageButtonPosition",!0);"end"===y?g[r]+=n[i]-p[i]:m[r]+=p[i]+v}g[1-r]+=d[a]/2-p[a]/2,l.setPosition(h),c.setPosition(m),u.setPosition(g);var b={x:0,y:0};if(b[i]=f?n[i]:d[i],b[a]=Math.max(d[a],p[a]),b[o]=Math.min(0,p[o]+g[1-r]),c.__rectSize=n[i],f){var S={x:0,y:0};S[i]=Math.max(n[i]-p[i]-v,0),S[a]=b[a],c.setClipPath(new Cs({shape:S})),c.__rectSize=S[i]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var E=this._getPageInfo(e);return null!=E.pageIndex&&uc(l,{x:E.contentPosition[0],y:E.contentPosition[1]},f?e:null),this._updatePageInfoView(e,E),b},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;_["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",a=null!=t[i],o=n.childOfName(r);o&&(o.setStyle("fill",a?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),a=t.pageIndex,o=null!=a?a+1:0,s=t.pageCount;r&&i&&r.setStyle("text",_["isString"](i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=$X[i],o=KX[i],s=this._findTargetItemIndex(t),l=n.children(),c=l[s],u=l.length,d=u?1:0,p={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var f=v(c);p.contentPosition[i]=-f.s;for(var h=s+1,m=f,_=f,g=null;h<=u;++h)g=v(l[h]),(!g&&_.e>m.s+r||g&&!y(g,m.s))&&(m=_.i>m.i?_:g,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),_=g;for(h=s-1,m=f,_=f,g=null;h>=-1;--h)g=v(l[h]),g&&y(_,g.s)||!(m.i<_.i)||(_=m,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=g;return p;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var a=r.__legendDataIndex;null==n&&null!=a&&(n=i),a===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(jX),XX=QX;function ZX(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function JX(e){mS(GX),e.registerComponentModel(WX),e.registerComponentView(XX),ZX(e)}function eZ(e){mS(GX),mS(JX)}var tZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="dataZoom.inside",t.defaultOption=Zc(pq.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(pq),nZ=tZ,rZ=Qi();function iZ(e,t,n){rZ(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function aZ(e,t){for(var n=rZ(e).coordSysRecordMap,r=n.keys(),i=0;ir[n+t]&&(t=o),i=i&&a.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function dZ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=rZ(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(_["createHashMap"])());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=lq(e);Object(_["each"])(n.infoList,(function(n){var i=n.model.uid,a=r.get(i)||r.set(i,sZ(t,n.model)),o=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(_["createHashMap"])());o.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];null!=a&&(t=i.get(a))}if(t){var o=uZ(i);n.enable(o.controlType,o.opt),n.setPointerChecker(e.containsPoint),bg(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else oZ(r,e)}))}))}var pZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return h(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),iZ(r,t,{pan:Object(_["bind"])(fZ.pan,this),zoom:Object(_["bind"])(fZ.zoom,this),scrollMove:Object(_["bind"])(fZ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){aZ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(_q),fZ={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=mZ[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-l)*c+l,a[1]=(a[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return HF(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:hZ((function(e,t,n,r,i,a){var o=mZ[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:hZ((function(e,t,n,r,i,a){var o=mZ[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n);return o.signal*(e[1]-e[0])*a.scrollDelta}))};function hZ(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,i);return HF(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}var mZ={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},_Z=pZ;function gZ(e){Mq(e),e.registerComponentModel(nZ),e.registerComponentView(_Z),dZ(e)}var vZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Zc(pq.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(pq),yZ=vZ,bZ=Cs,SZ=7,EZ=1,xZ=30,wZ=7,TZ="horizontal",CZ="vertical",OZ=5,MZ=["line","bar","candlestick","scatter"],AZ={easing:"cubicOut",duration:100,delay:0},DZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return h(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(_["bind"])(this._onBrush,this),this._onBrushEnd=Object(_["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),bg(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Sg(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new jr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),r=n?wZ:0,i=this._findCoordRect(),a={width:t.getWidth(),height:t.getHeight()},o=this._orient===TZ?{right:a.width-i.x-i.width,top:a.height-xZ-SZ-r,width:i.width,height:xZ}:{right:SZ,top:i.y,width:xZ,height:i.height},s=fd(e.option);Object(_["each"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=o[e])}));var l=ld(s,a);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===CZ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==TZ||i?n===TZ&&i?{scaleY:o?1:-1,scaleX:-1}:n!==CZ||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new bZ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new bZ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(_["bind"])(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=i.getDataExtent(o),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var d,p=[0,t[1]],f=[0,t[0]],h=[[t[0],0],[0,0]],m=[],_=f[1]/(i.count()-1),g=0,v=Math.round(i.count()/t[0]);i.each([o],(function(e,t){if(v>0&&t%v)g+=_;else{var n=null==e||isNaN(e)||""===e,r=n?0:ei(e,c,p,!0);n&&!d&&t?(h.push([h[h.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&d&&(h.push([g,0]),m.push([g,0])),h.push([g,r]),m.push([g,r]),g+=_,d=n}})),s=this._shadowPolygonPts=h,l=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var y=this.dataZoomModel,b=0;b<3;b++){var S=E(1===b);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function E(e){var t=y.getModel(e?"selectedDataBackground":"dataBackground"),n=new jr,r=new Qm({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Jm({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,a){var o=e.getAxisProxy(i,a).getTargetSeriesModels();Object(_["each"])(o,(function(e){if(!n&&!(!0!==t&&Object(_["indexOf"])(MZ,e.get("type"))<0)){var o,s=r.getComponent(oq(i),a).axis,l=kZ(i),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(o=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:o}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,c=o.get("brushSelect"),u=t.filler=new bZ({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(u),i.add(new bZ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:EZ,fill:"rgba(0,0,0,0)"}})),Object(_["each"])([0,1],(function(t){var a=o.get("handleIcon");!Tv[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=Mv(a,-1,0,2,2,null,!0);s.attr({cursor:LZ(this._orient),draggable:!0,drift:Object(_["bind"])(this._onDragMove,this,t),ondragend:Object(_["bind"])(this._onDragEnd,this),onmouseover:Object(_["bind"])(this._showDataInfo,this,!0),onmouseout:Object(_["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=o.get("handleSize");this._handleHeight=ti(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),ql(s);var u=o.get("handleColor");null!=u&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel("textStyle");e.add(r[t]=new zs({silent:!0,invisible:!0,style:xc(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=u;if(c){var p=ti(o.get("moveHandleSize"),a[1]),f=t.moveHandle=new Cs({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:p}}),h=.8*p,m=t.moveHandleIcon=Mv(o.get("moveHandleIcon"),-h/2,-h/2,h,h,"#fff",!0);m.silent=!0,m.y=a[1]+p/2-.5,f.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var g=Math.min(a[1]/2,Math.max(p,10));d=t.moveZone=new Cs({invisible:!0,shape:{y:a[1]-g,height:p+g}}),d.on("mouseover",(function(){s.enterEmphasis(f)})).on("mouseout",(function(){s.leaveEmphasis(f)})),i.add(f),i.add(m),i.add(d)}d.attr({draggable:!0,cursor:LZ(this._orient),drift:Object(_["bind"])(this._onDragMove,this,"all"),ondragstart:Object(_["bind"])(this._showDataInfo,this,!0),ondragend:Object(_["bind"])(this._onDragEnd,this),onmouseover:Object(_["bind"])(this._showDataInfo,this,!0),onmouseout:Object(_["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[ei(e[0],[0,100],t,!0),ei(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];HF(t,r,i,n.get("zoomLock")?"all":e,null!=a.minSpan?ei(a.minSpan,o,i,!0):null,null!=a.maxSpan?ei(a.maxSpan,o,i,!0):null);var s=this._range,l=this._range=ri([ei(r[0],i,o,!0),ei(r[1],i,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=ri(n.slice()),i=this._size;Object(_["each"])([0,1],(function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;lt[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval("all",n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Ne(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),a=[0,100];this._range=ri([ei(n.x,i,a,!0),ei(n.x+n.width,i,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ve(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new bZ({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(a.x,a.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?AZ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=lq(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(_q);function kZ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function LZ(e){return"vertical"===e?"ns-resize":"ew-resize"}var IZ=DZ;function NZ(e){e.registerComponentModel(yZ),e.registerComponentView(IZ),Mq(e)}function RZ(e){mS(gZ),mS(NZ)}var PZ={get:function(e,t,n){var r=_["clone"]((FZ[e]||{})[t]);return n&&_["isArray"](r)?r[r.length-1]:r}},FZ={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]}},YZ=PZ,jZ=KN.mapVisual,BZ=KN.eachVisual,UZ=_["isArray"],HZ=_["each"],GZ=ri,zZ=ei,VZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return h(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&AK(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=_["bind"](e,this),this.controllerVisuals=MK(this.option.controller,t,e),this.targetVisuals=MK(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=Mi(e),t},t.prototype.eachTargetSeries=function(e,t){_["each"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,a=i.precision,o=this.dataBound,s=i.formatter;n=n||["<",">"],_["isArray"](e)&&(e=e.slice(),r=!0);var l=t?e:r?[c(e[0]),c(e[1])]:c(e);return _["isString"](s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):_["isFunction"](s)?r?s(e[0],e[1]):s(e):r?e[0]===o[0]?n[0]+" "+l[1]:e[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=GZ([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});_["merge"](r,n),_["merge"](i,n);var a=this.isCategory();function o(n){UZ(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},HZ(r,(function(e,t){if(KN.isValidType(t)){var n=YZ.get(t,"inactive",a);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),o=i||"roundRect";HZ(this.stateList,(function(i){var s=this.itemSize,l=e[i];l||(l=e[i]={color:a?r:[r]}),null==l.symbol&&(l.symbol=t&&_["clone"](t)||(a?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&_["clone"](n)||(a?s[0]:[s[0],s[0]])),l.symbol=jZ(l.symbol,(function(e){return"none"===e?o:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;BZ(c,(function(e){e>u&&(u=e)})),l.symbolSize=jZ(c,(function(e){return zZ(e,[0,u],[0,s[0]],!0)}))}}),this)}o.call(this,r),o.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(vd),WZ=VZ,qZ=[20,140],$Z=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=qZ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=qZ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):_["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),_["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=ri((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=KZ(this,"outOfRange",this.getExtent()),n=KZ(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,l=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,"color",t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new jr("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent();rJ([0,1],(function(l){var c=i[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=nJ(e[l],[0,o[1]],s,!0),d=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=d/o[0],c.x=o[0]-d/2;var p=W_(n.handleLabelPoints[l],V_(c,this.group));a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",u),p=this.getControllerVisual(e,"symbolSize"),f=nJ(e,a,s,!0),h=o[0]-p/2,m={x:c.x,y:c.y};c.y=f,c.x=h;var _=W_(l.indicatorLabelPoint,V_(c,this.group)),g=l.indicatorLabel;g.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y=this._orient,b="horizontal"===y;g.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:b?v:"middle",align:b?"center":v});var S={x:h,y:f,style:{fill:d}},E={style:{x:_[0],y:_[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};c.x=m.x,c.y=m.y,c.animateTo(S,x),g.animateTo(E,x)}else c.attr(S),g.attr(E);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var T=0;Ti[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,d=[];(t||dJ(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=$i(u,d);this._dispatchHighDown("downplay",tJ(p[0],n)),this._dispatchHighDown("highlight",tJ(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(hv(e.target,(function(e){var n=Vs(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function gJ(e,t,n,r){for(var i=t.targetVisuals[r],a=KN.prepareVisualTypes(i),o={color:cv(e.getData(),"color")},s=0,l=a.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(hJ,mJ),Object(_["each"])(_J,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(yJ))}function xJ(e){e.registerComponentModel(QZ),e.registerComponentView(fJ),EJ(e)}var wJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return h(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],TJ[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=_["clone"](i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=_["map"](this._pieceList,(function(e){return e=_["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=KN.listVisualTypes(),i=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}_["each"](t.pieces,(function(e){_["each"](r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),_["each"](n,(function(e,n){var r=!1;_["each"](this.stateList,(function(e){r=r||a(t,e,n)||a(t.target,e,n)}),this),!r&&_["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=YZ.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,_["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var a=!1;_["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=_["clone"](e)},t.prototype.getValueState=function(e){var t=KN.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),(function(t,r){var a=KN.findPieceIndex(t,n);a===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var a=i[0].interval[0];a!==-1/0&&i.unshift({interval:[-1/0,a]}),a=i[i.length-1].interval[1],a!==1/0&&i.push({interval:[a,1/0]})}else i.push({interval:[-1/0,1/0]});var o=-1/0;return _["each"](i,(function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])}),this),{stops:t,outerColors:n}}function s(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Zc(WZ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(WZ),TJ={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var a=(r[1]-r[0])/i;while(+a.toFixed(n)!==a&&n<5)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function CJ(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var OJ=wJ,MJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return h(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=_["retrieve"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,u,o),_["each"](l.viewPieceList,(function(r){var l=r.piece,c=new jr;c.onclick=_["bind"](this._onItemClick,this,l),this._enableHoverLink(c,r.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(c,d,[0,0,s[0],s[1]]),u){var p=this.visualMapModel.getValueState(d);c.add(new zs({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:i,fill:a,opacity:"outOfRange"===p?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,o),od(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:tJ(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return eJ(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new jr,o=this.visualMapModel.textStyleModel;a.add(new zs({style:xc(o,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=_["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Mv(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=_["clone"](n.selected),a=t.getSelectedMapKey(e);"single"===r||!0===r?(i[a]=!0,_["each"](i,(function(e,t){i[t]=t===a}))):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(ZZ),AJ=MJ;function DJ(e){e.registerComponentModel(OJ),e.registerComponentView(AJ),EJ(e)}function kJ(e){mS(xJ),mS(DJ)}var LJ={label:{enabled:!0},decal:{show:!1}},IJ=Qi(),NJ={};function RJ(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=_["clone"](LJ);_["merge"](r.label,e.getLocaleModel().get("aria"),!1),_["merge"](n.option,r,!1),i(),a()}function i(){var t=n.getModel("decal"),r=t.get("show");if(r){var i=_["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=i.get(e.type);t||(t={},i.set(e.type,t)),IJ(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(_["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Wd(t.ecModel,t.name,NJ,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",c(i,r))}else{var a=t.getRawData(),o={},s=IJ(t).scope;n.each((function(e){var t=n.getRawIndex(e);o[t]=e}));var l=a.count();a.each((function(e){var r=o[e],i=a.getName(e)||e+"",u=Wd(t.ecModel,i,s,l),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(d,u))}))}}function c(e,t){var n=e?_["extend"](_["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function a(){var r=e.getLocaleModel().get("aria"),i=n.getModel("label");if(i.option=_["defaults"](i.option,r),i.get("enabled")){var a=t.getZr().dom;if(i.get("description"))a.setAttribute("aria-label",i.get("description"));else{var c,u=e.getSeriesCount(),d=i.get(["data","maxCount"])||10,p=i.get(["series","maxCount"])||10,f=Math.min(u,p);if(!(u<1)){var h=s();if(h){var m=i.get(["general","withTitle"]);c=o(m,{title:h})}else c=i.get(["general","withoutTitle"]);var g=[],v=u>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);c+=o(v,{seriesCount:u}),e.eachSeries((function(e,t){if(t1?i.get(["series","multiple",a]):i.get(["series","single",a]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var c=i.get(["data","partialData"]);n+=o(c,{displayCnt:d})}else n+=i.get(["data","allData"]);for(var p=i.get(["data","separator","middle"]),h=i.get(["data","separator","end"]),m=[],_=0;_":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jJ=function(){function e(e){var t=this._condVal=Object(_["isString"])(e)?new RegExp(e):Object(_["isRegExp"])(e)?e:null;if(null==t){var n="";0,ep(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(_["isString"])(t)?this._condVal.test(e):!!Object(_["isNumber"])(t)&&this._condVal.test(e+"")},e}(),BJ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),UJ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function h(e,n,r,i){a0(e,r)&&a0(n,i)||t.push(e,n,r,i,r,i)}function m(e,n,r,i,a,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=nw:O2&&l.push(t),l}function s0(e,t,n,r,i,a,o,s,l,c){if(a0(e,n)&&a0(t,r)&&a0(i,o)&&a0(a,s))l.push(o,s);else{var u=2/c,d=u*u,p=o-e,f=s-t,h=Math.sqrt(p*p+f*f);p/=h,f/=h;var m=n-e,_=r-t,g=i-o,v=a-s,y=m*m+_*_,b=g*g+v*v;if(y=0&&w=0)l.push(o,s);else{var T=[],C=[];Bt(e,n,i,o,.5,T),Bt(t,r,a,s,.5,C),s0(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],l,c),s0(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],l,c)}}}}function l0(e,t){var n=o0(e),r=[];t=t||1;for(var i=0;i0)for(c=0;cMath.abs(c),d=c0([l,c],u?0:1,t),p=(u?s:c)/d.length,f=0;fi,o=c0([r,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",c=a?"x":"y",u=a?"y":"x",d=e[s]/o.length,p=0;p1?null:new Ne(m*l+e,m*c+t)}function h0(e,t,n){var r=new Ne;Ne.sub(r,n,t),r.normalize();var i=new Ne;Ne.sub(i,e,t);var a=i.dot(r);return a}function m0(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function _0(e,t,n){for(var r=e.length,i=[],a=0;ao?(c.x=u.x=s+a/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+a),_0(t,c,u)}function v0(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),a=e(t);v0(e,a[0],i,r),v0(e,a[1],n-i,r)}return r}function y0(e,t){for(var n=[],r=0;r0)for(var S=r/n,E=-r/2;E<=r/2;E+=S){var x=Math.sin(E),w=Math.cos(E),T=0;for(y=0;y0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),l+=c*c*(3*u^d),0===d&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function Y0(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(_["map"])(e,(function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),o=Object(_["map"])(a,(function(a,o){return{cp:a,z:F0(a[0],a[1],t,n,r,i),path:e[o]}}));return o.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function j0(e){return E0(e.path,e.count)}function B0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function U0(e,t,n){var r=[];function i(e){for(var t=0;t=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var c=Math.ceil(a/2);n[i].many=l.slice(c,a),n[s].many=l.slice(0,c),s++}return n}var V0={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0){var s,l,c=r.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o);G0(e)&&(s=e,l=t),G0(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,p=s?z0(l,s):z0(d?t:e,[d?e:t]),f=0,h=0;h$0))for(var r=n.getIndices(),i=Q0(n),a=0;a0&&i.group.traverse((function(e){e instanceof cs&&!e.animators.length&&e.animateFrom({style:{opacity:0}},a)}))}))}function i1(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function a1(e){return Object(_["isArray"])(e)?e.sort().join(","):e}function o1(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function s1(e,t){var n=Object(_["createHashMap"])(),r=Object(_["createHashMap"])(),i=Object(_["createHashMap"])();return Object(_["each"])(e.oldSeries,(function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=i1(t),l=a1(s);r.set(l,{dataGroupId:a,data:o}),Object(_["isArray"])(s)&&Object(_["each"])(s,(function(e){i.set(e,{key:l,dataGroupId:a,data:o})}))})),Object(_["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),o=i1(e),s=a1(o),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:o1(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:o1(a),data:a}]});else if(Object(_["isArray"])(o)){0;var c=[];Object(_["each"])(o,(function(e){var t=r.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:o1(t.data),data:t.data})})),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:t,data:a,divide:o1(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:o1(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:o1(a)})}}}})),n}function l1(e,t){for(var n=0;n=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:o1(t.oldData[n]),dim:e.dimension})})),Object(_["each"])(Mi(e.to),(function(e){var r=l1(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:o1(i),dim:e.dimension})}})),i.length>0&&a.length>0&&r1(i,a,r)}function u1(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(_["each"])(Mi(n.seriesTransition),(function(e){Object(_["each"])(Mi(e.to),(function(e){for(var t=n.updatedSeries,r=0;r12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},"0cb1":function(e,t,n){"use strict";var r=n("3e36"),i=n("7a25"),a=n("4e41"),o=n("abdf").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},"0d3c":function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(e){return a("(",e,")*")}function i(e){return a("(",e,")?")}function a(...e){const t=e.map(e=>n(e)).join("");return t}function o(...e){const t="("+e.map(e=>n(e)).join("|")+")";return t}function s(e){const t={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},n={literal:["true","false","undefined","null"]},s=/""|"[^"]+"/,l=/''|'[^']+'/,c=/\[\]|\[[^\]]+\]/,u=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=/(\.|\/)/,p=o(s,l,c,u),f=a(i(/\.|\.\/|\//),p,r(a(d,p))),h=a("(",c,"|",u,")(?==)"),m={begin:f,lexemes:/[\w.\/]+/},_=e.inherit(m,{keywords:n}),g={begin:/\(/,end:/\)/},v={className:"attr",begin:h,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,_,g]}}},y={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},b={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,y,v,_,g],returnEnd:!0},S=e.inherit(m,{className:"name",keywords:t,starts:e.inherit(b,{end:/\)/})});g.contains=[S];const E=e.inherit(m,{keywords:t,className:"name",starts:e.inherit(b,{end:/\}\}/})}),x=e.inherit(m,{keywords:t,className:"name"}),w=e.inherit(m,{className:"name",keywords:t,starts:e.inherit(b,{end:/\}\}/})}),T={begin:/\\\{\{/,skip:!0},C={begin:/\\\\(?=\{\{)/,skip:!0};return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[T,C,e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[E],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[E]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[x]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[w]}]}}e.exports=s},"0d77":function(e,t){function n(e){var t={className:"params",begin:"\\(",end:"\\)"},n="attribute block constant cycle date dump include max min parent random range source template_from_string",r={beginKeywords:n,keywords:{name:n},relevance:0,contains:[t]},i={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[r]},a="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return a=a+" "+a.split(" ").map((function(e){return"end"+e})).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:a,starts:{endsWithParent:!0,contains:[i,r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",i,r]}]}}e.exports=n},"0d81":function(e,t,n){"use strict";var r={foo:{}},i=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},"0d9f":function(e,t,n){"use strict";var r=n("d331").PROPER,i=n("ef30"),a=n("157c"),o=n("2a3e"),s=n("72df"),l=n("1b03"),c="toString",u=RegExp.prototype,d=u[c],p=s((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),f=r&&d.name!=c;(p||f)&&i(RegExp.prototype,c,(function(){var e=a(this),t=o(e.source),n=o(l(e));return"/"+t+"/"+n}),{unsafe:!0})},"0dc7":function(e,t,n){"use strict";var r=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw r("Maximum allowed index exceeded");return e}},"0e15":function(e,t){function n(e){const t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,r,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}e.exports=n},"0e39":function(e,t,n){"use strict";var r=n("7a25"),i=n("3ce8"),a=n("37d1"),o=n("332c"),s=n("802e"),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=a(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},"0e49":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},"0e6b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:4}});return t}))},"0e81":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,a=e>=100?100:null;return e+(t[r]||t[i]||t[a])}},week:{dow:1,doy:7}});return n}))},"0e93":function(e,t,n){"use strict";e.exports=!1},"0eef":function(e,t,n){t.f=n("e1cb")},"0f14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0f38":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"0fb6":function(e,t,n){var r=n("8ba1"),i=n("ed0b");function a(e){return e&&e.trim?e.trim():r(i(e))}e.exports=a},"0ff2":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},1015:function(e,t,n){var r=n("032a"),i=n("d060"),a="__core-js_shared__",o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("362d")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},1042:function(e,t){function n(e){const t={className:"meta",begin:"@[A-Za-z]+"},n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},r={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[n],relevance:10}]},i={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},o]},l={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[o]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,i,a,l,s,e.C_NUMBER_MODE,t]}}e.exports=n},1048:function(e,t){function n(e){const t={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}e.exports=n},"106d":function(e,t){function n(e){const t={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},r={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},i={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},a={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0},s={className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0};return{name:"Pony",keywords:t,contains:[a,n,r,i,o,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}e.exports=n},1093:function(e,t){var n=parseInt;e.exports=n},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},1110:function(e,t){function n(e){const t={className:"string",begin:/"/,end:/"/},n={className:"string",begin:/'/,end:/'/},r={className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},i={className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0};return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},t,n,r,i,e.HASH_COMMENT_MODE]}}e.exports=n},"116d":function(e,t,n){var r=n("b107"),i=r("every",1,1,!1,!0);e.exports=i},"119e":function(e,t,n){var r=n("b74e"),i=n("80e2"),a=n("44bb");function o(e,t,n){var r=n.children,a=n.data,s=n.clear;return i(t,(function(t){var i=t[r];a&&(t=t[a]),e.push(t),i&&i.length&&o(e,i,n),s&&delete t[r]})),e}function s(e,t){return o([],e,a({},r.treeOptions,t))}e.exports=s},"11a3":function(e,t,n){n("28c0"),n("9149"),e.exports=n("0eef").f("iterator")},"11ba":function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(...e){const t=e.map(e=>n(e)).join("");return t}function i(e){const t={className:"params",begin:"\\(",end:"\\)"},n=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:r(/\b\d+/,/\.(\d*)/,i,n)},{begin:r(/\b\d+/,i,n)},{begin:r(/\.\d+/,i,n)}],relevance:0},o={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"};return{name:"IRPF90",case_insensitive:!0,keywords:o,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,t]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),a]}}e.exports=i},"11d2":function(e,t){function n(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},r={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},i={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[r,i,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}e.exports=n},"11ed":function(e,t,n){"use strict";var r=n("6b1d"),i=n("37d1"),a=n("9a0f"),o=n("9616"),s=n("0481"),l=n("5231"),c=n("0dc7"),u=n("6a86"),d=n("dac6"),p=n("653f"),f=n("189b"),h=f("splice"),m=Math.max,_=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,f,h,g,v,y=i(this),b=s(y),S=a(e,b),E=arguments.length;for(0===E?n=r=0:1===E?(n=0,r=b-S):(n=E-2,r=_(m(o(t),0),b-S)),c(b+n-r),f=u(y,r),h=0;hb-r+n;h--)p(y,h-1)}else if(n>r)for(h=b-r;h>S;h--)g=h+r-1,v=h+n-1,g in y?y[v]=y[g]:p(y,v);for(h=0;h=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},g=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},v=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=d(r/t),r=r%t*1e7},y=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=u(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n},b=l((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!l((function(){h({})}));r({target:"Number",proto:!0,forced:b},{toFixed:function(e){var t,n,r,i,s=o(this),l=a(e),d=[0,0,0,0,0,0],h="",b="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return u(s);if(s<0&&(h="-",s=-s),s>1e-21)if(t=_(s*m(2,69,1))-69,n=t<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,t=52-t,t>0){g(d,0,n),r=l;while(r>=7)g(d,1e7,0),r-=7;g(d,m(10,r,1),0),r=t-1;while(r>=23)v(d,1<<23),r-=23;v(d,1<0?(i=b.length,b=h+(i<=l?"0."+p("0",l-i)+b:f(b,0,i-l)+"."+f(b,i-l))):b=h+b,b}})},"121c":function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(e){return a("(?=",e,")")}function i(e){return a("(",e,")?")}function a(...e){const t=e.map(e=>n(e)).join("");return t}function o(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",s="<[^<>]+>",l="("+n+"|"+i(o)+"[a-zA-Z_]\\w*"+i(s)+")",c={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},u="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+u+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:i(o)+e.IDENT_RE,relevance:0},m=i(o)+e.IDENT_RE+"\\s*\\(",_=["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],g={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:_,literal:"true false nullptr NULL"},v={className:"function.dispatch",relevance:0,keywords:g,begin:a(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,e.IDENT_RE,r(/\s*\(/))},y=[v,f,c,t,e.C_BLOCK_COMMENT_MODE,p,d],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:y.concat([{begin:/\(/,end:/\)/,keywords:g,contains:y.concat(["self"]),relevance:0}]),relevance:0},S={className:"function",begin:"("+l+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:g,relevance:0},{begin:m,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,p]},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,d,p,c,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,d,p,c]}]},c,t,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:g,illegal:"",keywords:g,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:g}}}function s(e){const t=o(e),n=["c","h"],r=["cc","c++","h++","hpp","hh","hxx","cxx"];return t.disableAutodetect=!0,t.aliases=[],e.getLanguage("c")||t.aliases.push(...n),e.getLanguage("cpp")||t.aliases.push(...r),t}e.exports=s},1226:function(e,t,n){"use strict";var r=n("939e"),i=n("44bb"),a=n("7f5c"),o=n("15d8"),s=n("1c9f"),l=n("9326"),c=n("1e72"),u=n("a88c"),d=n("116d"),p=n("f2fe"),f=n("7490"),h=n("4414"),m=n("3446"),_=n("7525"),g=n("3139"),v=n("0449"),y=n("8437"),b=n("146b"),S=n("1aef"),E=n("008b"),x=n("6434"),w=n("245d"),T=n("5661"),C=n("cc43"),O=n("ebc5"),M=n("e4cf"),A=n("b586"),D=n("bcb1"),k=n("6f22"),L=n("7053"),I=n("fe75"),N=n("2859"),R=n("8bac"),P=n("87b4"),F=n("8af8"),Y=n("119e"),j=n("0761"),B=n("64a2"),U=n("d834"),H=n("22ee"),G=n("1248"),z=n("c64c"),V=n("140c"),W=n("9fac"),q=n("6c67"),$=n("5dd9"),K=n("2da6"),Q=n("27a8"),X=n("b405"),Z=n("9131"),J=n("8c67"),ee=n("6eee"),te=n("6675"),ne=n("3ce3"),re=n("547b"),ie=n("80e2"),ae=n("1d36"),oe=n("e5ac"),se=n("578a"),le=n("fc1d"),ce=n("260a"),ue=n("efd1"),de=n("fb08"),pe=n("9eec"),fe=n("f16e"),he=n("5dc6"),me=n("b1b9"),_e=n("fa29"),ge=n("6043"),ve=n("d1a1"),ye=n("c7b8"),be=n("bf42"),Se=n("3060"),Ee=n("cc9a"),xe=n("d2a0"),we=n("f0a7"),Te=n("1485"),Ce=n("3461"),Oe=n("7be4"),Me=n("f17c"),Ae=n("ead6"),De=n("eb46"),ke=n("1f1b"),Le=n("6f72"),Ie=n("5951"),Ne=n("a3ae"),Re=n("f4ba"),Pe=n("d744"),Fe=n("dd88"),Ye=n("06fa"),je=n("8023"),Be=n("6a27"),Ue=n("edac"),He=n("1252"),Ge=n("80b1"),ze=n("c9c4"),Ve=n("3c92"),We=n("c62c"),qe=n("2a17"),$e=n("a947"),Ke=n("4c0d"),Qe=n("87d9"),Xe=n("9747"),Ze=n("f821"),Je=n("aa60"),et=n("c61f"),tt=n("7a68"),nt=n("25ce"),rt=n("122c"),it=n("cfe6"),at=n("709d"),ot=n("d0ad"),st=n("4f50"),lt=n("5031"),ct=n("14a7"),ut=n("250d"),dt=n("a531"),pt=n("5617"),ft=n("2e94"),ht=n("3f6c"),mt=n("5aaa"),_t=n("85be"),gt=n("ea96"),vt=n("c304"),yt=n("aa78"),bt=n("a84c"),St=n("aced"),Et=n("a9cf"),xt=n("2cd0"),wt=n("c408"),Tt=n("b7b5"),Ct=n("f251"),Ot=n("6f51"),Mt=n("fda8"),At=n("54eb"),Dt=n("9fce"),kt=n("78f5"),Lt=n("1a83"),It=n("71a9"),Nt=n("f31a"),Rt=n("1bd0"),Pt=n("8eef"),Ft=n("a51b"),Yt=n("8709"),jt=n("0fb6"),Bt=n("8ba1"),Ut=n("ed0b"),Ht=n("b914"),Gt=n("7aa4"),zt=n("b4b2"),Vt=n("a1bc"),Wt=n("a5df"),qt=n("797c"),$t=n("9d5e"),Kt=n("7688"),Qt=n("55d2"),Xt=n("e7bb"),Zt=n("5361"),Jt=n("656e"),en=n("ef44"),tn=n("62da"),nn=n("04df"),rn=n("5bf6"),an=n("f61c"),on=n("d98c"),sn=n("9383"),ln=n("cb7a"),cn=n("013e"),un=n("5ab0"),dn=n("1931"),pn=n("880d"),fn=n("3599");i(r,{assign:i,objectEach:a,lastObjectEach:o,objectMap:s,merge:l,uniq:m,union:_,sortBy:v,orderBy:y,shuffle:b,sample:S,some:u,every:d,slice:E,filter:x,find:C,findLast:O,findKey:w,includes:T,arrayIndexOf:z,arrayLastIndexOf:V,map:c,reduce:M,copyWithin:A,chunk:D,zip:k,unzip:L,zipObject:I,flatten:N,toArray:g,includeArrays:p,pluck:R,invoke:P,arrayEach:f,lastArrayEach:h,toArrayTree:F,toTreeArray:Y,findTree:j,eachTree:B,mapTree:U,filterTree:H,searchTree:G,hasOwnProp:W,eqNull:re,isNaN:K,isFinite:_e,isUndefined:Q,isArray:q,isFloat:ge,isInteger:ve,isFunction:X,isBoolean:ye,isString:J,isNumber:be,isRegExp:Se,isObject:Z,isPlainObject:ee,isDate:ne,isError:Ee,isTypeError:xe,isEmpty:we,isNull:$,isSymbol:Te,isArguments:Ce,isElement:Oe,isDocument:Me,isWindow:Ae,isFormData:De,isMap:ke,isWeakMap:Le,isSet:Ie,isWeakSet:Ne,isLeapYear:te,isMatch:Re,isEqual:Pe,isEqualWith:Fe,getType:Ye,uniqueId:je,getSize:pe,indexOf:se,lastIndexOf:le,findIndexOf:Be,findLastIndexOf:Ue,toStringJSON:He,toJSONString:Ge,keys:ce,values:ue,entries:ze,pick:Ve,omit:We,first:qe,last:$e,each:ie,forOf:ae,lastForOf:oe,lastEach:fe,has:Ke,get:Qe,set:Xe,groupBy:Ze,countBy:Je,clone:de,clear:me,remove:he,range:et,destructuring:tt,random:nt,min:it,max:rt,commafy:at,round:ot,ceil:st,floor:lt,toFixed:ct,toNumber:dt,toNumberString:pt,toInteger:ut,add:ft,subtract:ht,multiply:mt,divide:_t,sum:gt,mean:vt,now:Tt,timestamp:Ct,isValidDate:Ot,isDateSame:Mt,toStringDate:xt,toDateString:wt,getWhatYear:yt,getWhatQuarter:bt,getWhatMonth:St,getWhatWeek:At,getWhatDay:Et,getYearDay:Dt,getYearWeek:kt,getMonthWeek:Lt,getDayOfYear:It,getDayOfMonth:Nt,getDateDiff:Rt,trim:jt,trimLeft:Ut,trimRight:Bt,escape:Ht,unescape:Gt,camelCase:zt,kebabCase:Vt,repeat:Yt,padStart:Ft,padEnd:Pt,startsWith:Wt,endsWith:qt,template:$t,toFormatString:Kt,toString:Qt,toValueString:Qt,noop:Xt,property:Zt,bind:Jt,once:en,after:tn,before:nn,throttle:rn,debounce:an,delay:on,unserialize:sn,serialize:ln,parseUrl:cn,getBaseURL:un,locat:dn,browse:fn,cookie:pn}),e.exports=r},"122c":function(e,t,n){var r=n("4f91"),i=r((function(e,t){return e=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var a,o=t.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===r&&n&&"годину"===a?e+" година":e+" "+a)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"140c":function(e,t){function n(e,t){if(e.lastIndexOf)return e.lastIndexOf(t);for(var n=e.length-1;n>=0;n--)if(t===e[n])return n;return-1}e.exports=n},1415:function(e,t,n){var r=n("d060").document;e.exports=r&&r.documentElement},1466:function(e,t){function n(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}e.exports=n},"146b":function(e,t,n){var r=n("25ce"),i=n("efd1");function a(e){for(var t,n=[],a=i(e),o=a.length-1;o>=0;o--)t=o>0?r(0,o):0,n.push(a[t]),a.splice(t,1);return n}e.exports=a},1485:function(e,t,n){var r=n("6b6c"),i=typeof Symbol!==r;function a(e){return i&&Symbol.isSymbol?Symbol.isSymbol(e):"symbol"===typeof e}e.exports=a},"14a7":function(e,t,n){var r=n("d0ad"),i=n("55d2"),a=n("ec0f"),o=n("d2fc");function s(e,t){t>>=0;var n=i(r(e,t)),s=n.split("."),l=s[0],c=s[1]||"",u=t-c.length;return t?u>0?l+"."+c+a("0",u):l+o(c,Math.abs(u)):l}e.exports=s},"14fe":function(e,t,n){var r=n("55d2"),i=n("260a");function a(e){var t=new RegExp("(?:"+i(e).join("|")+")","g");return function(n){return r(n).replace(t,(function(t){return e[t]}))}}e.exports=a},"150c":function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(...e){const t=e.map(e=>n(e)).join("");return t}function i(...e){const t="("+e.map(e=>n(e)).join("|")+")";return t}function a(e){const t=e.COMMENT("--","$"),n={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},a={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=d,m=[...u,...c].filter(e=>!d.includes(e)),_={className:"variable",begin:/@[a-z0-9]+/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={begin:r(/\b/,i(...h),/\s*\(/),keywords:{built_in:h}};function y(e,{exceptions:t,when:n}={}){const r=n;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?e+"|0":e)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:y(m,{when:e=>e.length<3}),literal:o,type:l,built_in:p},contains:[{begin:i(...f),keywords:{$pattern:/[\w\.]+/,keyword:m.concat(f),literal:o,type:l}},{className:"type",begin:i(...s)},v,_,n,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,g]}}e.exports=a},1529:function(e,t){function n(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}e.exports=n},1543:function(e,t,n){"use strict";var r=n("72df"),i=n("f498"),a=i.RegExp;e.exports=r((function(){var e=a("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"157c":function(e,t,n){"use strict";var r=n("7526"),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not an object")}},1586:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"15c8":function(e,t,n){"use strict";n("3e20"),n("8191");const r=e=>()=>n("6158")("./views"+e+"/index.vue");function i(e,t={}){if(!e||!e.hasModule)return;const n={...t.globalState};if(!e.hasModule("global")){const r={namespaced:!0,state:n,actions:{setGlobalState({commit:e},t){e("setGlobalState",t),e("emitGlobalState",t)},initGlobalState({commit:e},t){e("setGlobalState",t)}},mutations:{setGlobalState(e,t){e=Object.assign(e,t)},emitGlobalState(e){t.setGlobalState&&t.setGlobalState(e)}}};e.registerModule("global",r)}}function a(e){if(e&&e.hasModule&&!e.hasModule("routes")){const t={namespaced:!0,state:{routesData:[]},mutations:{UPDATE_ROUTER_DATA(e,t){e.routesData=t}}};e.registerModule("routes",t)}}function o(e,t){if((t||e)&&t.globalState&&t.globalState.routers){const n=t.globalState.routers;if(t.name){const i=[];for(let e=0,a=n.length;ed)n=i(r,t=c[d++]),void 0!==n&&l(u,t,n);return u}})},"16e9":function(e,t){function n(e){const t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}}e.exports=n},1702:function(e,t,n){"use strict";var r=n("abdf").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},"174d":function(e,t,n){"use strict";var r=n("d4cb"),i=n("70b7"),a=n("b546"),o=n("72df"),s=n("0c47"),l=n("2402"),c=n("e129"),u=n("37d1"),d=n("83a6"),p=Object.assign,f=Object.defineProperty,h=i([].concat);e.exports=!p||o((function(){if(r&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||s(p({},t)).join("")!=i}))?function(e,t){var n=u(e),i=arguments.length,o=1,p=l.f,f=c.f;while(i>o){var m,_=d(arguments[o++]),g=p?h(s(_),p(_)):s(_),v=g.length,y=0;while(v>y)m=g[y++],r&&!a(f,_,m)||(n[m]=_[m])}return n}:p},"175a":function(e,t){function n(e){var t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",n="далее ",r="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",i=n+r,a="загрузитьизфайла ",o="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",s=a+o,l="разделительстраниц разделительстрок символтабуляции ",c="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",u="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",d="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",p=l+c+u+d,f="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",h="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",m="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",_="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",g="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",v="отображениевремениэлементовпланировщика ",y="типфайлаформатированногодокумента ",b="обходрезультатазапроса типзаписизапроса ",S="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",E="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",x="типизмеренияпостроителязапроса ",w="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",T="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",C="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",O="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",M="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",A="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",D="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",k="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",L="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",I="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",N="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",R=f+h+m+_+g+v+y+b+S+E+x+w+T+C+O+M+A+D+k+L+I+N,P="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ",F="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",Y=P+F,j="null истина ложь неопределено",B=e.inherit(e.NUMBER_MODE),U={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},H={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},G=e.inherit(e.C_LINE_COMMENT_MODE),z={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,"meta-keyword":i+s},contains:[G]},V={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},W={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:j},contains:[B,U,H]},G]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:p,class:R,type:Y,literal:j},contains:[z,W,G,V,B,U,H]}}e.exports=n},1790:function(e,t,n){},"185a":function(e,t,n){"use strict";var r=n("d4cb"),i=n("b546"),a=n("e129"),o=n("9618"),s=n("378c"),l=n("feca"),c=n("7a25"),u=n("7c3f"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return o(!i(a.f,e,t),e[t])}},1868:function(e,t,n){var r=n("7267"),i=n("9b95");function a(e){return new Date(r(e),i(e),e.getDate())}e.exports=a},"189b":function(e,t,n){"use strict";var r=n("72df"),i=n("7d53"),a=n("4fed"),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"18c8":function(e,t){t.f={}.propertyIsEnumerable},"18ef":function(e,t,n){"use strict";var r=n("70b7"),i=n("63d3");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},1931:function(e,t,n){var r=n("2ba1"),i=n("013e");function a(){return r?i(r.href):{}}e.exports=a},"19f9":function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(...e){const t=e.map(e=>n(e)).join("");return t}function i(e){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:r(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}e.exports=i},"1a62":function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n("7443"),i=n("d53c"),a=n("e041");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function b(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(r)return Q(e).length;t=(""+t).toLowerCase(),r=!0}}function S(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var d=!0,p=0;pi&&(r=i)):r=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&c)<<6|63&a,l>127&&(u=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return N(r)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return p(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return T(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return M(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function N(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function G(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,r,a){return a||G(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,a){return a||G(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);var r=this[e],i=1,a=0;while(++a=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);var r=t,i=1,a=this[e+--r];while(r>0&&(i*=256))a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var a=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+a]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function X(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r)}return a}function J(e){return r.toByteArray(q(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("7d15"))},"1a83":function(e,t,n){var r=n("7bcb"),i=r((function(e){return new Date(e.getFullYear(),e.getMonth(),1)}));e.exports=i},"1aef":function(e,t,n){var r=n("146b");function i(e,t){var n=r(e);return arguments.length<=1?n[0]:(t=c[1]?p===d-1?f[c[0]]=u||0:(f[c[0]]=Math.floor(u/c[1]),u-=f[c[0]]*c[1]):f[c[0]]=0;return f}e.exports=l},"1c18":function(e,t){function n(){return new Date}e.exports=n},"1c72":function(e,t,n){var r=n("8af6"),i=n("1868");function a(e){return r(i(e))}e.exports=a},"1c9f":function(e,t,n){var r=n("80e2"),i=n("b405"),a=n("5361");function o(e,t,n){var o={};if(e){if(!t)return e;i(t)||(t=a(t)),r(e,(function(r,i){o[i]=t.call(n,r,i,e)}))}return o}e.exports=o},"1cef":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("33ef"),n("ef1f"),n("0d9f"),n("868d"),n("8423"),n("f3b8"),n("2aa5"),n("dee9");var r=n("9446");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"1cfd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},"1d2e":function(e,t,n){"use strict";var r=n("64e4");e.exports=/web0s(?!.*chrome)/i.test(r)},"1d36":function(e,t,n){var r=n("6c67"),i=n("9fac");function a(e,t,n){if(e)if(r(e)){for(var a=0,o=e.length;a1){if(e.map)return e.map(t,n);r(e,(function(){i.push(t.apply(n,arguments))}))}return i}e.exports=i},"1f1b":function(e,t,n){var r=n("6b6c"),i=typeof Map!==r;function a(e){return i&&e instanceof Map}e.exports=a},"1f4e":function(e,t){const n="[A-Za-z$_][0-9A-Za-z$_]*",r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],i=["true","false","null","undefined","NaN","Infinity"],a=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],o=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],l=["arguments","this","super","console","window","document","localStorage","module","global"],c=[].concat(s,l,a,o);function u(e){return e?"string"===typeof e?e:e.source:null}function d(e){return p("(?=",e,")")}function p(...e){const t=e.map(e=>u(e)).join("");return t}function f(e){const t=(e,{after:t})=>{const n="",end:""},s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{const r=e[0].length+e.index,i=e.input[r];"<"!==i?">"===i&&(t(e,{after:r})||n.ignoreMatch()):n.ignoreMatch()}},l={$pattern:n,keyword:r,literal:i,built_in:c},u="[0-9](_?[0-9])*",f=`\\.(${u})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${h})((${f})|\\.)?|(${f}))[eE][+-]?(${u})\\b`},{begin:`\\b(${h})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},v={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},b=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),S={className:"comment",variants:[b,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,v,y,m,e.REGEXP_MODE];_.contains=E.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(E)});const x=[].concat(S,_.contains),w=x.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(x)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:w};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:w},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,v,y,S,m,{begin:p(/[{,\n]\s*/,d(p(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,a+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:a+d("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[S,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:w}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:o.begin,end:o.end},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l,contains:["self",e.inherit(e.TITLE_MODE,{begin:a}),T],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[T,e.inherit(e.TITLE_MODE,{begin:a})]},{variants:[{begin:"\\."+a},{begin:"\\$"+a}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:a}),"self",T]},{begin:"(get|set)\\s+(?="+a+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:a}),{begin:/\(\)/},T]},{begin:/\$[(.]/}]}}function h(e){const t=n,a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["any","void","number","boolean","string","object","never","enum"],u=["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"],d={$pattern:n,keyword:r.concat(u),literal:i,built_in:c.concat(l)},p={className:"meta",begin:"@"+t},h=(e,t,n)=>{const r=e.contains.findIndex(e=>e.label===t);if(-1===r)throw new Error("can not find mode to replace");e.contains.splice(r,1,n)},m=f(e);Object.assign(m.keywords,d),m.exports.PARAMS_CONTAINS.push(p),m.contains=m.contains.concat([p,a,o]),h(m,"shebang",e.SHEBANG()),h(m,"use_strict",s);const _=m.contains.find(e=>"function"===e.className);return _.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx"]}),m}e.exports=h},"1f5e":function(e,t,n){"use strict";var r=n("378c"),i=n("9a0f"),a=n("0481"),o=function(e){return function(t,n,o){var s,l=r(t),c=a(l),u=i(o,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"1f8b":function(e,t){function n(e){const t={className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},n={className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},r={className:"string",begin:"(\\+|-)\\d+"},i={className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]};return{name:"SubUnit",case_insensitive:!0,contains:[t,n,r,i]}}e.exports=n},"1fbc":function(e,t){function n(e){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}e.exports=n},"1fc1":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(i[r],+e)}var r=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return r}))},2007:function(e,t,n){"use strict";var r=n("6b1d"),i=n("174d");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},2017:function(e,t,n){"use strict";var r=n("64e4"),i=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},"201b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},"20bf":function(e,t){function n(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}e.exports=n},"20cc":function(e,t){function n(e){function t(e){return e.map((function(e){return e.split("").map((function(e){return"\\"+e})).join("")})).join("|")}const n="~?[a-z$_][0-9a-zA-Z$_]*",r="`?[A-Z$_][0-9a-zA-Z$_]*",i="'?[a-z$_][0-9a-z$_]*",a="\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+i+"\\s*(,"+i+"\\s*)*)?\\))?",o=n+"("+a+"){0,2}",s="("+t(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",l="\\s+"+s+"\\s+",c={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},u="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",d={className:"number",relevance:0,variants:[{begin:u},{begin:"\\(-"+u+"\\)"}]},p={className:"operator",relevance:0,begin:s},f=[{className:"identifier",relevance:0,begin:n},p,d],h=[e.QUOTE_STRING_MODE,p,{className:"module",begin:"\\b"+r,returnBegin:!0,end:".",contains:[{className:"identifier",begin:r,relevance:0}]}],m=[{className:"module",begin:"\\b"+r,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:r,relevance:0}]}],_={begin:n,end:"(,|\\n|\\))",relevance:0,contains:[p,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:m}]},g={className:"function",relevance:0,keywords:c,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+n+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:n},{begin:o},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[_]}]},{begin:"\\(\\.\\s"+n+"\\)\\s*=>"}]};h.push(g);const v={className:"constructor",begin:r+"\\(",end:"\\)",illegal:"\\n",keywords:c,contains:[e.QUOTE_STRING_MODE,p,{className:"params",begin:"\\b"+n}]},y={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:c,end:"=>",relevance:0,contains:[v,p,{relevance:0,className:"constructor",begin:r}]},b={className:"module-access",keywords:c,returnBegin:!0,variants:[{begin:"\\b("+r+"\\.)+"+n},{begin:"\\b("+r+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[g,{begin:"\\(",end:"\\)",skip:!0}].concat(h)},{begin:"\\b("+r+"\\.)+\\{",end:/\}/}],contains:h};return m.push(b),{name:"ReasonML",aliases:["re"],keywords:c,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[e.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},e.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:f},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:f},v,{className:"operator",begin:l,illegal:"--\x3e",relevance:0},d,e.C_LINE_COMMENT_MODE,y,g,{className:"module-def",begin:"\\bmodule\\s+"+n+"\\s+"+r+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:c,relevance:0,contains:[{className:"module",relevance:0,begin:r},{begin:/\{/,end:/\}/,skip:!0}].concat(h)},b]}}e.exports=n},"20e0":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2117:function(e,t,n){"use strict";var r=n("5712"),i=n("63d3"),a=n("43f8"),o=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},2151:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"22ee":function(e,t,n){var r=n("64a2");function i(e,t,n,i){var a=[];return e&&t&&r(e,(function(e,n,r,o,s,l){t.call(i,e,n,r,o,s,l)&&a.push(e)}),n),a}e.exports=i},"22f8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},"22fd":function(e,t){function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},r={className:"meta",begin:/\?.*\?/},i={begin:/=/,end:/[.;]/,contains:[t,r,{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,n,i]}}e.exports=n},2322:function(e,t){function n(e){return e?"string"===typeof e?e:e.source:null}function r(...e){const t=e.map(e=>n(e)).join("");return t}function i(...e){const t="("+e.map(e=>n(e)).join("|")+")";return t}function a(e){const t=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),n={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,t]},a=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",a]}),s=[a,o,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],c=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:r(/\b/,i(...c),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:r(/\b/,i(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,n]},...s],illegal:/\/\/|->|=>|\[\[/}}e.exports=a},2348:function(e,t,n){"use strict";var r=n("8aef"),i=n("3ad5");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"238e":function(e,t,n){"use strict";var r=n("fa46");r(Math,"Math",!0)},"23fd":function(e,t,n){"use strict";var r=n("d060"),i=n("4177"),a=n("5a19"),o=n("d497"),s=n("8533"),l=n("5b17").KEY,c=n("9332"),u=n("1015"),d=n("cbcc"),p=n("2151"),f=n("e1cb"),h=n("0eef"),m=n("d4ef"),_=n("2aa57"),g=n("c3b1"),v=n("dd48"),y=n("355b"),b=n("b733"),S=n("e68c"),E=n("b4a7"),x=n("d601"),w=n("8357"),T=n("a42d"),C=n("827b"),O=n("2e84"),M=n("d906"),A=n("d1fe"),D=C.f,k=M.f,L=T.f,I=r.Symbol,N=r.JSON,R=N&&N.stringify,P="prototype",F=f("_hidden"),Y=f("toPrimitive"),j={}.propertyIsEnumerable,B=u("symbol-registry"),U=u("symbols"),H=u("op-symbols"),G=Object[P],z="function"==typeof I&&!!O.f,V=r.QObject,W=!V||!V[P]||!V[P].findChild,q=a&&c((function(){return 7!=w(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=D(G,t);r&&delete G[t],k(e,t,n),r&&e!==G&&k(G,t,r)}:k,$=function(e){var t=U[e]=w(I[P]);return t._k=e,t},K=z&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},Q=function(e,t,n){return e===G&&Q(H,t,n),v(e),t=E(t,!0),v(n),i(U,t)?(n.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),n=w(n,{enumerable:x(0,!1)})):(i(e,F)||k(e,F,x(1,{})),e[F][t]=!0),q(e,t,n)):k(e,t,n)},X=function(e,t){v(e);var n,r=_(t=S(t)),i=0,a=r.length;while(a>i)Q(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?w(e):X(w(e),t)},J=function(e){var t=j.call(this,e=E(e,!0));return!(this===G&&i(U,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=S(e),t=E(t,!0),e!==G||!i(U,t)||i(H,t)){var n=D(e,t);return!n||!i(U,t)||i(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=L(S(e)),r=[],a=0;while(n.length>a)i(U,t=n[a++])||t==F||t==l||r.push(t);return r},ne=function(e){var t,n=e===G,r=L(n?H:S(e)),a=[],o=0;while(r.length>o)!i(U,t=r[o++])||n&&!i(G,t)||a.push(U[t]);return a};z||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(H,n),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),q(this,e,x(1,n))};return a&&W&&q(G,e,{configurable:!0,set:t}),$(e)},s(I[P],"toString",(function(){return this._k})),C.f=ee,M.f=Q,n("4e17").f=T.f=te,n("18c8").f=J,O.f=ne,a&&!n("362d")&&s(G,"propertyIsEnumerable",J,!0),h.f=function(e){return $(f(e))}),o(o.G+o.W+o.F*!z,{Symbol:I});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)f(re[ie++]);for(var ae=A(f.store),oe=0;ae.length>oe;)m(ae[oe++]);o(o.S+o.F*!z,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=I(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!z,"Object",{create:Z,defineProperty:Q,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){O.f(1)}));o(o.S+o.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(b(e))}}),N&&o(o.S+o.F*(!z||c((function(){var e=I();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!K(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,R.apply(N,r)}}),I[P][Y]||n("c4e3")(I[P],Y,I[P].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},2402:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},2421:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],i=e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return i}))},2435:function(e,t,n){"use strict";var r,i,a,o,s=n("f498"),l=n("d54f"),c=n("2117"),u=n("3ce8"),d=n("7a25"),p=n("72df"),f=n("9324"),h=n("de02"),m=n("f2bf"),_=n("ae5d"),g=n("e03e"),v=n("f117"),y=s.setImmediate,b=s.clearImmediate,S=s.process,E=s.Dispatch,x=s.Function,w=s.MessageChannel,T=s.String,C=0,O={},M="onreadystatechange";p((function(){r=s.location}));var A=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},D=function(e){return function(){A(e)}},k=function(e){A(e.data)},L=function(e){s.postMessage(T(e),r.protocol+"//"+r.host)};y&&b||(y=function(e){_(arguments.length,1);var t=u(e)?e:x(e),n=h(arguments,1);return O[++C]=function(){l(t,void 0,n)},i(C),C},b=function(e){delete O[e]},v?i=function(e){S.nextTick(D(e))}:E&&E.now?i=function(e){E.now(D(e))}:w&&!g?(a=new w,o=a.port2,a.port1.onmessage=k,i=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(L)?(i=L,s.addEventListener("message",k,!1)):i=M in m("script")?function(e){f.appendChild(m("script"))[M]=function(){f.removeChild(this),A(e)}}:function(e){setTimeout(D(e),0)}),e.exports={set:y,clear:b}},"244f":function(e,t){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"245d":function(e,t,n){var r=n("b107"),i=r("",0,2,!0);e.exports=i},"24c7":function(e,t){function n(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}e.exports=n},"250d":function(e,t,n){var r=n("1093"),i=n("ca0c"),a=i(r);e.exports=a},2514:function(e,t,n){"use strict";var r=n("157c"),i=n("aaba");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(o){i(e,"throw",o)}}},2554:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"25ce":function(e,t){function n(e,t){return e>=t?e:(e>>=0)+Math.round(Math.random()*((t||9)-e))}e.exports=n},"260a":function(e,t,n){var r=n("a984"),i=r("keys",1);e.exports=i},2618:function(e,t,n){"use strict";var r=n("6b1d"),i=n("baa5").start,a=n("da9a");r({target:"String",proto:!0,forced:a},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"26d3":function(e,t,n){"use strict";n("4172"),n("8071"),n("52e2"),n("36b3"),n("0244"),n("27c8")},"26f9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function i(e){return e%10===0||e>10&&e<20}function a(e){return t[e].split("_")}function o(e,t,n,o){var s=e+" ";return 1===e?s+r(e,t,n[0],o):t?s+(i(e)?a(n)[1]:a(n)[0]):o?s+a(n)[1]:s+(i(e)?a(n)[1]:a(n)[2])}var s=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:o,m:r,mm:o,h:r,hh:o,d:r,dd:o,M:r,MM:o,y:r,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},"275a":function(e,t,n){"use strict";var r=n("1586");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},2793:function(e,t){var n="first";e.exports=n},"27a8":function(e,t,n){var r=n("6b6c"),i=n("6c80"),a=i(r);e.exports=a},"27c8":function(e,t,n){"use strict";var r=n("6b1d"),i=n("5428"),a=n("0e93"),o=n("367f"),s=n("f297").CONSTRUCTOR,l=n("9c36"),c=i("Promise"),u=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return l(u&&this===c?o:this,e)}})},2859:function(e,t,n){var r=n("6c67"),i=n("7490");function a(e,t){var n=[];return i(e,(function(e){n=n.concat(r(e)?t?a(e,t):e:[e])})),n}function o(e,t){return r(e)?a(e,t):[]}e.exports=o},"28c0":function(e,t,n){"use strict";var r=n("9c7b")(!0);n("9e78")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"28ef":function(e,t,n){var r=n("0237");function i(e){return function(t){return"[object "+e+"]"===r.call(t)}}e.exports=i},2907:function(e,t){function n(e){const t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n="shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",r="doc by license see throws tagged",i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=a,{name:"Ceylon",keywords:{keyword:t+" "+n,meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(a)}}e.exports=n},2910:function(e,t,n){var r=n("2aea"),i=n("a531"),a=n("5617");function o(e){return function(t,n){var o=i(t),s=o;if(o){n>>=0;var l=a(o),c=l.split("."),u=c[0],d=c[1]||"",p=d.substring(0,n+1),f=u+(p?"."+p:"");if(n>=d.length)return i(f);if(f=o,n>0){var h=Math.pow(10,n);s=Math[e](r(f,h))/h}else s=Math[e](f)}return s}}e.exports=o},2921:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},2928:function(e,t){e.exports={}},"293c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"2a17":function(e,t,n){var r=n("efd1");function i(e){return r(e)[0]}e.exports=i},"2a1b":function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&i&&"function"===typeof i.get?i.get:null,o=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,p=d?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype,h=f?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,_=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,S=String.prototype.slice,E=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,T=RegExp.prototype.test,C=Array.prototype.concat,O=Array.prototype.join,M=Array.prototype.slice,A=Math.floor,D="function"===typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"===typeof Symbol&&"object"===typeof Symbol.iterator,N="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,P=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var i=String(r),a=S.call(t,i.length+1);return E.call(i,n,"$&_")+"."+E.call(E.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(t,n,"$&_")}var Y=n(1),j=Y.custom,B=Q(j)?j:null;function U(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function H(e){return E.call(String(e),/"/g,""")}function G(e){return"[object Array]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function z(e){return"[object Date]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function V(e){return"[object RegExp]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function W(e){return"[object Error]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function q(e){return"[object String]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function $(e){return"[object Number]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function K(e){return"[object Boolean]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function Q(e){if(I)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!L)return!1;try{return L.call(e),!0}catch(t){}return!1}function X(e){if(!e||"object"!==typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(J(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!J(s,"customInspect")||s.customInspect;if("boolean"!==typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return ce(t,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var p=String(t);return d?F(t,p):p}if("bigint"===typeof t){var f=String(t)+"n";return d?F(t,f):f}var h="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=h&&h>0&&"object"===typeof t)return G(t)?"[Array]":"[Object]";var m=me(s,r);if("undefined"===typeof i)i=[];else if(ne(i,t)>=0)return"[Circular]";function _(t,n,a){if(n&&(i=M.call(i),i.push(n)),a){var o={depth:s.depth};return J(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(t,o,r+1,i)}return e(t,s,r+1,i)}if("function"===typeof t&&!V(t)){var v=te(t),y=ge(t,_);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+O.call(y,", ")+" }":"")}if(Q(t)){var b=I?E.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(t);return"object"!==typeof t||I?b:de(b)}if(le(t)){for(var x="<"+w.call(String(t.nodeName)),T=t.attributes||[],A=0;A",x}if(G(t)){if(0===t.length)return"[]";var k=ge(t,_);return m&&!he(k)?"["+_e(k,m)+"]":"[ "+O.call(k,", ")+" ]"}if(W(t)){var j=ge(t,_);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===j.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(j,", ")+" }":"{ ["+String(t)+"] "+O.call(C.call("[cause]: "+_(t.cause),j),", ")+" }"}if("object"===typeof t&&l){if(B&&"function"===typeof t[B]&&Y)return Y(t,{depth:h-r});if("symbol"!==l&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var Z=[];return o&&o.call(t,(function(e,n){Z.push(_(n,t,!0)+" => "+_(e,t))})),fe("Map",a.call(t),Z,m)}if(oe(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(_(e,t))})),fe("Set",c.call(t),ue,m)}if(ie(t))return pe("WeakMap");if(se(t))return pe("WeakSet");if(ae(t))return pe("WeakRef");if($(t))return de(_(Number(t)));if(X(t))return de(_(D.call(t)));if(K(t))return de(g.call(t));if(q(t))return de(_(String(t)));if(!z(t)&&!V(t)){var ve=ge(t,_),ye=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,be=t instanceof Object?"":"null prototype",Se=!ye&&N&&Object(t)===t&&N in t?S.call(ee(t),8,-1):be?"Object":"",Ee=ye||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",xe=Ee+(Se||be?"["+O.call(C.call([],Se||[],be||[]),": ")+"] ":"");return 0===ve.length?xe+"{}":m?xe+"{"+_e(ve,m)+"}":xe+"{ "+O.call(ve,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return Z.call(e,t)}function ee(e){return v.call(e)}function te(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ce(S.call(e,0,t.maxStringLength),t)+r}var i=E.call(E.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ue);return U(i,"single",t)}function ue(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function de(e){return"Object("+e+")"}function pe(e){return e+" { ? }"}function fe(e,t,n,r){var i=r?_e(n,r):O.call(n,", ");return e+" ("+t+") {"+i+"}"}function he(e){for(var t=0;t=0)return!1;return!0}function me(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=O.call(Array(e.indent+1)," ")}return{base:n,prev:O.call(Array(t+1),n)}}function _e(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+O.call(e,","+n)+"\n"+t.prev}function ge(e,t){var n=G(e),r=[];if(n){r.length=e.length;for(var i=0;ic)l.call(e,o=s[c++])&&t.push(o)}return t}},"2abb":function(e,t,n){"use strict";n("ce5c")},"2aea":function(e,t,n){var r=n("5d8c"),i=n("5617");function a(e,t){var n=i(e),a=i(t);return parseInt(n.replace(".",""))*parseInt(a.replace(".",""))/Math.pow(10,r(n)+r(a))}e.exports=a},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EffectScope",(function(){return rr})),n.d(t,"computed",(function(){return ur})),n.d(t,"customRef",(function(){return qe})),n.d(t,"default",(function(){return Qi})),n.d(t,"defineComponent",(function(){return Jr})),n.d(t,"del",(function(){return ui})),n.d(t,"effectScope",(function(){return ir})),n.d(t,"getCurrentInstance",(function(){return _e})),n.d(t,"getCurrentScope",(function(){return or})),n.d(t,"h",(function(){return Sr})),n.d(t,"inject",(function(){return _t})),n.d(t,"isProxy",(function(){return Fe})),n.d(t,"isReactive",(function(){return Ne})),n.d(t,"isReadonly",(function(){return Pe})),n.d(t,"isRef",(function(){return Ue})),n.d(t,"isShallow",(function(){return Re})),n.d(t,"markRaw",(function(){return je})),n.d(t,"mergeDefaults",(function(){return _n})),n.d(t,"nextTick",(function(){return Rr})),n.d(t,"onActivated",(function(){return qr})),n.d(t,"onBeforeMount",(function(){return Br})),n.d(t,"onBeforeUnmount",(function(){return zr})),n.d(t,"onBeforeUpdate",(function(){return Hr})),n.d(t,"onDeactivated",(function(){return $r})),n.d(t,"onErrorCaptured",(function(){return Wr})),n.d(t,"onMounted",(function(){return Ur})),n.d(t,"onRenderTracked",(function(){return Qr})),n.d(t,"onRenderTriggered",(function(){return Xr})),n.d(t,"onScopeDispose",(function(){return sr})),n.d(t,"onServerPrefetch",(function(){return Kr})),n.d(t,"onUnmounted",(function(){return Vr})),n.d(t,"onUpdated",(function(){return Gr})),n.d(t,"provide",(function(){return mt})),n.d(t,"reactive",(function(){return ke})),n.d(t,"readonly",(function(){return Ze})),n.d(t,"ref",(function(){return He})),n.d(t,"set",(function(){return ci})),n.d(t,"shallowReactive",(function(){return Le})),n.d(t,"shallowReadonly",(function(){return tt})),n.d(t,"shallowRef",(function(){return Ge})),n.d(t,"toRaw",(function(){return Ye})),n.d(t,"toRef",(function(){return Ke})),n.d(t,"toRefs",(function(){return $e})),n.d(t,"triggerRef",(function(){return Ve})),n.d(t,"unref",(function(){return We})),n.d(t,"useAttrs",(function(){return hn})),n.d(t,"useCssModule",(function(){return Pr})),n.d(t,"useCssVars",(function(){return Fr})),n.d(t,"useSlots",(function(){return fn})),n.d(t,"version",(function(){return Zr})),n.d(t,"watch",(function(){return yr})),n.d(t,"watchEffect",(function(){return mr})),n.d(t,"watchPostEffect",(function(){return _r})),n.d(t,"watchSyncEffect",(function(){return gr})); /*! * Vue.js v2.7.0 * (c) 2014-2022 Evan You * Released under the MIT License. */ var r=Object.freeze({}),i=Array.isArray;function a(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function s(e){return!0===e}function l(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return"function"===typeof e}function d(e){return null!==e&&"object"===typeof e}var p=Object.prototype.toString;function f(e){return"[object Object]"===p.call(e)}function h(e){return"[object RegExp]"===p.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function _(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===p?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var E=Object.prototype.hasOwnProperty;function x(e,t){return E.call(e,t)}function w(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var T=/-(\w)/g,C=w((function(e){return e.replace(T,(function(e,t){return t?t.toUpperCase():""}))})),O=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),M=/\B([A-Z])/g,A=w((function(e){return e.replace(M,"-$1").toLowerCase()}));function D(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function k(e,t){return e.bind(t)}var L=Function.prototype.bind?k:D;function I(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function N(e,t){for(var n in t)e[n]=t[n];return e}function R(e){for(var t={},n=0;n0,re=ee&&ee.indexOf("edge/")>0;ee&&ee.indexOf("android");var ie=ee&&/iphone|ipad|ipod|ios/.test(ee);ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee);var ae,oe=ee&&ee.match(/firefox\/(\d+)/),se={}.watch,le=!1;if(J)try{var ce={};Object.defineProperty(ce,"passive",{get:function(){le=!0}}),window.addEventListener("test-passive",null,ce)}catch(Xs){}var ue=function(){return void 0===ae&&(ae=!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),ae},de=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function pe(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,he="undefined"!==typeof Symbol&&pe(Symbol)&&"undefined"!==typeof Reflect&&pe(Reflect.ownKeys);fe="undefined"!==typeof Set&&pe(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var me=null;function _e(){return me&&{proxy:me}}function ge(e){void 0===e&&(e=null),e||me&&me._scope.off(),me=e,e&&e._scope.on()}var ve=P,ye=0,be=function(){function e(){this.id=ye++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){S(this.subs,e)},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.slice();for(var n=0,r=t.length;n0&&(r=ht(r,"".concat(t||"","_").concat(n)),ft(r[0])&&ft(u)&&(d[l]=Ce(u.text+r[0].text),r.shift()),d.push.apply(d,r)):c(r)?ft(u)?d[l]=Ce(u.text+r):""!==r&&d.push(Ce(r)):ft(r)&&ft(u)?d[l]=Ce(u.text+r.text):(s(e._isVList)&&o(r.tag)&&a(r.key)&&o(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),d.push(r)));return d}function mt(e,t){if(me){var n=me._provided,r=me.$parent&&me.$parent._provided;r===n&&(n=me._provided=Object.create(r)),n[e]=t}else 0}function _t(e,t,n){void 0===n&&(n=!1);var r=me;if(r){var i=r.$parent&&r.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&u(t)?t.call(r):t}else 0}function gt(e){var t=e.$options.provide;if(t){var n=u(t)?t.call(e):t;if(!d(n))return;var r=he?Reflect.ownKeys(n):Object.keys(n);ge(e);for(var i=0;i0,s=t?!!t.$stable:!o,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==r&&l===i.$key&&!o&&!i.$hasNormal)return i;for(var c in a={},t)t[c]&&"$"!==c[0]&&(a[c]=wt(e,n,c,t[c]))}else a={};for(var u in n)u in a||(a[u]=Tt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=a),K(a,"$stable",s),K(a,"$key",l),K(a,"$hasNormal",o),a}function wt(e,t,n,r){var a=function(){var t=me;ge(e);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!i(n)?[n]:pt(n);var a=n&&n[0];return ge(t),n&&(!a||1===n.length&&a.isComment&&!Et(a))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:a,enumerable:!0,configurable:!0}),a}function Tt(e,t){return function(){return e[t]}}function Ct(e,t){var n,r,a,s,l=null;if(i(e)||"string"===typeof e)for(l=new Array(e.length),n=0,r=e.length;n1?I(n):n;for(var r=I(arguments,1),i='event handler for "'.concat(e,'"'),a=0,o=n.length;adocument.createEvent("Event").timeStamp&&(Qn=function(){return Xn.now()})}function Zn(){var e,t;for(Kn=Qn(),Vn=!0,Un.sort((function(e,t){return e.id-t.id})),Wn=0;WnWn&&Un[n].id>e.id)n--;Un.splice(n+1,0,e)}else Un.push(e);zn||(zn=!0,Rr(Zn))}}var rr=function(){function e(e){void 0===e&&(e=!1),this.active=!0,this.effects=[],this.cleanups=[],!e&&$n&&(this.parent=$n,this.index=($n.scopes||($n.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=$n;try{return $n=this,e()}finally{$n=t}}else 0},e.prototype.on=function(){$n=this},e.prototype.off=function(){$n=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t-1)if(a&&!x(i,"default"))o=!1;else if(""===o||o===A(e)){var l=Ai(String,i.type);(l<0||s-1)return this;var n=I(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}function Zi(e){e.mixin=function(e){return this.options=Ei(this.options,e),this}}function Ji(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=Ei(n.options,e),o["super"]=n,o.options.props&&ea(o),o.options.computed&&ta(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,z.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=N({},o.options),i[r]=o,o}}function ea(e){var t=e.options.props;for(var n in t)ki(e.prototype,"_props",n)}function ta(e){var t=e.options.computed;for(var n in t)Yi(e.prototype,n,t[n])}function na(e){z.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function ra(e){return e&&(e.Ctor.options.name||e.tag)}function ia(e,t){return i(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function aa(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&oa(n,a,r,i)}}}function oa(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,S(n,t)}Wi(Qi),zi(Qi),Dn(Qi),Nn(Qi),bn(Qi);var sa=[String,RegExp,Array],la={name:"keep-alive",abstract:!0,props:{include:sa,exclude:sa,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var a=r.tag,o=r.componentInstance,s=r.componentOptions;t[i]={name:ra(s),tag:a,componentInstance:o},n.push(i),this.max&&n.length>parseInt(this.max)&&oa(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)oa(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){aa(e,(function(e){return ia(t,e)}))})),this.$watch("exclude",(function(t){aa(e,(function(e){return!ia(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=wn(e),n=t&&t.componentOptions;if(n){var r=ra(n),i=this,a=i.include,o=i.exclude;if(a&&(!r||!ia(a,r))||o&&r&&ia(o,r))return t;var s=this,l=s.cache,c=s.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,S(c,u),c.push(u)):(this.vnodeToCache=t,this.keyToCache=u),t.data.keepAlive=!0}return t||e&&e[0]}},ca={KeepAlive:la};function ua(e){var t={get:function(){return W}};Object.defineProperty(e,"config",t),e.util={warn:ve,extend:N,mergeOptions:Ei,defineReactive:li},e.set=ci,e.delete=ui,e.nextTick=Rr,e.observable=function(e){return si(e),e},e.options=Object.create(null),z.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,N(e.options.components,ca),Xi(e),Zi(e),Ji(e),na(e)}ua(Qi),Object.defineProperty(Qi.prototype,"$isServer",{get:ue}),Object.defineProperty(Qi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Qi,"FunctionalRenderContext",{value:Ut}),Qi.version=Zr;var da=y("style,class"),pa=y("input,textarea,option,select,progress"),fa=function(e,t,n){return"value"===n&&pa(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},ha=y("contenteditable,draggable,spellcheck"),ma=y("events,caret,typing,plaintext-only"),_a=function(e,t){return Sa(t)||"false"===t?"false":"contenteditable"===e&&ma(t)?t:"true"},ga=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"),va="http://www.w3.org/1999/xlink",ya=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},ba=function(e){return ya(e)?e.slice(6,e.length):""},Sa=function(e){return null==e||!1===e};function Ea(e){var t=e.data,n=e,r=e;while(o(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=xa(r.data,t));while(o(n=n.parent))n&&n.data&&(t=xa(t,n.data));return wa(t.staticClass,t.class)}function xa(e,t){return{staticClass:Ta(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function wa(e,t){return o(e)||o(t)?Ta(e,Ca(t)):""}function Ta(e,t){return e?t?e+" "+t:e:t||""}function Ca(e){return Array.isArray(e)?Oa(e):d(e)?Ma(e):"string"===typeof e?e:""}function Oa(e){for(var t,n="",r=0,i=e.length;r-1?Na[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Na[e]=/HTMLUnknownElement/.test(t.toString())}var Pa=y("text,number,password,search,email,tel,url");function Fa(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Ya(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function ja(e,t){return document.createElementNS(Aa[e],t)}function Ba(e){return document.createTextNode(e)}function Ua(e){return document.createComment(e)}function Ha(e,t,n){e.insertBefore(t,n)}function Ga(e,t){e.removeChild(t)}function za(e,t){e.appendChild(t)}function Va(e){return e.parentNode}function Wa(e){return e.nextSibling}function qa(e){return e.tagName}function $a(e,t){e.textContent=t}function Ka(e,t){e.setAttribute(t,"")}var Qa=Object.freeze({__proto__:null,createElement:Ya,createElementNS:ja,createTextNode:Ba,createComment:Ua,insertBefore:Ha,removeChild:Ga,appendChild:za,parentNode:Va,nextSibling:Wa,tagName:qa,setTextContent:$a,setStyleScope:Ka}),Xa={create:function(e,t){Za(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Za(e,!0),Za(t))},destroy:function(e){Za(e,!0)}};function Za(e,t){var n=e.data.ref;if(o(n)){var r=e.context,a=e.componentInstance||e.elm,s=t?null:a,l=t?void 0:a;if(u(n))xr(n,r,[s],r,"template ref function");else{var c=e.data.refInFor,d="string"===typeof n||"number"===typeof n,p=Ue(n),f=r.$refs;if(d||p)if(c){var h=d?f[n]:n.value;t?i(h)&&S(h,a):i(h)?h.includes(a)||h.push(a):d?(f[n]=[a],Ja(r,n,f[n])):n.value=[a]}else if(d){if(t&&f[n]!==a)return;f[n]=l,Ja(r,n,s)}else if(p){if(t&&n.value!==a)return;n.value=s}else 0}}}function Ja(e,t,n){var r=e._setupState;r&&x(r,t)&&(Ue(r[t])?r[t].value=n:r[t]=n)}var eo=new we("",{},[]),to=["create","activate","update","remove","destroy"];function no(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&ro(e,t)||s(e.isAsyncPlaceholder)&&a(t.asyncFactory.error))}function ro(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||Pa(r)&&Pa(i)}function io(e,t,n){var r,i,a={};for(r=t;r<=n;++r)i=e[r].key,o(i)&&(a[i]=r);return a}function ao(e){var t,n,r={},l=e.modules,u=e.nodeOps;for(t=0;tm?(d=a(n[v+1])?null:n[v+1].elm,w(e,d,n,f,v,r)):f>v&&C(t,p,m)}function A(e,t,n,r){for(var i=n;i-1?go(e,t,n):ga(t)?Sa(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):ha(t)?e.setAttribute(t,_a(t,n)):ya(t)?Sa(n)?e.removeAttributeNS(va,ba(t)):e.setAttributeNS(va,t,n):go(e,t,n)}function go(e,t,n){if(Sa(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var vo={create:mo,update:mo};function yo(e,t){var n=t.elm,r=t.data,i=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(i)||a(i.staticClass)&&a(i.class)))){var s=Ea(t),l=n._transitionClasses;o(l)&&(s=Ta(s,Ca(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var bo,So={create:yo,update:yo},Eo="__r",xo="__c";function wo(e){if(o(e[Eo])){var t=te?"change":"input";e[t]=[].concat(e[Eo],e[t]||[]),delete e[Eo]}o(e[xo])&&(e.change=[].concat(e[xo],e.change||[]),delete e[xo])}function To(e,t,n){var r=bo;return function i(){var a=t.apply(null,arguments);null!==a&&Mo(e,i,n,r)}}var Co=Or&&!(oe&&Number(oe[1])<=53);function Oo(e,t,n,r){if(Co){var i=Kn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}bo.addEventListener(e,t,le?{capture:n,passive:r}:n)}function Mo(e,t,n,r){(r||bo).removeEventListener(e,t._wrapper||t,n)}function Ao(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};bo=t.elm||e.elm,wo(n),st(n,r,Oo,Mo,To,t.context),bo=void 0}}var Do,ko={create:Ao,update:Ao,destroy:function(e){return Ao(e,eo)}};function Lo(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,i=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(o(c.__ob__)||s(c._v_attr_proxy))&&(c=t.data.domProps=N({},c)),l)n in c||(i[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var u=a(r)?"":String(r);Io(i,u)&&(i.value=u)}else if("innerHTML"===n&&ka(i.tagName)&&a(i.innerHTML)){Do=Do||document.createElement("div"),Do.innerHTML="".concat(r,"");var d=Do.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(d.firstChild)i.appendChild(d.firstChild)}else if(r!==l[n])try{i[n]=r}catch(Xs){}}}}function Io(e,t){return!e.composing&&("OPTION"===e.tagName||No(e,t)||Ro(e,t))}function No(e,t){var n=!0;try{n=document.activeElement!==e}catch(Xs){}return n&&e.value!==t}function Ro(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Po={create:Lo,update:Lo},Fo=w((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Yo(e){var t=jo(e.style);return e.staticStyle?N(e.staticStyle,t):t}function jo(e){return Array.isArray(e)?R(e):"string"===typeof e?Fo(e):e}function Bo(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Yo(i.data))&&N(r,n)}(n=Yo(e.data))&&N(r,n);var a=e;while(a=a.parent)a.data&&(n=Yo(a.data))&&N(r,n);return r}var Uo,Ho=/^--/,Go=/\s*!important$/,zo=function(e,t,n){if(Ho.test(t))e.style.setProperty(t,n);else if(Go.test(n))e.style.setProperty(A(t),n.replace(Go,""),"important");else{var r=Wo(t);if(Array.isArray(n))for(var i=0,a=n.length;i-1?t.split(Ko).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Xo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ko).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Zo(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&N(t,Jo(e.name||"v")),N(t,e),t}return"string"===typeof e?Jo(e):void 0}}var Jo=w((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),es=J&&!ne,ts="transition",ns="animation",rs="transition",is="transitionend",as="animation",os="animationend";es&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(rs="WebkitTransition",is="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(as="WebkitAnimation",os="webkitAnimationEnd"));var ss=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ls(e){ss((function(){ss(e)}))}function cs(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Qo(e,t))}function us(e,t){e._transitionClasses&&S(e._transitionClasses,t),Xo(e,t)}function ds(e,t,n){var r=fs(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===ts?is:os,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l0&&(n=ts,u=o,d=a.length):t===ns?c>0&&(n=ns,u=c,d=l.length):(u=Math.max(o,c),n=u>0?o>c?ts:ns:null,d=n?n===ts?a.length:l.length:0);var p=n===ts&&ps.test(r[rs+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:p}}function hs(e,t){while(e.length1}function bs(e,t){!0!==t.data.show&&_s(t)}var Ss=J?{create:bs,activate:bs,remove:function(e,t){!0!==e.data.show?gs(e,t):t()}}:{},Es=[vo,So,ko,Po,$o,Ss],xs=Es.concat(ho),ws=ao({nodeOps:Qa,modules:xs});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ls(e,"input")}));var Ts={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?lt(n,"postpatch",(function(){Ts.componentUpdated(e,t,n)})):Cs(e,t,n.context),e._vOptions=[].map.call(e.options,As)):("textarea"===n.tag||Pa(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ds),e.addEventListener("compositionend",ks),e.addEventListener("change",ks),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Cs(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,As);if(i.some((function(e,t){return!j(e,r[t])}))){var a=e.multiple?t.value.some((function(e){return Ms(e,i)})):t.value!==t.oldValue&&Ms(t.value,i);a&&Ls(e,"change")}}}};function Cs(e,t,n){Os(e,t,n),(te||re)&&setTimeout((function(){Os(e,t,n)}),0)}function Os(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,l=e.options.length;s-1,o.selected!==a&&(o.selected=a);else if(j(As(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ms(e,t){return t.every((function(t){return!j(t,e)}))}function As(e){return"_value"in e?e._value:e.value}function Ds(e){e.target.composing=!0}function ks(e){e.target.composing&&(e.target.composing=!1,Ls(e.target,"input"))}function Ls(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Is(e){return!e.componentInstance||e.data&&e.data.transition?e:Is(e.componentInstance._vnode)}var Ns={bind:function(e,t,n){var r=t.value;n=Is(n);var i=n.data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,_s(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=Is(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,r?_s(n,(function(){e.style.display=e.__vOriginalDisplay})):gs(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Rs={model:Ts,show:Ns},Ps={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 Fs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Fs(wn(t.children)):e}function Ys(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[C(r)]=i[r];return t}function js(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Bs(e){while(e=e.parent)if(e.data.transition)return!0}function Us(e,t){return t.key===e.key&&t.tag===e.tag}var Hs=function(e){return e.tag||Et(e)},Gs=function(e){return"show"===e.name},zs={name:"transition",props:Ps,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Hs),n.length)){0;var r=this.mode;0;var i=n[0];if(Bs(this.$vnode))return i;var a=Fs(i);if(!a)return i;if(this._leaving)return js(e,i);var o="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?o+"comment":o+a.tag:c(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var s=(a.data||(a.data={})).transition=Ys(this),l=this._vnode,u=Fs(l);if(a.data.directives&&a.data.directives.some(Gs)&&(a.data.show=!0),u&&u.data&&!Us(a,u)&&!Et(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=N({},s);if("out-in"===r)return this._leaving=!0,lt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),js(e,i);if("in-out"===r){if(Et(a))return l;var p,f=function(){p()};lt(s,"afterEnter",f),lt(s,"enterCancelled",f),lt(d,"delayLeave",(function(e){p=e}))}}return i}}},Vs=N({tag:String,moveClass:String},Ps);delete Vs.mode;var Ws={props:Vs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Ln(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=Ys(this),s=0;sn(e)).join("");return t}function i(...e){const t="("+e.map(e=>n(e)).join("|")+")";return t}function a(e){const t={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:r(/# */,i(o,a),/ *#/)},{begin:r(/# */,l,/ *#/)},{begin:r(/# */,s,/ *#/)},{begin:r(/# */,i(o,a),/ +/,i(s,l),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},p=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]}),h={className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{"meta-keyword":"const disable else elseif enable end externalsource if region then"},contains:[f]};return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[t,n,c,u,d,p,f,h]}}e.exports=a},"2b95":function(e,t,n){"use strict";var r=n("ef30");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"2ba1":function(e,t,n){var r=n("6b6c"),i=typeof location===r?0:location;e.exports=i},"2be6":function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},"2bfb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2c3d":function(e,t,n){"use strict";var r=n("d1b2"),i=Math.floor,a=function(e,t){var n=e.length,l=i(n/2);return n<8?o(e,t):s(e,a(r(e,0,l),t),a(r(e,l),t),t)},o=function(e,t){var n,r,i=e.length,a=1;while(a0)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},s=function(e,t,n,r){var i=t.length,a=n.length,o=0,s=0;while(ou)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"2c47":function(e,t){function n(e){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}e.exports=n},"2c7e":function(e,t,n){var r=n("6c67"),i=n("8c67"),a=n("9fac");function o(e,t){return function(n,o){if(n){if(n[e])return n[e](o);if(i(n)||r(n))return t(n,o);for(var s in n)if(a(n,s)&&o===n[s])return s}return-1}}e.exports=o},"2cc1":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),l=!a&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),_=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),v=_||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=_||/Mac/.test(t),b=/\bCrOS\b/.test(e),S=/win/i.test(t),E=p&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(p=!1,l=!0);var x=y&&(c||p&&(null==E||E<12.11)),w=n||o&&s>=9;function T(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,O=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return M(e).appendChild(t)}function D(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}_?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(P=function(e){try{e.select()}catch(t){}});var H=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};function G(e,t){for(var n=0;n=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var Q=[""];function X(e){while(Q.length<=e)Q.push(Z(Q)+" ");return Q[e]}function Z(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){while((n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function de(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,a=0;at||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(t,n,"ltr")}var pe=null;function fe(e,t,n){var r;pe=null;for(var i=0;it)return i;a.to==t&&(a.from!=a.to&&"before"==n?r=i:pe=i),a.from==t&&(a.from!=a.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],p=0;p-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function we(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Oe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Me(e){Te(e),Ce(e)}function Ae(e){return e.target||e.srcElement}function De(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var ke,Le,Ie=function(){if(o&&s<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}();function Ne(e){if(null==ke){var t=D("span","​");A(e,D("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ke=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=ke?D("span","​"):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Re(e){if(null!=Le)return Le;var t=A(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return M(e),!(!n||n.left==n.right)&&(Le=r.right-n.right<3)}var Pe=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var a=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),t+=o+1):(n.push(a),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ye=function(){var e=D("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),je=null;function Be(e){if(null!=je)return je;var t=A(e,D("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return je=Math.abs(n.left-r.left)>1}var Ue={},He={};function Ge(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ue[e]=t}function ze(e,t){He[e]=t}function Ve(e){if("string"==typeof e&&He.hasOwnProperty(e))e=He[e];else if(e&&"string"==typeof e.name&&He.hasOwnProperty(e.name)){var t=He[e.name];"string"==typeof t&&(t={name:t}),e=ne(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=Ve(t);var n=Ue[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if(qe.hasOwnProperty(t.name)){var i=qe[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var qe={};function $e(e,t){var n=qe.hasOwnProperty(e)?qe[e]:qe[e]={};B(t,n)}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Qe(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Xe(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Je(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t=e.first&&tn?st(n,Je(e,n).text.length):mt(t,Je(e,t.line).text.length)}function mt(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function _t(e,t){for(var n=[],r=0;r=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.post},Ze.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},a=this.string.substr(this.pos,e.length);if(i(a)==i(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},vt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function yt(e,t,n,r){var i=[e.state.modeGen],a={};Mt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Mt(e,t.text,s.mode,n,(function(e,t){var n=l;while(ce&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,r.state),a=yt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function St(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new vt(r,!0,t);var a=At(e,t,n),o=a>r.first&&Je(r,a-1).stateAfter,s=o?vt.fromSaved(r,o,a):new vt(r,Xe(r.mode),a);return r.iter(a,t,(function(n){Et(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return a}throw new Error("Mode "+e.name+" failed to advance stream.")}vt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},vt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},vt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vt.fromSaved=function(e,t,n){return t instanceof gt?new vt(e,Ke(e.mode,t.state),n,t.lookAhead):new vt(e,Ke(e.mode,t),n)},vt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ct(e,t,n,r){var i,a=e.doc,o=a.mode;t=ht(a,t);var s,l=Je(a,t.line),c=St(e,t.line,n),u=new Ze(l.text,e.options.tabSize,c);r&&(s=[]);while((r||u.pose.options.maxHighlightLength?(s=!1,o&&Et(e,t,r,d.pos),d.pos=t.length,l=null):l=Ot(wt(n,d,r.state,p),a),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){while(co;--s){if(s<=a.first)return a.first;var l=Je(a,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof gt?c.lookAhead:0)<=a.modeFrontier))return s;var u=U(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Dt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Je(e,r).stateAfter;if(i&&(!(i instanceof gt)||r+i.lookAhead=t:a.to>t);(r||(r=[])).push(new Rt(o,a.from,l?null:a.to))}}return r}function Bt(e,t,n){var r;if(e)for(var i=0;i=t:a.to>t);if(s||a.from==t&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var l=null==a.from||(o.inclusiveLeft?a.from<=t:a.from0&&s)for(var b=0;b0)){var u=[l,1],d=lt(c.from,s.from),p=lt(c.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!o.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function zt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||$t(n,a.marker)<0)&&(n=a.marker)}return n}function Jt(e,t,n,r,i){var a=Je(e,t),o=Lt&&a.markedSpans;if(o)for(var s=0;s=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(c.to,n)>=0:lt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?lt(c.from,r)<=0:lt(c.from,r)<0)))return!0}}}function en(e){var t;while(t=Qt(e))e=t.find(-1,!0).line;return e}function tn(e){var t;while(t=Xt(e))e=t.find(1,!0).line;return e}function nn(e){var t,n;while(t=Xt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function rn(e,t){var n=Je(e,t),r=en(n);return n==r?t:rt(r)}function an(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!on(e,r))return t;while(n=Xt(r))r=n.find(1,!0).line;return rt(r)+1}function on(e,t){var n=Lt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var dn=function(e,t,n){this.text=e,Vt(this,t),this.height=n?n(this):1};function pn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),zt(e),Vt(e,n);var i=r?r(e):1;i!=e.height&&nt(e,i)}function fn(e){e.parent=null,zt(e)}dn.prototype.lineNo=function(){return rt(this)},we(dn);var hn={},mn={};function _n(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?mn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=k("span",null,null,l?"padding-right: .1px":null),r={pre:k("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=yn,Re(e.display.measure)&&(o=me(a,e.doc.direction))&&(r.addToken=Sn(r.addToken,o)),r.map=[];var s=t!=e.display.externalMeasured&&rt(a);xn(a,r,bt(e,a,s)),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=R(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=R(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ne(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function vn(e){var t=D("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function yn(e,t,n,r,i,a,l){if(t){var c,u=e.splitSpaces?bn(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();var f=0;while(1){d.lastIndex=f;var h=d.exec(t),m=h?h.index-f:t.length-f;if(m){var _=document.createTextNode(u.slice(f,f+m));o&&s<9?c.appendChild(D("span",[_])):c.appendChild(_),e.map.push(e.pos,e.pos+m,_),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var g=void 0;if("\t"==h[0]){var v=e.cm.options.tabSize,y=v-e.col%v;g=c.appendChild(D("span",X(y),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=y}else"\r"==h[0]||"\n"==h[0]?(g=c.appendChild(D("span","\r"==h[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",h[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(h[0]),g.setAttribute("cm-text",h[0]),o&&s<9?c.appendChild(D("span",[g])):c.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),o&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||p||a||l){var b=n||"";r&&(b+=r),i&&(b+=i);var S=D("span",[c],b,a);if(l)for(var E in l)l.hasOwnProperty(E)&&"style"!=E&&"class"!=E&&S.setAttribute(E,l[E]);return e.content.appendChild(S)}e.content.appendChild(c)}}function bn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;ic&&d.from<=c)break;if(d.to>=u)return e(n,r,i,a,o,s,l);e(n,r.slice(0,d.to-c),i,a,null,s,l),a=null,r=r.slice(d.to-c),c=d.to}}}function En(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,i=e.text,a=0;if(r)for(var o,s,l,c,u,d,p,f=i.length,h=0,m=1,_="",g=0;;){if(g==h){l=c=u=s="",p=null,d=null,g=1/0;for(var v=[],y=void 0,b=0;bh||E.collapsed&&S.to==h&&S.from==h)){if(null!=S.to&&S.to!=h&&g>S.to&&(g=S.to,c=""),E.className&&(l+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&S.from==h&&(u+=" "+E.startStyle),E.endStyle&&S.to==g&&(y||(y=[])).push(E.endStyle,S.to),E.title&&((p||(p={})).title=E.title),E.attributes)for(var x in E.attributes)(p||(p={}))[x]=E.attributes[x];E.collapsed&&(!d||$t(d.marker,E)<0)&&(d=S)}else S.from>h&&g>S.from&&(g=S.from)}if(y)for(var w=0;w=f)break;var C=Math.min(f,g);while(1){if(_){var O=h+_.length;if(!d){var M=O>C?_.slice(0,C-h):_;t.addToken(t,M,o?o+l:l,u,h+M.length==g?c:"",s,p)}if(O>=C){_=_.slice(C-h),h=C;break}h=O,u=""}_=i.slice(a,a=n[m++]),o=_n(n[m++],t.cm.options)}}else for(var A=1;A2&&a.push((l.bottom+c.top)/2-n.top)}}a.push(n.bottom-n.top)}}function er(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function tr(e,t){t=en(t);var n=rt(t),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var i=r.built=gn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}function nr(e,t,n,r){return ar(e,ir(e,t),n,r)}function rr(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(a=l-s,i=a-1,t>=l&&(o="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)while(c&&e[c-2]==e[c-3]&&e[c-1].insertLeft)r=e[2+(c-=3)],o="left";if("right"==n&&i==l-s)while(c=0;i--)if((n=e[i]).left!=n.right)break;return n}function ur(e,t,n,r){var i,a=lr(t.map,n,r),l=a.node,c=a.start,u=a.end,d=a.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){while(c&&le(t.line.text.charAt(a.coverStart+c)))--c;while(a.coverStart+u0&&(d=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(o&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Lr(e.display),top:h.top,bottom:h.bottom}:sr}for(var m=i.top-t.rect.top,_=i.bottom-t.rect.top,g=(m+_)/2,v=t.view.measure.heights,y=0;y=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return o("before"==c?l-1:l,"before"==c);function u(e,t,n){var r=s[t],i=1==r.level;return o(n?e-1:e,i!=n)}var d=fe(s,l,c),p=pe,f=u(l,d,"before"==c);return null!=p&&(f.other=u(l,p,"before"!=c)),f}function Er(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Lr(e.display)*t.ch);var r=Je(e.doc,t.line),i=ln(r)+qn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function xr(e,t,n,r,i){var a=st(e,t,n);return a.xRel=i,r&&(a.outside=r),a}function wr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return xr(r.first,0,null,-1,-1);var i=it(r,n),a=r.first+r.size-1;if(i>a)return xr(r.first+r.size-1,Je(r,a).text.length,null,1,1);t<0&&(t=0);for(var o=Je(r,i);;){var s=Mr(e,o,i,t,n),l=Zt(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;o=Je(r,i=c.line)}}function Tr(e,t,n,r){r-=gr(t);var i=t.text.length,a=ue((function(t){return ar(e,n,t-1).bottom<=r}),i,0);return i=ue((function(t){return ar(e,n,t).top>r}),a,i),{begin:a,end:i}}function Cr(e,t,n,r){n||(n=ir(e,t));var i=vr(e,t,ar(e,n,r),"line").top;return Tr(e,t,n,i)}function Or(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Mr(e,t,n,r,i){i-=ln(t);var a=ir(e,t),o=gr(t),s=0,l=t.text.length,c=!0,u=me(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Dr:Ar)(e,t,n,a,u,r,i);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var p,f,h=null,m=null,_=ue((function(t){var n=ar(e,a,t);return n.top+=o,n.bottom+=o,!!Or(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),g=!1;if(m){var v=r-m.left=b.bottom?1:0}return _=ce(t.text,_,1),xr(n,_,f,g,r-p)}function Ar(e,t,n,r,i,a,o){var s=ue((function(s){var l=i[s],c=1!=l.level;return Or(Sr(e,st(n,c?l.to:l.from,c?"before":"after"),"line",t,r),a,o,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Sr(e,st(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Or(u,a,o,!0)&&u.top>o&&(l=i[s-1])}return l}function Dr(e,t,n,r,i,a,o){var s=Tr(e,t,r,o),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p=c||f.to<=l)){var h=1!=f.level,m=ar(e,r,h?Math.min(c,f.to)-1:Math.max(l,f.from)).right,_=m_)&&(u=f,d=_)}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function kr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==or){or=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)or.appendChild(document.createTextNode("x")),or.appendChild(D("br"));or.appendChild(document.createTextNode("x"))}A(e.measure,or);var n=or.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),M(e.measure),n||1}function Lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),n=D("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ir(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,a=t.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=e.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:Nr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Nr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Rr(e){var t=kr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Lr(e.display)-3);return function(i){if(on(e.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o0&&(l=Je(e.doc,c.line).text).length==c.ch){var u=U(l,l.length,e.options.tabSize)-l.length;c=st(c.line,Math.max(0,Math.round((a-Kn(e.display).left)/Lr(e.display))-u))}return c}function Yr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Lt&&rn(e.doc,t)i.viewFrom?Ur(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Ur(e);else if(t<=i.viewFrom){var a=Hr(e,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):Ur(e)}else if(n>=i.viewTo){var o=Hr(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Ur(e)}else{var s=Hr(e,t,t,-1),l=Hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Tn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Ur(e)}var c=i.externalMeasured;c&&(n=i.lineN&&t=r.viewTo)){var a=r.view[Yr(e,t)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==G(o,n)&&o.push(n)}}}function Ur(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Hr(e,t,n,r){var i,a=Yr(e,t),o=e.display.view;if(!Lt||n==e.doc.first+e.doc.size)return{index:a,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(a==o.length-1)return null;i=s+o[a].size-t,a++}else i=s-t;t+=i,n+=i}while(rn(e.doc,n)!=n){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function Gr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Tn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Tn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Yr(e,n)))),r.viewTo=n}function zr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?o:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function $r(e,t){return e.top-t.top||e.left-t.left}function Kr(e,t,n){var r=e.display,i=e.doc,a=document.createDocumentFragment(),o=Kn(e.display),s=o.left,l=Math.max(r.sizerWidth,Xn(e)-r.sizer.offsetLeft)-o.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var a,o,d=Je(i,t),p=d.text.length;function f(n,r){return br(e,st(t,n),"div",d,r)}function h(t,n,r){var i=Cr(e,d,null,t),a="ltr"==n==("after"==r)?"left":"right",o="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return f(o,a)[a]}var m=me(d,i.direction);return de(m,n||0,null==r?p:r,(function(e,t,i,d){var _="ltr"==i,g=f(e,_?"left":"right"),v=f(t-1,_?"right":"left"),y=null==n&&0==e,b=null==r&&t==p,S=0==d,E=!m||d==m.length-1;if(v.top-g.top<=3){var x=(c?y:b)&&S,w=(c?b:y)&&E,T=x?s:(_?g:v).left,C=w?l:(_?v:g).right;u(T,g.top,C-T,g.bottom)}else{var O,M,A,D;_?(O=c&&y&&S?s:g.left,M=c?l:h(e,i,"before"),A=c?s:h(t,i,"after"),D=c&&b&&E?l:v.right):(O=c?h(e,i,"before"):s,M=!c&&y&&S?l:g.right,A=!c&&b&&E?s:v.left,D=c?h(t,i,"after"):l),u(O,g.top,M-O,g.bottom),g.bottom0?t.blinker=setInterval((function(){e.hasFocus()||ei(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Xr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Jr(e))}function Zr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ei(e))}),100)}function Jr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qr(e))}function ei(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ti(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,a=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var g=Math.ceil(p/Lr(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(a)>2&&(t.scroller.scrollTop+=a)}function ni(e){if(e.widgets)for(var t=0;t=o&&(a=it(t,ln(Je(t,l))-e.wrapper.clientHeight),o=l)}return{from:a,to:Math.max(o,a+1)}}function ii(e,t){if(!Se(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,a=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(a.defaultView.innerHeight||a.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var o=D("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-qn(e.display))+"px;\n height: "+(t.bottom-t.top+Qn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ai(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var a=0;a<5;a++){var o=!1,s=Sr(e,t),l=n&&n!=t?Sr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var c=si(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(hi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),null!=c.scrollLeft&&(_i(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(o=!0)),!o)break}return i}function oi(e,t){var n=si(e,t);null!=n.scrollTop&&hi(e,n.scrollTop),null!=n.scrollLeft&&_i(e,n.scrollLeft)}function si(e,t){var n=e.display,r=kr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,a=Zn(e),o={};t.bottom-t.top>a&&(t.bottom=t.top+a);var s=e.doc.height+$n(n),l=t.tops-r;if(t.topi+a){var u=Math.min(t.top,(c?s:t.bottom)-a);u!=i&&(o.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Xn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?o.scrollLeft=0:t.leftf+p-3&&(o.scrollLeft=t.right+(h?0:10)-f),o}function li(e,t){null!=t&&(pi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ci(e){pi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ui(e,t,n){null==t&&null==n||pi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function di(e,t){pi(e),e.curOp.scrollToPos=t}function pi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Er(e,t.from),r=Er(e,t.to);fi(e,n,r,t.margin)}}function fi(e,t,n,r){var i=si(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});ui(e,i.scrollLeft,i.scrollTop)}function hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vi(e,{top:t}),mi(e,t,!0),n&&Vi(e),Fi(e,100))}function mi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function _i(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Ki(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+$n(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var vi=function(e,t,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ge(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},vi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var e=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new H,this.disableVert=new H},vi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),a="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);a!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},vi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yi=function(){};function bi(e,t){t||(t=gi(e));var n=e.display.barWidth,r=e.display.barHeight;Si(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ti(e),Si(e,gi(e)),n=e.display.barWidth,r=e.display.barHeight}function Si(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}yi.prototype.update=function(){return{bottom:0,right:0}},yi.prototype.setScrollLeft=function(){},yi.prototype.setScrollTop=function(){},yi.prototype.clear=function(){};var Ei={native:vi,null:yi};function xi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ei[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?_i(e,t):hi(e,t)}),e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var wi=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++wi,markArrays:null},On(e.curOp)}function Ci(e){var t=e.curOp;t&&An(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ji(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ai(e){e.updatedDisplay=e.mustUpdate&&Gi(e.cm,e.update)}function Di(e){var t=e.cm,n=t.display;e.updatedDisplay&&ti(t),e.barMeasure=gi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=nr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ki(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=St(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(a){if(r.line>=e.display.viewFrom){var o=a.styles,s=a.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,l=yt(e,a,r,!0);s&&(r.state=s),a.styles=l.styles;var c=a.styleClasses,u=l.classes;u?a.styleClasses=u:c&&(a.styleClasses=null);for(var d=!o||o.length!=a.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&pn)return Fi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ii(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==zr(e))return!1;Qi(e)&&(Ur(e),t.dims=Ir(e));var i=r.first+r.size,a=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Lt&&(a=rn(e.doc,a),o=an(e.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Gr(e,a,o),n.viewOffset=ln(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=zr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Ui(e);return l>4&&(n.lineDiv.style.display="none"),Wi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Hi(c),M(n.cursorDiv),M(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fi(e,400)),n.updateLineNumbers=null,!0}function zi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Xn(e))r&&(t.visible=ri(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+$n(e.display)-Zn(e),n.top)}),t.visible=ri(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Gi(e,t))break;ti(e);var i=gi(e);Vr(e),bi(e,i),$i(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vi(e,t){var n=new ji(e,t);if(Gi(e,n)){ti(e),zi(e,n);var r=gi(e);Vr(e),bi(e,r),$i(e,r),n.finish()}}function Wi(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d-1&&(f=!1),In(e,p,u,n)),f&&(M(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(ot(e.options,u)))),o=p.node.nextSibling}else{var h=Un(e,p,u,n);a.insertBefore(h,o)}u+=p.size}while(o)o=s(o)}function qi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",kn(e,"gutterChanged",e)}function $i(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Qn(e)+"px"}function Ki(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Nr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,a=r+"px",o=0;o=105&&(a.wrapper.style.clipPath="inset(0px)"),a.wrapper.setAttribute("translate","no"),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),l||n&&v||(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Xi(i.gutters,i.lineNumbers),Zi(a),r.init(a)}ji.prototype.signal=function(e,t){xe(e,t)&&this.events.push(arguments)},ji.prototype.finish=function(){for(var e=0;ec.clientWidth,h=c.scrollHeight>c.clientHeight;if(i&&f||a&&h){if(a&&y&&l)e:for(var m=t.target,_=s.view;m!=c;m=m.parentNode)for(var g=0;g<_.length;g++)if(_[g].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!p&&null!=o)return a&&h&&hi(e,Math.max(0,c.scrollTop+a*o)),_i(e,Math.max(0,c.scrollLeft+i*o)),(!a||a&&h)&&Te(t),void(s.wheelStartX=null);if(a&&null!=o){var v=a*o,b=e.doc.scrollTop,S=b+s.wrapper.clientHeight;v<0?b=Math.max(0,b+v-50):S=Math.min(e.doc.height,S+v+50),Vi(e,{top:b,bottom:S})}ta<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=a,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(na=(na*ta+n)/(ta+1),++ta)}}),200)):(s.wheelDX+=i,s.wheelDY+=a))}}o?na=-.53:n?na=15:u?na=-.7:f&&(na=-1/3);var oa=function(e,t){this.ranges=e,this.primIndex=t};oa.prototype.primary=function(){return this.ranges[this.primIndex]},oa.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t=0&<(e,r.to())<=0)return n}return-1};var sa=function(e,t){this.anchor=e,this.head=t};function la(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return lt(e.from(),t.from())})),n=G(t,i);for(var a=1;a0:l>=0){var c=pt(s.from(),o.from()),u=dt(s.to(),o.to()),d=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,t.splice(--a,2,new sa(d?u:c,d?c:u))}}return new oa(t,n)}function ca(e,t){return new oa([new sa(e,t||e)],0)}function ua(e){return e.text?st(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function da(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return ua(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ua(t).ch-t.to.ch),st(n,r)}function pa(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}kn(e,"change",e,t)}function ya(e,t,n){function r(e,i,a){if(e.linked)for(var o=0;o1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}function Oa(e,t,n,r){var i=e.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(a=Ca(i,i.lastOp==r)))o=Z(a.changes),0==lt(t.from,t.to)&&0==lt(t.from,o.to)?o.to=ua(t):a.changes.push(wa(e,t));else{var l=Z(i.done);l&&l.ranges||Da(e.sel,i.done),a={changes:[wa(e,t)],generation:i.generation},i.done.push(a);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,o||be(e,"historyAdded")}function Ma(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Aa(e,t,n,r){var i=e.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Ma(e,a,Z(i.done),t))?i.done[i.done.length-1]=t:Da(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ta(i.undone)}function Da(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ka(e,t,n,r){var i=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[a]=n.markedSpans),++a}))}function La(e){if(!e)return null;for(var t,n=0;n-1&&(Z(s)[d]=c[d],delete c[d])}}}return r}function Pa(e,t,n,r){if(r){var i=e.anchor;if(n){var a=lt(t,i)<0;a!=lt(n,i)<0?(i=t,t=n):a!=lt(t,n)<0&&(t=n)}return new sa(i,t)}return new sa(n||t,t)}function Fa(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ga(e,new oa([Pa(e.sel.primary(),t,n,i)],0),r)}function Ya(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),a=0;a=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),p=void 0;if((r<0?u:c)&&(d=Qa(e,d,-r,d&&d.line==t.line?a:null)),d&&d.line==t.line&&(p=lt(d,n))&&(r<0?p<0:p>0))return $a(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=Qa(e,f,r,f.line==t.line?a:null)),f?$a(e,f,t,r,i):null}}return t}function Ka(e,t,n,r,i){var a=r||1,o=$a(e,t,n,a,i)||!i&&$a(e,t,n,a,!0)||$a(e,t,n,-a,i)||!i&&$a(e,t,n,-a,!0);return o||(e.cantEdit=!0,st(e.first,0))}function Qa(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,st(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line=0;--i)eo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else eo(e,t)}}function eo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var n=pa(e,t);Oa(e,t,n,e.cm?e.cm.curOp.id:NaN),ro(e,t,n,Ut(e,t));var r=[];ya(e,(function(e,n){n||-1!=G(r,e.history)||(lo(e.history,t),r.push(e.history)),ro(e,t,null,Ut(e,t))}))}}function to(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,a=e.history,o=e.sel,s="undo"==t?a.done:a.undone,l="undo"==t?a.undone:a.done,c=0;c=0;--f){var h=p(f);if(h)return h.v}}}}function no(e,t){if(0!=t&&(e.first+=t,e.sel=new oa(J(e.sel.ranges,(function(e){return new sa(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){jr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linea&&(t={from:t.from,to:st(a,Je(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),n||(n=pa(e,t)),e.cm?io(e.cm,t,r):va(e,t,r),za(e,n,W),e.cantEdit&&Ka(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function io(e,t,n){var r=e.doc,i=e.display,a=t.from,o=t.to,s=!1,l=a.line;e.options.lineWrapping||(l=rt(en(Je(r,a.line))),r.iter(l,o.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Ee(e),va(r,t,n,Rr(e)),e.options.lineWrapping||(r.iter(l,a.line+t.text.length,(function(e){var t=cn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Dt(r,a.line),Fi(e,400);var c=t.text.length-(o.line-a.line)-1;t.full?jr(e):a.line!=o.line||1!=t.text.length||ga(e.doc,t)?jr(e,a.line,o.line+1,c):Br(e,a.line,"text");var u=xe(e,"changes"),d=xe(e,"change");if(d||u){var p={from:a,to:o,text:t.text,removed:t.removed,origin:t.origin};d&&kn(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function ao(e,t,n,r,i){var a;r||(r=n),lt(r,n)<0&&(a=[r,n],n=a[0],r=a[1]),"string"==typeof t&&(t=e.splitLines(t)),Ja(e,{from:n,to:r,text:t,origin:i})}function oo(e,t,n,r){n1||!(this.children[0]instanceof uo))){var s=[];this.collapse(s),this.children=[new uo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=i.lines.length%25+25,s=o;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=k("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Jt(e,t.line,t,n,a)||t.line!=n.line&&Jt(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nt()}a.addToHistory&&Oa(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&a.collapsed&&!c.options.lineWrapping&&en(r)==c.display.maxLine&&(s=!0),a.collapsed&&l!=t.line&&nt(r,0),Yt(r,new Rt(a,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),a.collapsed&&e.iter(t.line,n.line+1,(function(t){on(e,t)&&nt(t,0)})),a.clearOnEnter&&ge(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++_o,a.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),a.collapsed)jr(c,t.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=t.line;u<=n.line;u++)Br(c,u,"text");a.atomic&&Wa(c.doc),kn(c,"markerAdded",c,a)}return a}go.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),xe(this,"clear")){var n=this.find();n&&kn(this,"clear",n.from,n.to)}for(var r=null,i=null,a=0;ae.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&jr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wa(e.doc)),e&&kn(e,"markerCleared",e,this,r,i),t&&Ci(e),this.parent&&this.parent.clear()}},go.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)Ja(this,r[l]);s?Ha(this,s):this.cm&&ci(this.cm)})),undo:Pi((function(){to(this,"undo")})),redo:Pi((function(){to(this,"redo")})),undoSelection:Pi((function(){to(this,"undo",!0)})),redoSelection:Pi((function(){to(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=a,++n})),ht(this,st(n,t))},indexFromPos:function(e){e=ht(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),za(t.doc,ca(n,n)),p)for(var f=0;f=0;t--)ao(e.doc,"",r[t].from,r[t].to,"+delete");ci(e)}))}function Ko(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qo(e,t,n){var r=Ko(e,t.ch,n);return null==r?null:new st(t.line,r,n<0?"after":"before")}function Xo(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var a=me(n,t.doc.direction);if(a){var o,s=i<0?Z(a):a[0],l=i<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=ir(t,n);o=i<0?n.text.length-1:0;var d=ar(t,u,o).top;o=ue((function(e){return ar(t,u,e).top==d}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=Ko(n,o,1))}else o=i<0?s.to:s.from;return new st(r,o,c)}}return new st(r,i<0?n.text.length:0,i<0?"before":"after")}function Zo(e,t,n,r){var i=me(t,e.doc.direction);if(!i)return Qo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=fe(i,n.ch,n.sticky),o=i[a];if("ltr"==e.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from=o.from&&p>=u.begin)){var f=d?"before":"after";return new st(n.line,p,f)}}var h=function(e,t,r){for(var a=function(e,t){return t?new st(n.line,l(e,1),"before"):new st(n.line,e,"after")};e>=0&&e0==(1!=o.level),c=s?r.begin:l(r.end,-1);if(o.from<=c&&c0?u.end:l(u.begin,-1);return null==_||r>0&&_==t.text.length||(m=h(r>0?0:i.length-1,r,c(_)),!m)?null:m}Bo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bo["default"]=y?Bo.macDefault:Bo.pcDefault;var Jo={selectAll:Xa,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return $o(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new st(i.line,i.ch+1),e.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),st(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var o=Je(e.doc,i.line-1).text;o&&(i=new st(i.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),st(i.line-1,o.length-1),i,"+transpose"))}n.push(new sa(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ii(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(lt((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(lt(i.to(),t)>0||t.xRel<0)?ws(e,r,t,a):Cs(e,r,t,a)}function ws(e,t,n,r){var i=e.display,a=!1,c=Ni(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Zr(e)),ye(i.wrapper.ownerDocument,"mouseup",c),ye(i.wrapper.ownerDocument,"mousemove",u),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",c),a||(Te(t),r.addNew||Fa(e.doc,n,null,null,r.extend),l&&!f||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return a=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ts(e,t,n){if("char"==n)return new sa(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new sa(st(t.line,0),ht(e.doc,st(t.line+1,0)));var r=n(e,t);return new sa(r.from,r.to)}function Cs(e,t,n,r){o&&Zr(e);var i=e.display,a=e.doc;Te(t);var s,l,c=a.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=a.sel.contains(n),s=l>-1?u[l]:new sa(n,n)):(s=a.sel.primary(),l=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new sa(n,n)),n=Fr(e,t,!0,!0),l=-1;else{var d=Ts(e,n,r.unit);s=r.extend?Pa(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,Ga(a,la(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Ga(a,la(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):ja(a,l,s,q):(l=0,Ga(a,new oa([s],0),q),c=a.sel);var p=n;function f(t){if(0!=lt(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,u=U(Je(a,n.line).text,n.ch,o),d=U(Je(a,t.line).text,t.ch,o),f=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,t.line),_=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=_;m++){var g=Je(a,m).text,v=K(g,f,o);f==h?i.push(new sa(st(m,v),st(m,v))):g.length>v&&i.push(new sa(st(m,v),st(m,K(g,h,o))))}i.length||i.push(new sa(n,n)),Ga(a,la(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,b=s,S=Ts(e,t,r.unit),E=b.anchor;lt(S.anchor,E)>0?(y=S.head,E=pt(b.from(),S.anchor)):(y=S.anchor,E=dt(b.to(),S.head));var x=c.ranges.slice(0);x[l]=Os(e,new sa(ht(a,E),y)),Ga(a,la(e,x,l),q)}}var h=i.wrapper.getBoundingClientRect(),m=0;function _(t){var n=++m,o=Fr(e,t,!0,"rectangle"==r.unit);if(o)if(0!=lt(o,p)){e.curOp.focus=I(F(e)),f(o);var s=ri(i,a);(o.line>=s.to||o.lineh.bottom?20:0;l&&setTimeout(Ni(e,(function(){m==n&&(i.scroller.scrollTop+=l,_(t))})),50)}}function g(t){e.state.selectingText=!1,m=1/0,t&&(Te(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",v),ye(i.wrapper.ownerDocument,"mouseup",y),a.history.lastSelOrigin=null}var v=Ni(e,(function(e){0!==e.buttons&&De(e)?_(e):g(e)})),y=Ni(e,g);e.state.selectingText=y,ge(i.wrapper.ownerDocument,"mousemove",v),ge(i.wrapper.ownerDocument,"mouseup",y)}function Os(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==lt(n,r)&&n.sticky==r.sticky)return t;var a=me(i);if(!a)return t;var o=fe(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==a.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=fe(a,r.ch,r.sticky),d=u-o||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=a[c+(l?-1:0)],f=l==(1==p.level),h=f?p.from:p.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new sa(new st(n.line,h,m),r)}function Ms(e,t,n,r){var i,a;if(t.touches)i=t.touches[0].clientX,a=t.touches[0].clientY;else try{i=t.clientX,a=t.clientY}catch(p){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Te(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!xe(e,n))return Oe(t);a-=s.top-o.viewOffset;for(var l=0;l=i){var u=it(e.doc,a),d=e.display.gutterSpecs[l];return be(e,n,e,u,d.className,t),Oe(t)}}}function As(e,t){return Ms(e,t,"gutterClick",!0)}function Ds(e,t){Wn(e.display,t)||ks(e,t)||Se(e,t,"contextmenu")||w||e.display.input.onContextMenu(t)}function ks(e,t){return!!xe(e,"gutterContextMenu")&&Ms(e,t,"gutterContextMenu",!1)}function Ls(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}vs.prototype.compare=function(e,t,n){return this.time+gs>e&&0==lt(t,this.pos)&&n==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Ns={},Rs={};function Ps(e){var t=e.optionHandlers;function n(n,r,i,a){e.defaults[n]=r,i&&(t[n]=a?function(e,t,n){n!=Is&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Is,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ma(e)}),!0),n("indentUnit",2,ma,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){_a(e),hr(e),jr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var a=e.text.indexOf(t,i);if(-1==a)break;i=a+t.length,n.push(st(r,a))}r++}));for(var i=n.length-1;i>=0;i--)ao(e.doc,t,n[i],st(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Is&&e.refresh()})),n("specialCharPlaceholder",vn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!S),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ls(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=qo(t),i=n!=Is&&qo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ys,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Xi(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Nr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return bi(e)}),!0),n("scrollbarStyle","native",(function(e){xi(e),bi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Xi(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,Vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ei(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Vr,!0),n("singleCursorHeightPerLine",!0,Vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,_a,!0),n("addModeClass",!1,_a,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,_a,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Fs(e,t,n){var r=n&&n!=Is;if(!t!=!r){var i=e.display.dragFunctions,a=t?ge:ye;a(e.display.scroller,"dragstart",i.start),a(e.display.scroller,"dragenter",i.enter),a(e.display.scroller,"dragover",i.over),a(e.display.scroller,"dragleave",i.leave),a(e.display.scroller,"drop",i.drop)}}function Ys(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),un(e)),Pr(e),jr(e),hr(e),setTimeout((function(){return bi(e)}),100)}function js(e,t){var n=this;if(!(this instanceof js))return new js(e,t);this.options=t=t?B(t):{},B(Ns,t,!1);var r=t.value;"string"==typeof r?r=new To(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new js.inputStyles[t.inputStyle](this),a=this.display=new ea(e,r,i,t);for(var c in a.wrapper.CodeMirror=this,Ls(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new H,keySeq:null,specialChars:null},t.autofocus&&!v&&a.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Bs(this),Io(),Ti(this),this.curOp.forceUpdate=!0,ba(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Jr(n)}),20):ei(this),Rs)Rs.hasOwnProperty(c)&&Rs[c](this,t[c],Is);Qi(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}ge(t.scroller,"touchstart",(function(i){if(!Se(e,i)&&!a(i)&&!As(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ge(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ge(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,o=e.coordsChar(t.activeTouch,"page");a=!r.prev||l(r,r.prev)?new sa(o,o):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(o):new sa(st(o.line,0),ht(e.doc,st(o.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Te(n)}i()})),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(hi(e,t.scroller.scrollTop),_i(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),ge(t.scroller,"mousewheel",(function(t){return aa(e,t)})),ge(t.scroller,"DOMMouseScroll",(function(t){return aa(e,t)})),ge(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){Se(e,t)||Me(t)},over:function(t){Se(e,t)||(Ao(e,t),Me(t))},start:function(t){return Mo(e,t)},drop:Ni(e,Oo),leave:function(t){Se(e,t)||Do(e)}};var c=t.input.getField();ge(c,"keyup",(function(t){return fs.call(e,t)})),ge(c,"keydown",Ni(e,ds)),ge(c,"keypress",Ni(e,hs)),ge(c,"focus",(function(t){return Jr(e,t)})),ge(c,"blur",(function(t){return ei(e,t)}))}js.defaults=Ns,js.optionHandlers=Rs;var Us=[];function Hs(e,t,n,r){var i,a=e.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?i=St(e,t).state:n="prev");var o=e.options.tabSize,s=Je(a,t),l=U(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=a.mode.indent(i,s.text.slice(u.length),s.text),c==V||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>a.first?U(Je(a,t-1).text,null,o):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",p=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/o);f;--f)p+=o,d+="\t";if(po,l=Pe(t),c=null;if(s&&r.ranges.length>1)if(Gs&&Gs.text.join("\n")==t){if(r.ranges.length%Gs.text.length==0){c=[];for(var u=0;u=0;p--){var f=r.ranges[p],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=st(h.line,h.ch-n):e.state.overwrite&&!s?m=st(m.line,Math.min(Je(a,m.line).text.length,m.ch+Z(l).length)):s&&Gs&&Gs.lineWise&&Gs.text.join("\n")==l.join("\n")&&(h=m=st(h.line,0)));var _={from:h,to:m,text:c?c[p%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>o?"cut":"+input")};Ja(e.doc,_),kn(e,"inputRead",e,_)}t&&!s&&qs(e,t),ci(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ws(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ii(t,(function(){return Vs(t,n,0,null,"paste")})),!0}function qs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=e.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s-1){o=Hs(e,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Hs(e,i.head.line,"smart"));o&&kn(e,"electricInput",e,i.head.line)}}}function $s(e){for(var t=[],n=[],r=0;rn&&(Hs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ci(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var l=s;l0&&ja(this.doc,r,new sa(a,c[r].to()),W)}}})),getTokenAt:function(e,t){return Ct(this,e,t)},getLineTokens:function(e,t){return Ct(this,st(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=bt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,a=e.ch;if(0==a)t=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]a&&(e=a,i=!0),r=Je(this.doc,e)}else r=e;return vr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-ln(r):0)},defaultTextHeight:function(){return kr(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var a=this.display;e=Sr(this,ht(this.doc,e));var o=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)o=e.top;else if("above"==r||"near"==r){var l=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(o=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==i?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&oi(this,{left:s,top:o,right:s+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:Ri(ds),triggerOnKeyPress:Ri(hs),triggerOnKeyUp:fs,triggerOnMouseDown:Ri(bs),execCommand:function(e){if(Jo.hasOwnProperty(e))return Jo[e].call(null,this)},triggerElectric:Ri((function(e){qs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var a=ht(this.doc,e),o=0;o0&&s(n.charAt(r-1)))--r;while(i.5||this.options.lineWrapping)&&Pr(this),be(this,"refresh",this)})),swapDoc:Ri((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),ba(this,e),hr(this),this.display.input.reset(),ui(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,kn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,a){e.registerHelper(t,r,a),n[t]._global.push({pred:i,val:a})}}function Zs(e,t,n,r,i){var a=t,o=n,s=Je(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new st(n,t.ch,t.sticky),s=Je(e,n))}function u(a){var o;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))o=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;o=new st(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else o=i?Zo(e.cm,s,t,n):Qo(s,t,n);if(null==o){if(a||!c())return!1;t=Xo(i,e.cm,s,t.line,l)}else t=o;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;;h=!1){if(n<0&&!u(!h))break;var m=s.text.charAt(t.ch)||"\n",_=ae(m,f)?"w":p&&"\n"==m?"n":!p||/\s/.test(m)?null:"p";if(!p||h||_||(_="s"),d&&d!=_){n<0&&(n=1,u(),t.sticky="after");break}if(_&&(d=_),n>0&&!u(!h))break}var g=Ka(e,t,a,o,!0);return ct(a,g)&&(g.hitSide=!0),g}function Js(e,t,n,r){var i,a,o=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,Y(e).innerHeight||o(e).documentElement.clientHeight),c=Math.max(l-.5*kr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(a=wr(e,s,i),!a.outside)break;if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}var el=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function tl(e,t){var n=rr(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=er(n,r,t.line),a=me(r,e.doc.direction),o="left";if(a){var s=fe(a,t.ch);o=s%2?"right":"left"}var l=lr(i.map,t.ch,o);return l.offset="right"==l.collapse?l.end:l.start,l}function nl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rl(e,t){return t&&(e.bad=!0),e}function il(e,t,n,r,i){var a="",o=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){o&&(a+=s,l&&(a+=s),o=l=!1)}function d(e){e&&(u(),a+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var a,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(st(r,0),st(i+1,0),c(+f));return void(h.length&&(a=h[0].find(0))&&d(et(e.doc,a.from,a.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var _=0;_=t.display.viewTo||a.line=t.display.viewFrom&&tl(t,i)||{node:l[0].measure.map[2],offset:0},u=a.liner.firstLine()&&(o=st(o.line-1,Je(r.doc,o.line-1).length)),s.ch==Je(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;o.line==i.viewFrom||0==(e=Yr(r,o.line))?(t=rt(i.view[0].line),n=i.view[0].node):(t=rt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Yr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=rt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(il(r,n,c,t,l)),p=et(r.doc,st(t,0),st(l,Je(r.doc,l).text.length));while(d.length>1&&p.length>1)if(Z(d)==Z(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}var f=0,h=0,m=d[0],_=p[0],g=Math.min(m.length,_.length);while(fo.ch&&v.charCodeAt(v.length-h-1)==y.charCodeAt(y.length-h-1))f--,h++;d[d.length-1]=v.slice(0,v.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var S=st(t,f),E=st(l,p.length?Z(p).length-h:0);return d.length>1||d[0]||lt(S,E)?(ao(r.doc,d,S,E,"+input"),!0):void 0},el.prototype.ensurePolled=function(){this.forceCompositionEnd()},el.prototype.reset=function(){this.forceCompositionEnd()},el.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},el.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},el.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return jr(e.cm)}))},el.prototype.setUneditable=function(e){e.contentEditable="false"},el.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ni(this.cm,Vs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},el.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},el.prototype.onContextMenu=function(){},el.prototype.resetPosition=function(){},el.prototype.needsContentAttribute=!0;var sl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ll(e,t){if(t=t?B(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=js((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function cl(e){e.off=ye,e.on=ge,e.wheelEventPixels=ia,e.Doc=To,e.splitLines=Pe,e.countColumn=U,e.findColumn=K,e.isWordChar=ie,e.Pass=V,e.signal=be,e.Line=dn,e.changeEnd=ua,e.scrollbarModel=Ei,e.Pos=st,e.cmpPos=lt,e.modes=Ue,e.mimeModes=He,e.resolveMode=Ve,e.getMode=We,e.modeExtensions=qe,e.extendMode=$e,e.copyState=Ke,e.startState=Xe,e.innerMode=Qe,e.commands=Jo,e.keyMap=Bo,e.keyName=Wo,e.isModifierKey=zo,e.lookupKey=Go,e.normalizeKeyMap=Ho,e.StringStream=Ze,e.SharedTextMarker=yo,e.TextMarker=go,e.LineWidget=fo,e.e_preventDefault=Te,e.e_stopPropagation=Ce,e.e_stop=Me,e.addClass=N,e.contains=L,e.rmClass=O,e.keyNames=Po}sl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function a(e){if(!Se(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=$s(r);zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,W):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),_&&(i.style.width="0px"),ge(i,"input",(function(){o&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ge(i,"paste",(function(e){Se(r,e)||Ws(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ge(i,"cut",a),ge(i,"copy",a),ge(e.scroller,"paste",(function(t){if(!Wn(e,t)&&!Se(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=t.clipboardData,i.dispatchEvent(a)}})),ge(e.lineSpace,"selectstart",(function(t){Wn(e,t)||Te(t)})),ge(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ge(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},sl.prototype.createField=function(e){this.wrapper=Qs(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ks(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},sl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},sl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Wr(e);if(e.options.moveInputWithCursor){var i=Sr(e,n.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},sl.prototype.showSelection=function(e){var t=this.cm,n=t.display;A(n.cursorDiv,e.cursors),A(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},sl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),o&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null));this.resetting=!1}},sl.prototype.getField=function(){return this.textarea},sl.prototype.supportsTouch=function(){return!1},sl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||I(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},sl.prototype.blur=function(){this.textarea.blur()},sl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},sl.prototype.receivedFocus=function(){this.slowPoll()},sl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},sl.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},sl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r="​"),8666==a)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(r.length,i.length);while(l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},sl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},sl.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},sl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Fr(n,e),c=r.scroller.scrollTop;if(a&&!p){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(a)&&Ni(n,Ga)(n.doc,ca(a),W);var d,f=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(d=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&g(),w){Me(e);var _=function(){ye(window,"mouseup",_),setTimeout(v,20)};ge(window,"mouseup",_)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),a="​"+(e?i.value:"");i.value="⇚",i.value=a,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=f,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!o||o&&s<9)&&g();var e=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ni(n,Xa)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},sl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},sl.prototype.setUneditable=function(){},sl.prototype.needsContentAttribute=!1,Ps(js),Xs(js);var ul="iter insert remove copy getEditor constructor".split(" ");for(var dl in To.prototype)To.prototype.hasOwnProperty(dl)&&G(ul,dl)<0&&(js.prototype[dl]=function(e){return function(){return e.apply(this.doc,arguments)}}(To.prototype[dl]));return we(To),js.inputStyles={textarea:sl,contenteditable:el},js.defineMode=function(e){js.defaults.mode||"null"==e||(js.defaults.mode=e),Ge.apply(this,arguments)},js.defineMIME=ze,js.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),js.defineMIME("text/plain","null"),js.defineExtension=function(e,t){js.prototype[e]=t},js.defineDocExtension=function(e,t){To.prototype[e]=t},js.fromTextArea=ll,cl(js),js.version="5.65.14",js}))},"2cd0":function(e,t,n){var r=n("1093"),i=n("3a77"),a=n("8af6"),o=n("8c67"),s=n("3ce3");function l(e){return"(\\d{"+e+"})"}function c(e){return e<10?100*e:e<100?10*e:e}function u(e){return isNaN(e)?e:r(e)}for(var d=l(2),p=l("1,2"),f=l("1,7"),h=l("3,4"),m=".{1}",_=m+p,g="(([zZ])|([-+]\\d{2}:?\\d{2}))",v=[h,_,_,_,_,_,m+f,g],y=[],b=v.length-1;b>=0;b--){for(var S="",E=0;E1?arguments[1]:void 0)}})},"2d70":function(e,t,n){var r=n("349f"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"2da1":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),M="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),r=new O(t,n,this);M.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){A.prototype[e]=function(){var t;return(t=M.get(this))[e].apply(t,arguments)}}));var D=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();t["default"]=D}.call(this,n("7d15"))},"2da6":function(e,t,n){var r=n("bf42");function i(e){return r(e)&&isNaN(e)}e.exports=i},"2dd8":function(e,t,n){"use strict";var r=n("70b7"),i=2147483647,a=36,o=1,s=26,l=38,c=700,u=72,d=128,p="-",f=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",_=a-o,g=RangeError,v=r(h.exec),y=Math.floor,b=String.fromCharCode,S=r("".charCodeAt),E=r([].join),x=r([].push),w=r("".replace),T=r("".split),C=r("".toLowerCase),O=function(e){var t=[],n=0,r=e.length;while(n=55296&&i<=56319&&n>1,e+=y(e/t);while(e>_*s>>1)e=y(e/_),r+=a;return y(r+(_+1)*e/(e+l))},D=function(e){var t=[];e=O(e);var n,r,l=e.length,c=d,f=0,h=u;for(n=0;n=c&&ry((i-f)/w))throw g(m);for(f+=(S-c)*w,c=S,n=0;ni)throw g(m);if(r==c){var T=f,C=a;while(1){var D=C<=h?o:C>=h+s?s:C-h;if(Tn(e)).join("");return t}function a(...e){const t="("+e.map(e=>n(e)).join("|")+")";return t}function o(e){const t={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},n=e.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[n,s,o,l,t,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,p=/'[^']*'/,f=a(u,d,p),h=i(f,"(\\s*\\.\\s*",f,")*",r(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[n,c,s,o,l,t]}}]}}e.exports=o},"2f1c":function(e,t){function n(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}e.exports=n},"2f62":function(e,t,n){"use strict"; /** * vuex v3.1.0 * (c) 2019 Evan You * @license MIT */ function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return k}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)})))}function o(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}var c=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(e,t){this._children[e]=t},c.prototype.removeChild=function(e){delete this._children[e]},c.prototype.getChild=function(e){return this._children[e]},c.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},c.prototype.forEachChild=function(e){o(this._children,e)},c.prototype.forEachGetter=function(e){this._rawModule.getters&&o(this._rawModule.getters,e)},c.prototype.forEachAction=function(e){this._rawModule.actions&&o(this._rawModule.actions,e)},c.prototype.forEachMutation=function(e){this._rawModule.mutations&&o(this._rawModule.mutations,e)},Object.defineProperties(c.prototype,u);var d=function(e){this.register([],e,!1)};function p(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;p(e.concat(r),t.getChild(r),n.modules[r])}}d.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},d.prototype.update=function(e){p([],this.root,e)},d.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new c(t,n);if(0===e.length)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&o(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var f;var h=function(e){var t=this;void 0===e&&(e={}),!f&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new f;var i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var c=this._modules.root.state;y(this,c,[],this._modules.root),v(this,c),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:f.config.devtools;u&&a(this)},m={state:{configurable:!0}};function _(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function g(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;y(e,n,[],e._modules.root,!0),v(e,n,t)}function v(e,t,n){var r=e._vm;e.getters={};var i=e._wrappedGetters,a={};o(i,(function(t,n){a[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=f.config.silent;f.config.silent=!0,e._vm=new f({data:{$$state:t},computed:a}),f.config.silent=s,e.strict&&T(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),f.nextTick((function(){return r.$destroy()})))}function y(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o]=r),!a&&!i){var s=C(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){f.set(s,l,r.state)}))}var c=r.context=b(e,o,n);r.forEachMutation((function(t,n){var r=o+n;E(e,r,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,i=t.handler||t;x(e,r,i,c)})),r.forEachGetter((function(t,n){var r=o+n;w(e,r,t,c)})),r.forEachChild((function(r,a){y(e,t,n.concat(a),r,i)}))}function b(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=O(n,r,i),o=a.payload,s=a.options,l=a.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var a=O(n,r,i),o=a.payload,s=a.options,l=a.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return S(e,t)}},state:{get:function(){return C(e.state,n)}}}),i}function S(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),n}function E(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function x(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t,i){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,i);return l(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}function w(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function T(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function C(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function O(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function M(e){f&&e===f||(f=e,r(f))}m.state.get=function(){return this._vm._data.$$state},m.state.set=function(e){0},h.prototype.commit=function(e,t,n){var r=this,i=O(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),l=this._mutations[a];l&&(this._withCommit((function(){l.forEach((function(e){e(o)}))})),this._subscribers.forEach((function(e){return e(s,r.state)})))},h.prototype.dispatch=function(e,t){var n=this,r=O(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return l.then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(c){0}return e}))}},h.prototype.subscribe=function(e){return _(e,this._subscribers)},h.prototype.subscribeAction=function(e){var t="function"===typeof e?{before:e}:e;return _(t,this._actionSubscribers)},h.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},h.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},h.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),y(this,this.state,e,this._modules.get(e),n.preserveState),v(this,this.state)},h.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=C(t.state,e.slice(0,-1));f.delete(n,e[e.length-1])})),g(this)},h.prototype.hotUpdate=function(e){this._modules.update(e),g(this,!0)},h.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(h.prototype,m);var A=R((function(e,t){var n={};return N(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=P(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),D=R((function(e,t){var n={};return N(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=P(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),k=R((function(e,t){var n={};return N(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||P(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),L=R((function(e,t){var n={};return N(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=P(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),I=function(e){return{mapState:A.bind(null,e),mapGetters:k.bind(null,e),mapMutations:D.bind(null,e),mapActions:L.bind(null,e)}};function N(e){return Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}}))}function R(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function P(e,t,n){var r=e._modulesNamespaceMap[n];return r}var F={Store:h,install:M,version:"3.1.0",mapState:A,mapMutations:D,mapGetters:k,mapActions:L,createNamespacedHelpers:I};t["a"]=F},"2f6a":function(e,t,n){"use strict";var r=n("72df"),i=n("f498"),a=i.RegExp,o=r((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=o||r((function(){return!a("a","y").sticky})),l=o||r((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:o}},"2ff4":function(e,t,n){var r=n("349f"),i=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):a(e,t)}},3060:function(e,t,n){var r=n("28ef"),i=r("RegExp");e.exports=i},"30a3":function(e,t){function n(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},a=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,i]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,r,i){const s=e.inherit({className:"function",beginKeywords:t,end:r,excludeEnd:!0,contains:[].concat(a)},i||{});return s.contains.push(o),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},u={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,u,c,"self"]};return u.contains.push(d),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,i]}}e.exports=n},"30c6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0c08");function i(e,t){for(var n=0;n/}]},r={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},i=e.inherit(e.APOS_STRING_MODE,{illegal:null}),a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(r)}),o=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(r)}),s={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[e.inherit(i,{begin:"b'",end:"'"}),e.inherit(a,{begin:'b"',end:'"'}),a,i,o]},l={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},c={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:c,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,l]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[e.UNDERSCORE_TITLE_MODE]},s,l]}}e.exports=n},3139:function(e,t,n){var r=n("1e72");function i(e){return r(e,(function(e){return e}))}e.exports=i},3211:function(e,t,n){"use strict";var r=n("7d53"),i=r("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},3243:function(e,t,n){"use strict";var r=n("70b7"),i=n("c6de"),a=n("3ce8"),o=n("6a61"),s=n("2a3e"),l=r([].push);e.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r")}));o("replace",(function(e,t,n){var a=A?"$":"$0";return[function(e,n){var r=h(this),a=u(e)?void 0:_(e,b);return a?i(a,e,r,n):i(t,f(r),e,n)},function(e,i){var o=l(this),s=f(e);if("string"==typeof i&&-1===T(i,a)&&-1===T(i,"$<")){var u=n(t,o,s,i);if(u.done)return u.value}var h=c(i);h||(i=f(i));var _=o.global;if(_){var y=o.unicode;o.lastIndex=0}var b=[];while(1){var M=v(o,s);if(null===M)break;if(w(b,M),!_)break;var A=f(M[0]);""===A&&(o.lastIndex=m(s,p(o.lastIndex),y))}for(var D="",k=0,L=0;L=k&&(D+=C(s,k,N)+j,k=N+I.length)}return D+C(s,k)}]}),!D||!M||A)},"332c":function(e,t,n){"use strict";var r=n("4cdd"),i=n("1d8a"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},"338e":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},"33ef":function(e,t,n){"use strict";var r=n("6b1d"),i=n("c6de"),a=n("c42f"),o=n("7526"),s=n("9a0f"),l=n("0481"),c=n("378c"),u=n("dac6"),d=n("7d53"),p=n("189b"),f=n("de02"),h=p("slice"),m=d("species"),_=Array,g=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,d,p=c(this),h=l(p),v=s(e,h),y=s(void 0===t?h:t,h);if(i(p)&&(n=p.constructor,a(n)&&(n===_||i(n.prototype))?n=void 0:o(n)&&(n=n[m],null===n&&(n=void 0)),n===_||void 0===n))return f(p,v,y);for(r=new(void 0===n?_:n)(g(y-v,0)),d=0;v0?r:n)(e)}},"34fa":function(e,t){function n(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}e.exports=n},"355b":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},3599:function(e,t,n){(function(t){var r=n("6b6c"),i=n("db9d"),a=n("f2c0"),o=n("44bb"),s=n("7490");function l(e){try{var t="__xe_t";return e.setItem(t,1),e.removeItem(t),!0}catch(n){return!1}}function c(e){return navigator.userAgent.indexOf(e)>-1}function u(){var e,n,u,d=!1,p={isNode:!1,isMobile:d,isPC:!1,isDoc:!!i};return a||typeof t===r?(u=c("Edge"),n=c("Chrome"),d=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),p.isDoc&&(e=i.body||i.documentElement,s(["webkit","khtml","moz","ms","o"],(function(t){p["-"+t]=!!e[t+"MatchesSelector"]}))),o(p,{edge:u,firefox:c("Firefox"),msie:!u&&p["-ms"],safari:!n&&!u&&c("Safari"),isMobile:d,isPC:!d,isLocalStorage:l(a.localStorage),isSessionStorage:l(a.sessionStorage)})):p.isNode=!0,p}e.exports=u}).call(this,n("07d9"))},"35bc":function(e,t,n){"use strict";var r=n("6b1d"),i=n("f498"),a=n("b546"),o=n("70b7"),s=n("0e93"),l=n("d4cb"),c=n("cd51"),u=n("72df"),d=n("7a25"),p=n("fb9b"),f=n("157c"),h=n("378c"),m=n("feca"),_=n("2a3e"),g=n("9618"),v=n("82e8"),y=n("0c47"),b=n("65d0"),S=n("ee58"),E=n("2402"),x=n("185a"),w=n("abdf"),T=n("b99b"),C=n("e129"),O=n("ef30"),M=n("cf87"),A=n("4cdd"),D=n("332c"),k=n("d687"),L=n("1d8a"),I=n("7d53"),N=n("4e41"),R=n("0cb1"),P=n("6367"),F=n("fa46"),Y=n("cdcd"),j=n("d054").forEach,B=D("hidden"),U="Symbol",H="prototype",G=Y.set,z=Y.getterFor(U),V=Object[H],W=i.Symbol,q=W&&W[H],$=i.TypeError,K=i.QObject,Q=x.f,X=w.f,Z=S.f,J=C.f,ee=o([].push),te=A("symbols"),ne=A("op-symbols"),re=A("wks"),ie=!K||!K[H]||!K[H].findChild,ae=l&&u((function(){return 7!=v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Q(V,t);r&&delete V[t],X(e,t,n),r&&e!==V&&X(V,t,r)}:X,oe=function(e,t){var n=te[e]=v(q);return G(n,{type:U,tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===V&&se(ne,t,n),f(e);var r=m(t);return f(n),d(te,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=v(n,{enumerable:g(0,!1)})):(d(e,B)||X(e,B,g(1,{})),e[B][r]=!0),ae(e,r,n)):X(e,r,n)},le=function(e,t){f(e);var n=h(t),r=y(n).concat(fe(n));return j(r,(function(t){l&&!a(ue,n,t)||se(e,t,n[t])})),e},ce=function(e,t){return void 0===t?v(e):le(v(e),t)},ue=function(e){var t=m(e),n=a(J,this,t);return!(this===V&&d(te,t)&&!d(ne,t))&&(!(n||!d(this,t)||!d(te,t)||d(this,B)&&this[B][t])||n)},de=function(e,t){var n=h(e),r=m(t);if(n!==V||!d(te,r)||d(ne,r)){var i=Q(n,r);return!i||!d(te,r)||d(n,B)&&n[B][r]||(i.enumerable=!0),i}},pe=function(e){var t=Z(h(e)),n=[];return j(t,(function(e){d(te,e)||d(k,e)||ee(n,e)})),n},fe=function(e){var t=e===V,n=Z(t?ne:h(e)),r=[];return j(n,(function(e){!d(te,e)||t&&!d(V,e)||ee(r,te[e])})),r};c||(W=function(){if(p(q,this))throw $("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,t=L(e),n=function(e){this===V&&a(n,ne,e),d(this,B)&&d(this[B],t)&&(this[B][t]=!1),ae(this,t,g(1,e))};return l&&ie&&ae(V,t,{configurable:!0,set:n}),oe(t,e)},q=W[H],O(q,"toString",(function(){return z(this).tag})),O(W,"withoutSetter",(function(e){return oe(L(e),e)})),C.f=ue,w.f=se,T.f=le,x.f=de,b.f=S.f=pe,E.f=fe,N.f=function(e){return oe(I(e),e)},l&&(M(q,"description",{configurable:!0,get:function(){return z(this).description}}),s||O(V,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),j(y(re),(function(e){R(e)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:ce,defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pe}),P(),F(W,U),k[B]=!0},"362d":function(e,t){e.exports=!0},"367f":function(e,t,n){"use strict";var r=n("f498");e.exports=r.Promise},"36aa":function(module,exports,__webpack_require__){!function(e,t){module.exports=t()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=68)}([function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object String]"===r(e)}function a(e,t){return S.call(e,t)}function o(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function l(e){return!(e>=55296&&e<=57343)&&!(e>=64976&&e<=65007)&&65535!=(65535&e)&&65534!=(65535&e)&&!(e>=0&&e<=8)&&11!==e&&!(e>=14&&e<=31)&&!(e>=127&&e<=159)&&!(e>1114111)}function c(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function u(e,t){var n=0;return a(C,t)?C[t]:35===t.charCodeAt(0)&&T.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),l(n))?c(n):e}function d(e){return e.indexOf("\\")<0?e:e.replace(E,"$1")}function p(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(w,(function(e,t,n){return t||u(e,n)}))}function f(e){return A[e]}function h(e){return O.test(e)?e.replace(M,f):e}function m(e){return e.replace(D,"\\$&")}function _(e){switch(e){case 9:case 32:return!0}return!1}function g(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function v(e){return k.test(e)}function y(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function b(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}var S=Object.prototype.hasOwnProperty,E=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,x=/&([a-z#][a-z0-9]{1,31});/gi,w=new RegExp(E.source+"|"+x.source,"gi"),T=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,C=n(52),O=/[&<>"]/,M=/[&<>"]/g,A={"&":"&","<":"<",">":">",'"':"""},D=/[.?*+^$[\]\\(){}|-]/g,k=n(34);t.lib={},t.lib.mdurl=n(56),t.lib.ucmicro=n(196),t.assign=o,t.isString=i,t.has=a,t.unescapeMd=d,t.unescapeAll=p,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=h,t.arrayReplaceAt=s,t.isSpace=_,t.isWhiteSpace=g,t.isMdAsciiPunct=y,t.isPunctChar=v,t.escapeRE=m,t.normalizeReference=b},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(11)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(5),i=n(13);e.exports=n(3)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(9),i=n(42),a=n(28),o=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(88),i=n(19);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(26)("wks"),i=n(14),a=n(1).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var a=r(i);return[n].concat(i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}))).concat([a]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i0?r:n)(e)}},function(e,t,n){var r=n(8);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(1),i=n(10),a=n(12),o=n(30),s=n(5).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){t.f=n(7)},function(e,t,n){function r(e,t){return new a(t).process(e)}var i=n(50),a=n(111);for(var o in t=e.exports=r,t.FilterCSS=a,i)t[o]=i[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0)return n[0].addEventListener("load",(function(){t()})),void t();var r=document.createElement("script"),i=document.getElementsByTagName("head")[0];r.type="text/javascript",r.charset="UTF-8",r.src=e,r.addEventListener?r.addEventListener("load",(function(){t()}),!1):r.attachEvent&&r.attachEvent("onreadystatechange",(function(){"loaded"===window.event.srcElement.readyState&&t()})),i.appendChild(r)}function c(e,t,n){if("function"!=typeof t&&(t=function(){}),document.querySelectorAll("link[href='"+e+"']").length>0)t();else{if(n){var r=document.querySelectorAll("link#"+n);if(r.length)return void(r[0].href=e)}var i=document.createElement("link"),a=document.getElementsByTagName("head")[0];i.rel="stylesheet",i.href=e,n&&(i.id=n),i.addEventListener?i.addEventListener("load",(function(){t()}),!1):i.attachEvent&&i.attachEvent("onreadystatechange",(function(){"loaded"===window.event.srcElement.readyState&&t()})),a.appendChild(i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=l,t.loadLink=c;var u=(t.insertTextAtCaret=function(e,t,n){var r=t.prefix,i=t.subfix,o=t.str;if(t.type,e.focus(),a(e)){var l=e.selectionStart,c=e.selectionEnd,u=e.value;l===c?(e.value=u.substring(0,l)+r+o+i+u.substring(c,u.length),e.selectionStart=l+r.length,e.selectionEnd=l+(o.length+r.length)):u.substring(l-r.length,l)===r&&u.substring(c,c+i.length)===i&&s(r,i,u,l,c)?(e.value=u.substring(0,l-r.length)+u.substring(l,c)+u.substring(c+i.length,u.length),e.selectionStart=l-r.length,e.selectionEnd=c-r.length):(e.value=u.substring(0,l)+r+u.substring(l,c)+i+u.substring(c,u.length),e.selectionStart=l+r.length,e.selectionEnd=l+(c-l+r.length))}else alert("Error: Browser version is too low");n.d_value=e.value,e.focus()},{prefix:"```",subfix:"\n```\n",defaultLanguageText:"language"});t.insertCodeBlock=function(e){var t=e.getTextareaDom();if(a(t)){var n=u.defaultLanguageText,s=t.selectionStart,l=t.selectionEnd,c=t.value;if(s===l)r(n,"",t);else if(o(t))i(t);else{var d=c.substring(s,l);r("",d,t)}e.d_value=t.value,t.focus()}else alert("Error: Browser version is too low")},t.insertOl=function(e){var t=e.getTextareaDom();if(a(t)){var n=t.selectionStart,r=t.selectionEnd,i=t.value;if(n===r)t.value=i.substring(0,n)+"1. "+i.substring(r,i.length),t.selectionEnd=t.selectionStart=n+3;else{for(var o=n;o>0&&"\n"!==i.substring(o-1,o);)o--;for(var s=i.substring(o,r),l=s.split("\n"),c=0;c0&&"\n"!==i.substring(o-1,o);)o--;for(var s=r;s0&&"\n"!==i.substring(o-1,o);)o--;var s=i.substring(o,r),l=s.replace(/\n/g,"\n- ");l="- "+l,t.value=i.substring(0,o)+l+i.substring(r,i.length),t.selectionStart=o,t.selectionEnd=r+l.length-s.length}}else alert("Error: Browser version is too low");e.d_value=t.value,t.focus()},t.insertTab=function(e,t){t=t?new Array(t).fill(" ").join(""):"\t";var n=e.getTextareaDom();if(a(n)){var r=n.selectionStart,i=n.selectionEnd,o=n.value,s=o.substring(0,r).split("\n").pop();if(s.match(/^\s*[0-9]+\.\s+\S*/)){var l=s.replace(/(\d+)/,1);n.value=o.substring(0,r-l.length)+t+l+o.substring(i,o.length)}else s.match(/^\s*-\s+\S*/)?n.value=o.substring(0,r-s.length)+t+s+o.substring(i,o.length):n.value=o.substring(0,r)+t+o.substring(i,o.length);n.selectionStart=n.selectionEnd=r+t.length}else alert("Error: Browser version is too low");e.d_value=n.value,n.focus()},t.unInsertTab=function(e,t){var n=new RegExp(t?"\\s{"+t+"}":"\t");console.log("regTab:",n);var r=e.getTextareaDom();if(a(r)){var i=r.selectionStart,o=r.selectionEnd,s=r.value,l=s.substring(0,i).split("\n").pop();l.search(n)>=0&&(r.value=s.substring(0,i-l.length)+l.replace(n,"")+s.substring(o,s.length),r.selectionStart=r.selectionEnd=i-(t||1))}else alert("Error: Browser version is too low");e.d_value=r.value,r.focus()},t.insertEnter=function(e,t){var n=e.getTextareaDom();if(a(n)){var r=n.selectionStart,i=n.selectionEnd,o=n.value,s=o.substring(0,r).split("\n").pop(),l=s.match(/^\s*(?:[0-9]+\.|-)\s+\S+/);if(l){t.preventDefault();var c=l.shift().match(/^\s*(?:[0-9]+\.|-)\s/).shift();if(c.search(/-/)>=0)n.value=o.substring(0,r)+"\n"+c+o.substring(i,o.length),n.selectionStart=n.selectionEnd=r+c.length+1;else{var u=c.replace(/(\d+)/,parseInt(c)+1);n.value=o.substring(0,r)+"\n"+u+o.substring(i,o.length),n.selectionStart=n.selectionEnd=r+u.length+1}}else{var d=s.match(/^\s*(?:[0-9]+\.|-)\s+$/);if(d){t.preventDefault();var p=d.shift().length;n.value=o.substring(0,r-p)+"\n"+o.substring(i,o.length),n.selectionStart=n.selectionEnd=r-p}}}else alert("Error: Browser version is too low");e.d_value=n.value,n.focus()},t.getNavigation=function(e,t){var n=void 0;n=e.$refs.navigationContent,n.innerHTML=e.d_render;var r=n.children;if(r.length)for(var i=0;i=0&&n.scrollHeight!==t.edit_scroll_height&&n.scrollHeight-n.offsetHeight-n.scrollTop<=30&&(t.$refs.vNoteEdit.scrollTop=n.scrollHeight-n.offsetHeight,r=1),t.edit_scroll_height=n.scrollHeight,t.$refs.vShowContent.scrollHeight>t.$refs.vShowContent.offsetHeight&&(t.$refs.vShowContent.scrollTop=(t.$refs.vShowContent.scrollHeight-t.$refs.vShowContent.offsetHeight)*r)},t.fullscreenchange=function(e){e.$el.addEventListener("fullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1),e.$el.addEventListener("mozfullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1),e.$el.addEventListener("webkitfullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1),e.$el.addEventListener("msfullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1)},t.windowResize=function(e){function t(){e.$el.clientWidth>768?e.s_subfield=e.subfield:e.s_subfield=!1}t(),window.addEventListener("resize",t)},t.ImagePreviewListener=function(e){e.$refs.vShowContent.addEventListener("click",(function(t){t=t||window.event;var n=t.srcElement?t.srcElement:t.target;"IMG"===n.tagName&&(null!=e.imageClick?e.imageClick(n):e.d_preview_imgsrc=n.src)}))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(8),i=n(1).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(1),i=n(10),a=n(85),o=n(4),s=n(2),l=function(e,t,n){var c,u,d,p=e&l.F,f=e&l.G,h=e&l.S,m=e&l.P,_=e&l.B,g=e&l.W,v=f?i:i[t]||(i[t]={}),y=v.prototype,b=f?r:h?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(u=!p&&b&&void 0!==b[c])&&s(v,c)||(d=u?b[c]:n[c],v[c]=f&&"function"!=typeof b[c]?n[c]:_&&u?a(d,r):g&&b[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((v.virtual||(v.virtual={}))[c]=d,e&l.R&&y&&!y[c]&&o(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(3)&&!n(11)((function(){return 7!=Object.defineProperty(n(40)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(12),i=n(41),a=n(48),o=n(4),s=n(21),l=n(90),c=n(24),u=n(96),d=n(7)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,h,m,_,g){l(n,t,h);var v,y,b,S=function(e){if(!p&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",x="values"==m,w=!1,T=e.prototype,C=T[d]||T["@@iterator"]||m&&T[m],O=C||S(m),M=m?x?S("entries"):O:void 0,A="Array"==t&&T.entries||C;if(A&&(b=u(A.call(new e)))!==Object.prototype&&b.next&&(c(b,E,!0),r||"function"==typeof b[d]||o(b,d,f)),x&&C&&"values"!==C.name&&(w=!0,O=function(){return C.call(this)}),r&&!g||!p&&!w&&T[d]||o(T,d,O),s[t]=O,s[E]=f,m)if(v={values:x?O:S("values"),keys:_?O:S("keys"),entries:M},g)for(y in v)y in T||a(T,y,v[y]);else i(i.P+i.F*(p||w),t,v);return v}},function(e,t,n){var r=n(9),i=n(93),a=n(20),o=n(25)("IE_PROTO"),s=function(){},l=function(){var e,t=n(40)("iframe"),r=a.length;for(t.style.display="none",n(87).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("