(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"0050":function(e,t,n){"use strict";(function(t){function n(e){return e instanceof t?t.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function i(e){if(e=e||{},e.circles)return r(e);const t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(o(Array.from(e),t))),t.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(const n of e.constructorHandlers)t.set(n[0],n[1]);let i=null;return e.proto?a:s;function o(e,r){const o=Object.keys(e),s=new Array(o.length);for(let a=0;anew Date(e)),r.set(Map,(e,t)=>new Map(s(Array.from(e),t))),r.set(Set,(e,t)=>new Set(s(Array.from(e),t))),e.constructorHandlers)for(const n of e.constructorHandlers)r.set(n[0],n[1]);let o=null;return e.proto?l:a;function s(e,s){const a=Object.keys(e),l=new Array(a.length);for(let c=0;ce.window.document),f=i["F"](e);f&&d.unshift(f);for(const r of d)this._hooks.add(i["l"](r,u,e=>{e.buttons===t?this._mouseMoveCallback(e):this.stopMonitoring(!0)},(e,t)=>this._mouseMoveEventMerger(e,t))),this._hooks.add(i["i"](r,h,e=>this.stopMonitoring(!0)));if(r["a"].hasDifferentOriginAncestor()){let e=c[c.length-1];this._hooks.add(i["i"](e.window.document,"mouseout",e=>{let t=new o["a"](e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(i["i"](e.window.document,"mouseover",e=>{let t=new o["a"](e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(i["i"](e.window.document.body,"mouseleave",e=>{this.stopMonitoring(!0)}))}}}},"00b4":function(e,t,n){"use strict";n("ac1f");var i=n("23e7"),r=n("c65b"),o=n("1626"),s=n("825a"),a=n("577e"),l=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=s(this),n=a(e),i=t.exec;if(!o(i))return r(c,t,n);var l=r(i,t,n);return null!==l&&(s(l),!0)}})},"00ce":function(e,t,n){"use strict";var i,r=n("a645"),o=n("417f7"),s=n("dc99"),a=n("1409"),l=n("67ee"),c=n("0d25"),u=n("67d9"),h=Function,d=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(j){f=null}var p=function(){throw new c},g=f?function(){try{return p}catch(e){try{return f(arguments,"callee").get}catch(t){return p}}}():p,m=n("5156")(),v=n("0a36")(),b=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),y={},_="undefined"!==typeof Uint8Array&&b?b(Uint8Array):i,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":m&&b?b([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":y,"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&b?b(b([][Symbol.iterator]())):i,"%JSON%":"object"===typeof JSON?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&m&&b?b((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&m&&b?b((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&b?b(""[Symbol.iterator]()):i,"%Symbol%":m?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet};if(b)try{null.error}catch(j){var C=b(b(j));w["%Error.prototype%"]=C}var S=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&b&&(n=b(r.prototype))}return w[t]=n,n},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=n("0f7c"),k=n("9671"),L=O.call(Function.call,Array.prototype.concat),E=O.call(Function.apply,Array.prototype.splice),D=O.call(Function.call,String.prototype.replace),I=O.call(Function.call,String.prototype.slice),M=O.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,N=function(e){var t=I(e,0,1),n=I(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return D(e,T,(function(e,t,n,r){i[i.length]=n?D(r,A,"$1"):t||e})),i},P=function(e,t){var n,i=e;if(k(x,i)&&(n=x[i],i="%"+n[0]+"%"),k(w,i)){var r=w[i];if(r===y&&(r=S(i)),"undefined"===typeof r&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=N(e),i=n.length>0?n[0]:"",r=P("%"+i+"%",t),o=r.name,s=r.value,a=!1,u=r.alias;u&&(i=u[0],E(n,L([0,1],u)));for(var h=1,d=!0;h=n.length){var v=f(s,p);d=!!v,s=d&&"get"in v&&!("originalValue"in v.get)?v.get:s[p]}else d=k(s,p),s=s[p];d&&!a&&(w[o]=s)}}return s}},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"015d":function(e,t,n){"use strict";(function(t){function n(e,n){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(n?n(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(s,this,e)):t.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!n&&e?o._writableState?o._writableState.errorEmitted?t.nextTick(r,o):(o._writableState.errorEmitted=!0,t.nextTick(i,o,e)):t.nextTick(i,o,e):n?(t.nextTick(r,o),n(e)):t.nextTick(r,o)})),this)}function i(e,t){s(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},"01b0":function(e,t,n){},"01b4":function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=n},"0292":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e("chunk-2d0a3577").then(n.bind(null,"0287"))}})},"030c":function(e,t,n){"use strict";(function(t){var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var r=n("3bd2"),o=n("1beb");n("3fb5")(c,r);for(var s=i(o.prototype),a=0;al)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"03d9":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"g",(function(){return h}));var i,r,o,s,a,l,c,u,h,d=n("dff7");(function(e){e.noSelection=d["a"]("noSelection","No selection"),e.singleSelectionRange=d["a"]("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=d["a"]("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=d["a"]("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=d["a"]("multiSelection","{0} selections"),e.emergencyConfOn=d["a"]("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=d["a"]("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=d["a"]("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=d["a"]("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=d["a"]("readonlyEditor"," in a read-only code editor"),e.editableEditor=d["a"]("editableEditor"," in a code editor"),e.changeConfigToOnMac=d["a"]("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=d["a"]("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=d["a"]("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=d["a"]("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=d["a"]("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=d["a"]("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=d["a"]("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=d["a"]("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=d["a"]("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=d["a"]("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=d["a"]("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=d["a"]("showAccessibilityHelpAction","Show Accessibility Help")})(i||(i={})),function(e){e.inspectTokensAction=d["a"]("inspectTokens","Developer: Inspect Tokens")}(r||(r={})),function(e){e.gotoLineActionLabel=d["a"]("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=d["a"]("helpQuickAccess","Show all Quick Access Providers")}(s||(s={})),function(e){e.quickCommandActionLabel=d["a"]("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d["a"]("quickCommandActionHelp","Show And Run Commands")}(a||(a={})),function(e){e.quickOutlineActionLabel=d["a"]("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d["a"]("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(l||(l={})),function(e){e.editorViewAccessibleLabel=d["a"]("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=d["a"]("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(c||(c={})),function(e){e.toggleHighContrast=d["a"]("toggleHighContrast","Toggle High Contrast Theme")}(u||(u={})),function(e){e.bulkEditServiceSummary=d["a"]("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},"03e8":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m}));var i,r=n("0a0f"),o=n("308f"),s=n("a666"),a=n("ef8e"),l=n("5fe7"),c=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};(function(e){e[e["None"]=0]="None",e[e["Initialized"]=1]="Initialized",e[e["Closed"]=2]="Closed"})(i||(i={}));class u extends s["a"]{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new o["b"]),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=i.None,this.cache=new Map,this.flushDelayer=new l["f"](u.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,n;null===(t=e.changed)||void 0===t||t.forEach((e,t)=>this.accept(t,e)),null===(n=e.deleted)||void 0===n||n.forEach(e=>this.accept(e,void 0))}accept(e,t){if(this.state===i.Closed)return;let n=!1;if(Object(a["m"])(t))n=this.cache.delete(e);else{const i=this.cache.get(e);i!==t&&(this.cache.set(e,t),n=!0)}n&&this._onDidChangeStorage.fire(e)}get(e,t){const n=this.cache.get(e);return Object(a["m"])(n)?t:n}getBoolean(e,t){const n=this.get(e);return Object(a["m"])(n)?t:"true"===n}getNumber(e,t){const n=this.get(e);return Object(a["m"])(n)?t:parseInt(n,10)}set(e,t){return c(this,void 0,void 0,(function*(){if(this.state===i.Closed)return;if(Object(a["m"])(t))return this.delete(e);const n=String(t),r=this.cache.get(e);return r!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger(()=>this.flushPending())):void 0}))}delete(e){return c(this,void 0,void 0,(function*(){if(this.state===i.Closed)return;const t=this.cache.delete(e);return t?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger(()=>this.flushPending())):void 0}))}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return c(this,void 0,void 0,(function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var e;if(!this.hasPending)while(this.whenFlushedCallbacks.length)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()})}))}dispose(){this.flushDelayer.dispose(),super.dispose()}}u.DEFAULT_FLUSH_DELAY=100;class h{constructor(){this.onDidChangeItemsExternal=o["c"].None,this.items=new Map}updateItems(e){return c(this,void 0,void 0,(function*(){e.insert&&e.insert.forEach((e,t)=>this.items.set(t,e)),e.delete&&e.delete.forEach(e=>this.items.delete(e))}))}}const d="__$__targetStorageMarker",f=Object(r["c"])("storageService");var p;(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(p||(p={}));class g extends s["a"]{constructor(e={flushInterval:g.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o["e"]),this._onDidChangeTarget=this._register(new o["e"]),this._onWillSaveState=this._register(new o["b"]),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===d?(0===e?this._globalKeyTargets=void 0:1===e&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.get(e,n)}getBoolean(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getBoolean(e,n)}getNumber(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getNumber(e,n)}store(e,t,n,i){Object(a["m"])(t)?this.remove(e,n):this.withPausedEmitters(()=>{var r;this.updateKeyTarget(e,n,i),null===(r=this.getStorage(n))||void 0===r||r.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,n){var i,r;const o=this.getKeyTargets(t);"number"===typeof n?o[e]!==n&&(o[e]=n,null===(i=this.getStorage(t))||void 0===i||i.set(d,JSON.stringify(o))):"number"===typeof o[e]&&(delete o[e],null===(r=this.getStorage(t))||void 0===r||r.set(d,JSON.stringify(o)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return 0===e?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){const t=this.get(d,e);if(t)try{return JSON.parse(t)}catch(n){}return Object.create(null)}}g.DEFAULT_FLUSH_INTERVAL=6e4;class m extends g{constructor(){super(),this.globalStorage=this._register(new u(new h)),this.workspaceStorage=this._register(new u(new h)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.globalStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e)))}getStorage(e){return 0===e?this.globalStorage:this.workspaceStorage}}},"042d":function(e,t,n){},"0447":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\0&&e.getLanguageId(a-1)===o)a--;return new r(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));class r{constructor(e,t,n,i,r,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=o}getLineContent(){const e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){const t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function o(e){return 0!==(7&e)}},"04d1":function(e,t,n){var i=n("342f"),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"04f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=32,r=7;function o(e){var t=0;while(e>=i)t|=1&e,e>>=1;return e+t}function s(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r=0)r++;return r-t}function a(e,t,n){n--;while(t>>1,r(s,e[o])<0?l=o:a=o+1;var c=i-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:while(c>0)e[a+c]=e[a+c-1],c--}e[a]=s}}function c(e,t,n,i,r,o){var s=0,a=0,l=1;if(o(e,t[n+r])>0){a=i-r;while(l0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}else{a=r+1;while(la&&(l=a);var c=s;s=r-l,l=r-c}s++;while(s>>1);o(e,t[n+u])>0?s=u+1:l=u}return l}function u(e,t,n,i,r,o){var s=0,a=0,l=1;if(o(e,t[n+r])<0){a=r+1;while(la&&(l=a);var c=s;s=r-l,l=r-c}else{a=i-r;while(l=0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}s++;while(s>>1);o(e,t[n+u])<0?l=u:s=u+1}return l}function h(e,t){var n,i,o=r,s=0,a=[];function l(e,t){n[s]=e,i[s]=t,s+=1}function h(){while(s>1){var e=s-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;f(e)}}function d(){while(s>1){var e=s-2;e>0&&i[e-1]=r||m>=r);if(v)break;b<0&&(b=0),b+=2}if(o=b,o<1&&(o=1),1===i){for(h=0;h=0;h--)e[m+h]=e[g+h];if(0===i){_=!0;break}}if(e[p--]=a[f--],1===--l){_=!0;break}if(y=l-c(e[d],a,0,l,l-1,t),0!==y){for(p-=y,f-=y,l-=y,m=p+1,g=f+1,h=0;h=r||y>=r);if(_)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===l){for(p-=i,d-=i,m=p+1,g=d+1,h=i-1;h>=0;h--)e[m+h]=e[g+h];e[p]=a[f]}else{if(0===l)throw new Error;for(g=p-(l-1),h=0;h=0;h--)e[m+h]=e[g+h];e[p]=a[f]}else for(g=p-(l-1),h=0;hd&&(f=d),l(e,n,n+f,n+c,t),c=f}u.pushRun(n,c),u.mergeRuns(),a-=c,n+=c}while(0!==a);u.forceMergeRuns()}}},"04f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return b}));var i=n("07fd"),r=n("e0d3"),o=n("6d8b"),s=n("2b17"),a=n("b7d9"),l=n("edae"),c=n("ec6f"),u=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 Object(a["d"])(e,t)},e}();function h(e,t){var n=new u,r=e.data,a=n.sourceFormat=e.sourceFormat,c=e.startIndex,h="";e.seriesLayoutBy!==i["a"]&&Object(l["c"])(h);var m=[],v={},b=e.dimensionsDefine;if(b)Object(o["each"])(b,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(m.push(i),null!=n){var r="";Object(o["hasOwn"])(v,n)&&Object(l["c"])(r),v[n]=i}}));else for(var y=0;y1&&void 0!==arguments[1]&&arguments[1];if(!e||"object"!==(0,r["default"])(e))return console.error("setOption Missing parameters!"),!1;t&&this.render.graphs.forEach((function(e){return e.animationEnd()}));var n=(0,a.deepClone)(e,!0);(0,l.mergeColor)(this,n),(0,l.grid)(this,n),(0,l.axis)(this,n),(0,l.radarAxis)(this,n),(0,l.title)(this,n),(0,l.bar)(this,n),(0,l.line)(this,n),(0,l.pie)(this,n),(0,l.radar)(this,n),(0,l.gauge)(this,n),(0,l.legend)(this,n),this.option=e,this.render.launchAnimation()},c.prototype.resize=function(){var e=this.container,t=this.canvas,n=this.render,i=this.option,r=e.clientWidth,o=e.clientHeight;t.setAttribute("width",r),t.setAttribute("height",o),n.area=[r,o],this.setOption(i)}},"050c":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bezierCurveToPolyline",{enumerable:!0,get:function(){return r.bezierCurveToPolyline}}),Object.defineProperty(t,"getBezierCurveLength",{enumerable:!0,get:function(){return r.getBezierCurveLength}}),Object.defineProperty(t,"polylineToBezierCurve",{enumerable:!0,get:function(){return o["default"]}}),t["default"]=void 0;var r=n("2db9"),o=i(n("ae10")),s={bezierCurveToPolyline:r.bezierCurveToPolyline,getBezierCurveLength:r.getBezierCurveLength,polylineToBezierCurve:o["default"]};t["default"]=s},"051b":function(e,t,n){var i=n("1a14"),r=n("10db");e.exports=n("0bad")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"0542":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e("chunk-2d216f3b").then(n.bind(null,"c53f"))}})},"057f":function(e,t,n){var i=n("c6b6"),r=n("fc6a"),o=n("241c").f,s=n("4dae"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return s(a)}};e.exports.f=function(e){return a&&"Window"==i(e)?l(e):o(r(e))}},"05ee":function(e,t,n){"use strict";const i=n(0),r=n("34eb")("mqttjs:tcp");function o(e,t){t.port=t.port||1883,t.hostname=t.hostname||t.host||"localhost";const n=t.port,o=t.hostname;return r("port %d and host %s",n,o),i.createConnection(n,o)}e.exports=o},"05f5":function(e,t,n){var i=n("7a41"),r=n("ef08").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"0632":function(e,t,n){},"0655":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("8728"),r=1e-8;function o(e,t){return Math.abs(e-t)1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=b(n,i),o=y(o),o=o.filter((function(e){var t=e.show;return t})),o=_(o),o=w(o,r),o=N(o),o=P(o,e),o=j(o,e),o=F(o,e),o=B(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"axisLine",getGraphConfig:W}),(0,l.doUpdate)({chart:e,series:o,key:"axisTick",getGraphConfig:H}),(0,l.doUpdate)({chart:e,series:o,key:"axisLabel",getGraphConfig:$}),(0,l.doUpdate)({chart:e,series:o,key:"axisName",getGraphConfig:X}),(0,l.doUpdate)({chart:e,series:o,key:"splitLine",getGraphConfig:te}),e.axisData=o}function b(e,t){var n,i,r=[],o=[];e instanceof Array?(n=r).push.apply(n,(0,a["default"])(e)):r.push(e);t instanceof Array?(i=o).push.apply(i,(0,a["default"])(t)):o.push(t);return r.splice(2),o.splice(2),r=r.map((function(e,t){return f(f({},e),{},{index:t,axis:"x"})})),o=o.map((function(e,t){return f(f({},e),{},{index:t,axis:"y"})})),[].concat((0,a["default"])(r),(0,a["default"])(o))}function y(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t=t.map((function(e){return(0,u.deepMerge)((0,h.deepClone)(c.xAxisConfig),e)})),n=n.map((function(e){return(0,u.deepMerge)((0,h.deepClone)(c.yAxisConfig),e)})),[].concat((0,a["default"])(t),(0,a["default"])(n))}function _(e){var t=e.filter((function(e){var t=e.data;return"value"===t})),n=e.filter((function(e){var t=e.data;return"value"!==t}));return t.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!1)})),n.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!0)})),[].concat((0,a["default"])(t),(0,a["default"])(n))}function w(e,t){var n=e.filter((function(e){var t=e.data;return"value"===t})),i=e.filter((function(e){var t=e.data;return t instanceof Array}));return n=C(n,t),i=T(i),[].concat((0,a["default"])(n),(0,a["default"])(i))}function C(e,t){return e.map((function(e){var n=S(e,t),i=k(e,n),r=(0,o["default"])(i,2),s=r[0],a=r[1],l=A(s,a,e),c=e.axisLabel.formatter,u=[];return u=s<0&&a>0?D(s,a,l):I(s,a,l),u=u.map((function(e){return parseFloat(e.toFixed(2))})),f(f({},e),{},{maxValue:u.slice(-1)[0],minValue:u[0],label:M(u,c)})}))}function S(e,t){if(t=t.filter((function(e){var t=e.show,n=e.type;return!1!==t&&"pie"!==n})),0===t.length)return[0,0];var n=e.index,i=e.axis;t=O(t);var r=i+"Axis",o=t.filter((function(e){return e[r]===n}));return o.length||(o=t),x(o)}function x(e){if(e){var t=Math.min.apply(Math,(0,a["default"])(e.map((function(e){var t=e.data;return Math.min.apply(Math,(0,a["default"])((0,u.filterNonNumber)(t)))})))),n=Math.max.apply(Math,(0,a["default"])(e.map((function(e){var t=e.data;return Math.max.apply(Math,(0,a["default"])((0,u.filterNonNumber)(t)))}))));return[t,n]}}function O(e){var t=(0,h.deepClone)(e,!0);return e.forEach((function(n,i){var r=(0,u.mergeSameStackData)(n,e);t[i].data=r})),t}function k(e,t){var n=e.min,i=e.max,s=e.axis,a=(0,o["default"])(t,2),l=a[0],c=a[1],u=(0,r["default"])(n),h=(0,r["default"])(i);if(E(n)||(n=p[s+"AxisConfig"].min,u="string"),E(i)||(i=p[s+"AxisConfig"].max,h="string"),"string"===u){n=parseInt(l-g(l*parseFloat(n)/100));var d=L(n);n=parseFloat((n/d-.1).toFixed(1))*d}if("string"===h){i=parseInt(c+g(c*parseFloat(i)/100));var f=L(i);i=parseFloat((i/f+.1).toFixed(1))*f}return[n,i]}function L(e){var t=g(e).toString(),n=t.length,i=t.replace(/0*$/g,"").indexOf("0"),r=n-1;return-1!==i&&(r-=i),m(10,r)}function E(e){var t=(0,r["default"])(e),n="string"===t&&/^\d+%$/.test(e),i="number"===t;return n||i}function D(e,t,n){var i=[],r=[],o=0,s=0;do{i.push(o-=n)}while(o>e);do{r.push(s+=n)}while(s1&&(c=parseInt(c.toString().replace(/\d$/,"0"))),0===c&&(c=1),"number"===typeof r&&co?o:c}function N(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t[0]&&!t[0].position&&(t[0].position=c.xAxisConfig.position),t[1]&&!t[1].position&&(t[1].position="bottom"===t[0].position?"top":"bottom"),n[0]&&!n[0].position&&(n[0].position=c.yAxisConfig.position),n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left"),[].concat((0,a["default"])(t),(0,a["default"])(n))}function P(e,t){var n=t.gridArea,i=n.x,r=n.y,o=n.w,s=n.h;return e=e.map((function(e){var t=e.position,n=[];return"left"===t?n=[[i,r],[i,r+s]].reverse():"right"===t?n=[[i+o,r],[i+o,r+s]].reverse():"top"===t?n=[[i,r],[i+o,r]]:"bottom"===t&&(n=[[i,r+s],[i+o,r+s]]),f(f({},e),{},{linePosition:n})})),e}function j(e,t){return e.map((function(e){var t=e.axis,n=e.linePosition,i=e.position,r=e.label,s=e.boundaryGap;"boolean"!==typeof s&&(s=p[t+"AxisConfig"].boundaryGap);var a=r.length,l=(0,o["default"])(n,2),c=(0,o["default"])(l[0],2),u=c[0],h=c[1],d=(0,o["default"])(l[1],2),g=d[0],m=d[1],v="x"===t?g-u:m-h,b=v/(s?a:a-1),y=new Array(a).fill(0).map((function(e,n){return"x"===t?[u+b*(s?n+.5:n),h]:[u,h+b*(s?n+.5:n)]})),_=R(t,s,i,y,b);return f(f({},e),{},{tickPosition:y,tickLinePosition:_,tickGap:b})}))}function R(e,t,n,i,r){var s="x"===e?1:0,a=5;"x"===e&&"top"===n&&(a=-5),"y"===e&&"left"===n&&(a=-5);var l=i.map((function(e){var t=(0,h.deepClone)(e);return t[s]+=a,[(0,h.deepClone)(e),t]}));return t?(s="x"===e?0:1,a=r/2,l.forEach((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];n[s]+=a,i[s]+=a})),l):l}function F(e,t){return e.map((function(e){var t=e.nameGap,n=e.nameLocation,i=e.position,r=e.linePosition,s=(0,o["default"])(r,2),l=s[0],c=s[1],u=(0,a["default"])(l);"end"===n&&(u=(0,a["default"])(c)),"center"===n&&(u[0]=(l[0]+c[0])/2,u[1]=(l[1]+c[1])/2);var h=0;"top"===i&&"center"===n&&(h=1),"bottom"===i&&"center"===n&&(h=1),"left"===i&&"center"!==n&&(h=1),"right"===i&&"center"!==n&&(h=1);var d=t;return"top"===i&&"end"!==n&&(d*=-1),"left"===i&&"start"!==n&&(d*=-1),"bottom"===i&&"start"===n&&(d*=-1),"right"===i&&"end"===n&&(d*=-1),u[h]+=d,f(f({},e),{},{namePosition:u})}))}function B(e,t){var n=t.gridArea,i=n.w,r=n.h;return e.map((function(e){var t=e.tickLinePosition,n=e.position,s=e.boundaryGap,l=0,c=i;"top"!==n&&"bottom"!==n||(l=1),"top"!==n&&"bottom"!==n||(c=r),"right"!==n&&"bottom"!==n||(c*=-1);var u=t.map((function(e){var t=(0,o["default"])(e,1),n=t[0],i=(0,a["default"])(n);return i[l]+=c,[(0,a["default"])(n),i]}));return s||u.shift(),f(f({},e),{},{splitLinePosition:u})}))}function W(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"polyline",index:i,visible:e.axisLine.show,animationCurve:t,animationFrame:n,shape:V(e),style:z(e)}]}function V(e){var t=e.linePosition;return{points:t}}function z(e){return e.axisLine.style}function H(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=U(e),o=q(e);return r.map((function(r){return{name:"polyline",index:i,visible:e.axisTick.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function U(e){var t=e.tickLinePosition;return t.map((function(e){return{points:e}}))}function q(e){return e.axisTick.style}function $(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=K(e),o=Y(e,r);return r.map((function(r,s){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:t,animationFrame:n,shape:r,style:o[s],setGraphCenter:function(){}}}))}function K(e){var t=e.label,n=e.tickPosition,i=e.position;return n.map((function(e,n){return{position:G(e,i),content:t[n].toString()}}))}function G(e,t){var n=0,i=10;return"top"!==t&&"bottom"!==t||(n=1),"top"!==t&&"left"!==t||(i=-10),e=(0,h.deepClone)(e),e[n]+=i,e}function Y(e,t){var n=e.position,i=e.axisLabel.style,r=Z(n);i=(0,u.deepMerge)(r,i);var o=t.map((function(e){var t=e.position;return f(f({},i),{},{graphCenter:t})}));return o}function Z(e){return"left"===e?{textAlign:"right",textBaseline:"middle"}:"right"===e?{textAlign:"left",textBaseline:"middle"}:"top"===e?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e?{textAlign:"center",textBaseline:"top"}:void 0}function X(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"text",index:i,animationCurve:t,animationFrame:n,shape:Q(e),style:J(e)}]}function Q(e){var t=e.name,n=e.namePosition;return{content:t,position:n}}function J(e){var t=e.nameLocation,n=e.position,i=e.nameTextStyle,r=ee(n,t);return(0,u.deepMerge)(r,i)}function ee(e,t){return"top"===e&&"start"===t||"bottom"===e&&"start"===t||"left"===e&&"center"===t?{textAlign:"right",textBaseline:"middle"}:"top"===e&&"end"===t||"bottom"===e&&"end"===t||"right"===e&&"center"===t?{textAlign:"left",textBaseline:"middle"}:"top"===e&&"center"===t||"left"===e&&"end"===t||"right"===e&&"end"===t?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e&&"center"===t||"left"===e&&"start"===t||"right"===e&&"start"===t?{textAlign:"center",textBaseline:"top"}:void 0}function te(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=ne(e),o=ie(e);return r.map((function(r){return{name:"polyline",index:i,visible:e.splitLine.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function ne(e){var t=e.splitLinePosition;return t.map((function(e){return{points:e}}))}function ie(e){return e.splitLine.style}},"06ad":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var i={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,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.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-i.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*i.bounceIn(2*e):.5*i.bounceOut(2*e-1)+.5}},r=i,o=n("6d8b"),s=n("b362"),a=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||o["noop"],this.ondestroy=e.ondestroy||o["noop"],this.onrestart=e.onrestart||o["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,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,s=o?o(r):r;if(this.onframe(s),1===r){if(!this.loop)return!0;var a=i%n;this._startTime=e-a,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(o["isFunction"])(e)?e:r[e]||Object(s["a"])(e)},e}(),l=a,c=n("41ef"),u=n("7a29"),h=Array.prototype.slice;function d(e,t,n){return(t-e)*n+e}function f(e,t,n,i){for(var r=t.length,o=0;oi?t:e,o=Math.min(n,i),s=r[o-1]||{color:[0,0,0,0],offset:0},a=o;as;if(a)i.length=s;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,l=!1,h=E,d=t;if(Object(o["isArrayLike"])(t)){var f=w(t);h=f,(1===f&&!Object(o["isNumber"])(t[0])||2===f&&!Object(o["isNumber"])(t[0][0]))&&(l=!0)}else if(Object(o["isNumber"])(t)&&!Object(o["eqNaN"])(t))h=C;else if(Object(o["isString"])(t))if(isNaN(+t)){var p=c["parse"](t);p&&(d=p,h=O)}else h=C;else if(Object(o["isGradientObject"])(t)){var g=Object(o["extend"])({},d);g.colorStops=Object(o["map"])(t.colorStops,(function(e){return{offset:e.offset,color:c["parse"](e.color)}})),Object(u["m"])(t)?h=k:Object(u["o"])(t)&&(h=L),d=g}0===a?this.valType=h:h===this.valType&&h!==E||(l=!0),this.discrete=this.discrete||l;var m={time:e,value:d,rawValue:t,percent:0};return n&&(m.easing=n,m.easingFunc=Object(o["isFunction"])(n)?n:r[n]||Object(s["a"])(n)),i.push(m),m},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],s=this.discrete,a=I(i),l=D(i),c=0;c=0;n--)if(c[n].percent<=t)break;n=v(n,u-2)}else{for(n=m;nt)break;n=v(n-1,u-2)}r=c[n+1],i=c[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var y=r.percent-i.percent,w=0===y?1:v((t-i.percent)/y,1);r.easingFunc&&(w=r.easingFunc(w));var C=s?this._additiveValue:g?M:e[h];if(!I(l)&&!g||C||(C=this._additiveValue=[]),this.discrete)e[h]=w<1?i.rawValue:r.rawValue;else if(I(l))l===S?f(C,i[a],r[a],w):p(C,i[a],r[a],w);else if(D(l)){var x=i[a],L=r[a],E=l===k;e[h]={type:E?"linear":"radial",x:d(x.x,L.x,w),y:d(x.y,L.y,w),colorStops:Object(o["map"])(x.colorStops,(function(e,t){var n=L.colorStops[t];return{offset:d(e.offset,n.offset,w),color:_(f([],e.color,n.color,w))}})),global:L.global},E?(e[h].x2=d(x.x2,L.x2,w),e[h].y2=d(x.y2,L.y2,w)):e[h].r=d(x.r,L.r,w)}else if(g)f(C,i[a],r[a],w),s||(e[h]=_(C));else{var T=d(i[a],r[a],w);s?this._additiveValue=T:e[h]=T}s&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===C?e[n]=e[n]+i:t===O?(c["parse"](e[n],M),g(M,M,i,1),e[n]=_(M)):t===S?g(e[n],e[n],i,1):t===x&&m(e[n],e[n],i,1)},e}(),A=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?Object(o["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,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(o["keys"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o0&&a.addKeyframe(0,y(l),i),this._trackKeys.push(s)}a.addKeyframe(e,y(t[s]),i)}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=[],i=this._maxTime||0,r=0;r1){var a=s.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();t["b"]=A},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("3ca3");var i=n("6b75");function r(e,t){if(e){if("string"==typeof e)return Object(i["a"])(e,t);var n={}.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(i["a"])(e,t):void 0}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),l=n("a04b"),c=n("1a2d"),u=n("0cfb"),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return s(!r(o.f,e,t),e[t])}},"072d":function(e,t,n){"use strict";var i=n("0bad"),r=n("9876"),o=n("fed5"),s=n("1917"),a=n("0983"),l=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=a(e),c=arguments.length,u=1,h=o.f,d=s.f;while(c>u){var f,p=l(arguments[u++]),g=h?r(p).concat(h(p)):r(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!d.call(p,f)||(n[f]=p[f])}return n}:c},"07fa":function(e,t,n){var i=n("50c4");e.exports=function(e){return i(e.length)}},"07fd":function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var i=n("6d8b"),r=Object(i["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),o="original",s="arrayRows",a="objectRows",l="keyedColumns",c="typedArray",u="unknown",h="column",d="row"},"0829":function(e,t,n){},"0836":function(e,t,n){},"083a":function(e,t,n){"use strict";var i=n("0d51"),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+i(t)+" of "+i(e))}},"0910":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return _}));var i=n("dff7"),r=n("308f"),o=n("89cd"),s=n("ef8e"),a=n("dd1b");const l={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},g="vscode://schemas/settings/resourceLanguage",m=o["a"].as(a["a"].JSONContribution);class v{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r["b"],this._onDidUpdateConfiguration=new r["b"],this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:i["a"]("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},m.registerSchema(g,this.resourceLanguageSettingsSchema)}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=[];e.forEach(e=>{n.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),m.registerSchema(g,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(e,t=!0,n,i=3){var r;i=s["m"](e.scope)?i:e.scope;let o=[],a=e.properties;if(a)for(let c in a){if(t&&S(c)){delete a[c];continue}const e=a[c];this.updatePropertyDefaultValue(c,e),y.test(c)?e.scope=void 0:(e.scope=s["m"](e.scope)?i:e.scope,e.restricted=s["m"](e.restricted)?!!(null===(r=null===n||void 0===n?void 0:n.restrictedConfigurations)||void 0===r?void 0:r.includes(c)):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.push(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c])}let l=e.allOf;if(l)for(let s of l)o.push(...this.validateAndRegisterProperties(s,t,n,i));return o}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=e=>{let n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);let i=e.allOf;i&&i.forEach(t)};t(e)}updateSchema(e,t){switch(c.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:h.properties[e]=t;break;case 6:d.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:i["a"]("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:i["a"]("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};this.updatePropertyDefaultValue(t,n),c.properties[t]=n,u.properties[t]=n,h.properties[t]=n,d.properties[t]=n,f.properties[t]=n,p.properties[t]=n}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let n=this.defaultValues[e];s["l"](n)&&(n=t.default),s["l"](n)&&(n=w(t.type)),t.default=n}}const b="\\[.*\\]$",y=new RegExp(b);function _(e){return e.substring(1,e.length-1)}function w(e){const t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const C=new v;function S(e){return e.trim()?y.test(e)?i["a"]("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==C.getConfigurationProperties()[e]?i["a"]("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null:i["a"]("config.property.empty","Cannot register an empty property")}o["a"].add(l.Configuration,C)},"0924":function(e,t,n){"use strict";function i(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function r(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function o(e,t,n,i){switch(n){case"color":var r=e.ensureUniqueItemVisual(t,"style");r[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:0}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}))},"0983":function(e,t,n){var i=n("c901");e.exports=function(e){return Object(i(e))}},"099d":function(e,t,n){"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},"09d1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e("chunk-2d226775").then(n.bind(null,"e97b"))}})},"09db":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("d3f4"),r=n("6a89");class o{static _handleEolEdits(e,t){let n=void 0,i=[];for(let r of t)"number"===typeof r.eol&&(n=r.eol),r.range&&"string"===typeof r.text&&i.push(r);return"number"===typeof n&&e.hasModel()&&e.getModel().pushEOL(n),i}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const n=e.getModel(),i=n.validateRange(t.range),r=n.getFullModelRange();return r.equalsRange(i)}static execute(e,t,n){n&&e.pushUndoStop();const s=o._handleEolEdits(e,t);1===s.length&&o._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(e=>i["a"].replace(r["a"].lift(e.range),e.text))):e.executeEdits("formatEditsCommand",s.map(e=>i["a"].replaceMove(r["a"].lift(e.range),e.text))),n&&e.pushUndoStop()}}},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),s=n("5270"),a=n("4a7b"),l=n("848b"),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!i){var u=[s,void 0];Array.prototype.unshift.apply(u,n),u=u.concat(o),r=Promise.resolve(e);while(u.length)r=r.then(u.shift(),u.shift());return r}var h=e;while(n.length){var d=n.shift(),f=n.shift();try{h=d(h)}catch(p){f(p);break}}try{r=s(h)}catch(p){return Promise.reject(p)}while(o.length)r=r.then(o.shift(),o.shift());return r},u.prototype.getUri=function(e){return e=a(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(a(i||{},{method:e,url:t,data:n}))}})),e.exports=u},"0a0f":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(i||(i={}));const r=s("instantiationService");function o(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(t,e,i,!1)};return t.toString=()=>e,i.serviceIds.set(e,t),t}function a(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,i,!0)}}},"0a31":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("0f70"),r=n("30db");const o={clipboard:{writeText:r["g"]||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r["g"]||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>r["g"]||i["i"]?0:navigator.keyboard||i["h"]?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},"0a33":function(e,t,n){},"0a36":function(e,t,n){"use strict";var i={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:i}.foo===i.foo&&!(i instanceof r)}},"0a89":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i=n("3742"),r=n("7061"),o=n("6a89");const s=!1;class a{constructor(e,t,n,i,r){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=r}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new a(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,n){s&&console.log("writeToTextArea "+e+": "+this.toString()),t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const n=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,-1)}_finishDeduceEditorPosition(e,t,n){let i=0,r=-1;while(-1!==(r=t.indexOf("\n",r+1)))i++;return[e,n*t.length,i]}static selectedText(e){return new a(e,0,e.length,null,null)}static deduceInput(e,t,n){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};s&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString()));let r=e.value,o=e.selectionStart,a=e.selectionEnd,l=t.value,c=t.selectionStart,u=t.selectionEnd;const h=r.substring(a),d=l.substring(u),f=i["e"](h,d);l=l.substring(0,l.length-f),r=r.substring(0,r.length-f);const p=r.substring(0,o),g=l.substring(0,c),m=i["d"](p,g);if(l=l.substring(m),r=r.substring(m),c-=m,o-=m,u-=m,a-=m,s&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+r+">, selectionStart: "+o+", selectionEnd: "+a),console.log("AFTER DIFFING CURRENT STATE: <"+l+">, selectionStart: "+c+", selectionEnd: "+u)),n&&c===u&&r.length>0){let e=null;if(c===l.length?l.startsWith(r)&&(e=l.substring(r.length)):l.endsWith(r)&&(e=l.substring(0,l.length-r.length)),null!==e&&e.length>0&&(/\uFE0F/.test(e)||i["k"](e)))return{text:e,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(c===u){if(r===l&&0===o&&a===r.length&&c===l.length&&-1===l.indexOf("\n")&&i["l"](l))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const e=p.length-m;return s&&console.log("REMOVE PREVIOUS: "+(p.length-m)+" chars"),{text:l,replacePrevCharCnt:e,replaceNextCharCnt:0,positionDelta:0}}const v=a-o;return{text:l,replacePrevCharCnt:v,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(s&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString())),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const n=Math.min(i["d"](e.value,t.value),e.selectionEnd),r=Math.min(i["e"](e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(n,e.value.length-r),a=t.value.substring(n,t.value.length-r),l=e.selectionStart-n,c=e.selectionEnd-n,u=t.selectionStart-n,h=t.selectionEnd-n;return s&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+o+">, selectionStart: "+l+", selectionEnd: "+c),console.log("AFTER DIFFING CURRENT STATE: <"+a+">, selectionStart: "+u+", selectionEnd: "+h)),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:o.length-c,positionDelta:h-a.length}}}a.EMPTY=new a("",0,0,null,null);class l{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const n=e*t,i=n+1,r=n+t;return new o["a"](i,1,r+1,1)}static fromEditorSelection(e,t,n,i,s){const c=l._getPageOfLine(n.startLineNumber,i),u=l._getRangeForPage(c,i),h=l._getPageOfLine(n.endLineNumber,i),d=l._getRangeForPage(h,i),f=u.intersectRanges(new o["a"](1,1,n.startLineNumber,n.startColumn));let p=t.getValueInRange(f,1);const g=t.getLineCount(),m=t.getLineMaxColumn(g),v=d.intersectRanges(new o["a"](n.endLineNumber,n.endColumn,g,m));let b,y=t.getValueInRange(v,1);if(c===h||c+1===h)b=t.getValueInRange(n,1);else{const e=u.intersectRanges(n),i=d.intersectRanges(n);b=t.getValueInRange(e,1)+String.fromCharCode(8230)+t.getValueInRange(i,1)}if(s){const e=500;p.length>e&&(p=p.substring(p.length-e,p.length)),y.length>e&&(y=y.substring(0,e)),b.length>2*e&&(b=b.substring(0,e)+String.fromCharCode(8230)+b.substring(b.length-e,b.length))}return new a(p+b+y,p.length,p.length+b.length,new r["a"](n.startLineNumber,n.startColumn),new r["a"](n.endLineNumber,n.endColumn))}}},"0ab8":function(e,t,n){"use strict";var i=n("33f9");n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i["Emitter"]})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i["MarkerSeverity"]})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i["Range"]})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i["Uri"]})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i["editor"]})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},"0ae2":function(e,t,n){var i=n("9876"),r=n("fed5"),o=n("1917");e.exports=function(e){var t=i(e),n=r.f;if(n){var s,a=n(e),l=o.f,c=0;while(a.length>c)l.call(e,s=a[c++])&&t.push(s)}return t}},"0b11":function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),r=n("0b54");Object(i["l"])(r["f"].ID,r["f"]),Object(i["j"])(r["e"]),Object(i["j"])(r["g"]),Object(i["j"])(r["h"]),Object(i["j"])(r["d"]),Object(i["j"])(r["a"]),Object(i["j"])(r["c"]),Object(i["k"])(new r["b"])},"0b16":function(e,t,n){"use strict";var i=n("1985");function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),u=["'"].concat(c),h=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n("184d");function _(e,t,n){if(e&&"object"===typeof e&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}function w(e){return"string"===typeof e&&(e=_(e)),e instanceof r?e.format():r.prototype.format.call(e)}function C(e,t){return _(e,!1,!0).resolve(t)}function S(e,t){return e?_(e,!1,!0).resolveObject(t):t}r.prototype.parse=function(e,t,n){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),s=-1!==r&&r127?N+="x":N+=A[P];if(!N.match(p)){var R=M.slice(0,E),F=M.slice(E+1),B=A.match(g);B&&(R.push(B[1]),F.unshift(B[2])),F.length&&(_="/"+F.join(".")+_),this.hostname=R.join(".");break}}}this.hostname.length>f?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=i.toASCII(this.hostname));var W=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+W,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!m[S])for(E=0,T=u.length;E0)&&n.host.split("@");x&&(n.auth=x.shift(),n.hostname=x.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=C.slice(-1)[0],k=(n.host||e.host||C.length>1)&&("."===O||".."===O)||""===O,L=0,E=C.length;E>=0;E--)O=C[E],"."===O?C.splice(E,1):".."===O?(C.splice(E,1),L++):L&&(C.splice(E,1),L--);if(!_&&!w)for(;L--;L)C.unshift("..");!_||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),k&&"/"!==C.join("/").substr(-1)&&C.push("");var D=""===C[0]||C[0]&&"/"===C[0].charAt(0);if(S){n.hostname=D?"":C.length?C.shift():"",n.host=n.hostname;x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");x&&(n.auth=x.shift(),n.hostname=x.shift(),n.host=n.hostname)}return _=_||n.host&&C.length,_&&!D&&C.unshift(""),C.length>0?n.pathname=C.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=_,t.resolve=C,t.resolveObject=S,t.format=w,t.Url=r},"0b3c":function(e,t,n){"use strict";var i=n("33f9");n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i["Emitter"]})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i["MarkerSeverity"]})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i["Range"]})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i["Uri"]})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i["editor"]})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},"0b42":function(e,t,n){var i=n("e8b5"),r=n("68ee"),o=n("861d"),s=n("b622"),a=s("species"),l=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,r(t)&&(t===l||i(t.prototype))?t=void 0:o(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?l:t}},"0b43":function(e,t,n){var i=n("04f8");e.exports=i&&!!Symbol["for"]&&!!Symbol.keyFor},"0b54":function(e,t,n){"use strict";n.d(t,"f",(function(){return ge})),n.d(t,"e",(function(){return ye})),n.d(t,"b",(function(){return _e})),n.d(t,"g",(function(){return we})),n.d(t,"h",(function(){return Ce})),n.d(t,"d",(function(){return Se})),n.d(t,"c",(function(){return xe})),n.d(t,"a",(function(){return Oe}));var i=n("2504");class r{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var o=n("a666"),s=n("3742"),a=n("b2cc"),l=n("c7f5"),c=n("c101"),u=n("8495"),h=n("fdcc"),d=n("351f"),f=n("0a0f"),p=n("11f7"),g=n("f070"),m=n("7061"),v=n("b707"),b=n("9e56"),y=n("533b"),_=n("6dec"),w=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){return function(n,i){t(n,i,e)}},S=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class x extends g["a"]{constructor(e,t){super(e.command?e.command.id:e.title,O(e.title),void 0,!e.disabled,t),this.action=e}}function O(e){return e.replace(/\r\n|\r|\n/g," ")}let k=class extends o["a"]{constructor(e,t,n,i){super(),this._editor=e,this._delegate=t,this._contextMenuService=n,this._visible=!1,this._showingActions=this._register(new o["d"]),this._keybindingResolver=new L({getKeybindings:()=>i.getKeybindings()})}get isVisible(){return this._visible}show(e,t,n,i){return S(this,void 0,void 0,(function*(){const r=i.includeDisabledActions?t.allActions:t.validActions;if(!r.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,Object(h["a"])();this._visible=!0,this._showingActions.value=t;const o=this.getMenuActions(e,r,t.documentation),s=m["a"].isIPosition(n)?this._toCoords(n):n||{x:0,y:0},a=this._keybindingResolver.getResolver(),l=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>o,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:e=>e instanceof x?a(e.action):void 0})}))}getMenuActions(e,t,n){var i,r;const o=e=>new x(e.action,()=>this._delegate.onSelectCodeAction(e)),s=t.map(o),a=[...n],l=this._editor.getModel();if(l&&s.length)for(const c of v["a"].all(l))c._getAdditionalMenuItems&&a.push(...c._getAdditionalMenuItems({trigger:e.type,only:null===(r=null===(i=e.filter)||void 0===i?void 0:i.include)||void 0===r?void 0:r.value},t.map(e=>e.action)));return a.length&&s.push(new g["d"],...a.map(e=>o(new u["a"]({title:e.title,command:e},void 0)))),s}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),n=Object(p["D"])(this._editor.getDomNode()),i=n.left+t.left,r=n.top+t.top+t.height;return{x:i,y:r}}};k=w([C(2,y["a"]),C(3,_["a"])],k);class L{constructor(e){this._keybindingProvider=e}getResolver(){const e=new r(()=>this._keybindingProvider.getKeybindings().filter(e=>L.codeActionCommands.indexOf(e.command)>=0).filter(e=>e.resolvedKeybinding).map(e=>{let t=e.commandArgs;return e.command===u["e"]?t={kind:b["b"].SourceOrganizeImports.value}:e.command===u["c"]&&(t={kind:b["b"].SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},b["a"].fromUser(t,{kind:b["b"].None,apply:"never"}))}));return t=>{if(t.kind){const n=this.bestKeybindingForCodeAction(t,e.getValue());return null===n||void 0===n?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const n=new b["b"](e.kind);return t.filter(e=>e.kind.contains(n)).filter(t=>!t.preferred||e.isPreferred).reduceRight((e,t)=>e?e.kind.contains(t.kind)?t:e:t,void 0)}}L.codeActionCommands=[u["f"],u["b"],u["g"],u["e"],u["c"]];var E,D=n("00a3"),I=n("308f"),M=(n("30d5"),n("b57f")),T=n("dff7"),A=n("b7d0"),N=n("303e"),P=n("a60f"),j=n("561a"),R=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},F=function(e,t){return function(n,i){t(n,i,e)}};(function(e){e.Hidden={type:0};class t{constructor(e,t,n,i){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=i,this.type=1}}e.Showing=t})(E||(E={}));let B=class e extends o["a"]{constructor(e,t,n,i){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=n,this._keybindingService=i,this._onClick=this._register(new I["b"]),this.onClick=this._onClick.event,this._state=E.Hidden,this._domNode=document.createElement("div"),this._domNode.className=j["b"].lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()})),P["b"].ignoreTarget(this._domNode),this._register(p["n"](this._domNode,e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:n}=p["D"](this._domNode),i=this._editor.getOption(57);let r=Math.floor(i/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber{if(1!==(1&e.buttons))return;this.hide();const t=new D["a"];t.startMonitoring(e.target,e.buttons,D["b"],()=>{},()=>{t.dispose()})})),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(55)&&!this._editor.getOption(55).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,n,i){if(t.validActions.length<=0)return this.hide();const r=this._editor.getOptions();if(!r.get(55).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:s,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=r.get(41),u=o.getLineContent(s),h=M["b"].computeIndentLevel(u,l),d=c.spaceWidth*h>22,f=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let p=s;if(!d)if(s>1&&!f(s-1))p-=1;else if(f(s+1)){if(a*c.spaceWidth<22)return this.hide()}else p+=1;this.state=new E.Showing(t,n,i,{position:{lineNumber:p,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=E.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...j["b"].lightBulb.classNamesArray),this._domNode.classList.add(...j["b"].lightbulbAutofix.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=T["a"]("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}this._domNode.classList.remove(...j["b"].lightbulbAutofix.classNamesArray),this._domNode.classList.add(...j["b"].lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=e?T["a"]("quickFixWithKb","Show Fixes ({0})",e.getLabel()):T["a"]("quickFix","Show Fixes")}set title(e){this._domNode.title=e}};B._posPref=[0],B=R([F(3,_["a"])],B),Object(A["f"])((e,t)=>{var n;const i=null===(n=e.getColor(N["r"]))||void 0===n?void 0:n.transparent(.7),r=e.getColor(N["Q"]);r&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${j["b"].lightBulb.cssSelector} {\n\t\t\tcolor: ${r};\n\t\t\tbackground-color: ${i};\n\t\t}`);const o=e.getColor(N["P"]);o&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${j["b"].lightbulbAutofix.cssSelector} {\n\t\t\tcolor: ${o};\n\t\t\tbackground-color: ${i};\n\t\t}`)});var W,V=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},z=function(e,t){return function(n,i){t(n,i,e)}},H=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))},U=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},q=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};let $=class extends o["a"]{constructor(e,t,n,i,s){super(),this._editor=e,this.delegate=i,this._activeCodeActions=this._register(new o["d"]),W.set(this,!1),this._codeActionWidget=new r(()=>this._register(s.createInstance(k,this._editor,{onSelectCodeAction:e=>H(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(e,!0)}))}))),this._lightBulbWidget=new r(()=>{const e=this._register(s.createInstance(B,this._editor,t,n));return this._register(e.onClick(e=>this.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1}))),e})}dispose(){U(this,W,!0,"f"),super.dispose()}update(e){var t,n,i;return H(this,void 0,void 0,(function*(){if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let r;try{r=yield e.actions}catch(o){return void Object(h["e"])(o)}if(!q(this,W,"f"))if(this._lightBulbWidget.getValue().update(r,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,r);if(t){try{yield this.delegate.applyCodeAction(t,!1)}finally{r.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,r);if(t&&t.action.disabled)return d["a"].get(this._editor).showMessage(t.action.disabled,e.trigger.context.position),void r.dispose()}}const t=!!(null===(i=e.trigger.filter)||void 0===i?void 0:i.include);if(e.trigger.context&&(!r.allActions.length||!t&&!r.validActions.length))return d["a"].get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=r,void r.dispose();this._activeCodeActions.value=r,this._codeActionWidget.getValue().show(e.trigger,r,e.position,{includeDisabledActions:t})}else this._codeActionWidget.getValue().isVisible?r.dispose():this._activeCodeActions.value=r}))}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find(({action:e})=>e.disabled):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}showCodeActionList(e,t,n,i){return H(this,void 0,void 0,(function*(){this._codeActionWidget.getValue().show(e,t,n,i)}))}};W=new WeakMap,$=V([z(4,f["a"])],$);var K,G=n("9e74"),Y=n("4fc3"),Z=n("b400"),X=n("b0cd"),Q=n("b539"),J=n("5d75"),ee=n("5fe7"),te=n("82c9"),ne=n("6a89"),ie=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},re=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};const oe=new Y["c"]("supportedCodeAction","");class se extends o["a"]{constructor(e,t,n,i=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._autoTriggerTimer=this._register(new ee["g"]),this._register(this._markerService.onMarkerChanged(e=>this._onMarkerChanges(e))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(e=>Object(te["f"])(e,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(t)for(const n of this._markerService.read({resource:t.uri})){const i=t.validateRange(n);if(ne["a"].intersectRanges(i,e))return ne["a"].lift(i)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&2===e.type){const{lineNumber:e,column:i}=n.getPosition(),r=t.getLineContent(e);if(0===r.length)return;if(1===i){if(/\s/.test(r[0]))return}else if(i===t.getLineMaxColumn(e)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[i-2])&&/\s/.test(r[i-1]))return}return n}_createEventAndSignalChange(e,t){const n=this._editor.getModel();if(!t||!n)return void this._signalChange(void 0);const i=this._getRangeOfMarker(t),r=i?i.getStartPosition():t.getStartPosition(),o={trigger:e,selection:t,position:r};return this._signalChange(o),o}}var ae;(function(e){e.Empty={type:0};class t{constructor(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this._cancellablePromise=i,this.type=1,this.actions=i.catch(e=>{if(Object(h["d"])(e))return le;throw e})}cancel(){this._cancellablePromise.cancel()}}e.Triggered=t})(ae||(ae={}));const le={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class ce extends o["a"]{constructor(e,t,n,i){super(),this._editor=e,this._markerService=t,this._progressService=i,this._codeActionOracle=this._register(new o["d"]),this._state=ae.Empty,this._onDidChangeState=this._register(new I["b"]),this.onDidChangeState=this._onDidChangeState.event,K.set(this,!1),this._supportedCodeActions=oe.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(v["a"].onDidChange(()=>this._update())),this._update()}dispose(){ie(this,K,"f")||(re(this,K,!0,"f"),super.dispose(),this.setState(ae.Empty,!0))}_update(){if(ie(this,K,"f"))return;this._codeActionOracle.value=void 0,this.setState(ae.Empty);const e=this._editor.getModel();if(e&&v["a"].has(e)&&!this._editor.getOption(79)){const t=[];for(const n of v["a"].all(e))Array.isArray(n.providedCodeActionKinds)&&t.push(...n.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new se(this._editor,this._markerService,t=>{var n;if(!t)return void this.setState(ae.Empty);const i=Object(ee["h"])(n=>Object(u["d"])(e,t.selection,t.trigger,Q["b"].None,n));1===t.trigger.type&&(null===(n=this._progressService)||void 0===n||n.showWhile(i,250)),this.setState(new ae.Triggered(t.trigger,t.selection,t.position,i))},void 0),this._codeActionOracle.value.trigger({type:2})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||ie(this,K,"f")||this._onDidChangeState.fire(e))}}K=new WeakMap;var ue=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},he=function(e,t){return function(n,i){t(n,i,e)}},de=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function fe(e){return Y["a"].regex(oe.keys()[0],new RegExp("(\\s|^)"+Object(s["u"])(e.value)+"\\b"))}const pe={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:T["a"]("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:T["a"]("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[T["a"]("args.schema.apply.first","Always apply the first returned code action."),T["a"]("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),T["a"]("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:T["a"]("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let ge=class e extends o["a"]{constructor(e,t,n,i,o){super(),this._instantiationService=o,this._editor=e,this._model=this._register(new ce(this._editor,t,n,i)),this._register(this._model.onDidChangeState(e=>this.update(e))),this._ui=new r(()=>this._register(new $(e,ye.Id,Oe.Id,{applyCodeAction:(e,t)=>de(this,void 0,void 0,(function*(){try{yield this._applyCodeAction(e)}finally{t&&this._trigger({type:2,filter:{}})}}))},this._instantiationService)))}static get(t){return t.getContribution(e.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,n){if(!this._editor.hasModel())return;d["a"].get(this._editor).closeMessage();const i=this._editor.getPosition();this._trigger({type:1,filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(me,e,this._editor)}};function me(e,t,n){return de(this,void 0,void 0,(function*(){const r=e.get(l["a"]),o=e.get(G["b"]),s=e.get(J["a"]),a=e.get(X["a"]);if(s.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred}),yield t.resolve(i["a"].None),t.action.edit&&(yield r.apply(l["b"].convert(t.action.edit),{editor:n,label:t.action.title})),t.action.command)try{yield o.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(c){const e=ve(c);a.error("string"===typeof e?e:T["a"]("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}))}function ve(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}function be(e,t,n,i){if(e.hasModel()){const r=ge.get(e);r&&r.manualTriggerAtCurrentPosition(t,n,i)}}ge.ID="editor.contrib.quickFixController",ge=ue([he(1,Z["b"]),he(2,Y["b"]),he(3,Q["a"]),he(4,f["a"])],ge);class ye extends a["b"]{constructor(){super({id:ye.Id,label:T["a"]("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:2132,weight:100}})}run(e,t){return be(t,T["a"]("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}ye.Id="editor.action.quickFix";class _e extends a["c"]{constructor(){super({id:u["b"],precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:pe}]}})}runEditorCommand(e,t,n){const i=b["a"].fromUser(n,{kind:b["b"].Empty,apply:"ifSingle"});return be(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?T["a"]("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):T["a"]("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?T["a"]("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):T["a"]("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class we extends a["b"]{constructor(){super({id:u["f"],label:T["a"]("refactor.label","Refactor..."),alias:"Refactor...",precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Y["a"].and(c["a"].writable,fe(b["b"].Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:pe}]}})}run(e,t,n){const i=b["a"].fromUser(n,{kind:b["b"].Refactor,apply:"never"});return be(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?T["a"]("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):T["a"]("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?T["a"]("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):T["a"]("editor.action.refactor.noneMessage","No refactorings available"),{include:b["b"].Refactor.contains(i.kind)?i.kind:b["b"].None,onlyIncludePreferredActions:i.preferred},i.apply)}}class Ce extends a["b"]{constructor(){super({id:u["g"],label:T["a"]("source.label","Source Action..."),alias:"Source Action...",precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Y["a"].and(c["a"].writable,fe(b["b"].Source))},description:{description:"Source Action...",args:[{name:"args",schema:pe}]}})}run(e,t,n){const i=b["a"].fromUser(n,{kind:b["b"].Source,apply:"never"});return be(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?T["a"]("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):T["a"]("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?T["a"]("editor.action.source.noneMessage.preferred","No preferred source actions available"):T["a"]("editor.action.source.noneMessage","No source actions available"),{include:b["b"].Source.contains(i.kind)?i.kind:b["b"].None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class Se extends a["b"]{constructor(){super({id:u["e"],label:T["a"]("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Y["a"].and(c["a"].writable,fe(b["b"].SourceOrganizeImports)),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:1581,weight:100}})}run(e,t){return be(t,T["a"]("editor.action.organize.noneMessage","No organize imports action available"),{include:b["b"].SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class xe extends a["b"]{constructor(){super({id:u["c"],label:T["a"]("fixAll.label","Fix All"),alias:"Fix All",precondition:Y["a"].and(c["a"].writable,fe(b["b"].SourceFixAll))})}run(e,t){return be(t,T["a"]("fixAll.noneMessage","No fix all action available"),{include:b["b"].SourceFixAll,includeSourceActions:!0},"ifSingle")}}class Oe extends a["b"]{constructor(){super({id:Oe.Id,label:T["a"]("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Y["a"].and(c["a"].writable,fe(b["b"].QuickFix)),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return be(t,T["a"]("editor.action.autoFix.noneMessage","No auto fixes available"),{include:b["b"].QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}Oe.Id="editor.action.autoFix"},"0b99":function(e,t,n){"use strict";var i=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"0baa":function(e,t,n){},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0bfb":function(e,t,n){"use strict";function i(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}n.d(t,"a",(function(){return i}))},"0c47":function(e,t,n){var i=n("da84"),r=n("d44e");r(i.JSON,"JSON",!0)},"0ca1":function(e,t,n){"use strict";var i=n("4ea4"),r=i(n("9523")),o=i(n("448a")),s=n("9886"),a=n("b06d"),l=n("5557"),c=n("a870"),u=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t0?a:0,u,h,!d);var f=(0,l.getCircleRadianPoint)(r,s,c,h).map((function(e){return parseInt(e)+.5})),p=(0,l.getCircleRadianPoint)(r,s,a,u).map((function(e){return parseInt(e)+.5}));n.lineTo.apply(n,(0,o["default"])(f)),n.arc(r,s,c>0?c:0,h,u,d),n.lineTo.apply(n,(0,o["default"])(p)),n.closePath(),n.stroke(),n.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.style,o=r.gradient;o=o.map((function(e){return(0,c.getColorFromRgbValue)(e)})),1===o.length&&(o=[o[0],o[0]]);var s=o.length-1,a=i.gradientStartAngle,h=i.gradientEndAngle,d=i.startAngle,f=i.endAngle,p=i.r,g=i.rx,m=i.ry;null===a&&(a=d),null===h&&(h=f);var v=(h-a)/s;v===2*Math.PI&&(v=2*Math.PI-.001);for(var b=0;bf&&(S=f,x=!0),n.arc(g,m,p,C,S),n.strokeStyle=w,n.stroke(),x)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,n=t.number,i=t.content,r=t.position;return n instanceof Array&&"string"===typeof i&&r instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=i.number,o=i.content,s=i.toFixed,l=i.rowGap,c=i.formatter,u=o.split("{nt}"),h="";u.forEach((function(e,t){var n=r[t];"number"!==typeof n&&(n=""),"number"===typeof n&&(n=n.toFixed(s),"function"===typeof c&&(n=c(n))),h+=e+(n||"")})),a.text.draw({ctx:n},{shape:d(d({},i),{},{content:h,rowGap:l})})}},m={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,i=t.y,r=t.w,o=t.h;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.x,o=i.y,s=i.w,a=i.h,l=a/2;n.strokeStyle=n.fillStyle,n.moveTo(r,o+l),n.lineTo(r+s,o+l),n.lineWidth=1,n.stroke(),n.beginPath();var c=l-10;c<=0&&(c=3),n.arc(r+s/2,o+l,c,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(e,t){var n=t.shape,i=n.x,r=n.y,o=n.w,s=n.h;return(0,l.checkPointIsInRect)(e,i,r,o,s)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.x,o=n.y,s=n.w,a=n.h;i.graphCenter=[r+s/2,o+a/2]}};(0,s.extendNewGraph)("pie",f),(0,s.extendNewGraph)("agArc",p),(0,s.extendNewGraph)("numberText",g),(0,s.extendNewGraph)("lineIcon",m)},"0cb2":function(e,t,n){var i=n("e330"),r=n("7b0b"),o=Math.floor,s=i("".charAt),a=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,h,d){var f=n+e.length,p=i.length,g=u;return void 0!==h&&(h=r(h),g=c),a(d,g,(function(r,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=h[l(a,1,-1)];break;default:var u=+a;if(0===u)return r;if(u>p){var d=o(u/10);return 0===d?r:d<=p?void 0===i[d-1]?s(a,1):i[d-1]+s(a,1):r}c=i[u-1]}return void 0===c?"":c}))}},"0cd4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxisConfig=void 0;var i={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};t.radarAxisConfig=i},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d25":function(e,t,n){"use strict";e.exports=TypeError},"0d26":function(e,t,n){var i=n("e330"),r=Error,o=i("".replace),s=function(e){return String(r(e).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=o(e,a,"");return e}},"0d30":function(e,t,n){},"0d51":function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},"0da8":function(e,t,n){"use strict";var i=n("9ab4"),r=n("19eb"),o=n("9850"),s=n("6d8b"),a=Object(s["defaults"])({x:0,y:0},r["b"]),l={style:Object(s["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r["a"].style)};function c(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(t,e),t.prototype.createStyle=function(e){return Object(s["createObject"])(a,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=c(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new o["a"](e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(r["c"]);u.prototype.type="image",t["a"]=u},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},"0e8b":function(e,t,n){"use strict";(function(t,i){var r;e.exports=D,D.ReadableState=E;n("faa1").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=n("b98b"),a=n("1c35").Buffer,l=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return a.from(e)}function u(e){return a.isBuffer(e)||e instanceof l}var h,d=n(4);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=n("e937"),v=n("f482"),b=n("86c6"),y=b.getHighWaterMark,_=n("9bfc").codes,w=_.ERR_INVALID_ARG_TYPE,C=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(D,s);var O=v.errorOrDestroy,k=["error","close","destroy","pause","resume"];function L(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function E(e,t,i){r=r||n("a493"),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n("aa22").StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function D(e){if(r=r||n("a493"),!(this instanceof D))return new D(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function I(e,t,n,i,r){h("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,j(e,s);else if(r||(o=T(s,t)),o)O(e,o);else if(s.objectMode||t&&t.length>0)if("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),i)s.endEmitted?O(e,new x):M(e,s,t,!0);else if(s.ended)O(e,new C);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?M(e,s,t,!1):B(e,s)):M(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e,t){if(h("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function R(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(W,e,t))}function W(e,t){while(!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){h("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(q,e,t))}function q(e,t){h("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}function K(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function G(e){var t=e._readableState;h("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(h("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Z(e,t){for(var n=0,i=e.length;n=t.highWaterMark:t.length>0)||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):R(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&G(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e0?K(e,t):null,null===i?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==i&&this.emit("data",i),i},D.prototype._read=function(e){O(this,new S("_read()"))},D.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,a=s?c:b;function l(e,t){h("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){h("onend"),e.end()}r.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",l);var u=V(n);e.on("drain",u);var d=!1;function f(){h("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function p(t){h("ondata");var i=e.write(t);h("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Z(r.pipes,e))&&!d&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function g(t){h("onerror",t),b(),e.removeListener("error",g),0===o(e,"error")&&O(e,t)}function m(){e.removeListener("finish",v),b()}function v(){h("onfinish"),e.removeListener("close",m),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),L(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",n),r.flowing||(h("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?R(this):r.reading||i.nextTick(H,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),n},D.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(z,this),t},D.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this},D.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){if(h("wrapped data"),n.decoder&&(r=n.decoder.write(r)),(!n.objectMode||null!==r&&void 0!==r)&&(n.objectMode||r&&r.length)){var o=t.push(r);o||(i=!0,e.pause())}})),e)void 0===this[r]&&"function"===typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o=0,d=u.indexOf("AppleWebKit")>=0,f=u.indexOf("Chrome")>=0,p=!f&&u.indexOf("Safari")>=0,g=!f&&!p&&d,m=u.indexOf("Android")>=0,v=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},"0f7c":function(e,t,n){"use strict";var i=n("688e");e.exports=Function.prototype.bind||i},"0f99":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return f}));var i=n("e0d3"),r=n("6d8b"),o=n("07fd"),s={Must:1,Might:2,Not:3},a=Object(i["o"])();function l(e){a(e).datasetMap=Object(r["createHashMap"])()}function c(e,t,n){var i={},o=h(t);if(!o||!e)return i;var s,l,c=[],u=[],d=t.ecModel,f=a(d).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(r["each"])(e,(function(t,n){var o=Object(r["isObject"])(t)?t:e[n]={name:t};"ordinal"===o.type&&null==s&&(s=n,l=v(o)),i[o.name]=[]}));var g=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});function m(e,t,n){for(var i=0;ib)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},1080:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return y}));var i=n("3742"),r=n("7ab3"),o=n("6a89");class s{constructor(e,t,n,i,r,o){this._richEditBracketBrand=void 0,this.languageIdentifier=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=o,this._openSet=s._toSet(this.open),this._closeSet=s._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}function a(e){const t=e.length;e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]);const n=[];for(let s=0;s{const[n,i]=e,[r,o]=t;return n===r||n===o||i===r||i===o},r=(e,i)=>{const r=Math.min(e,i),o=Math.max(e,i);for(let s=0;s0&&o.push({open:i,close:r})}return o}class l{constructor(e,t){this._richEditBracketsBrand=void 0;const n=a(t);this.brackets=n.map((t,i)=>new s(e,i,t.open,t.close,d(t.open,t.close,n,i),f(t.open,t.close,n,i))),this.forwardRegex=p(this.brackets),this.reversedRegex=g(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function c(e,t,n,i){for(let r=0,o=t.length;r=0&&i.push(t);for(const t of o.close)t.indexOf(e)>=0&&i.push(t)}}function u(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function d(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let o=0,s=r.length;o=0;i--)t[n++]=e.charCodeAt(i);return r["c"]().decode(t)}{let t=[],n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charAt(i);return t.join("")}}let t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}();class y{static _findPrevBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let s=n.length-(r.index||0),a=r[0].length,l=i+s;return new o["a"](t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,n,i,r){const o=b(n),s=o.substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let s=r.index||0,a=r[0].length;if(0===a)return null;let l=i+s;return new o["a"](t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,n,i,r){const o=n.substring(i,r);return this.findNextBracketInText(e,t,o,i)}}},1097:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m}));var i=n("561a"),r=n("7e93"),o=n("3742");const s="$(",a=new RegExp(`\\$\\(${i["a"].iconNameExpression}(?:${i["a"].iconModifierExpression})?\\)`,"g"),l=new RegExp("(\\\\)?"+a.source,"g");function c(e){return e.replace(l,(e,t)=>t?e:"\\"+e)}const u=new RegExp("\\\\"+a.source,"g");function h(e){return e.replace(u,e=>"\\"+e)}const d=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function f(e){return-1===e.indexOf(s)?e:e.replace(d,(e,t,n,i)=>n?e:t||i||"")}function p(e){const t=e.indexOf(s);return-1===t?{text:e}:g(e,t)}function g(e,t){const n=[];let i="";function r(e){if(e){i+=e;for(const t of e)n.push(u)}}let o,a,l=-1,c="",u=0,h=t;const d=e.length;r(e.substr(0,t));while(h0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},1165:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("0a0f");n("4035");const r=Object(i["c"])("contextService");class o{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}},"11b0":function(e,t,n){function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"11b09":function(e,t,n){},"11f7":function(e,t,n){"use strict";n.d(t,"t",(function(){return f})),n.d(t,"N",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"o",(function(){return y})),n.d(t,"n",(function(){return _})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return S})),n.d(t,"k",(function(){return x})),n.d(t,"T",(function(){return O})),n.d(t,"V",(function(){return k})),n.d(t,"l",(function(){return A})),n.d(t,"A",(function(){return N})),n.d(t,"z",(function(){return P})),n.d(t,"b",(function(){return R})),n.d(t,"G",(function(){return F})),n.d(t,"X",(function(){return B})),n.d(t,"D",(function(){return W})),n.d(t,"f",(function(){return V})),n.d(t,"I",(function(){return z})),n.d(t,"C",(function(){return H})),n.d(t,"B",(function(){return U})),n.d(t,"H",(function(){return q})),n.d(t,"L",(function(){return $})),n.d(t,"x",(function(){return K})),n.d(t,"J",(function(){return G})),n.d(t,"O",(function(){return Z})),n.d(t,"F",(function(){return X})),n.d(t,"y",(function(){return Q})),n.d(t,"w",(function(){return J})),n.d(t,"v",(function(){return ie})),n.d(t,"Q",(function(){return re})),n.d(t,"M",(function(){return oe})),n.d(t,"d",(function(){return se})),n.d(t,"c",(function(){return ae})),n.d(t,"U",(function(){return le})),n.d(t,"S",(function(){return ce})),n.d(t,"Y",(function(){return he})),n.d(t,"q",(function(){return de})),n.d(t,"P",(function(){return fe})),n.d(t,"R",(function(){return pe})),n.d(t,"a",(function(){return be})),n.d(t,"W",(function(){return ye})),n.d(t,"K",(function(){return _e})),n.d(t,"E",(function(){return we})),n.d(t,"u",(function(){return Ce})),n.d(t,"Z",(function(){return Se})),n.d(t,"p",(function(){return xe})),n.d(t,"s",(function(){return Oe})),n.d(t,"r",(function(){return ke})),n.d(t,"e",(function(){return Le})),n.d(t,"m",(function(){return Ee}));var i=n("0f70"),r=n("b835"),o=n("5d28"),s=n("5fe7"),a=n("fdcc"),l=n("308f"),c=n("a666"),u=n("30db"),h=n("b589"),d=n("0a31");function f(e){while(e.firstChild)e.firstChild.remove()}function p(e){var t;return null!==(t=null===e||void 0===e?void 0:e.isConnected)&&void 0!==t&&t}class g{constructor(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function m(e,t,n,i){return new g(e,t,n,i)}function v(e){return function(t){return e(new o["a"](t))}}function b(e){return function(t){return e(new r["a"](t))}}let y=function(e,t,n,i){let r=n;return"click"===t||"mousedown"===t?r=v(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(r=b(n)),m(e,t,r,i)},_=function(e,t,n){let i=v(t);return w(e,i,n)};function w(e,t,n){return m(e,u["c"]&&d["a"].pointerEvents?se.POINTER_DOWN:se.MOUSE_DOWN,t,n)}function C(e,t,n){return m(e,u["c"]&&d["a"].pointerEvents?se.POINTER_UP:se.MOUSE_UP,t,n)}function S(e,t){return m(e,"mouseout",n=>{let i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)})}function x(e,t){return m(e,"pointerout",n=>{let i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)})}let O,k,L=null;function E(e){if(!L){const e=e=>setTimeout(()=>e((new Date).getTime()),0);L=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}return L.call(self,e)}class D{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Object(a["e"])(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let e=[],t=null,n=!1,i=!1,r=()=>{n=!1,t=e,e=[],i=!0;while(t.length>0){t.sort(D.sort);let e=t.shift();e.execute()}i=!1};k=(t,i=0)=>{let o=new D(t,i);return e.push(o),n||(n=!0,E(r)),o},O=(e,n)=>{if(i){let i=new D(e,n);return t.push(i),i}return k(e,n)}})();const I=8,M=function(e,t){return t};class T extends c["a"]{constructor(e,t,n,i=M,r=I){super();let o=null,a=0,l=this._register(new s["g"]),c=()=>{a=(new Date).getTime(),n(o),o=null};this._register(m(e,t,e=>{o=i(o,e);let t=(new Date).getTime()-a;t>=r?(l.cancel(),c()):l.setIfNotSet(c,r-t)}))}}function A(e,t,n,i,r){return new T(e,t,n,i,r)}function N(e){return document.defaultView.getComputedStyle(e,null)}function P(e){if(e!==document.body)return new R(e.clientWidth,e.clientHeight);if(u["c"]&&window.visualViewport)return new R(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new R(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new R(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new R(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class j{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){let i=N(e),r="0";return i&&(r=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),j.convertToPixels(e,r)}static getBorderLeftWidth(e){return j.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return j.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return j.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return j.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return j.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return j.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return j.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return j.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return j.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return j.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return j.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return j.getDimension(e,"margin-bottom","marginBottom")}}class R{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new R(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof R?e:new R(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function F(e){let t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){n-=e.scrollTop;const r=Y(e)?null:N(e);r&&(i-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=j.getBorderLeftWidth(e),n+=j.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function B(e,t,n){"number"===typeof t&&(e.style.width=t+"px"),"number"===typeof n&&(e.style.height=n+"px")}function W(e){let t=e.getBoundingClientRect();return{left:t.left+V.scrollX,top:t.top+V.scrollY,width:t.width,height:t.height}}const V=new class{get scrollX(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function z(e){let t=j.getMarginLeft(e)+j.getMarginRight(e);return e.offsetWidth+t}function H(e){let t=j.getBorderLeftWidth(e)+j.getBorderRightWidth(e),n=j.getPaddingLeft(e)+j.getPaddingRight(e);return e.offsetWidth-t-n}function U(e){let t=j.getBorderTopWidth(e)+j.getBorderBottomWidth(e),n=j.getPaddingTop(e)+j.getPaddingBottom(e);return e.offsetHeight-t-n}function q(e){let t=j.getMarginTop(e)+j.getMarginBottom(e);return e.offsetHeight+t}function $(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function K(e,t,n){while(e&&e.nodeType===e.ELEMENT_NODE){if(e.classList.contains(t))return e;if(n)if("string"===typeof n){if(e.classList.contains(n))return null}else if(e===n)return null;e=e.parentNode}return null}function G(e,t,n){return!!K(e,t,n)}function Y(e){return e&&!!e.host&&!!e.mode}function Z(e){return!!X(e)}function X(e){while(e.parentNode){if(e===document.body)return null;e=e.parentNode}return Y(e)?e:null}function Q(){let e=document.activeElement;while(null===e||void 0===e?void 0:e.shadowRoot)e=e.shadowRoot.activeElement;return e}function J(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let ee=null;function te(){return ee||(ee=J()),ee}function ne(e){var t,n;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(n=null===e||void 0===e?void 0:e.sheet)||void 0===n?void 0:n.cssRules)?e.sheet.cssRules:[]}function ie(e,t,n=te()){n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function re(e,t=te()){if(!t)return;let n=ne(t),i=[];for(let r=0;r=0;r--)t.sheet.deleteRule(i[r])}function oe(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const se={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:i["j"]?"webkitAnimationStart":"animationstart",ANIMATION_END:i["j"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i["j"]?"webkitAnimationIteration":"animationiteration"},ae={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function le(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function ce(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}class ue extends c["a"]{constructor(e){super(),this._onDidFocus=this._register(new l["b"]),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l["b"]),this.onDidBlur=this._onDidBlur.event;let t=$(document.activeElement,e),n=!1;const i=()=>{n=!1,t||(t=!0,this._onDidFocus.fire())},r=()=>{t&&(n=!0,window.setTimeout(()=>{n&&(n=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{let n=$(document.activeElement,e);n!==t&&(t?r():i())},this._register(m(e,se.FOCUS,i,!0)),this._register(m(e,se.BLUR,r,!0))}}function he(e){return new ue(e)}function de(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function fe(e,t){return e.insertBefore(t,e.firstChild),t}function pe(e,...t){e.innerText="",de(e,...t)}const ge=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var me;function ve(e,t,n,...i){let r=ge.exec(t);if(!r)throw new Error("Bad use of emmet");n=Object.assign({},n||{});let o,s=r[1]||"div";return o=e!==me.HTML?document.createElementNS(e,s):document.createElement(s),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach(e=>{const t=n[e];"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))}),o.append(...i),o}function be(e,t,...n){return ve(me.HTML,e,t,...n)}function ye(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function _e(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function we(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Ce(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Se(e){window.open(e,"_blank","noopener")}function xe(e){const t=()=>{e(),n=k(t)};let n=k(t);return Object(c["i"])(()=>n.dispose())}function Oe(e){return e?`url('${h["a"].asBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ke(e){return`'${e.replace(/'/g,"%27")}'`}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(me||(me={})),be.SVG=function(e,t,...n){return ve(me.SVG,e,t,...n)},h["b"].setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");class Le extends l["b"]{constructor(){super(),this._subscriptions=new c["b"],this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(m(window,"keydown",e=>{if(e.defaultPrevented)return;const t=new r["a"](e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(m(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(m(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(m(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(m(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(m(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Le.instance||(Le.instance=new Le),Le.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function Ee(e,t){const n=window.matchMedia(e);"function"===typeof n.addEventListener?n.addEventListener("change",t):n.addListener(t)}},1276:function(e,t,n){"use strict";var i=n("2ba4"),r=n("c65b"),o=n("e330"),s=n("d784"),a=n("825a"),l=n("7234"),c=n("44e7"),u=n("1d80"),h=n("4840"),d=n("8aa5"),f=n("50c4"),p=n("577e"),g=n("dc4a"),m=n("4dae"),v=n("14c3"),b=n("9263"),y=n("9f7f"),_=n("d039"),w=y.UNSUPPORTED_Y,C=4294967295,S=Math.min,x=[].push,O=o(/./.exec),k=o(x),L=o("".slice),E=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));s("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=p(u(this)),s=void 0===n?C:n>>>0;if(0===s)return[];if(void 0===e)return[o];if(!c(e))return r(t,o,e,s);var a,l,h,d=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");while(a=r(b,v,o)){if(l=v.lastIndex,l>g&&(k(d,L(o,g,a.index)),a.length>1&&a.index=s))break;v.lastIndex===a.index&&v.lastIndex++}return g===o.length?!h&&O(v,"")||k(d,""):k(d,L(o,g)),d.length>s?m(d,0,s):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t,[function(t,n){var i=u(this),s=l(t)?void 0:g(t,e);return s?r(s,t,i,n):r(o,p(i),t,n)},function(e,i){var r=a(this),s=p(e),l=n(o,r,s,i,o!==t);if(l.done)return l.value;var c=h(r,RegExp),u=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(w?"g":"y"),m=new c(w?"^(?:"+r.source+")":r,g),b=void 0===i?C:i>>>0;if(0===b)return[];if(0===s.length)return null===v(m,s)?[s]:[];var y=0,_=0,x=[];while(_-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||U(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n("c8ba"),n("4362"))},"13d2":function(e,t,n){var i=n("d039"),r=n("1626"),o=n("1a2d"),s=n("83ab"),a=n("5e77").CONFIGURABLE,l=n("8925"),c=n("69f3"),u=c.enforce,h=c.get,d=Object.defineProperty,f=s&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||a&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&o(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=u(e);return o(i,"source")||(i.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return r(this)&&h(this).source||l(this)}),"toString")},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,o=n("a640"),s=n("2d00"),a=n("605d"),l=o("reduce"),c=!a&&s>79&&s<83;i({target:"Array",proto:!0,forced:!l||c},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},"13e8":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e("chunk-2d209408").then(n.bind(null,"a7ea"))}})},1409:function(e,t,n){"use strict";e.exports=ReferenceError},1468:function(e,t){var n=1e3,i=60*n,r=60*i,o=24*r,s=7*o,a=365.25*o;function l(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var l=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*s;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function c(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+"d":t>=r?Math.round(e/r)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function u(e){var t=Math.abs(e);return t>=o?h(e,t,o,"day"):t>=r?h(e,t,r,"hour"):t>=i?h(e,t,i,"minute"):t>=n?h(e,t,n,"second"):e+" ms"}function h(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return l(e);if("number"===n&&isFinite(e))return t.long?u(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"14c3":function(e,t,n){var i=n("c65b"),r=n("825a"),o=n("1626"),s=n("c6b6"),a=n("9263"),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=i(n,e,t);return null!==c&&r(c),c}if("RegExp"===s(e))return i(a,e,t);throw l("RegExp#exec called on incompatible receiver")}},"14d9":function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||u},{push:function(e){var t=r(this),n=o(t),i=arguments.length;a(n+i);for(var l=0;l1?arguments[1]:void 0)}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1830:function(e,t,n){"use strict";var i=n("6d8b"),r=n("b682"),o=n("b1d4"),s=n("2f45"),a=n("e0d3"),l=n("1f39"),c=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(i["createHashMap"])(),this.categoryAxisMap=Object(i["createHashMap"])(),this.coordSysName=e}return e}();function u(e){var t=e.get("coordinateSystem"),n=new c(t),i=h[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var h={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",a["b"]).models[0],o=e.getReferringComponents("yAxis",a["b"]).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),d(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),d(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",a["b"]).models[0];t.coordSysDims=["single"],n.set("single",r),d(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",a["b"]).models[0],o=r.findAxisModel("radiusAxis"),s=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",s),d(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),d(s)&&(i.set("angle",s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,s=o.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=s.dimensions.slice();Object(i["each"])(s.parallelAxisIndex,(function(e,i){var s=o.getComponent("parallelAxis",e),l=a[i];n.set(l,s),d(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=i))}))}};function d(e){return"category"===e.get("type")}var f=n("ec6f"),p=n("ee1a"),g=n("0f99"),m=n("07fd");function v(e,t){var n,r=e.get("coordinateSystem"),o=l["a"].get(r);return t&&t.coordSysDims&&(n=i["map"](t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=Object(s["a"])(r)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function b(e,t,n){var r,o;return n&&i["each"](e,(function(e,i){var s=e.coordDim,a=n.categoryAxisMap.get(s);a&&(null==r&&(r=i),e.ordinalMeta=a.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)})),o||null==r||(e[r].otherDims.itemName=0),r}function y(e,t,n){n=n||{};var s,a=t.getSourceManager(),l=!1;e?(l=!0,s=Object(f["c"])(e)):(s=a.getSource(),l=s.sourceFormat===m["f"]);var c=u(t),h=v(t,c),d=n.useEncodeDefaulter,y=i["isFunction"](d)?d:d?i["curry"](g["c"],h,t):null,w={coordDimensions:h,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:y,canOmitUnusedDimensions:!l},C=Object(o["b"])(s,w),S=b(C.dimensions,n.createInvertedIndices,c),x=l?null:a.getSharedDataStore(C),O=Object(p["a"])(t,{schema:C,store:x}),k=new r["a"](C,t);k.setCalculationInfo(O);var L=null!=S&&_(s)?function(e,t,n,i){return i===S?n:this.defaultDimValueGetter(e,t,n,i)}:null;return k.hasItemOption=!1,k.initData(l?s:x,null,L),k}function _(e){if(e.sourceFormat===m["f"]){var t=w(e.data||[]);return!i["isArray"](Object(a["h"])(t))}}function w(e){var t=0;while(tthis._arrowMouseDown(e)),this.onmousedown(this.domNode,e=>this._arrowMouseDown(e)),this._mousedownRepeatTimer=this._register(new l["c"]),this._mousedownScheduleRepeatTimer=this._register(new l["g"])}_arrowMouseDown(e){const t=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(t,200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,s["b"],e=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}var h=n("a666");class d extends h["a"]{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l["g"])}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}var f=n("30db");const p=140;class g extends a["a"]{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new d(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new s["a"]),this._shouldRender=!0,this.domNode=Object(r["b"])(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,e=>this._domNodeMouseDown(e))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,i){this.slider=Object(r["b"])(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,e=>{e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){const t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderMousePosition(e);n<=r&&r<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.browserEvent.offsetX&&"number"===typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{const r=i["D"](this.domNode.domNode);t=e.posx-r.left,n=e.posy-r.top}const r=this._mouseDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const n=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,s["b"],e=>{const t=this._sliderOrthogonalMousePosition(e),o=Math.abs(t-i);if(f["j"]&&o>p)return void this._setDesiredScrollPositionNow(r.getScrollPosition());const s=this._sliderMousePosition(e),a=s-n;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(a))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const m=20;class v{constructor(e,t,n,i,r,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=i,this._scrollSize=r,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new v(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,n,i,r){const o=Math.max(0,n-e),s=Math.max(0,o-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(m,Math.floor(n*s/i))),c=(s-l)/(i-n),u=r*c;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){const e=v._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let n=this._scrollPosition;return tthis._host.onMouseWheel(new o["b"](null,1,0))}),this._createArrow({className:"scra",icon:_,top:n,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o["b"](null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}const C=Object(b["e"])("scrollbar-button-up",b["b"].triangleUp),S=Object(b["e"])("scrollbar-button-down",b["b"].triangleDown);class x extends g{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new v(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,i.height,i.scrollHeight,r.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-c)/2,n=(t.verticalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:C,top:e,left:n,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o["b"](null,0,1))}),this._createArrow({className:"scra",icon:S,top:void 0,left:n,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o["b"](null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var O=n("308f"),k=n("42e3"),L=n("0f70");const E=500,D=50,I=!0;class M{constructor(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}}class T{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,n=1,i=this._rear;do{const r=i===this._front?e:Math.pow(2,-n);if(e-=r,t+=this._memory[i].score*r,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}while(1);return t<=.5}accept(e,t,n){const i=new M(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){const t=Math.abs(Math.round(e)-e);return t<.01}}T.INSTANCE=new T;class A extends a["a"]{constructor(e,t,n){super(),this._onScroll=this._register(new O["b"]),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new O["b"]),e.style.overflow="hidden",this._options=R(t),this._scrollable=n,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));const i={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new x(this._scrollable,this._options,i)),this._horizontalScrollbar=this._register(new w(this._scrollable,this._options,i)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Object(r["b"])(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Object(r["b"])(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Object(r["b"])(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onnonbubblingmouseout(this._listenOnDomNode,e=>this._onMouseOut(e)),this._hideTimeout=this._register(new l["g"]),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Object(h["f"])(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,f["f"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){const t=this._mouseWheelToDispose.length>0;if(t!==e&&(this._mouseWheelToDispose=Object(h["f"])(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new o["b"](e))};this._mouseWheelToDispose.push(i["i"](this._listenOnDomNode,i["d"].MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){const t=T.INSTANCE;if(I){const n=window.devicePixelRatio/Object(L["c"])();f["j"]||f["d"]?t.accept(Date.now(),e.deltaX/n,e.deltaY/n):t.accept(Date.now(),e.deltaX,e.deltaY)}let n=!1;if(e.deltaY||e.deltaX){let i=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(i)>=Math.abs(r)?r=0:i=0),this._options.flipAxes&&([i,r]=[r,i]);const o=!f["f"]&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||r||(r=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(r*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);const s=this._scrollable.getFutureScrollPosition();let a={};if(i){const e=s.scrollTop-D*i;this._verticalScrollbar.writeScrollPosition(a,e)}if(r){const e=s.scrollLeft-D*r;this._horizontalScrollbar.writeScrollPosition(a,e)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop){const e=I&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel();e?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0}}let i=n;!i&&this._options.alwaysConsumeMouseWheel&&(i=!0),!i&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(i=!0),i&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,i=n?" left":"",r=t?" top":"",o=n||t?" top-left-corner":"";this._leftShadowDomNode.setClassName("shadow"+i),this._topShadowDomNode.setClassName("shadow"+r),this._topLeftShadowDomNode.setClassName(`shadow${o}${r}${i}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),E)}}class N extends A{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const n=new k["a"](0,e=>i["V"](e));super(e,t,n),this._register(n)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class P extends A{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class j extends N{constructor(e,t){super(e,t),this._element=e,this.onScroll(e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function R(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,f["f"]&&(t.className+=" mac"),t}},"18ad":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=f,t.Updater=void 0;var r=i(n("448a")),o=i(n("7037")),s=i(n("970b")),a=function e(t,n){(0,s["default"])(this,e);var i=t.chart,r=t.key,o=t.getGraphConfig;"function"===typeof o?(i[r]||(this.graphs=i[r]=[]),Object.assign(this,t),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(e,t){var n=e.graphs,i=e.chart.render,r=n.length,o=t.length;if(r>o){var s=n.splice(o);s.forEach((function(e){return e.forEach((function(e){return i.delGraph(e)}))}))}}function c(e,t,n,i){var r=i.getGraphConfig,o=i.chart.render,s=i.beforeChange,a=r(t,i);u(e,a,o),e.forEach((function(e,t){var n=a[t];"function"===typeof s&&s(e,n),d(e,n)}))}function u(e,t,n){var i=e.length,o=t.length;if(o>i){var s=e.slice(-1)[0],a=o-i,l=new Array(a).fill(0).map((function(e){return n.clone(s)}));e.push.apply(e,(0,r["default"])(l))}else if(o0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,n=e.series,i=e.key,r=e.getGraphConfig,o=e.getStartGraphConfig,s=e.beforeChange,l=e.beforeUpdate,c=e.afterAddGraph;t[i]?t[i].update(n):t[i]=new a({chart:t,key:i,getGraphConfig:r,getStartGraphConfig:o,beforeChange:s,beforeUpdate:l,afterAddGraph:c},n)}t.Updater=a,a.prototype.update=function(e){var t=this,n=this.graphs,i=this.beforeUpdate;if(l(this,e),e.length){var r=(0,o["default"])(i);e.forEach((function(e,o){"function"===r&&i(n,e,o,t);var s=n[o];s?c(s,e,o,t):h(n,e,o,t)}))}}},"18c0":function(e,t,n){"use strict";var i=n("9ab4"),r=n("e0d8"),o=n("8e43"),s=n("944e"),a=n("6d8b"),l=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new o["a"]({})),Object(a["isArray"])(i)&&(i=new o["a"]({categories:Object(a["map"])(i,(function(e){return Object(a["isObject"])(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return Object(i["a"])(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(a["isString"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),s["a"](e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),s["f"](e,this._extent)},t.prototype.scale=function(e){return e=Math.round(s["g"](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=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,s=Math.min(o,t.length);r=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(r["a"]);r["a"].registerClass(l),t["a"]=l},1917:function(e,t){t.f={}.propertyIsEnumerable},"191f":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g}));var i=n("fdcc"),r=n("3742"),o=n("2c29"),s=n("ccde"),a=n("6a89"),l=n("8025");class c{constructor(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}getEditOperations(e,t){t.addTrackedEditOperation(new a["a"](this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a["a"](this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range,r=n[1].range;return new l["a"](i.endLineNumber,i.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}var u=n("2e5d"),h=n("e6ff"),d=n("2837"),f=n("70cb");class p{static indent(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,o=n.length;r1){let i;for(i=n-1;i>=1;i--){const e=t.getLineContent(i),n=r["J"](e);if(n>=0)break}if(i<1)return null;const s=t.getLineMaxColumn(i),l=f["a"].getEnterAction(e.autoIndent,t,new a["a"](i,s,i,s));l&&(o=l.indentation+l.appendText)}return i&&(i===d["b"].Indent&&(o=p.shiftIndent(e,o)),i===d["b"].Outdent&&(o=p.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,n,i){let r="",s=n.getStartPosition();if(e.insertSpaces){let n=u["a"].visibleColumnFromColumn2(e,t,s),i=e.indentSize,o=i-n%i;for(let e=0;ethis._compositionType(n,e,r,o,s,a));return new u["e"](4,l,{shouldPushStackElementBefore:v(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,n,i,r,s){if(!t.isEmpty())return null;const l=t.getPosition(),c=Math.max(1,l.column-i),u=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+r),h=new a["a"](l.lineNumber,c,l.lineNumber,u),d=e.getValueInRange(h);return d===n&&0===s?null:new o["d"](h,n,0,s)}static _typeCommand(e,t,n){return n?new o["e"](e,t,!0):new o["a"](e,t,!0)}static _enter(e,t,n,i){if(0===e.autoIndent)return p._typeCommand(i,"\n",n);if(!t.isCheapToTokenize(i.getStartPosition().lineNumber)||1===e.autoIndent){let o=t.getLineContent(i.startLineNumber),s=r["y"](o).substring(0,i.startColumn-1);return p._typeCommand(i,"\n"+e.normalizeIndentation(s),n)}const s=f["a"].getEnterAction(e.autoIndent,t,i);if(s){if(s.indentAction===d["b"].None)return p._typeCommand(i,"\n"+e.normalizeIndentation(s.indentation+s.appendText),n);if(s.indentAction===d["b"].Indent)return p._typeCommand(i,"\n"+e.normalizeIndentation(s.indentation+s.appendText),n);if(s.indentAction===d["b"].IndentOutdent){const t=e.normalizeIndentation(s.indentation),r=e.normalizeIndentation(s.indentation+s.appendText),a="\n"+r+"\n"+t;return n?new o["e"](i,a,!0):new o["d"](i,a,-1,r.length-t.length,!0)}if(s.indentAction===d["b"].Outdent){const t=p.unshiftIndent(e,s.indentation);return p._typeCommand(i,"\n"+e.normalizeIndentation(t+s.appendText),n)}}const a=t.getLineContent(i.startLineNumber),l=r["y"](a).substring(0,i.startColumn-1);if(e.autoIndent>=4){const s=f["a"].getIndentForEnter(e.autoIndent,t,i,{unshiftIndent:t=>p.unshiftIndent(e,t),shiftIndent:t=>p.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)});if(s){let a=u["a"].visibleColumnFromColumn2(e,t,i.getEndPosition());const l=i.endColumn,c=t.getLineContent(i.endLineNumber),h=r["v"](c);if(i=h>=0?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,h+1)):i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),n)return new o["e"](i,"\n"+e.normalizeIndentation(s.afterEnter),!0);{let t=0;return l<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(s.afterEnter).length-1,0)),new o["d"](i,"\n"+e.normalizeIndentation(s.afterEnter),0,t,!0)}}}return p._typeCommand(i,"\n"+e.normalizeIndentation(l),n)}static _isAutoIndentType(e,t,n){if(e.autoIndent<4)return!1;for(let i=0,r=n.length;ip.shiftIndent(e,t),unshiftIndent:t=>p.unshiftIndent(e,t)});if(null===o)return null;if(o!==e.normalizeIndentation(r)){const r=t.getLineFirstNonWhitespaceColumn(n.startLineNumber);return 0===r?p._typeCommand(new a["a"](n.startLineNumber,1,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+i,!1):p._typeCommand(new a["a"](n.startLineNumber,1,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+t.getLineContent(n.startLineNumber).substring(r-1,n.startColumn-1)+i,!1)}return null}static _isAutoClosingOvertype(e,t,n,i,r){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(r))return!1;for(let o=0,s=n.length;o2?l.charCodeAt(a.column-2):0;if(92===d&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,n=i.length;tt.startsWith(e.open)),s=r.some(e=>t.startsWith(e.close));return!o&&s}static _findAutoClosingPairOpen(e,t,n,i){const r=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(i);if(!r)return null;let o=null;for(const s of r)if(null===o||s.open.length>o.open.length){let e=!0;for(const r of n){const n=t.getValueInRange(new a["a"](r.lineNumber,r.column-s.open.length+1,r.lineNumber,r.column));if(n+i!==s.open){e=!1;break}}e&&(o=s)}return o}static _findSubAutoClosingPairClose(e,t){if(t.open.length<=1)return"";const n=t.close.charAt(t.close.length-1),i=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(n)||[];let r=null;for(const o of i)o.open!==t.open&&t.open.includes(o.open)&&t.close.endsWith(o.close)&&(!r||o.open.length>r.open.length)&&(r=o);return r?r.close:""}static _getAutoClosingPairClose(e,t,n,r,o){const s=Object(u["g"])(r),a=s?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;const l=this._findAutoClosingPairOpen(e,t,n.map(e=>e.getPosition()),r);if(!l)return null;const c=this._findSubAutoClosingPairClose(e,l);let d=!0;const g=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;for(let u=0,v=n.length;uv.column-1){const t=b.charAt(v.column-1),n=p._isBeforeClosingBrace(e,y);if(!n&&!g(t))return null}if(!t.isCheapToTokenize(v.lineNumber))return null;if(1===l.open.length&&s&&"always"!==a){const t=Object(h["a"])(e.wordSeparators);if(o&&v.column>1&&0===t.get(b.charCodeAt(v.column-2)))return null;if(!o&&v.column>2&&0===t.get(b.charCodeAt(v.column-3)))return null}t.forceTokenization(v.lineNumber);const _=t.getLineTokens(v.lineNumber);let w=!1;try{w=f["a"].shouldAutoClosePair(l,_,o?v.column:v.column-1)}catch(m){Object(i["e"])(m)}if(!w)return null}return d?l.close.substring(0,l.close.length-c.length):l.close}static _runAutoClosingOpenCharType(e,t,n,i,r,o,s){let a=[];for(let l=0,c=i.length;lnew o["a"](new a["a"](e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new u["e"](4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const h=this._getAutoClosingPairClose(t,n,r,c,!1);return null!==h?this._runAutoClosingOpenCharType(e,t,n,r,c,!1,h):null}static typeWithInterceptors(e,t,n,i,r,s,a){if(!e&&"\n"===a){let e=[];for(let t=0,o=r.length;t= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-u,C=Math.floor,S=String.fromCharCode;function x(e){throw new RangeError(_[e])}function O(e,t){var n=e.length,i=[];while(n--)i[n]=t(e[n]);return i}function k(e,t){var n=e.split("@"),i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(y,".");var r=e.split("."),o=O(r,t).join(".");return i+o}function L(e){var t,n,i=[],r=0,o=e.length;while(r=55296&&t<=56319&&r65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|1023&e),t+=S(e),t})).join("")}function D(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var i=0;for(e=n?C(e/f):e>>1,e+=C(e/t);e>w*h>>1;i+=c)e=C(e/w);return C(i+(w+1)*e/(e+d))}function T(e){var t,n,i,r,o,s,a,d,f,v,b=[],y=e.length,_=0,w=g,S=p;for(n=e.lastIndexOf(m),n<0&&(n=0),i=0;i=128&&x("not-basic"),b.push(e.charCodeAt(i));for(r=n>0?n+1:0;r=y&&x("invalid-input"),d=D(e.charCodeAt(r++)),(d>=c||d>C((l-_)/s))&&x("overflow"),_+=d*s,f=a<=S?u:a>=S+h?h:a-S,dC(l/v)&&x("overflow"),s*=v}t=b.length+1,S=M(_-o,t,0==o),C(_/t)>l-w&&x("overflow"),w+=C(_/t),_%=t,b.splice(_++,0,w)}return E(b)}function A(e){var t,n,i,r,o,s,a,d,f,v,b,y,_,w,O,k=[];for(e=L(e),y=e.length,t=g,n=0,o=p,s=0;s=t&&bC((l-n)/_)&&x("overflow"),n+=(a-t)*_,t=a,s=0;sl&&x("overflow"),b==t){for(d=n,f=c;;f+=c){if(v=f<=o?u:f>=o+h?h:f-o,d=c?e?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var i=n("77e9"),r=n("faf5"),o=n("3397"),s=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1a2d":function(e,t,n){var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},"1aa7":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return n.e("chunk-2d0b1fd5").then(n.bind(null,"21cc"))}})},"1af3":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),r=n("6a89"),o=n("8025"),s=n("c101"),a=n("b2cc"),l=n("a40b");class c{constructor(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations(),i=n[0].range;return this._originalSelection.isEmpty()?new o["a"](i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new o["a"](i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var u=n("bc04"),h=n("b7d0"),d=n("918c"),f=n("b57f"),p=n("5fe7"),g=n("fdcc"),m=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},v=function(e,t){return function(n,i){t(n,i,e)}};let b=class e{constructor(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}static get(t){return t.getContribution(e.ID)}dispose(){}run(t,n){this.currentRequest&&this.currentRequest.cancel();const i=this.editor.getSelection(),s=this.editor.getModel();if(!s||!i)return;let a=i;if(a.startLineNumber!==a.endLineNumber)return;const l=new u["a"](this.editor,5),h=s.uri;return this.editorWorkerService.canNavigateValueSet(h)?(this.currentRequest=Object(p["h"])(e=>this.editorWorkerService.navigateValueSet(h,a,n)),this.currentRequest.then(n=>{if(!n||!n.range||!n.value)return;if(!l.validate(this.editor))return;let i=r["a"].lift(n.range),s=n.range,u=n.value.length-(a.endColumn-a.startColumn);s={startLineNumber:s.startLineNumber,startColumn:s.startColumn,endLineNumber:s.endLineNumber,endColumn:s.startColumn+n.value.length},u>1&&(a=new o["a"](a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+u-1));const h=new c(i,a,n.value);this.editor.pushUndoStop(),this.editor.executeCommand(t,h),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:s,options:e.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(p["n"])(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(g["e"])}).catch(g["e"])):Promise.resolve(void 0)}};b.ID="editor.contrib.inPlaceReplaceController",b.DECORATION=f["a"].register({description:"in-place-replace",className:"valueSetReplacement"}),b=m([v(1,l["a"])],b);class y extends a["b"]{constructor(){super({id:"editor.action.inPlaceReplace.up",label:i["a"]("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3154,weight:100}})}run(e,t){const n=b.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)}}class _ extends a["b"]{constructor(){super({id:"editor.action.inPlaceReplace.down",label:i["a"]("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3156,weight:100}})}run(e,t){const n=b.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)}}Object(a["l"])(b.ID,b),Object(a["j"])(y),Object(a["j"])(_),Object(h["f"])((e,t)=>{const n=e.getColor(d["d"]);n&&t.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${n}; }`)})},"1b0e":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n("eda7");class o{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class u{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,o]=u._getElements(e),[s,a,l]=u._getElements(t);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(u._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n=e&&r>=n&&this.ElementsAreEqual(t,r))t--,r--;if(e>t||n>r){let o;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const s=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,r,s,l,o),u=s[0],h=l[0];if(null!==c)return c;if(!o[0]){const s=this.ComputeDiffRecursive(e,u,n,h,o);let a=[];return a=o[0]?[new i(u+1,t-(u+1)+1,h+1,r-(h+1)+1)]:this.ComputeDiffRecursive(u+1,t,h+1,r,o),this.ConcatenateChanges(s,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,o,s,a,l,u,h,d,f,p,g,m,v,b,y){let _=null,w=null,C=new c,S=t,x=n,O=p[0]-v[0]-r,k=-1073741824,L=this.m_forwardHistory.length-1;do{const t=O+e;t===S||t=0&&(u=this.m_forwardHistory[L],e=u[0],S=1,x=u.length-1)}while(--L>=-1);if(_=C.getReverseChanges(),y[0]){let e=p[0]+1,t=v[0]+1;if(null!==_&&_.length>0){const n=_[_.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}w=[new i(e,f-e+1,t,m-t+1)]}else{C=new c,S=s,x=a,O=p[0]-v[0]-l,k=1073741824,L=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=O+o;e===S||e=h[e+1]?(d=h[e+1]-1,g=d-O-l,d>k&&C.MarkNextChange(),k=d+1,C.AddOriginalElement(d+1,g+1),O=e+1-o):(d=h[e-1],g=d-O-l,d>k&&C.MarkNextChange(),k=d,C.AddModifiedElement(d+1,g+1),O=e-1-o),L>=0&&(h=this.m_reverseHistory[L],o=h[0],S=1,x=h.length-1)}while(--L>=-1);w=C.getChanges()}return this.ConcatenateChanges(_,w)}ComputeRecursionPoint(e,t,n,r,o,s,a){let c=0,u=0,h=0,d=0,f=0,p=0;e--,n--,o[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(r-n),m=g+1,v=new Int32Array(m),b=new Int32Array(m),y=r-n,_=t-e,w=e-n,C=t-r,S=_-y,x=S%2===0;v[y]=e,b[_]=t,a[0]=!1;for(let O=1;O<=g/2+1;O++){let g=0,S=0;h=this.ClipDiagonalBound(y-O,O,y,m),d=this.ClipDiagonalBound(y+O,O,y,m);for(let e=h;e<=d;e+=2){c=e===h||eg+S&&(g=c,S=u),!x&&Math.abs(e-_)<=O-1&&c>=b[e])return o[0]=c,s[0]=u,n<=b[e]&&O<=1448?this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a):null}const k=(g-e+(S-n)-O)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,k))return a[0]=!0,o[0]=g,s[0]=S,k>0&&O<=1448?this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);f=this.ClipDiagonalBound(_-O,O,_,m),p=this.ClipDiagonalBound(_+O,O,_,m);for(let i=f;i<=p;i+=2){c=i===f||i=b[i+1]?b[i+1]-1:b[i-1],u=c-(i-_)-C;const l=c;while(c>e&&u>n&&this.ElementsAreEqual(c,u))c--,u--;if(b[i]=c,x&&Math.abs(i-y)<=O&&c<=v[i])return o[0]=c,s[0]=u,l>=v[i]&&O<=1448?this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a):null}if(O<=1447){let e=new Int32Array(d-h+2);e[0]=y-h+1,l.Copy2(v,h,e,1,d-h+1),this.m_forwardHistory.push(e),e=new Int32Array(p-f+2),e[0]=_-f+1,l.Copy2(b,f,e,1,p-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a)}PrettifyChanges(e){for(let t=0;t0,s=n.modifiedLength>0;while(n.originalStart+n.originalLength=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(tl&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&t>a&&(a=t,l=u,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){const r=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(n,i)?1:0;return r+o}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let o=e.originalLength;const s=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,o,s,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&et(new o["a"](e))))}onmousedown(e,t){this._register(i["i"](e,i["d"].MOUSE_DOWN,e=>t(new o["a"](e))))}onmouseover(e,t){this._register(i["i"](e,i["d"].MOUSE_OVER,e=>t(new o["a"](e))))}onnonbubblingmouseout(e,t){this._register(i["j"](e,e=>t(new o["a"](e))))}onkeydown(e,t){this._register(i["i"](e,i["d"].KEY_DOWN,e=>t(new r["a"](e))))}onkeyup(e,t){this._register(i["i"](e,i["d"].KEY_UP,e=>t(new r["a"](e))))}oninput(e,t){this._register(i["i"](e,i["d"].INPUT,t))}onblur(e,t){this._register(i["i"](e,i["d"].BLUR,t))}onfocus(e,t){this._register(i["i"](e,i["d"].FOCUS,t))}ignoreGesture(e){a["b"].ignoreTarget(e)}}},"1b8d":function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",i=0;i=0;s--)i[s]&&!c["l"](i[s])?o=!0:(i[s]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[C],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r=t:"max"===n?e<=t:e===t}function W(e,t){return e.join(",")===t.join(",")}var V=j,z=o["each"],H=o["isObject"],U=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function q(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=U.length;n=0;g--){var m=e[g];if(a||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=Object(de["b"])(f,v),p=v;break}}}return i[0]=f,i[1]=p,i}))}))}var ge=n("4f85"),me=n("b12f"),ve=n("e887"),be=n("c7a2"),ye=n("0da8"),_e=n("deca"),we=n("cbe5"),Ce=n("861c"),Se=n("7d6c"),xe=n("88b3"),Oe=n("282b"),ke=n("551f"),Le=n("3901"),Ee=Object(c["o"])(),De={itemStyle:Object(Oe["a"])(ke["a"],!0),lineStyle:Object(Oe["a"])(Le["a"],!0)},Ie={lineStyle:"stroke",itemStyle:"fill"};function Me(e,t){var n=e.visualStyleMapper||De[t];return n||(console.warn("Unknown style type '"+t+"'."),De.itemStyle)}function Te(e,t){var n=e.visualDrawType||Ie[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Ae={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),s=Me(e,i),a=s(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=Te(e,i),u=a[c],h=Object(o["isFunction"])(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[c]||h||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[c]||(a[c]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(o["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(o["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=Object(o["extend"])({},a);r[c]=h(i),t.setItemVisual(n,"style",r)}}}},Ne=new u["a"],Pe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=Me(e,i),s=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){Ne.option=n[i];var a=r(Ne),l=e.ensureUniqueItemVisual(t,"style");Object(o["extend"])(l,a),Ne.option.decal&&(e.setItemVisual(t,"decal",Ne.option.decal),Ne.option.decal.dirty=!0),s in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},je={performRawSeries:!0,overallReset:function(e){var t=Object(o["createHashMap"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),Ee(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=Ee(t).scope,s=t.visualStyleAccessPath||"itemStyle",a=Te(t,s);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var s=i[e],l=r.getItemVisual(s,"colorFromPalette");if(l){var c=r.ensureUniqueItemVisual(s,"style"),u=n.getName(e)||e+"",h=n.count();c[a]=t.getColorFromPalette(u,o,h)}}))}}))}},Re=n("2dc5"),Fe=n("76a5"),Be=n("8d32"),We=Math.PI;function Ve(e,t){t=t||{},o["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 Re["a"],i=new be["a"]({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,s=new Fe["a"]({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new be["a"]({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new Be["a"]({shape:{startAngle:-We/2,endAngle:-We/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*We/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*We/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=s.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*o-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:o),c=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-o,y:c-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var ze=n("9fbc"),He=n("8918"),Ue=function(){function e(e,t,n,i){this._stageTaskMap=Object(o["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,s=i&&i.modDataCount,a=null!=s?Math.ceil(s/o):null;return{step:o,modBy:a,modDataCount:s}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:s}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(o["createHashMap"])();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(o["each"])(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),s="";Object(o["assert"])(!(i.reset&&i.overallReset),s),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,s=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(o["each"])(e,(function(e,o){if(!i.visualType||i.visualType===e.visualType){var l=s._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(e){a(i,e)&&(e.dirty(),h=!0)})),h&&u.dirty(),s.updatePayload(u,n);var f=s.getPerformArgs(u,i.block);d.each((function(e){e.perform(f)})),u.perform(f)&&(r=!0)}else c&&c.each((function(o,l){a(i,o)&&o.dirty();var c=s.getPerformArgs(o,i.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(o.context.model),s.updatePayload(o,n),o.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,s=t.seriesTaskMap,a=t.seriesTaskMap=Object(o["createHashMap"])(),l=e.seriesType,c=e.getTargetSeries;function u(t){var o=t.uid,l=a.set(o,s&&s.get(o)||Object(ze["a"])({plan:Ye,reset:Ze,count:Je}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):l?n.eachRawSeriesByType(l,u):c&&c(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,s=t.overallTask=t.overallTask||Object(ze["a"])({reset:qe});s.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=s.agentStubMap,l=s.agentStubMap=Object(o["createHashMap"])(),c=e.seriesType,u=e.getTargetSeries,h=!0,d=!1,f="";function p(e){var t=e.uid,n=l.set(t,a&&a.get(t)||(d=!0,Object(ze["a"])({reset:$e,onDirty:Ge})));n.context={model:e,overallProgress:h},n.agent=s,n.__block=h,r._pipe(e,n)}Object(o["assert"])(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):u?u(n,i).each(p):(h=!1,Object(o["each"])(n.getSeries(),p)),d&&s.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Object(o["isFunction"])(e)&&(e={overallReset:e,seriesType:et(e)}),e.uid=Object(He["c"])("stageHandler"),t&&(e.visualType=t),e},e}();function qe(e){e.overallReset(e.ecModel,e.api,e.payload)}function $e(e){return e.overallProgress&&Ke}function Ke(){this.agent.dirty(),this.getDownstream().dirty()}function Ge(){this.agent&&this.agent.dirty()}function Ye(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ze(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Object(c["r"])(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(o["map"])(t,(function(e,t){return Qe(t)})):Xe}var Xe=Qe(0);function Qe(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(t.mainType=h,t[c.toLowerCase()]=e,o=!0)}}a.hasOwnProperty(r)&&(n[r]=e,o=!0),o||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var a=t.cptQuery,l=t.dataQuery;return c(a,o,"mainType")&&c(a,o,"subType")&&c(a,o,"index","componentIndex")&&c(a,o,"name")&&c(a,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,r));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),mt=["symbol","symbolSize","symbolRotate","symbolOffset"],vt=mt.concat(["symbolKeepAspect"]),bt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},s=!1,a=0;a0&&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[Zt])if(this._disposed)Mn(this.id);else{var i,r,s;if(Object(o["isObject"])(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,s=t.transition,t=t.notMerge),this[Zt]=!0,!this._model||t){var a=new V(this._api),l=this._theme,c=this._model=new I;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,a)}this._model.setOption(e,{replaceMerge:r},Pn);var u={seriesTransition:s,optionChanged:!0};if(n)this[Xt]={silent:i,updateParams:u},this[Zt]=!1,this.getZr().wakeUp();else{try{ln(this),hn.update.call(this,null,u)}catch(h){throw this[Xt]=null,this[Zt]=!1,h}this._ssr||this._zr.flush(),this[Xt]=null,this[Zt]=!1,gn.call(this,i),mn.call(this,i)}}},t.prototype.setTheme=function(){Object(w["a"])("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||s["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(s["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(o["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,i=[],r=this;Object(o["each"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(o["each"])(i,(function(e){e.group.ignore=!1})),s}Mn(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,s=Math.max,a=1/0;if(Wn[n]){var l=a,c=a,u=-a,h=-a,d=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();Object(o["each"])(Bn,(function(r,a){if(r.group===n){var f=t?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(Object(o["clone"])(e)),p=r.getDom().getBoundingClientRect();l=i(p.left,l),c=i(p.top,c),u=s(p.right,u),h=s(p.bottom,h),d.push({dom:f,left:p.left,top:p.top})}})),l*=f,c*=f,u*=f,h*=f;var p=u-l,g=h-c,m=Dt["d"].createCanvas(),v=r["init"](m,{renderer:t?"svg":"canvas"});if(v.resize({width:p,height:g}),t){var b="";return Object(o["each"])(d,(function(e){var t=e.left-l,n=e.top-c;b+=''+e.dom+""})),v.painter.getSvgRoot().innerHTML=b,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new be["a"]({shape:{x:0,y:0,width:p,height:g},style:{fill:e.connectedBackgroundColor}})),Object(o["each"])(d,(function(e){var t=new ye["a"]({style:{x:e.left*f-l,y:e.top*f-c,image:e.dom}});v.add(t)})),v.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Mn(this.id)},t.prototype.convertToPixel=function(e,t){return dn(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return dn(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=c["s"](i,e);return Object(o["each"])(r,(function(e,i){i.indexOf("Models")>=0&&Object(o["each"])(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}Mn(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=c["s"](n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=s?Object(_t["a"])(o,s,t):Object(_t["b"])(o,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(o["each"])(In,(function(t){var n=function(n){var i,r=e.getModel(),s=n.target,a="globalout"===t;if(a?i={}:s&&Object(xt["a"])(s,(function(e){var t=Object(Ce["a"])(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType,s)||{},!0}if(t.eventData)return i=Object(o["extend"])({},t.eventData),!0}),!0),i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&r.getComponent(l,c),h=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:u,view:h},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(o["each"])(An,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(o["each"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(wt["b"])(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Mn(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Mn(this.id);else{this._disposed=!0;var e=this.getDom();e&&c["w"](this.getDom(),Hn,"");var t=this,n=t._api,i=t._model;Object(o["each"])(t._componentsViews,(function(e){e.dispose(i,n)})),Object(o["each"])(t._chartsViews,(function(e){e.dispose(i,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 Bn[t.id]}},t.prototype.resize=function(e){if(!this[Zt])if(this._disposed)Mn(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Xt]&&(null==i&&(i=this[Xt].silent),n=!0,this[Xt]=null),this[Zt]=!0;try{n&&ln(this),hn.update.call(this,{type:"resize",animation:Object(o["extend"])({duration:0},e&&e.animation)})}catch(r){throw this[Zt]=!1,r}this[Zt]=!1,gn.call(this,i),mn.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["isObject"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Fn[e]){var n=Fn[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?Mn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(o["extend"])({},e);return t.type=An[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["isObject"])(t)||(t={silent:!!t}),Tn[e.type]&&this._model)if(this[Zt])this._pendingActions.push(e);else{var n=t.silent;pn.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&s["a"].browser.weChat&&this._throttledZrFlush(),gn.call(this,n),mn.call(this,n)}},t.prototype.updateLabelLayout=function(){Et.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Mn(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.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=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,s=r.get("z")||0,a=r.getZLevelKey();i=i||!!a,("series"===e?n:t).push({zlevel:o,z:s,idx:r.componentIndex,type:e,key:a})})),i){var r,s,l=t.concat(n);Object(a["a"])(l,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(o["each"])(l,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,o=t.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==s&&i++,s=o):s&&(i===r&&i++,s=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;it.get("hoverLayerThreshold")&&!s["a"].node&&!s["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 l(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function u(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return h(e,n,i,-1/0),!0}))}}function h(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),s=e.isGroup;if(s)for(var a=e.childrenRef(),l=0;l0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(_e["d"](e))return;if(e instanceof we["b"]&&Object(Se["E"])(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=s;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=s),o&&(o.stateTransition=s)}e.__dirty&&n(e)}}))}ln=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),cn(e,!0),cn(e,!1),t.plan()},cn=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,s=e._zr,a=e._api,l=0;l=0)){li.push(n);var s=ot.wrapStageHandler(n,r);s.__prio=t,s.__raw=n,e.push(s)}}function ui(e,t){Fn[e]=t}function hi(e){Object(Dt["e"])({createCanvas:e})}function di(e,t,n){var i=Object(It["a"])("registerMap");i&&i(e,t,n)}function fi(e){var t=Object(It["a"])("getMap");return t&&t(e)}var pi=Ct["b"];ai(Vt,Ae),ai(Ut,Pe),ai(Ut,je),ai(Vt,bt),ai(Ut,yt),ai(Gt,kt),Qn(he),Jn(Pt,fe),ui("default",Ve),ii({type:Se["c"],event:Se["c"],update:Se["c"]},o["noop"]),ii({type:Se["b"],event:Se["b"],update:Se["b"]},o["noop"]),ii({type:Se["f"],event:Se["f"],update:Se["f"]},o["noop"]),ii({type:Se["i"],event:Se["i"],update:Se["i"]},o["noop"]),ii({type:Se["h"],event:Se["h"],update:Se["h"]},o["noop"]),Xn("light",at),Xn("dark",ft);var gi={}},"1beb":function(e,t,n){"use strict";(function(t,i){function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}var o;e.exports=E,E.WritableState=L;var s={deprecate:n("b7d1")},a=n("946b"),l=n("1c35").Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var d,f=n("015d"),p=n("75d2"),g=p.getHighWaterMark,m=n("e142").codes,v=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,_=m.ERR_STREAM_CANNOT_PIPE,w=m.ERR_STREAM_DESTROYED,C=m.ERR_STREAM_NULL_VALUES,S=m.ERR_STREAM_WRITE_AFTER_END,x=m.ERR_UNKNOWN_ENCODING,O=f.errorOrDestroy;function k(){}function L(e,t,i){o=o||n("030c"),e=e||{},"boolean"!==typeof i&&(i=t instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){j(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function E(e){o=o||n("030c");var t=this instanceof o;if(!t&&!d.call(E,this))return new E(e);this._writableState=new L(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),a.call(this)}function D(e,t){var n=new S;O(e,n),i.nextTick(t,n)}function I(e,t,n,r){var o;return null===n?o=new C:"string"===typeof n||t.objectMode||(o=new v("chunk",["string","Buffer"],n)),!o||(O(e,o),i.nextTick(r,o),!1)}function M(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n)),t}function T(e,t,n,i,r,o){if(!n){var s=M(t,i,r);i!==s&&(n=!0,r="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||U(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n("c8ba"),n("4362"))},"1c35":function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var i=n("1fb5"),r=n("9152"),o=n("bf74");function s(){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 a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function _(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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(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(i)return Z(e).length;t=(""+t).toLowerCase(),i=!0}}function w(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function C(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function S(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:x(e,t,n,i,r);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):x(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(e,t,n,i,r){var o,s=1,a=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var u=-1;for(o=n;oa&&(n=a-l),o=n;o>=0;o--){for(var h=!0,d=0;dr&&(i=r)):i=r;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s239?4:c>223?3:c>191?2:1;if(r+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=e[r+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[r+1],s=e[r+2],128===(192&o)&&128===(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[r+1],s=e[r+2],a=e[r+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return N(i)}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:s(),t.kMaxLength=a(),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 d(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,i=t.length,r=0,o=Math.min(n,i);r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,i,r){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===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var o=r-i,s=n-t,a=Math.min(o,s),l=this.slice(i,r),u=e.slice(t,n),h=0;hr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return L(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return D(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function N(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",i=0;while(ii)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function W(e,t,n,i,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function V(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function z(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function H(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,i,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function q(e,t,n,i,o){return o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t0&&(r*=256))i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e],r=1,o=0;while(++o=r&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=t,r=1,o=this[e+--i];while(i>0&&(r*=256))o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;W(this,e,t,n,r,0)}var o=1,s=0;this[t]=255&e;while(++s=0&&(s*=256))this[t+o]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||W(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||W(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||W(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):z(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||W(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):z(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);W(this,e,t,n,r-1,-r)}var o=0,s=1,a=0;this[t]=255&e;while(++o>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);W(this,e,t,n,r-1,-r)}var o=n-1,s=1,a=0;this[t+o]=255&e;while(--o>=0&&(s*=256))e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||W(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||W(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||W(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):z(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||W(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):z(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i)}return o}function J(e){return i.toByteArray(K(e))}function ee(e,t,n,i){for(var r=0;r=t.length||r>=e.length)break;t[r+n]=e[r]}return r}function te(e){return e!==e}}).call(this,n("c8ba"))},"1c59":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;ithis._values[e])}}function g(){m.INSTANCE.clearCache()}class m extends o["a"]{constructor(){super(),this._onDidChange=this._register(new r["b"]),this.onDidChange=this._onDidChange.event,this._cache=new p,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new p,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const n of e)n.isTrusted||(t=!0,this._cache.remove(n));t&&this._onDidChange.fire()}readConfiguration(e){if(!this._cache.has(e)){let t=m._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new f["b"]({zoomLevel:i["d"](),pixelRatio:i["a"](),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}static createRequest(e,t,n,i){const r=new a(e,t);return n.push(r),i&&i.push(r),r}static _actualReadConfiguration(e){const t=[],n=[],r=this.createRequest("n",0,t,n),o=this.createRequest("m",0,t,null),s=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),l=this.createRequest("1",0,t,n),u=this.createRequest("2",0,t,n),h=this.createRequest("3",0,t,n),p=this.createRequest("4",0,t,n),g=this.createRequest("5",0,t,n),m=this.createRequest("6",0,t,n),v=this.createRequest("7",0,t,n),b=this.createRequest("8",0,t,n),y=this.createRequest("9",0,t,n),_=this.createRequest("→",0,t,n),w=this.createRequest("→",0,t,null),C=this.createRequest("·",0,t,n),S=this.createRequest(String.fromCharCode(11825),0,t,null);this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),c(e,t);const x=Math.max(a.width,l.width,u.width,h.width,p.width,g.width,m.width,v.width,b.width,y.width);let O=e.fontFeatureSettings===d["e"].OFF;const k=n[0].width;for(let i=1,c=n.length;O&&i.001){O=!1;break}}let L=!0;O&&w.width!==k&&(L=!1),w.width>_.width&&(L=!1);const E=i["b"]()>2e3;return new f["b"]({zoomLevel:i["d"](),pixelRatio:i["a"](),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:L,spaceWidth:s.width,middotWidth:C.width,wsmiddotWidth:S.width,maxDigitWidth:x},E)}}m.INSTANCE=new m;class v extends h["a"]{constructor(e,t,n=null,r){super(e,t),this.accessibilityService=r,this._elementSizeObserver=this._register(new u["a"](n,t.dimension,()=>this._recomputeOptions())),this._register(m.INSTANCE.onDidChange(()=>this._recomputeOptions())),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(i["l"](e=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}static applyFontInfo(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}observeReferenceElement(e){this._elementSizeObserver.observe(e)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let e="";return i["h"]||i["k"]||(e+="no-user-select "),i["h"]&&(e+="no-minimap-shadow "),s["f"]&&(e+="mac "),e}_getEnvConfiguration(){return{extraEditorClassName:v._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i["j"]||i["g"],pixelRatio:i["a"](),zoomLevel:i["d"](),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(e){return m.INSTANCE.readConfiguration(e)}}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("2d00"),s=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e03":function(e,t,n){},"1e4c":function(e,t,n){},"1e4d":function(e,t,n){"use strict";function i(){if(!(this instanceof i))return new i;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}i.prototype.allocate=function(){const e=this.nextId++;return 65536===this.nextId&&(this.nextId=1),e},i.prototype.getLastAllocated=function(){return 1===this.nextId?65535:this.nextId-1},i.prototype.register=function(e){return!0},i.prototype.deallocate=function(e){},i.prototype.clear=function(){},e.exports=i},"1e93":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"d",(function(){return d})),n.d(t,"g",(function(){return f}));var i=n("3742");const r="undefined"!==typeof e,o="undefined"!==typeof TextDecoder;let s;class a{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(t){return r&&!e.isBuffer(t)&&(t=e.from(t.buffer,t.byteOffset,t.byteLength)),new a(t)}toString(){return r?this.buffer.toString():o?(s||(s=new TextDecoder),s.decode(this.buffer)):i["r"](this.buffer)}}function l(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function c(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function u(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function f(e,t,n){e[n]=t}}).call(this,n("1c35").Buffer)},"1f26":function(e,t,n){},"1f39":function(e,t,n){"use strict";var i=n("6d8b"),r={},o=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];i["each"](r,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){i["each"](this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){r[e]=t},e.get=function(e){return r[e]},e}();t["a"]=o},"1f55":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.gauge=g;var r=i(n("9523")),o=i(n("7037")),s=i(n("278c")),a=i(n("448a")),l=n("18ad"),c=n("cc6d"),u=n("5557"),h=n("becb"),d=n("a870");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var i=(0,h.initNeedSeries)(n,c.gaugeConfig,"gauge");i=m(i,e),i=v(i,e),i=b(i,e),i=y(i,e),i=_(i,e),i=w(i,e),i=C(i,e),i=S(i,e),i=x(i,e),i=O(i,e),(0,l.doUpdate)({chart:e,series:i,key:"gaugeAxisTick",getGraphConfig:L}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeAxisLabel",getGraphConfig:I}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeBackgroundArc",getGraphConfig:A,getStartGraphConfig:j}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeArc",getGraphConfig:R,getStartGraphConfig:W,beforeChange:V}),(0,l.doUpdate)({chart:e,series:i,key:"gaugePointer",getGraphConfig:z,getStartGraphConfig:$}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeDetails",getGraphConfig:K})}function m(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function v(e,t){var n=t.render.area,i=Math.min.apply(Math,(0,a["default"])(n))/2;return e.forEach((function(e){var t=e.radius;"number"!==typeof t&&(t=parseInt(t)/100*i),e.radius=t})),e}function b(e,t){var n=t.render.area,i=Math.min.apply(Math,(0,a["default"])(n))/2;return e.forEach((function(e){var t=e.radius,n=e.data,r=e.arcLineWidth;n.forEach((function(e){var n=e.radius,o=e.lineWidth;n||(n=t),"number"!==typeof n&&(n=parseInt(n)/100*i),e.radius=n,o||(o=r),e.lineWidth=o}))})),e}function y(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,i=e.data,r=e.min,o=e.max,s=n-t,a=o-r;i.forEach((function(e){var n=e.value,i=Math.abs((n-r)/a*s);e.startAngle=t,e.endAngle=t+i}))})),e}function _(e,t){return e.forEach((function(e){var t=e.data;t.forEach((function(e){var t=e.color,n=e.gradient;n&&n.length||(n=t),n instanceof Array||(n=[n]),e.gradient=n}))})),e}function w(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,i=e.splitNum,r=e.center,o=e.radius,s=e.arcLineWidth,l=e.axisTick,c=l.tickLength,h=l.style.lineWidth,d=n-t,f=o-s/2,p=f-c,g=d/(i-1),m=2*Math.PI*o*d/(2*Math.PI),v=Math.ceil(h/2)/m*d;e.tickAngles=[],e.tickInnerRadius=[],e.tickPosition=new Array(i).fill(0).map((function(n,o){var s=t+g*o;return 0===o&&(s+=v),o===i-1&&(s-=v),e.tickAngles[o]=s,e.tickInnerRadius[o]=p,[u.getCircleRadianPoint.apply(void 0,(0,a["default"])(r).concat([f,s])),u.getCircleRadianPoint.apply(void 0,(0,a["default"])(r).concat([p,s]))]}))})),e}function C(e,t){return e.forEach((function(e){var t=e.center,n=e.tickInnerRadius,i=e.tickAngles,r=e.axisLabel.labelGap,o=i.map((function(e,o){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(t).concat([n[o]-r,i[o]]))})),l=o.map((function(e){var n=(0,s["default"])(e,2),i=n[0],r=n[1];return{textAlign:i>t[0]?"right":"left",textBaseline:r>t[1]?"bottom":"top"}}));e.labelPosition=o,e.labelAlign=l})),e}function S(e,t){return e.forEach((function(e){var t=e.axisLabel,n=e.min,i=e.max,r=e.splitNum,s=t.data,a=t.formatter,l=(i-n)/(r-1),c=new Array(r).fill(0).map((function(e,t){return parseInt(n+l*t)})),u=(0,o["default"])(a);s=(0,h.deepMerge)(c,s).map((function(e,t){var n=e;return"string"===u&&(n=a.replace("{value}",e)),"function"===u&&(n=a({value:e,index:t})),n})),t.data=s})),e}function x(e,t){return e.forEach((function(e){var t=e.data,n=e.details,i=e.center,r=n.position,o=n.offset,s=t.map((function(e){var t=e.startAngle,n=e.endAngle,s=e.radius,l=null;return"center"===r?l=i:"start"===r?l=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(i).concat([s,t])):"end"===r&&(l=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(i).concat([s,n]))),k(l,o)}));e.detailsPosition=s})),e}function O(e,t){return e.forEach((function(e){var t=e.data,n=e.details,i=n.formatter,r=(0,o["default"])(i),s=t.map((function(e){var t=e.value;return"string"===r&&(t=i.replace("{value}","{nt}"),t=t.replace("{name}",e.name)),"function"===r&&(t=i(e)),t.toString()}));e.detailsContent=s})),e}function k(e,t){var n=(0,s["default"])(e,2),i=n[0],r=n[1],o=(0,s["default"])(t,2),a=o[0],l=o[1];return[i+a,r+l]}function L(e){var t=e.tickPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:r,visible:e.axisTick.show,animationCurve:n,animationFrame:i,shape:E(e,o),style:D(e,o)}}))}function E(e,t){var n=e.tickPosition;return{points:n[t]}}function D(e,t){var n=e.axisTick.style;return n}function I(e){var t=e.labelPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:n,animationFrame:i,shape:M(e,o),style:T(e,o)}}))}function M(e,t){var n=e.labelPosition,i=e.axisLabel.data;return{content:i[t].toString(),position:n[t]}}function T(e,t){var n=e.labelAlign,i=e.axisLabel,r=i.style;return(0,h.deepMerge)(p({},n[t]),r)}function A(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"arc",index:i,visible:e.backgroundArc.show,animationCurve:t,animationFrame:n,shape:N(e),style:P(e)}]}function N(e){var t=e.startAngle,n=e.endAngle,i=e.center,r=e.radius;return{rx:i[0],ry:i[1],r:r,startAngle:t,endAngle:n}}function P(e){var t=e.backgroundArc,n=e.arcLineWidth,i=t.style;return(0,h.deepMerge)({lineWidth:n},i)}function j(e){var t=A(e)[0],n=p({},t.shape);return n.endAngle=t.shape.startAngle,t.shape=n,[t]}function R(e){var t=e.data,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"agArc",index:r,animationCurve:n,animationFrame:i,shape:F(e,o),style:B(e,o)}}))}function F(e,t){var n=e.data,i=e.center,r=e.endAngle,o=n[t],s=o.radius,a=o.startAngle,l=o.endAngle,c=o.localGradient;return c&&(r=l),{rx:i[0],ry:i[1],r:s,startAngle:a,endAngle:l,gradientEndAngle:r}}function B(e,t){var n=e.data,i=e.dataItemStyle,r=n[t],o=r.lineWidth,s=r.gradient;return s=s.map((function(e){return(0,d.getRgbaValue)(e)})),(0,h.deepMerge)({lineWidth:o,gradient:s},i)}function W(e){var t=R(e);return t.map((function(e){var t=p({},e.shape);t.endAngle=e.shape.startAngle,e.shape=t})),t}function V(e,t){var n=e.style.gradient,i=n.length,r=t.style.gradient.length;if(i>r)n.splice(r);else{var o=n.slice(-1)[0];n.push.apply(n,(0,a["default"])(new Array(r-i).fill(0).map((function(e){return(0,a["default"])(o)}))))}}function z(e){var t=e.animationCurve,n=e.animationFrame,i=e.center,r=e.rLevel;return[{name:"polyline",index:r,visible:e.pointer.show,animationCurve:t,animationFrame:n,shape:H(e),style:U(e),setGraphCenter:function(e,t){t.style.graphCenter=i}}]}function H(e){var t=e.center;return{points:q(t),close:!0}}function U(e){var t=e.startAngle,n=e.endAngle,i=e.min,r=e.max,o=e.data,s=e.pointer,a=e.center,l=s.valueIndex,c=s.style,u=o[l]?o[l].value:0,d=(u-i)/(r-i)*(n-t)+t+Math.PI/2;return(0,h.deepMerge)({rotate:(0,h.radianToAngle)(d),scale:[1,1],graphCenter:a},c)}function q(e){var t=(0,s["default"])(e,2),n=t[0],i=t[1],r=[n,i-40],o=[n+5,i],a=[n,i+10],l=[n-5,i];return[r,o,a,l]}function $(e){var t=e.startAngle,n=z(e)[0];return n.style.rotate=(0,h.radianToAngle)(t+Math.PI/2),[n]}function K(e){var t=e.detailsPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=e.details.show;return t.map((function(t,s){return{name:"numberText",index:r,visible:o,animationCurve:n,animationFrame:i,shape:G(e,s),style:Y(e,s)}}))}function G(e,t){var n=e.detailsPosition,i=e.detailsContent,r=e.data,o=e.details,s=n[t],a=i[t],l=r[t].value,c=o.valueToFixed;return{number:[l],content:a,position:s,toFixed:c}}function Y(e,t){var n=e.details,i=e.data,r=n.style,o=i[t].color;return(0,h.deepMerge)({fill:o},r)}},"1f68":function(e,t,n){"use strict";var i=n("83ab"),r=n("edd0"),o=n("861d"),s=n("7b0b"),a=n("1d80"),l=Object.getPrototypeOf,c=Object.setPrototypeOf,u=Object.prototype,h="__proto__";if(i&&l&&c&&!(h in u))try{r(u,h,{configurable:!0,get:function(){return l(s(this))},set:function(e){var t=a(this);(o(e)||null===e)&&o(t)&&c(t,e)}})}catch(d){}},"1f84":function(e,t,n){"use strict";n.r(t),n.d(t,"GotoDefinitionAtPositionEditorContribution",(function(){return O}));n("eb68");var i=n("dff7"),r=n("5fe7"),o=n("fdcc"),s=n("78bc"),a=n("5818"),l=n("6a89"),c=n("b707"),u=n("b2cc"),h=n("bd13"),d=n("a666"),f=n("b78f"),p=n("b7d0"),g=n("303e"),m=n("bc04"),v=n("f187"),b=n("6816"),y=n("7061"),_=n("ef8e"),w=n("88d4"),C=n("4fc3"),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}};let O=class e{constructor(e,t,n){this.textModelResolverService=t,this.modeService=n,this.toUnhook=new d["b"],this.toUnhookForKeyboard=new d["b"],this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;let i=new b["a"](e);this.toUnhook.add(i),this.toUnhook.add(i.onMouseMoveOrRelevantKeyDown(([e,t])=>{this.startFindDefinitionFromMouse(e,Object(_["o"])(t))})),this.toUnhook.add(i.onExecute(e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},e=>{this.removeLinkDecorations(),Object(o["e"])(e)})})),this.toUnhook.add(i.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(t){return t.getContribution(e.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const n=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!n)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return Promise.resolve(0);this.currentWordAtPosition=n;let a=new m["a"](this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(r["h"])(t=>this.findDefinition(e,t)),this.previousPromise.then(t=>{if(t&&t.length&&a.validate(this.editor))if(t.length>1)this.addDecoration(new l["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),(new s["a"]).appendText(i["a"]("multipleResults","Click to show {0} definitions.",t.length)));else{let i=t[0];if(!i.uri)return;this.textModelResolverService.createModelReference(i.uri).then(t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:r}}=t,{startLineNumber:o}=i.range;if(o<1||o>r.getLineCount())return void t.dispose();const a=this.getPreviewValue(r,o,i);let c;c=i.originSelectionRange?l["a"].lift(i.originSelectionRange):new l["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);const u=this.modeService.getModeIdByFilepathOrFirstLine(r.uri);this.addDecoration(c,(new s["a"]).appendCodeblock(u||"",a)),t.dispose()})}else this.removeLinkDecorations()}).then(void 0,o["e"])}getPreviewValue(t,n,i){let r=i.targetSelectionRange?i.range:this.getPreviewRangeBasedOnBrackets(t,n);const o=r.endLineNumber-r.startLineNumber;o>=e.MAX_SOURCE_PREVIEW_LINES&&(r=this.getPreviewRangeBasedOnIndentation(t,n));const s=this.stripIndentationFromPreviewRange(t,n,r);return s}stripIndentationFromPreviewRange(e,t,n){const i=e.getLineFirstNonWhitespaceColumn(t);let r=i;for(let s=t+1;si)return new l["a"](n,1,i+1,1);s=t.findNextBracket(new y["a"](a,c))}return new l["a"](n,1,i+1,1)}addDecoration(e,t){const n={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&c["f"].has(this.editor.getModel())}findDefinition(e,t){const n=this.editor.getModel();return n?Object(h["b"])(n,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(e=>{const n=!t&&this.editor.getOption(76)&&!this.isInPeekEditor(e),i=new v["DefinitionAction"]({openToSide:t,openInPeek:n,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return i.run(e,this.editor)})}isInPeekEditor(e){const t=e.get(C["b"]);return w["b"].inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};O.ID="editor.contrib.gotodefinitionatposition",O.MAX_SOURCE_PREVIEW_LINES=8,O=S([x(1,f["a"]),x(2,a["a"])],O),Object(u["l"])(O.ID,O),Object(p["f"])((e,t)=>{const n=e.getColor(g["q"]);n&&t.addRule(`.monaco-editor .goto-definition-link { color: ${n} !important; }`)})},"1fa1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e("chunk-2d0e57ec").then(n.bind(null,"9571"))}})},"1fad":function(e,t,n){const i=n("51e9"),r=n("faa1"),o=n("a7c9"),s=n("b289"),a=n("34eb")("mqtt-packet:parser");class l extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(e){return this instanceof l?(this.settings=e||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):(new l).parser(e)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=i(),this._stateCounter=0}parse(e){this.error&&this._resetState(),this._list.append(e),a("parse: current state: %s",this._states[this._stateCounter]);while((-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const e=this._list.readUInt8(0);return this.packet.cmd=s.types[e>>s.CMD_SHIFT],this.packet.retain=0!==(e&s.RETAIN_MASK),this.packet.qos=e>>s.QOS_SHIFT&s.QOS_MASK,this.packet.dup=0!==(e&s.DUP_MASK),a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),a("_parseLength %d",e.value),!!e}_parsePayload(){a("_parsePayload: payload %O",this._list);let e=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}e=!0}return a("_parsePayload complete result: %s",e),e}_parseConnect(){let e,t,n,i;a("_parseConnect");const r={},o=this.packet,l=this._parseString();if(null===l)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==l&&"MQIsdp"!==l)return this._emitError(new Error("Invalid protocolId"));if(o.protocolId=l,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(o.protocolVersion=this._list.readUInt8(this._pos),o.protocolVersion>=128&&(o.bridgeMode=!0,o.protocolVersion=o.protocolVersion-128),3!==o.protocolVersion&&4!==o.protocolVersion&&5!==o.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(r.username=this._list.readUInt8(this._pos)&s.USERNAME_MASK,r.password=this._list.readUInt8(this._pos)&s.PASSWORD_MASK,r.will=this._list.readUInt8(this._pos)&s.WILL_FLAG_MASK,r.will&&(o.will={},o.will.retain=0!==(this._list.readUInt8(this._pos)&s.WILL_RETAIN_MASK),o.will.qos=(this._list.readUInt8(this._pos)&s.WILL_QOS_MASK)>>s.WILL_QOS_SHIFT),o.clean=0!==(this._list.readUInt8(this._pos)&s.CLEAN_SESSION_MASK),this._pos++,o.keepalive=this._parseNum(),-1===o.keepalive)return this._emitError(new Error("Packet too short"));if(5===o.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(o.properties=e)}const c=this._parseString();if(null===c)return this._emitError(new Error("Packet too short"));if(o.clientId=c,a("_parseConnect: packet.clientId: %s",o.clientId),r.will){if(5===o.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(o.will.properties=e)}if(e=this._parseString(),null===e)return this._emitError(new Error("Cannot parse will topic"));if(o.will.topic=e,a("_parseConnect: packet.will.topic: %s",o.will.topic),t=this._parseBuffer(),null===t)return this._emitError(new Error("Cannot parse will payload"));o.will.payload=t,a("_parseConnect: packet.will.paylaod: %s",o.will.payload)}if(r.username){if(i=this._parseString(),null===i)return this._emitError(new Error("Cannot parse username"));o.username=i,a("_parseConnect: packet.username: %s",o.username)}if(r.password){if(n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse password"));o.password=n}return this.settings=o,a("_parseConnect: complete"),o}_parseConnack(){a("_parseConnack");const e=this.packet;if(this._list.length<1)return null;if(e.sessionPresent=!!(this._list.readUInt8(this._pos++)&s.SESSIONPRESENT_MASK),5===this.settings.protocolVersion)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(-1===e.returnCode||-1===e.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");const e=this.packet;if(e.topic=this._parseString(),null===e.topic)return this._emitError(new Error("Cannot parse topic"));if(!(e.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}e.payload=this._list.slice(this._pos,e.length),a("_parsePublish: payload from buffer list: %o",e.payload)}}_parseSubscribe(){a("_parseSubscribe");const e=this.packet;let t,n,i,r,o,l,c;if(1!==e.qos)return this._emitError(new Error("Wrong subscribe header"));if(e.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos=e.length)return this._emitError(new Error("Malformed Subscribe Payload"));n=this._parseByte(),i=n&s.SUBSCRIBE_OPTIONS_QOS_MASK,l=0!==(n>>s.SUBSCRIBE_OPTIONS_NL_SHIFT&s.SUBSCRIBE_OPTIONS_NL_MASK),o=0!==(n>>s.SUBSCRIBE_OPTIONS_RAP_SHIFT&s.SUBSCRIBE_OPTIONS_RAP_MASK),r=n>>s.SUBSCRIBE_OPTIONS_RH_SHIFT&s.SUBSCRIBE_OPTIONS_RH_MASK,c={topic:t,qos:i},5===this.settings.protocolVersion?(c.nl=l,c.rap=o,c.rh=r):this.settings.bridgeMode&&(c.rh=0,c.rap=!0,c.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",c),e.subscriptions.push(c)}}}_parseSuback(){a("_parseSuback");const e=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos2?(e.reasonCode=this._parseByte(),a("_parseConfirmation: packet.reasonCode `%d`",e.reasonCode)):e.reasonCode=0,e.length>3)){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return!0}_parseDisconnect(){const e=this.packet;if(a("_parseDisconnect"),5===this.settings.protocolVersion){this._list.length>0?e.reasonCode=this._parseByte():e.reasonCode=0;const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");const e=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));e.reasonCode=this._parseByte();const t=this._parseProperties();return Object.getOwnPropertyNames(t).length&&(e.properties=t),a("_parseAuth: result: true"),!0}_parseMessageId(){const e=this.packet;return e.messageId=this._parseNum(),null===e.messageId?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",e.messageId),!0)}_parseString(e){const t=this._parseNum(),n=t+this._pos;if(-1===t||n>this._list.length||n>this.packet.length)return null;const i=this._list.toString("utf8",this._pos,n);return this._pos+=t,a("_parseString: result: %s",i),i}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const e=this._parseNum(),t=e+this._pos;if(-1===e||t>this._list.length||t>this.packet.length)return null;const n=this._list.slice(this._pos,t);return this._pos+=e,a("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;const e=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const e=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",e),e}_parseVarByteNum(e){a("_parseVarByteNum");const t=4;let n,i=0,r=1,o=0,l=!1;const c=this._pos?this._pos:0;while(i=i&&this._emitError(new Error("Invalid variable byte integer")),c&&(this._pos+=i),l=!!l&&(e?{bytes:i,value:o}:o),a("_parseVarByteNum: result: %o",l),l}_parseByte(){let e;return this._pos0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function h(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,i=c(e),s=i[0],a=i[1],l=new o(h(e,s,a)),u=0,d=a>0?s-4:s;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,n){for(var i,r=[],o=t;ol?l:a+s));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"1fe0":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("3352"),r=n("b7d0"),o=n("918c"),s=n("a666"),a=n("b055"),l=n("ef8e"),c=n("0bfb");class u{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var n;const i=new s["b"];e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=i.add(new s["d"]);return r.value=this.doProvide(e,t),i.add(this.onDidActiveTextEditorControlChange(()=>{r.value=void 0,r.value=this.doProvide(e,t)})),i}doProvide(e,t){const n=new s["b"],i=this.activeTextEditorControl;if(i&&this.canProvideWithTextEditor(i)){const r={editor:i},o=Object(a["a"])(i);if(o){let e=Object(l["o"])(i.saveViewState());n.add(o.onDidChangeCursorPosition(()=>{e=Object(l["o"])(i.saveViewState())})),r.restoreViewState=()=>{e&&i===this.activeTextEditorControl&&i.restoreViewState(e)},n.add(Object(c["a"])(t.onCancellationRequested)(()=>{var e;return null===(e=r.restoreViewState)||void 0===e?void 0:e.call(r)}))}n.add(Object(s["i"])(()=>this.clearDecorations(i))),n.add(this.provideWithTextEditor(r,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return Object(a["c"])(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Object(r["g"])(o["u"]),position:i["d"].Full}}}],[a,l]=e.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:a,overviewRulerDecorationId:l}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}},2023:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}()},"204e":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bar=p;var r=i(n("7037")),o=i(n("9523")),s=i(n("278c")),a=i(n("448a")),l=n("18ad"),c=n("9d85"),u=n("5557"),h=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=(0,h.initNeedSeries)(r,c.barConfig,"bar"),o=g(o,e),o=m(o,e),o=k(o,e)),(0,l.doUpdate)({chart:e,series:o.slice(-1),key:"backgroundBar",getGraphConfig:A}),o.reverse(),(0,l.doUpdate)({chart:e,series:o,key:"bar",getGraphConfig:R,getStartGraphConfig:q,beforeUpdate:Y}),(0,l.doUpdate)({chart:e,series:o,key:"barLabel",getGraphConfig:Z})}function g(e,t){var n=t.axisData;return e.forEach((function(e){var t=e.xAxisIndex,i=e.yAxisIndex;"number"!==typeof t&&(t=0),"number"!==typeof i&&(i=0);var r=n.find((function(e){var n=e.axis,i=e.index;return"".concat(n).concat(i)==="x".concat(t)})),o=n.find((function(e){var t=e.axis,n=e.index;return"".concat(t).concat(n)==="y".concat(i)})),s=[r,o],a=s.findIndex((function(e){var t=e.data;return"value"===t}));e.valueAxis=s[a],e.labelAxis=s[1-a]})),e}function m(e,t){var n=b(e);return n.forEach((function(e){v(e),_(e),w(e,t),C(e),O(e)})),e}function v(e){var t=y(e);t=t.map((function(e){return{stack:e,index:-1}}));var n=0;e.forEach((function(e){var i=e.stack;if(i){var r=t.find((function(e){var t=e.stack;return t===i}));-1===r.index&&(r.index=n,n++),e.barIndex=r.index}else e.barIndex=n,n++}))}function b(e){var t=e.map((function(e){var t=e.labelAxis,n=t.axis,i=t.index;return n+i}));return t=(0,a["default"])(new Set(t)),t.map((function(t){return e.filter((function(e){var n=e.labelAxis,i=n.axis,r=n.index;return i+r===t}))}))}function y(e){var t=[];return e.forEach((function(e){var n=e.stack;n&&t.push(n)})),(0,a["default"])(new Set(t))}function _(e){var t=(0,a["default"])(new Set(e.map((function(e){var t=e.barIndex;return t})))).length;e.forEach((function(e){return e.barNum=t}))}function w(e){var t=e.slice(-1)[0],n=t.barCategoryGap,i=t.labelAxis.tickGap,r=0;r="number"===typeof n?n:(1-parseInt(n)/100)*i,e.forEach((function(e){return e.barCategoryWidth=r}))}function C(e){var t=e.slice(-1)[0],n=t.barCategoryWidth,i=t.barWidth,r=t.barGap,o=t.barNum,a=[];"number"===typeof i||"auto"!==i?a=S(n,i,r,o):"auto"===i&&(a=x(n,i,r,o));var l=a,c=(0,s["default"])(l,2),u=c[0],h=c[1];e.forEach((function(e){e.barWidth=u,e.barGap=h}))}function S(e,t,n){var i=0,r=0;return i="number"===typeof t?t:parseInt(t)/100*e,r="number"===typeof n?n:parseInt(n)/100*i,[i,r]}function x(e,t,n,i){var r=0,o=0,s=e/i;if("number"===typeof n)o=n,r=s-o;else{var a=10+parseInt(n)/10;0===a?(r=2*s,o=-r):(r=s/a*10,o=s-r)}return[r,o]}function O(e){var t=e.slice(-1)[0],n=t.barGap,i=t.barWidth,r=t.barNum,o=(n+i)*r-n;e.forEach((function(e){return e.barAllWidthAndGap=o}))}function k(e,t){return e=E(e),e=L(e),e=I(e),e=M(e),e}function L(e){return e.map((function(e){var t=e.labelAxis,n=e.barAllWidthAndGap,i=e.barGap,r=e.barWidth,o=e.barIndex,s=t.tickGap,a=t.tickPosition,l=t.axis,c="x"===l?0:1,u=a.map((function(e,t){var l=a[t][c]-s/2,u=l+(s-n)/2;return u+(o+.5)*r+o*i}));return f(f({},e),{},{barLabelAxisPos:u})}))}function E(e){return e.map((function(t){var n=(0,h.mergeSameStackData)(t,e);n=D(t,n);var i=t.valueAxis,r=i.axis,o=i.minValue,s=i.maxValue,a=i.linePosition,l=T(o,s,o<0?0:o,a,r),c=n.map((function(e){return T(o,s,e,a,r)})),u=c.map((function(e){return[l,e]}));return f(f({},t),{},{barValueAxisPos:u})}))}function D(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null})).filter((function(e){return null!==e}))}function I(e){return e.map((function(e){var t=e.barLabelAxisPos,n=e.data;return n.forEach((function(e,n){"number"!==typeof e&&(t[n]=null)})),f(f({},e),{},{barLabelAxisPos:t.filter((function(e){return null!==e}))})}))}function M(e){return e.forEach((function(e){var t=e.data,n=e.barLabelAxisPos,i=e.barValueAxisPos,r=t.filter((function(e){return"number"===typeof e})).length,o=n.length;o>r&&(n.splice(r),i.splice(r))})),e}function T(e,t,n,i,r){if("number"!==typeof n)return null;var o=t-e,s="x"===r?0:1,a=i[1][s]-i[0][s],l=(n-e)/o;0===o&&(l=0);var c=l*a;return c+i[0][s]}function A(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=N(e),o=j(e);return r.map((function(r){return{name:"rect",index:i,visible:e.backgroundBar.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function N(e){var t=e.labelAxis,n=e.valueAxis,i=t.tickPosition,r=n.axis,o=n.linePosition,s=P(e),a=s/2,l="x"===r?0:1,c=i.map((function(e){return e[1-l]})),u=[o[0][l],o[1][l]],h=u[0],d=u[1];return c.map((function(e){return"x"===r?{x:h,y:e-a,w:d-h,h:s}:{x:e-a,y:d,w:s,h:h-d}}))}function P(e){var t=e.barAllWidthAndGap,n=e.barCategoryWidth,i=e.backgroundBar,r=i.width;return"number"===typeof r?r:"auto"===r?t:parseInt(r)/100*n}function j(e){return e.backgroundBar.style}function R(e){var t=e.barLabelAxisPos,n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=F(e);return t.map((function(t,s){return{name:o,index:r,animationCurve:n,animationFrame:i,shape:B(e,s),style:H(e,s)}}))}function F(e){var t=e.shapeType;return"leftEchelon"===t||"rightEchelon"===t?"polyline":"rect"}function B(e,t){var n=e.shapeType;return"leftEchelon"===n?W(e,t):"rightEchelon"===n?V(e,t):z(e,t)}function W(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.barWidth,o=e.echelonOffset,a=(0,s["default"])(n[t],2),l=a[0],c=a[1],u=i[t],h=r/2,d=e.valueAxis.axis,f=[];return"x"===d?(f[0]=[c,u-h],f[1]=[c,u+h],f[2]=[l,u+h],f[3]=[l+o,u-h],c-l=w?r=n+w:t&&n-r>=w?r=n-w:!t&&n>r?r=n+(w-x(n-r)):t&&n0&&(this._ux=y(n/o["e"]/e)||0,this._uy=y(n/o["e"]/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(l.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=y(e-this._xi),i=y(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(l.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,O(S,o),i=S[0],r=S[1];var s=r-i;return this.addData(l.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=v(r)*n+e,this._yi=b(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(l.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.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||!C||(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(){h[0]=h[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,o=0,a=0,c=0;for(e=0;en||y(k)>i||f===t-1)&&(C=Math.sqrt(O*O+k*k),r=S,o=x);break;case l.C:var L=e[f++],E=e[f++],D=(S=e[f++],x=e[f++],e[f++]),I=e[f++];C=Object(a["d"])(r,o,L,E,S,x,D,I,10),r=D,o=I;break;case l.Q:L=e[f++],E=e[f++],S=e[f++],x=e[f++];C=Object(a["k"])(r,o,L,E,S,x,10),r=S,o=x;break;case l.A:var M=e[f++],T=e[f++],A=e[f++],N=e[f++],P=e[f++],j=e[f++],R=j+P;f+=1,_&&(s=v(P)*A+M,c=b(P)*N+T),C=m(A,N)*g(w,Math.abs(j)),r=v(R)*A+M,o=b(R)*N+T;break;case l.R:s=r=e[f++],c=o=e[f++];var F=e[f++],B=e[f++];C=2*F+2*B;break;case l.Z:O=s-r,k=c-o;C=Math.sqrt(O*O+k*k),r=s,o=c;break}C>=0&&(u[d++]=C,h+=C)}return this._pathLen=h,h},e.prototype.rebuildPath=function(e,t){var n,i,r,o,s,h,d,f,p,_,w,C=this.data,S=this._ux,x=this._uy,O=this._len,k=t<1,L=0,E=0,D=0;if(!k||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=this._pathLen,p=t*f,p))e:for(var I=0;I0&&(e.lineTo(_,w),D=0),M){case l.M:n=r=C[I++],i=o=C[I++],e.moveTo(r,o);break;case l.L:s=C[I++],h=C[I++];var A=y(s-r),N=y(h-o);if(A>S||N>x){if(k){var P=d[E++];if(L+P>p){var j=(p-L)/P;e.lineTo(r*(1-j)+s*j,o*(1-j)+h*j);break e}L+=P}e.lineTo(s,h),r=s,o=h,D=0}else{var R=A*A+N*N;R>D&&(_=s,w=h,D=R)}break;case l.C:var F=C[I++],B=C[I++],W=C[I++],V=C[I++],z=C[I++],H=C[I++];if(k){P=d[E++];if(L+P>p){j=(p-L)/P;Object(a["g"])(r,F,W,z,j,c),Object(a["g"])(o,B,V,H,j,u),e.bezierCurveTo(c[1],u[1],c[2],u[2],c[3],u[3]);break e}L+=P}e.bezierCurveTo(F,B,W,V,z,H),r=z,o=H;break;case l.Q:F=C[I++],B=C[I++],W=C[I++],V=C[I++];if(k){P=d[E++];if(L+P>p){j=(p-L)/P;Object(a["n"])(r,F,W,j,c),Object(a["n"])(o,B,V,j,u),e.quadraticCurveTo(c[1],u[1],c[2],u[2]);break e}L+=P}e.quadraticCurveTo(F,B,W,V),r=W,o=V;break;case l.A:var U=C[I++],q=C[I++],$=C[I++],K=C[I++],G=C[I++],Y=C[I++],Z=C[I++],X=!C[I++],Q=$>K?$:K,J=y($-K)>.001,ee=G+Y,te=!1;if(k){P=d[E++];L+P>p&&(ee=G+Y*(p-L)/P,te=!0),L+=P}if(J&&e.ellipse?e.ellipse(U,q,$,K,Z,G,ee,X):e.arc(U,q,Q,G,ee,X),te)break e;T&&(n=v(G)*$+U,i=b(G)*K+q),r=v(ee)*$+U,o=b(ee)*K+q;break;case l.R:n=r=C[I],i=o=C[I+1],s=C[I++],h=C[I++];var ne=C[I++],ie=C[I++];if(k){P=d[E++];if(L+P>p){var re=p-L;e.moveTo(s,h),e.lineTo(s+g(re,ne),h),re-=ne,re>0&&e.lineTo(s+ne,h+g(re,ie)),re-=ie,re>0&&e.lineTo(s+m(ne-re,0),h+ie),re-=ne,re>0&&e.lineTo(s,h+m(ie-re,0));break e}L+=P}e.rect(s,h,ne,ie);break;case l.Z:if(k){P=d[E++];if(L+P>p){j=(p-L)/P;e.lineTo(r*(1-j)+n*j,o*(1-j)+i*j);break e}L+=P}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=l,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();t["a"]=k},"216a":function(e,t,n){"use strict";var i=n("9ab4"),r=n("3842"),o=n("f876"),s=n("944e"),a=n("89e3"),l=n("e0d8"),c=n("6d8b"),u=function(e,t,n,i){while(n>>1;e[r][1]n&&(this._approxInterval=n);var o=d.length,s=Math.min(u(d,this._approxInterval,0,o),o-1);this._interval=d[s][1],this._minLevelUnit=d[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Object(c["isNumber"])(e)?e:+r["p"](e)},t.prototype.contain=function(e){return s["a"](this.parse(e),this._extent)},t.prototype.normalize=function(e){return s["f"](this.parse(e),this._extent)},t.prototype.scale=function(e){return s["g"](e,this._extent)},t.type="time",t}(a["a"]),d=[["second",o["d"]],["minute",o["c"]],["hour",o["b"]],["quarter-day",6*o["b"]],["half-day",12*o["b"]],["day",1.2*o["a"]],["half-week",3.5*o["a"]],["week",7*o["a"]],["month",31*o["a"]],["quarter",95*o["a"]],["half-year",o["e"]/2],["year",o["e"]]];function f(e,t,n,i){var s=r["p"](t),a=r["p"](n),l=function(e){return Object(o["n"])(s,e,i)===Object(o["n"])(a,e,i)},c=function(){return l("year")},u=function(){return c()&&l("month")},h=function(){return u()&&l("day")},d=function(){return h()&&l("hour")},f=function(){return d()&&l("minute")},p=function(){return f()&&l("second")},g=function(){return p()&&l("millisecond")};switch(e){case"year":return c();case"month":return u();case"day":return h();case"hour":return d();case"minute":return f();case"second":return p();case"millisecond":return g()}}function p(e,t){return e/=o["a"],e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function g(e){var t=30*o["a"];return e/=t,e>6?6:e>3?3:e>2?2:1}function m(e){return e/=o["b"],e>12?12:e>6?6:e>3.5?4:e>2?2:1}function v(e,t){return e/=t?o["c"]:o["d"],e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function b(e){return r["n"](e,!0)}function y(e,t,n){var i=new Date(e);switch(Object(o["m"])(t)){case"year":case"month":i[Object(o["x"])(n)](0);case"day":i[Object(o["g"])(n)](1);case"hour":i[Object(o["p"])(n)](0);case"minute":i[Object(o["v"])(n)](0);case"second":i[Object(o["A"])(n)](0),i[Object(o["t"])(n)](0)}return i.getTime()}function _(e,t,n,i){var r=1e4,s=o["B"],a=0;function l(e,t,n,r,o,s,a){var l=new Date(t),c=t,u=l[r]();while(c1&&0===u&&s.unshift({value:s[0].value-_})}}for(u=0;u=i[0]&&L<=i[1]&&_++)}var E=(i[1]-i[0])/t;if(_>1.5*E&&w>E/1.5)break;if(h.push(O),_>E||e===s[C])break}d=[]}}}var D=Object(c["filter"])(Object(c["map"])(h,(function(e){return Object(c["filter"])(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),I=[],M=D.length-1;for(C=0;C1||n>0&&!e.noHeader;return Object(o["each"])(e.blocks,(function(e){var n=g(e);n>=t&&(t=n+ +(i&&(!n||f(e)&&!e.noHeader)))})),t}return 0}function m(e,t,n,a){var u=t.noHeader,h=y(g(t)),d=[],f=t.blocks||[];Object(o["assert"])(!f||Object(o["isArray"])(f)),f=f||[];var m=e.orderMode;if(t.sortBlocks&&m){f=f.slice();var v={valueAsc:"asc",valueDesc:"desc"};if(Object(o["hasOwn"])(v,m)){var b=new s["a"](v[m],null);f.sort((function(e,t){return b.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===m&&f.reverse()}Object(o["each"])(f,(function(n,i){var r=t.valueFormatter,s=p(n)(r?Object(o["extend"])(Object(o["extend"])({},e),{valueFormatter:r}):e,n,i>0?h.html:0,a);null!=s&&d.push(s)}));var w="richText"===e.renderMode?d.join(h.richText):_(d.join(""),u?n:h.html);if(u)return w;var C=Object(r["h"])(t.header,"ordinal",e.useUTC),x=c(a,e.renderMode).nameStyle;return"richText"===e.renderMode?S(e,C,x)+h.richText+w:_('
'+Object(i["a"])(C)+"
"+w,n)}function v(e,t,n,i){var s=e.renderMode,a=t.noName,l=t.noValue,u=!t.markerType,h=t.name,d=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(e){return e=Object(o["isArray"])(e)?e:[e],Object(o["map"])(e,(function(e,t){return Object(r["h"])(e,Object(o["isArray"])(m)?m[t]:m,d)}))};if(!a||!l){var p=u?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",s),g=a?"":Object(r["h"])(h,"ordinal",d),m=t.valueType,v=l?[]:f(t.value,t.dataIndex),b=!u||!a,y=!u&&a,O=c(i,s),k=O.nameStyle,L=O.valueStyle;return"richText"===s?(u?"":p)+(a?"":S(e,g,k))+(l?"":x(e,v,b,y,L)):_((u?"":p)+(a?"":w(g,!u,k))+(l?"":C(v,b,y,L)),n)}}function b(e,t,n,i,r,o){if(e){var s=p(e),a={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(a,e,0,o)}}function y(e){return{html:u[e],richText:h[e]}}function _(e,t){var n='
',i="margin: "+t+"px 0 0";return'
'+e+n+"
"}function w(e,t,n){var r=t?"margin-left:2px":"";return''+Object(i["a"])(e)+""}function C(e,t,n,r){var s=n?"10px":"20px",a=t?"float:right;margin-left:"+s:"";return e=Object(o["isArray"])(e)?e:[e],''+Object(o["map"])(e,(function(e){return Object(i["a"])(e)})).join("  ")+""}function S(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function x(e,t,n,i,r){var s=[r],a=i?10:20;return n&&s.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(o["isArray"])(t)?t.join(" "):t,s)}function O(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Object(r["c"])(i)}function k(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var L=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(a["j"])()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,s=Object(r["g"])({color:t,type:e,renderMode:n,markerId:i});return Object(o["isString"])(s)?s:(this.richTextStyles[i]=s.style,s.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(o["isArray"])(t)?Object(o["each"])(t,(function(e){return Object(o["extend"])(n,e)})):Object(o["extend"])(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}()},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var r=i&&!0===i.clone;return r&&e(n)?o(t(n),n,i):n}function i(t,i,r){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,r):e(i)?s[a]=o(t[a],i,r):-1===t.indexOf(i)&&s.push(n(i,r))})),s}function r(t,i,r){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],r)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=o(t[a],i[a],r):s[a]=n(i[a],r)})),s}function o(e,t,o){var s=Array.isArray(t),a=o||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,o):n(t,o):r(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function i(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var r=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},s=r.svg,a=r.xlink,l={};l[s.name]=s.uri,l[a.name]=a.uri;var c,u=function(e,t){void 0===e&&(e="");var i=n(l,t||{}),r=o(i);return""+e+""},h=r.svg,d=r.xlink,f={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},c[h.name]=h.uri,c[d.name]=d.uri,c)},p=function(e){this.config=n(f,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,i=this.find(e.id);return i?(n[n.indexOf(i)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,i=this.find(e);return!!i&&(n.splice(n.indexOf(i),1),i.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return u(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var g=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var m=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return m(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(g),b={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},y=function(e){return Array.prototype.slice.call(e,0)},_={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},C=function(e){var t=[];return y(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},S=function(e){return(e||window.location.href).split("#")[0]},x=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,i){w(e,{oldUrl:i,newUrl:n})}))}])},O="linearGradient, radialGradient, pattern, mask, clipPath",k=function(e,t){return void 0===t&&(t=O),y(e.querySelectorAll("symbol")).forEach((function(e){y(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function L(e,t){var n=y(e).reduce((function(e,n){if(!n.attributes)return e;var i=y(n.attributes),r=t?i.filter(t):i;return e.concat(r)}),[]);return n}var E=r.xlink.uri,D="xlink:href",I=/[{}|\\\^\[\]`"<>]/g;function M(e){return e.replace(I,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(e,t,n){return y(e).forEach((function(e){var i=e.getAttribute(D);if(i&&0===i.indexOf(t)){var r=i.replace(t,n);e.setAttributeNS(E,D,r)}})),e}var N,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],j=P.map((function(e){return"["+e+"]"})).join(","),R=function(e,t,n,i){var r=M(n),o=M(i),s=e.querySelectorAll(j),a=L(s,(function(e){var t=e.localName,n=e.value;return-1!==P.indexOf(t)&&-1!==n.indexOf("url("+r)}));a.forEach((function(e){return e.value=e.value.replace(new RegExp(T(r),"g"),o)})),A(t,r,o)},F={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},B=function(e){function t(t){var r=this;void 0===t&&(t={}),e.call(this,n(b,t));var o=i();this._emitter=o,this.node=null;var s=this,a=s.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(F.MOUNT,(function(){return r.updateUrls("#",l)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,c),a.locationChangeAngularEmitter&&x(a.locationChangeEvent),o.on(F.MOUNT,(function(e){a.moveGradientsOutsideSymbol&&k(e)})),o.on(F.SYMBOL_MOUNT,(function(e){a.moveGradientsOutsideSymbol&&k(e.parentNode),(_.isIE()||_.isEdge())&&C(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=_.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,i=t.newUrl;this.updateUrls(n,i)},t.prototype.add=function(t){var n=this,i=e.prototype.add.call(this,t);return this.isMounted&&i&&(t.mount(n.node),this._emitter.emit(F.SYMBOL_MOUNT,t.node)),i},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e;return n.node=i,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(F.SYMBOL_MOUNT,e.node)})),y(i.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(F.MOUNT,i),i},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,i=e._emitter;n.forEach((function(e){return e.destroy()})),i.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e,r=n.render();return this.node=r,t&&i.childNodes[0]?i.insertBefore(r,i.childNodes[0]):i.appendChild(r),this._emitter.emit(F.MOUNT,r),r},t.prototype.render=function(){return m(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return R(this.node,n,S(e)+"#",S(t)+"#"),!0},Object.defineProperties(t.prototype,r),t}(p),W=e((function(e){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,i=n.documentElement.doScroll,r="DOMContentLoaded",o=(i?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(r,e=function(){n.removeEventListener(r,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),V="__SVG_SPRITE_NODE__",z="__SVG_SPRITE__",H=!!window[z];H?N=window[z]:(N=new B({attrs:{id:V,"aria-hidden":"true"}}),window[z]=N);var U=function(){var e=document.getElementById(V);e?N.attach(e):N.mount(document.body,!0)};document.body?U():W(U);var q=N;return q}))}).call(this,n("c8ba"))},"21a6":function(e,t,n){(function(n){var i,r,o;(function(n,s){r=[],i=s,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){l(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(i){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,t,n){var a=s.URL||s.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):r(l.href)?i(e,t,n):o(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,s){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),n);else if(r(e))i(e,n,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var o="application/octet-stream"===e.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},u.readAsDataURL(e)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});s.saveAs=l.saveAs=l,e.exports=l}))}).call(this,n("c8ba"))},"222a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pieConfig=void 0;var i={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};t.pieConfig=i},2236:function(e,t,n){var i=n("5a43");function r(e){if(Array.isArray(e))return i(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},2266:function(e,t,n){var i=n("0366"),r=n("c65b"),o=n("825a"),s=n("0d51"),a=n("e95a"),l=n("07fa"),c=n("3a9b"),u=n("9a1f"),h=n("35a1"),d=n("2a62"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,b,y,_,w,C,S=n&&n.that,x=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),k=!(!n||!n.IS_ITERATOR),L=!(!n||!n.INTERRUPTED),E=i(t,S),D=function(e){return m&&d(m,"normal",e),new p(!0,e)},I=function(e){return x?(o(e),L?E(e[0],e[1],D):E(e[0],e[1])):L?E(e,D):E(e)};if(O)m=e.iterator;else if(k)m=e;else{if(v=h(e),!v)throw f(s(e)+" is not iterable");if(a(v)){for(b=0,y=l(e);y>b;b++)if(_=I(e[b]),_&&c(g,_))return _;return new p(!1)}m=u(e,v)}w=O?e.next:m.next;while(!(C=r(w,m)).done){try{_=I(C.value)}catch(M){d(m,"throw",M)}if("object"==typeof _&&_&&c(g,_))return _}return new p(!1)}},"22b4":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n("1be7"),r=n("b12f"),o=n("e887"),s=n("6cb7"),a=n("4f85"),l=n("6d8b"),c=n("58c9"),u=n("697e7"),h=[],d={registerPreprocessor:i["u"],registerProcessor:i["v"],registerPostInit:i["s"],registerPostUpdate:i["t"],registerUpdateLifecycle:i["y"],registerAction:i["m"],registerCoordinateSystem:i["n"],registerLayout:i["o"],registerVisual:i["z"],registerTransform:i["x"],registerLoading:i["p"],registerMap:i["r"],registerImpl:c["b"],PRIORITY:i["a"],ComponentModel:s["a"],ComponentView:r["a"],SeriesModel:a["b"],ChartView:o["a"],registerComponentModel:function(e){s["a"].registerClass(e)},registerComponentView:function(e){r["a"].registerClass(e)},registerSeriesModel:function(e){a["b"].registerClass(e)},registerChartView:function(e){o["a"].registerClass(e)},registerSubTypeDefaulter:function(e,t){s["a"].registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(u["registerPainter"])(e,t)}};function f(e){Object(l["isArray"])(e)?Object(l["each"])(e,(function(e){f(e)})):Object(l["indexOf"])(h,e)>=0||(h.push(e),Object(l["isFunction"])(e)&&(e={install:e}),e.install(d))}},"22d1":function(e,t,n){"use strict";var i=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),r=function(){function e(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),o=new r;function s(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),s&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var a=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in a||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in a)&&!("OTransition"in a),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):s(navigator.userAgent,o),t["a"]=o},2306:function(e,t,n){"use strict";n.r(t),n.d(t,"extendShape",(function(){return P})),n.d(t,"extendPath",(function(){return R})),n.d(t,"registerShape",(function(){return F})),n.d(t,"getShapeClass",(function(){return B})),n.d(t,"makePath",(function(){return W})),n.d(t,"makeImage",(function(){return V})),n.d(t,"mergePath",(function(){return H})),n.d(t,"resizePath",(function(){return U})),n.d(t,"subPixelOptimizeLine",(function(){return q})),n.d(t,"subPixelOptimizeRect",(function(){return $})),n.d(t,"subPixelOptimize",(function(){return K})),n.d(t,"getTransform",(function(){return G})),n.d(t,"applyTransform",(function(){return Y})),n.d(t,"transformDirection",(function(){return Z})),n.d(t,"groupTransition",(function(){return J})),n.d(t,"clipPointsByRect",(function(){return ee})),n.d(t,"clipRectByRect",(function(){return te})),n.d(t,"createIcon",(function(){return ne})),n.d(t,"linePolygonIntersect",(function(){return ie})),n.d(t,"lineLineIntersect",(function(){return re})),n.d(t,"setTooltipConfig",(function(){return ae})),n.d(t,"traverseElements",(function(){return ce}));var i=n("342d"),r=n("1687"),o=n("401b"),s=n("cbe5");n.d(t,"Path",(function(){return s["b"]}));var a=n("8582"),l=n("0da8");n.d(t,"Image",(function(){return l["a"]}));var c=n("2dc5");n.d(t,"Group",(function(){return c["a"]}));var u=n("76a5");n.d(t,"Text",(function(){return u["a"]}));var h=n("d9fc");n.d(t,"Circle",(function(){return h["a"]}));var d=n("ae69");n.d(t,"Ellipse",(function(){return d["a"]}));var f=n("4aa2");n.d(t,"Sector",(function(){return f["a"]}));var p=n("4573");n.d(t,"Ring",(function(){return p["a"]}));var g=n("87b1");n.d(t,"Polygon",(function(){return g["a"]}));var m=n("d498");n.d(t,"Polyline",(function(){return m["a"]}));var v=n("c7a2");n.d(t,"Rect",(function(){return v["a"]}));var b=n("cb11");n.d(t,"Line",(function(){return b["a"]}));var y=n("ac0f");n.d(t,"BezierCurve",(function(){return y["a"]}));var _=n("8d32");n.d(t,"Arc",(function(){return _["a"]}));var w=n("d4c6");n.d(t,"CompoundPath",(function(){return w["a"]}));var C=n("48a9");n.d(t,"LinearGradient",(function(){return C["a"]}));var S=n("dded");n.d(t,"RadialGradient",(function(){return S["a"]}));var x=n("9850");n.d(t,"BoundingRect",(function(){return x["a"]}));var O=n("ca80");n.d(t,"OrientedBoundingRect",(function(){return O["a"]}));var k=n("dce8");n.d(t,"Point",(function(){return k["a"]}));var L=n("392f");n.d(t,"IncrementalDisplayable",(function(){return L["a"]}));var E=n("9cf9"),D=n("6d8b"),I=n("861c"),M=n("deca");n.d(t,"updateProps",(function(){return M["h"]})),n.d(t,"initProps",(function(){return M["c"]})),n.d(t,"removeElement",(function(){return M["e"]})),n.d(t,"removeElementWithFadeOut",(function(){return M["f"]})),n.d(t,"isElementRemoved",(function(){return M["d"]}));var T=Math.max,A=Math.min,N={};function P(e){return s["b"].extend(e)}var j=i["c"];function R(e,t){return j(e,t)}function F(e,t){N[e]=t}function B(e){if(N.hasOwnProperty(e))return N[e]}function W(e,t,n,r){var o=i["b"](e,t);return n&&("center"===r&&(n=z(n,o.getBoundingRect())),U(o,n)),o}function V(e,t,n){var i=new l["a"]({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(z(t,r))}}});return i}function z(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var o=e.x+e.width/2,s=e.y+e.height/2;return{x:o-r/2,y:s-n/2,width:r,height:n}}var H=i["d"];function U(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function q(e,t){return E["b"](e,e,{lineWidth:t}),e}function $(e){return E["c"](e.shape,e.shape,e.style),e}var K=E["a"];function G(e,t){var n=r["identity"]([]);while(e&&e!==t)r["mul"](n,e.getLocalTransform(),n),e=e.parent;return n}function Y(e,t,n){return t&&!Object(D["isArrayLike"])(t)&&(t=a["c"].getLocalTransform(t)),n&&(t=r["invert"]([],t)),o["applyTransform"]([],e,t)}function Z(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Y(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function X(e){return!e.isGroup}function Q(e){return null!=e.shape}function J(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(X(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Object(M["h"])(e,r,n,Object(I["a"])(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){X(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Q(e)&&(t.shape=Object(D["extend"])({},e.shape)),t}}function ee(e,t){return Object(D["map"])(e,(function(e){var n=e[0];n=T(n,t.x),n=A(n,t.x+t.width);var i=e[1];return i=T(i,t.y),i=A(i,t.y+t.height),[n,i]}))}function te(e,t){var n=T(e.x,t.x),i=A(e.x+e.width,t.x+t.width),r=T(e.y,t.y),o=A(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function ne(e,t,n){var i=Object(D["extend"])({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),Object(D["defaults"])(r,n),new l["a"](i)):W(e.replace("path://",""),i,n,"center")}function ie(e,t,n,i,r){for(var o=0,s=r[r.length-1];o1)return!1;var m=oe(f,p,u,h)/d;return!(m<0||m>1)}function oe(e,t,n,i){return e*i-n*t}function se(e){return e<=1e-6&&e>=-1e-6}function ae(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=Object(D["isString"])(t)?{formatter:t}:t,o=n.mainType,s=n.componentIndex,a={componentType:o,name:i,$vars:["name"]};a[o+"Index"]=s;var l=e.formatterParamsExtra;l&&Object(D["each"])(Object(D["keys"])(l),(function(e){Object(D["hasOwn"])(a,e)||(a[e]=l[e],a.$vars.push(e))}));var c=Object(I["a"])(e.el);c.componentMainType=o,c.componentIndex=s,c.tooltipConfig={name:i,option:Object(D["defaults"])({content:i,encodeHTMLContent:!0,formatterParams:a},r)}}function le(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function ce(e,t){if(e)if(Object(D["isArray"])(e))for(var n=0;n0&&o&&C(-h/s,0,s);var m,v,b=e[0],y=e[s-1];return _(),m<0&&S(-m,.8),v<0&&S(v,.8),_(),w(m,v,1),w(v,m,-1),_(),m<0&&x(-m),v<0&&x(v),c}function _(){m=b.rect[t]-i,v=r-y.rect[t]-y.rect[n]}function w(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){C(i*n,0,s);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function C(n,i,r){0!==n&&(c=!0);for(var o=i;o0)for(l=0;l0;l--){d=o[l-1]*h;C(-d,l,s)}}}function x(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(s-1)),i=0;i0?C(n,0,i+1):C(-n,s-i-1,s),e-=n,e<=0)return}}function a(e,t,n,i){return s(e,"x","width",t,n,i)}function l(e,t,n,i){return s(e,"y","height",t,n,i)}function c(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new r["a"](0,0,0,0);function o(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var s=0;s=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};let g=class extends r["a"]{constructor(e,t,n,r){super(),this._modelService=t,this._themeService=n,this._configurationService=r,this._editor=e,this._tokenizeViewport=new i["e"](()=>this._tokenizeViewportNow(),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange(()=>{this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModelContent(e=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(s["k"].onDidChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(h["b"])&&(this._cancelAll(),this._tokenizeViewport.schedule())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;tthis._requestRange(e,i,t,n)))}_requestRange(e,t,n,r){const o=e.getVersionId(),s=Object(i["h"])(i=>Promise.resolve(n.provideDocumentRangeSemanticTokens(e,t,i)));return s.then(n=>{n&&!e.isDisposed()&&e.getVersionId()===o&&e.setPartialSemanticTokens(t,Object(l["b"])(n,r,e.getLanguageIdentifier()))}).then(()=>this._removeOutstandingRequest(s),()=>this._removeOutstandingRequest(s)),s}};g.ID="editor.contrib.viewportSemanticTokens",g=f([p(1,a["a"]),p(2,c["b"]),p(3,u["a"])],g),Object(o["l"])(g.ID,g)},"23f2":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e("chunk-2d221a34").then(n.bind(null,"cacc"))}})},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o=n("387f"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function c(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw o(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(s)})),e.exports=u}).call(this,n("4362"))},2500:function(e,t,n){"use strict";var i=n("a29f"),r=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",h=function(e,t){var n={__proto__:null},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;h=h.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var d,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=h.split(t.delimiter,f),g=-1,m=t.charset;if(t.charsetSentinel)for(d=0;d-1&&(b=o(b)?[b]:b);var C=r.call(n,v);C&&"combine"===t.duplicates?n[v]=i.combine(n[v],b):C&&"last"!==t.duplicates||(n[v]=b)}return n},d=function(e,t,n,i){for(var r=i?t:l(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,h=parseInt(u,10);n.parseArrays||""!==u?!isNaN(h)&&a!==u&&String(h)===u&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=r):"__proto__"!==u&&(s[u]=r):s={0:r}}r=s}return r},f=function(e,t,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,u=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}var h=0;while(n.depth>0&&null!==(l=a.exec(o))&&h0&&t>=1;e>0&&this._logService.getLevel()===r["c"].Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),a.push("not-in-legend"));const i=this._themeService.getColorTheme().getTokenStyleMetadata(o,a,n.language);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){const e=(i.italic?1:0)<<11;s|=1|e}if("undefined"!==typeof i.bold){const e=(i.bold?2:0)<<11;s|=2|e}if("undefined"!==typeof i.underline){const e=(i.underline?4:0)<<11;s|=4|e}if(i.foreground){const e=i.foreground<<14;s|=8|e}0===s&&(s=2147483647)}}else this._logService.getLevel()===r["c"].Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),s=2147483647,o="not-in-legend";this._hashTable.add(e,t,n.id,s),this._logService.getLevel()===r["c"].Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${o}) / ${t} (${a.join(" ")}): foreground ${i["E"].getForeground(s)}, fontStyle ${i["E"].getFontStyle(s).toString(2)}`)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}}function a(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),a=[];let l=0,c=1,u=0;while(le&&0===i[5*t])t--;if(t-1===e){let e=h;while(e+1a&&(t.warnOverlappingSemanticTokens(s,a+1),m=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=c._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+11&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=(0,h.initNeedSeries)(r,c.lineConfig,"line"),o=v(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"lineArea",getGraphConfig:C,getStartGraphConfig:L,beforeUpdate:E,beforeChange:D}),(0,l.doUpdate)({chart:e,series:o,key:"line",getGraphConfig:I,getStartGraphConfig:N,beforeUpdate:E,beforeChange:D}),(0,l.doUpdate)({chart:e,series:o,key:"linePoint",getGraphConfig:P,getStartGraphConfig:F}),(0,l.doUpdate)({chart:e,series:o,key:"lineLabel",getGraphConfig:B})}function v(e,t){var n=t.axisData;return e.map((function(t){var i=(0,h.mergeSameStackData)(t,e);i=b(t,i);var r=y(t,n),o=_(i,r),s=w(r);return f(f({},t),{},{linePosition:o.filter((function(e){return e})),lineFillBottomPos:s})}))}function b(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null}))}function y(e,t){var n=e.xAxisIndex,i=e.yAxisIndex,r=t.find((function(e){var t=e.axis,i=e.index;return"x"===t&&i===n})),o=t.find((function(e){var t=e.axis,n=e.index;return"y"===t&&n===i}));return[r,o]}function _(e,t){var n=t.findIndex((function(e){var t=e.data;return"value"===t})),i=t[n],r=t[1-n],o=i.linePosition,s=i.axis,a=r.tickPosition,l=a.length,c="x"===s?0:1,u=o[0][c],h=o[1][c],d=h-u,f=i.maxValue,p=i.minValue,g=f-p,m=new Array(l).fill(0).map((function(t,n){var i=e[n];if("number"!==typeof i)return null;var r=(i-p)/g;return 0===g&&(r=0),r*d+u}));return m.map((function(e,t){if(t>=l||"number"!==typeof e)return null;var n=[e,a[t][1-c]];return 0===c||n.reverse(),n}))}function w(e){var t=e.find((function(e){var t=e.data;return"value"===t})),n=t.axis,i=t.linePosition,r=t.minValue,o=t.maxValue,s="x"===n?0:1,a=i[0][s];if(r<0&&o>0){var l=o-r,c=Math.abs(i[0][s]-i[1][s]),u=Math.abs(r)/l*c;"y"===n&&(u*=-1),a+=u}return{changeIndex:s,changeValue:a}}function C(e){var t=e.animationCurve,n=e.animationFrame,i=e.lineFillBottomPos,r=e.rLevel;return[{name:M(e),index:r,animationCurve:t,animationFrame:n,visible:e.lineArea.show,lineFillBottomPos:i,shape:S(e),style:x(e),drawed:k}]}function S(e){var t=e.linePosition;return{points:t}}function x(e){var t=e.lineArea,n=e.color,i=t.gradient,r=t.style,o=[r.fill||n],s=(0,h.deepMerge)(o,i);1===s.length&&s.push(s[0]);var a=O(e);return r=f(f({},r),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,h.deepMerge)({gradientColor:s,gradientParams:a,gradientType:"linear",gradientWith:"fill"},r)}function O(e){var t=e.lineFillBottomPos,n=e.linePosition,i=t.changeIndex,r=t.changeValue,o=n.map((function(e){return e[i]})),a=Math.max.apply(Math,(0,s["default"])(o)),l=Math.min.apply(Math,(0,s["default"])(o)),c=a;return 1===i&&(c=l),1===i?[0,c,0,r]:[c,0,r,0]}function k(e,t){var n=e.lineFillBottomPos,i=e.shape,r=t.ctx,o=i.points,a=n.changeIndex,l=n.changeValue,c=(0,s["default"])(o[o.length-1]),u=(0,s["default"])(o[0]);c[a]=l,u[a]=l,r.lineTo.apply(r,(0,s["default"])(c)),r.lineTo.apply(r,(0,s["default"])(u)),r.closePath(),r.fill()}function L(e){var t=C(e)[0],n=f({},t.style);return n.opacity=0,t.style=n,[t]}function E(e,t,n,i){var r=e[n];if(r){var o=M(t),s=i.chart.render,a=r[0].name,l=o!==a;l&&(r.forEach((function(e){return s.delGraph(e)})),e[n]=null)}}function D(e,t){var n=t.shape.points,i=e.shape.points,r=i.length,o=n.length;if(o>r){var a=i.slice(-1)[0],l=new Array(o-r).fill(0).map((function(e){return(0,s["default"])(a)}));i.push.apply(i,(0,s["default"])(l))}else o1&&void 0!==arguments[1]&&arguments[1];if(!t)return(0,h.getPolylineLength)(e);var n=p(e);return g(n)}function N(e){var t=e.lineStyle.lineDash,n=I(e)[0],i=n.style.lineDash;return i=t?[0,0]:(0,s["default"])(i).reverse(),n.style.lineDash=i,[n]}function P(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=j(e),o=R(e);return r.map((function(r){return{name:"circle",index:i+2,visible:e.linePoint.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function j(e){var t=e.linePosition,n=e.linePoint.radius;return t.map((function(e){var t=(0,o["default"])(e,2),i=t[0],r=t[1];return{r:n,rx:i,ry:r}}))}function R(e){var t=e.color,n=e.linePoint.style;return(0,h.deepMerge)({stroke:t},n)}function F(e){var t=P(e);return t.forEach((function(e){e.shape.r=.1})),t}function B(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=W(e),o=q(e);return r.map((function(r,s){return{name:"text",index:i+3,visible:e.label.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function W(e){var t=U(e),n=V(e);return t.map((function(e,t){return{content:e,position:n[t]}}))}function V(e){var t=e.linePosition,n=e.lineFillBottomPos,i=e.label,r=i.position,o=i.offset,a=n.changeIndex,l=n.changeValue;return t.map((function(e){if("bottom"===r&&(e=(0,s["default"])(e),e[a]=l),"center"===r){var t=(0,s["default"])(e);t[a]=l,e=H(e,t)}return z(e,o)}))}function z(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],s=(0,o["default"])(t,2),a=s[0],l=s[1];return[i+a,r+l]}function H(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],s=(0,o["default"])(t,2),a=s[0],l=s[1];return[(i+a)/2,(r+l)/2]}function U(e){var t=e.data,n=e.label.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!n)return t;var i=(0,r["default"])(n);return"string"===i?t.map((function(e){return n.replace("{value}",e)})):"function"===i?t.map((function(e,t){return n({value:e,index:t})})):t}function q(e){var t=e.color,n=e.label.style;return(0,h.deepMerge)({fill:t},n)}},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("5a34"),s=n("1d80"),a=n("577e"),l=n("ab13"),c=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},2554:function(e,t,n){"use strict";var i=function(e){return r(e)&&!o(e)};function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var s="function"===typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===a}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?b(c(e),e,t):e}function h(e,t,n){return e.concat(t).map((function(e){return u(e,n)}))}function d(e,t){if(!t.customMerge)return b;var n=t.customMerge(e);return"function"===typeof n?n:b}function f(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}function p(e){return Object.keys(e).concat(f(e))}function g(e,t){try{return t in e}catch(n){return!1}}function m(e,t){return g(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function v(e,t,n){var i={};return n.isMergeableObject(e)&&p(e).forEach((function(t){i[t]=u(e[t],n)})),p(t).forEach((function(r){m(e,r)||(g(e,r)&&n.isMergeableObject(t[r])?i[r]=d(r,n)(e[r],t[r],n):i[r]=u(t[r],n))})),i}function b(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||h,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=u;var r=Array.isArray(t),o=Array.isArray(e),s=r===o;return s?r?n.arrayMerge(e,t,n):v(e,t,n):u(t,n)}b.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return b(e,n,t)}),{})};var y=b;e.exports=y},"258a":function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function i(){return n}function*r(e){yield e}function o(e){return e||n}function s(e){return!e||!0===e[Symbol.iterator]().next().done}function a(e){return e[Symbol.iterator]().next().value}function l(e,t){for(const n of e)if(t(n))return!0;return!1}function c(e,t){for(const n of e)if(t(n))return n}function*u(e,t){for(const n of e)t(n)&&(yield n)}function*h(e,t){let n=0;for(const i of e)yield t(i,n++)}function*d(...e){for(const t of e)for(const e of t)yield e}function*f(e){for(const t of e)for(const e of t)yield e}function p(e,t,n){let i=n;for(const r of e)i=t(i,r);return i}function*g(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);te===t)){const i=e[Symbol.iterator](),r=t[Symbol.iterator]();while(1){const e=i.next(),t=r.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}e.empty=i,e.single=r,e.from=o,e.isEmpty=s,e.first=a,e.some=l,e.find=c,e.filter=u,e.map=h,e.concat=d,e.concatNested=f,e.reduce=p,e.slice=g,e.consume=m,e.equals=v}(i||(i={}))},"25f0":function(e,t,n){"use strict";var i=n("5e77").PROPER,r=n("cb2d"),o=n("825a"),s=n("577e"),a=n("d039"),l=n("90d8"),c="toString",u=RegExp.prototype,h=u[c],d=a((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),f=i&&h.name!=c;(d||f)&&r(RegExp.prototype,c,(function(){var e=o(this),t=s(e.source),n=s(l(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),s=n("83ab"),a=o("species");e.exports=function(e){var t=i(e),n=r.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},2652:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e("chunk-2d0d2f22").then(n.bind(null,"5b54"))}})},"26dd":function(e,t,n){"use strict";var i=n("6f4f"),r=n("10db"),o=n("92f0"),s={};n("051b")(s,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:r(1,n)}),o(e,t+" Iterator")}},2714:function(e,t,n){(function(t){var i="function"===typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=i&&r&&"function"===typeof r.get?r.get:null,s=i&&Map.prototype.forEach,a="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"===typeof l.get?l.get:null,u=a&&Set.prototype.forEach,h="function"===typeof WeakMap&&WeakMap.prototype,d=h?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,m=g?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,b=Object.prototype.toString,y=Function.prototype.toString,_=String.prototype.match,w=String.prototype.slice,C=String.prototype.replace,S=String.prototype.toUpperCase,x=String.prototype.toLowerCase,O=RegExp.prototype.test,k=Array.prototype.concat,L=Array.prototype.join,E=Array.prototype.slice,D=Math.floor,I="function"===typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,N="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,j=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||O.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var i=e<0?-D(-e):D(e);if(i!==e){var r=String(i),o=w.call(t,r.length+1);return C.call(r,n,"$&_")+"."+C.call(C.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(t,n,"$&_")}var F=n(6),B=F.custom,W=Z(B)?B:null;function V(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function z(e){return C.call(String(e),/"/g,""")}function H(e){return"[object Array]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function U(e){return"[object Date]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function q(e){return"[object RegExp]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function $(e){return"[object Error]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function K(e){return"[object String]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function G(e){return"[object Number]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function Y(e){return"[object Boolean]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function Z(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}function X(e){if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}e.exports=function e(n,i,r,a){var l=i||{};if(J(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!J(l,"customInspect")||l.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=l.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return ce(n,l);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var f=String(n);return d?R(n,f):f}if("bigint"===typeof n){var p=String(n)+"n";return d?R(n,p):p}var g="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof r&&(r=0),r>=g&&g>0&&"object"===typeof n)return H(n)?"[Array]":"[Object]";var m=ge(l,r);if("undefined"===typeof a)a=[];else if(ne(a,n)>=0)return"[Circular]";function b(t,n,i){if(n&&(a=E.call(a),a.push(n)),i){var o={depth:l.depth};return J(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,r+1,a)}return e(t,l,r+1,a)}if("function"===typeof n&&!q(n)){var y=te(n),_=ve(n,b);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(_.length>0?" { "+L.call(_,", ")+" }":"")}if(Z(n)){var S=A?C.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(n);return"object"!==typeof n||A?S:he(S)}if(le(n)){for(var O="<"+x.call(String(n.nodeName)),D=n.attributes||[],M=0;M",O}if(H(n)){if(0===n.length)return"[]";var B=ve(n,b);return m&&!pe(B)?"["+me(B,m)+"]":"[ "+L.call(B,", ")+" ]"}if($(n)){var Q=ve(n,b);return"cause"in Error.prototype||!("cause"in n)||P.call(n,"cause")?0===Q.length?"["+String(n)+"]":"{ ["+String(n)+"] "+L.call(Q,", ")+" }":"{ ["+String(n)+"] "+L.call(k.call("[cause]: "+b(n.cause),Q),", ")+" }"}if("object"===typeof n&&h){if(W&&"function"===typeof n[W]&&F)return F(n,{depth:g-r});if("symbol"!==h&&"function"===typeof n.inspect)return n.inspect()}if(ie(n)){var ue=[];return s&&s.call(n,(function(e,t){ue.push(b(t,n,!0)+" => "+b(e,n))})),fe("Map",o.call(n),ue,m)}if(se(n)){var be=[];return u&&u.call(n,(function(e){be.push(b(e,n))})),fe("Set",c.call(n),be,m)}if(re(n))return de("WeakMap");if(ae(n))return de("WeakSet");if(oe(n))return de("WeakRef");if(G(n))return he(b(Number(n)));if(X(n))return he(b(I.call(n)));if(Y(n))return he(v.call(n));if(K(n))return he(b(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&n===globalThis||"undefined"!==typeof t&&n===t)return"{ [object globalThis] }";if(!U(n)&&!q(n)){var ye=ve(n,b),_e=j?j(n)===Object.prototype:n instanceof Object||n.constructor===Object,we=n instanceof Object?"":"null prototype",Ce=!_e&&N&&Object(n)===n&&N in n?w.call(ee(n),8,-1):we?"Object":"",Se=_e||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",xe=Se+(Ce||we?"["+L.call(k.call([],Ce||[],we||[]),": ")+"] ":"");return 0===ye.length?xe+"{}":m?xe+"{"+me(ye,m)+"}":xe+"{ "+L.call(ye,", ")+" }"}return String(n)};var Q=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return Q.call(e,t)}function ee(e){return b.call(e)}function te(e){if(e.name)return e.name;var t=_.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,i=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return ce(w.call(e,0,t.maxStringLength),t)+i}var r=C.call(C.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ue);return V(r,"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":"")+S.call(t.toString(16))}function he(e){return"Object("+e+")"}function de(e){return e+" { ? }"}function fe(e,t,n,i){var r=i?me(n,i):L.call(n,", ");return e+" ("+t+") {"+r+"}"}function pe(e){for(var t=0;t=0)return!1;return!0}function ge(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=L.call(Array(e.indent+1)," ")}return{base:n,prev:L.call(Array(t+1),n)}}function me(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+L.call(e,","+n)+"\n"+t.prev}function ve(e,t){var n=H(e),i=[];if(n){i.length=e.length;for(var r=0;r=0||o&&i["indexOf"](o,l)<0)){var c=n.getShallow(l,t);null!=c&&(s[e[a][0]]=c)}}return s}}},2837:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(i||(i={}));class r{constructor(e){if(this._standardAutoClosingPairConditionalBrand=void 0,this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t0){e=new Array(arguments.length-2);for(var t=0;tc&&(c=f)}a[0]=l,a[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t1?arguments[1]:void 0,t.length)),i=a(e);return d?d(t,i,n):f(t,n,n+i.length)===i}})},"2cd0":function(e,t,n){"use strict";n("33f9"),n("09d1"),n("db7a"),n("38e9"),n("962f"),n("d1c2"),n("91d3"),n("0292"),n("8eb6"),n("82a1"),n("a771"),n("13e8"),n("f41d"),n("f5ba"),n("4af6"),n("a8f5"),n("9d48"),n("23f2"),n("2dec"),n("d282"),n("f9ad"),n("77db"),n("8457"),n("cd01"),n("93b9"),n("7257"),n("daaa"),n("0ef9"),n("16f5"),n("38f6"),n("66f1"),n("1aa7"),n("2e5e"),n("4058"),n("6640"),n("fdc0"),n("c583"),n("8d5c"),n("ea53"),n("abca"),n("b12b"),n("a0a2"),n("1fa1"),n("cb70"),n("2652"),n("8f6a"),n("c286"),n("88b6"),n("4da7"),n("32cc"),n("6a38"),n("4220"),n("a48d"),n("c8aa"),n("8a3f"),n("5d08"),n("19bd"),n("1bd1"),n("c663"),n("73d3"),n("333a"),n("199a"),n("d65c"),n("e8cb"),n("c3d4"),n("b9f8"),n("2d19"),n("d2ce"),n("0542"),n("9f5f"),n("10eb"),n("9eb0"),n("0447"),n("1389")},"2cf4":function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c}));var i=n("22d1"),r=1;i["a"].hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=r,s=.4,a="#333",l="#ccc",c="#eee"},"2cf49":function(e,t,n){var i,r,o,s,a=n("da84"),l=n("2ba4"),c=n("0366"),u=n("1626"),h=n("1a2d"),d=n("d039"),f=n("1be4"),p=n("f36a"),g=n("cc12"),m=n("d6d6"),v=n("1cdc"),b=n("605d"),y=a.setImmediate,_=a.clearImmediate,w=a.process,C=a.Dispatch,S=a.Function,x=a.MessageChannel,O=a.String,k=0,L={},E="onreadystatechange";try{i=a.location}catch(A){}var D=function(e){if(h(L,e)){var t=L[e];delete L[e],t()}},I=function(e){return function(){D(e)}},M=function(e){D(e.data)},T=function(e){a.postMessage(O(e),i.protocol+"//"+i.host)};y&&_||(y=function(e){m(arguments.length,1);var t=u(e)?e:S(e),n=p(arguments,1);return L[++k]=function(){l(t,void 0,n)},r(k),k},_=function(e){delete L[e]},b?r=function(e){w.nextTick(I(e))}:C&&C.now?r=function(e){C.now(I(e))}:x&&!v?(o=new x,s=o.port2,o.port1.onmessage=M,r=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!d(T)?(r=T,a.addEventListener("message",M,!1)):r=E in g("script")?function(e){f.appendChild(g("script"))[E]=function(){f.removeChild(this),D(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:y,clear:_}},"2d00":function(e,t,n){var i,r,o=n("da84"),s=n("342f"),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},"2d19":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e("chunk-2d21dcd2").then(n.bind(null,"d39f"))}})},"2d47":function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteWordPartLeft",(function(){return c})),n.d(t,"DeleteWordPartRight",(function(){return u})),n.d(t,"WordPartLeftCommand",(function(){return h})),n.d(t,"CursorWordPartLeft",(function(){return d})),n.d(t,"CursorWordPartLeftSelect",(function(){return f})),n.d(t,"WordPartRightCommand",(function(){return p})),n.d(t,"CursorWordPartRight",(function(){return g})),n.d(t,"CursorWordPartRightSelect",(function(){return m}));var i=n("b2cc"),r=n("d48d"),o=n("6a89"),s=n("c101"),a=n("b3b2"),l=n("9e74");class c extends a["DeleteWordCommand"]{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){let n=r["b"].deleteWordPartLeft(e);return n||new o["a"](1,1,1,1)}}class u extends a["DeleteWordCommand"]{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let n=r["b"].deleteWordPartRight(e);if(n)return n;const i=e.model.getLineCount(),s=e.model.getLineMaxColumn(i);return new o["a"](i,s,i,s)}}class h extends a["MoveWordCommand"]{_move(e,t,n,i){return r["b"].moveWordPartLeft(e,t,n)}}class d extends h{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:783},weight:100}})}}l["a"].registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class f extends h{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}l["a"].registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class p extends a["MoveWordCommand"]{_move(e,t,n,i){return r["b"].moveWordPartRight(e,t,n)}}class g extends p{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class m extends p{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}Object(i["k"])(new c),Object(i["k"])(new u),Object(i["k"])(new d),Object(i["k"])(new f),Object(i["k"])(new g),Object(i["k"])(new m)},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,o){var s=new Error(e);return i(s,t,n,r,o)}},"2db9":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=y,t.getBezierCurveLength=_,t["default"]=void 0;var r=i(n("278c")),o=i(n("448a")),s=Math.sqrt,a=Math.pow,l=Math.ceil,c=Math.abs,u=50;function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.length-1,i=e[0],r=e[n][2],s=e.slice(1),a=s.map((function(e,t){var n=0===t?i:s[t-1][2];return d.apply(void 0,[n].concat((0,o["default"])(e)))})),l=new Array(n).fill(u),c=m(a,l),h=b(c,a,s,t);return h.segmentPoints.push(r),h}function d(e,t,n,i){return function(r){var o=1-r,s=a(o,3),l=a(o,2),c=a(r,3),u=a(r,2);return[e[0]*s+3*t[0]*r*l+3*n[0]*u*o+i[0]*c,e[1]*s+3*t[1]*r*l+3*n[1]*u*o+i[1]*c]}}function f(e,t){var n=(0,r["default"])(e,2),i=n[0],o=n[1],l=(0,r["default"])(t,2),c=l[0],u=l[1];return s(a(i-c,2)+a(o-u,2))}function p(e){return e.reduce((function(e,t){return e+t}),0)}function g(e){return e.map((function(e,t){return new Array(e.length-1).fill(0).map((function(t,n){return f(e[n],e[n+1])}))}))}function m(e,t){return e.map((function(e,n){var i=1/t[n];return new Array(t[n]).fill("").map((function(t,n){return e(n*i)}))}))}function v(e,t){return e.map((function(e){return e.map((function(e){return c(e-t)}))})).map((function(e){return p(e)})).reduce((function(e,t){return e+t}),0)}function b(e,t,n,i){var r=4,o=1,s=function(){var s=e.reduce((function(e,t){return e+t.length}),0);e.forEach((function(e,t){return e.push(n[t][2])}));var a=g(e),c=a.reduce((function(e,t){return e+t.length}),0),u=a.map((function(e){return p(e)})),h=p(u),d=h/c,f=v(a,d);if(f<=i)return"break";s=l(d/i*s*1.1);var b=u.map((function(e){return l(e/h*s)}));e=m(t,b),s=e.reduce((function(e,t){return e+t.length}),0);var y=JSON.parse(JSON.stringify(e));y.forEach((function(e,t){return e.push(n[t][2])})),a=g(y),c=a.reduce((function(e,t){return e+t.length}),0),u=a.map((function(e){return p(e)})),h=p(u),d=h/c;var _=1/s/10;t.forEach((function(t,n){for(var i=b[n],o=new Array(i).fill("").map((function(e,t){return t/b[n]})),s=0;s1&&(o[u]=1),o[u]<0&&(o[u]=0),e[n][u]=t(o[u])}})),r*=4,o++};do{var a=s();if("break"===a)break}while(r<=1025);return e=e.reduce((function(e,t){return e.concat(t)}),[]),{segmentPoints:e,cycles:o,rounds:r}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=h(e,t),i=n.segmentPoints;return i}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=h(e,t),i=n.segmentPoints,r=g([i])[0],o=p(r);return o}var w=y;t["default"]=w},"2dc5":function(e,t,n){"use strict";var i=n("9ab4"),r=n("6d8b"),o=n("d5b7"),s=n("9850"),a=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(i["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=r["indexOf"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=r["indexOf"](n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Object(i["a"])(e),t=Object(i["a"])(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;let o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Object(i["a"])(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,o=0,s=0;while(t<=n)if(i=t+(n-t)/2|0,o=this.prefixSum[i],s=o-this.values[i],e=o))break;t=i+1}return new r(i,e-s)}}},"2dec":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e("chunk-2d0e542a").then(n.bind(null,"9470"))}})},"2e4b":function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneCommandsQuickAccessProvider",(function(){return $})),n.d(t,"GotoLineAction",(function(){return K}));var i,r=n("89cd"),o=n("2f1e"),s=n("03d9"),a=n("5717"),l=n("dff7"),c=n("2504"),u=n("a666"),h=n("5fe7"),d=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function f(e){const t=e;return Array.isArray(t.items)}function p(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}(function(e){e[e["NO_ACTION"]=0]="NO_ACTION",e[e["CLOSE_PICKER"]=1]="CLOSE_PICKER",e[e["REFRESH_PICKER"]=2]="REFRESH_PICKER",e[e["REMOVE_ITEM"]=3]="REMOVE_ITEM"})(i||(i={}));class g extends u["a"]{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var n;const r=new u["b"];e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=void 0;const s=r.add(new u["d"]),a=()=>d(this,void 0,void 0,(function*(){const n=s.value=new u["b"];null===o||void 0===o||o.dispose(!0),e.busy=!1,o=new c["b"](t);const i=o.token,r=e.value.substr(this.prefix.length).trim(),a=this._getPicks(r,n,i),l=(t,n)=>{var i;let o,s=void 0;if(f(t)?(o=t.items,s=t.active):o=t,0===o.length){if(n)return!1;r.length>0&&(null===(i=this.options)||void 0===i?void 0:i.noResultsPick)&&(o=[this.options.noResultsPick])}return e.items=o,s&&(e.activeItems=[s]),!0};if(null===a);else if(p(a)){let t=!1,n=!1;yield Promise.all([(()=>d(this,void 0,void 0,(function*(){yield Object(h["n"])(g.FAST_PICKS_RACE_DELAY),i.isCancellationRequested||n||(t=l(a.picks,!0))})))(),(()=>d(this,void 0,void 0,(function*(){e.busy=!0;try{const r=yield a.additionalPicks;if(i.isCancellationRequested)return;let o,s,c=void 0;f(a.picks)?(o=a.picks.items,c=a.picks.active):o=a.picks;let u=void 0;if(f(r)?(s=r.items,u=r.active):s=r,s.length>0||!t){let t=void 0;if(!c&&!u){const n=e.activeItems[0];n&&-1!==o.indexOf(n)&&(t=n)}l({items:[...o,...s],active:c||u||t})}}finally{i.isCancellationRequested||(e.busy=!1),n=!0}})))()])}else if(a instanceof Promise){e.busy=!0;try{const t=yield a;if(i.isCancellationRequested)return;l(t)}finally{i.isCancellationRequested||(e.busy=!1)}}else l(a)}));return r.add(e.onDidChangeValue(()=>a())),a(),r.add(e.onDidAccept(t=>{const[n]=e.selectedItems;"function"===typeof(null===n||void 0===n?void 0:n.accept)&&(t.inBackground||e.hide(),n.accept(e.keyMods,t))})),r.add(e.onDidTriggerItemButton(({button:n,item:r})=>d(this,void 0,void 0,(function*(){var o,s;if("function"===typeof r.trigger){const l=null!==(s=null===(o=r.buttons)||void 0===o?void 0:o.indexOf(n))&&void 0!==s?s:-1;if(l>=0){const n=r.trigger(l,e.keyMods),o="number"===typeof n?n:yield n;if(t.isCancellationRequested)return;switch(o){case i.NO_ACTION:break;case i.CLOSE_PICKER:e.hide();break;case i.REFRESH_PICKER:a();break;case i.REMOVE_ITEM:const t=e.items.indexOf(r);if(-1!==t){const n=e.items.slice();n.splice(t,1),e.items=n}break}}}})))),r}}g.FAST_PICKS_RACE_DELAY=200;var m=n("7e93"),v=n("ef8e"),b=n("4035"),y=n("03e8"),_=n("fbba"),w=n("0a0f"),C=n("6dec"),S=n("9e74"),x=n("5d75"),O=n("fdcc"),k=n("eafb"),L=n("4b76"),E=n("e8e3");function D(e,t){return t&&(e.stack||e.stacktrace)?l["a"]("stackTrace.format","{0}: {1}",M(e),I(e.stack)||I(e.stacktrace)):M(e)}function I(e){return Array.isArray(e)?e.join("\n"):e}function M(e){return"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?l["a"]("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||l["a"]("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function T(e=null,t=!1){if(!e)return l["a"]("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const n=E["e"](e),i=T(n[0],t);return n.length>1?l["a"]("error.moreErrors","{0} ({1} errors in total)",i,n.length):i}if(v["k"](e))return e;if(e.detail){const n=e.detail;if(n.error)return D(n.error,t);if(n.exception)return D(n.exception,t)}return e.stack?D(e,t):e.message?e.message:l["a"]("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var A=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},N=function(e,t){return function(n,i){t(n,i,e)}},P=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let j=class e extends g{constructor(t,n,i,r,o,s){super(e.PREFIX,t),this.instantiationService=n,this.keybindingService=i,this.commandService=r,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(R)),this.options=t}_getPicks(t,n,i){return P(this,void 0,void 0,(function*(){const r=yield this.getCommandPicks(n,i);if(i.isCancellationRequested)return[];const o=[];for(const n of r){const i=Object(v["o"])(e.WORD_FILTER(t,n.label)),r=n.commandAlias?Object(v["o"])(e.WORD_FILTER(t,n.commandAlias)):void 0;i||r?(n.highlights={label:i,detail:this.options.showAlias?r:void 0},o.push(n)):t===n.commandId&&o.push(n)}const s=new Map;for(const e of o){const t=s.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):s.set(e.label,e)}o.sort((e,t)=>{const n=this.commandsHistory.peek(e.commandId),i=this.commandsHistory.peek(t.commandId);return n&&i?n>i?-1:1:n?-1:i?1:e.label.localeCompare(t.label)});const a=[];let c=!1;for(let e=0;eP(this,void 0,void 0,(function*(){this.commandsHistory.push(t.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:t.commandId,from:"quick open"});try{yield this.commandService.executeCommand(t.commandId)}catch(e){Object(O["d"])(e)||this.dialogService.show(L["a"].Error,Object(l["a"])("canNotRun","Command '{0}' resulted in an error ({1})",t.label,T(e)))}}))}))}return a}))}};j.PREFIX=">",j.WORD_FILTER=Object(m["j"])(m["h"],m["i"],m["f"]),j=A([N(1,w["a"]),N(2,C["a"]),N(3,S["b"]),N(4,x["a"]),N(5,k["a"])],j);let R=class e extends u["a"]{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=e.getConfiguredCommandHistoryLength(this.configurationService),e.cache&&e.cache.limit!==this.configuredCommandsHistoryLength&&(e.cache.limit=this.configuredCommandsHistoryLength,e.saveState(this.storageService))}load(){const t=this.storageService.get(e.PREF_KEY_CACHE,0);let n;if(t)try{n=JSON.parse(t)}catch(r){}const i=e.cache=new b["a"](this.configuredCommandsHistoryLength,1);if(n){let e;e=n.usesLRU?n.entries:n.entries.sort((e,t)=>e.value-t.value),e.forEach(e=>i.set(e.key,e.value))}e.counter=this.storageService.getNumber(e.PREF_KEY_COUNTER,0,e.counter)}push(t){e.cache&&(e.cache.set(t,e.counter++),e.saveState(this.storageService))}peek(t){var n;return null===(n=e.cache)||void 0===n?void 0:n.peek(t)}static saveState(t){if(!e.cache)return;const n={usesLRU:!0,entries:[]};e.cache.forEach((e,t)=>n.entries.push({key:t,value:e})),t.store(e.PREF_KEY_CACHE,JSON.stringify(n),0,0),t.store(e.PREF_KEY_COUNTER,e.counter,0,0)}static getConfiguredCommandHistoryLength(t){var n,i;const r=t.getValue(),o=null===(i=null===(n=r.workbench)||void 0===n?void 0:n.commandPalette)||void 0===i?void 0:i.history;return"number"===typeof o?o:e.DEFAULT_COMMANDS_HISTORY_LENGTH}};R.DEFAULT_COMMANDS_HISTORY_LENGTH=50,R.PREF_KEY_CACHE="commandPalette.mru.cache",R.PREF_KEY_COUNTER="commandPalette.mru.counter",R.counter=1,R=A([N(0,y["a"]),N(1,_["a"])],R);var F=n("1097");class B extends j{constructor(e,t,n,i,r,o){super(e,t,n,i,r,o)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const n of e.getSupportedActions())t.push({commandId:n.id,commandAlias:n.alias,label:Object(F["e"])(n.label)||n.id});return t}}var W=n("b2cc"),V=n("c101"),z=n("66bd"),H=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},U=function(e,t){return function(n,i){t(n,i,e)}},q=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let $=class extends B{constructor(e,t,n,i,r,o){super({showAlias:!1},e,n,i,r,o),this.codeEditorService=t}get activeTextEditorControl(){return Object(v["o"])(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return q(this,void 0,void 0,(function*(){return this.getCodeEditorCommandPicks()}))}};$=H([U(0,w["a"]),U(1,a["a"]),U(2,C["a"]),U(3,S["b"]),U(4,x["a"]),U(5,k["a"])],$),r["a"].as(o["b"].Quickaccess).registerQuickAccessProvider({ctor:$,prefix:$.PREFIX,helpEntries:[{description:s["d"].quickCommandHelp,needsEditor:!0}]});class K extends W["b"]{constructor(){super({id:"editor.action.quickCommand",label:s["d"].quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:V["a"].focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(z["a"]).quickAccess.show($.PREFIX)}}Object(W["j"])(K)},"2e5d":function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return _})),n.d(t,"g",(function(){return w}));var i=n("fdcc"),r=n("3742"),o=n("7061"),s=n("6a89"),a=n("8025"),l=n("b57f"),c=n("70cb");const u=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class f{constructor(e,t,n){this._cursorMoveConfigurationBrand=void 0,this._languageIdentifier=e;const i=n.options,r=i.get(129);this.readOnly=i.get(79),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=i.get(103),this.lineHeight=i.get(57),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=i.get(114),this.wordSeparators=i.get(115),this.emptySelectionClipboard=i.get(30),this.copyWithSyntaxHighlighting=i.get(19),this.multiCursorMergeOverlapping=i.get(67),this.multiCursorPaste=i.get(69),this.autoClosingBrackets=i.get(5),this.autoClosingQuotes=i.get(8),this.autoClosingDelete=i.get(6),this.autoClosingOvertype=i.get(7),this.autoSurround=i.get(11),this.autoIndent=i.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:f._getShouldAutoClose(e,this.autoClosingQuotes),bracket:f._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=c["a"].getAutoClosingPairs(e.id);let o=f._getSurroundingPairs(e);if(o)for(const s of o)this.surroundingPairs[s.open]=s.close}static shouldRecreate(e){return e.hasChanged(129)||e.hasChanged(115)||e.hasChanged(30)||e.hasChanged(67)||e.hasChanged(69)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(114)||e.hasChanged(57)||e.hasChanged(79)}get electricChars(){if(!this._electricChars){this._electricChars={};let e=f._getElectricCharacters(this._languageIdentifier);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return l["b"].normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return c["a"].getElectricCharacters(e.id)}catch(t){return Object(i["e"])(t),null}}static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return d;case"languageDefined":return f._getLanguageDefinedShouldAutoClose(e);case"always":return u;case"never":return h}}static _getLanguageDefinedShouldAutoClose(e){try{const t=c["a"].getAutoCloseBeforeSet(e.id);return e=>-1!==t.indexOf(e)}catch(t){return Object(i["e"])(t),h}}static _getSurroundingPairs(e){try{return c["a"].getSurroundingPairs(e.id)}catch(t){return Object(i["e"])(t),null}}}class p{constructor(e,t,n,i){this._singleCursorStateBrand=void 0,this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=n,this.leftoverVisibleColumns=i,this.selection=p._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,n,i){return e?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new o["a"](t,n),i):new p(new s["a"](t,n,t,n),i,new o["a"](t,n),i)}static _computeSelection(e,t){let n,i,r,o;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,r=t.lineNumber,o=t.column):(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column),new a["a"](n,i,r,o)}}class g{constructor(e,t,n,i){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=n,this.cursorConfig=i}}class m{constructor(e){this.modelState=e,this.viewState=null}}class v{constructor(e){this.modelState=null,this.viewState=e}}class b{constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new m(e)}static fromViewState(e){return new v(e)}static fromModelSelection(e){const t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,r=e.positionColumn,a=new p(new s["a"](t,n,t,n),0,new o["a"](i,r),0);return b.fromModelState(a)}static fromModelSelections(e){let t=[];for(let n=0,i=e.length;n=65536?2:1,9===t)s=_.nextRenderTabStop(s,n);else{let n=r["x"](t);while(a=65536?2:1,n=i}r["E"](t)||r["C"](t)?s+=2:s+=1}}return s}static visibleColumnsByColumns(e,t){const n=e.length;let i=new Array;i.push(-1);let o=0,s=0;while(s=65536?2:1,i.push(o),a>=65536&&i.push(o),9===a)o=_.nextRenderTabStop(o,t);else{let t=r["x"](a);while(s=65536?2:1,i.push(o),a>=65536&&i.push(o),t=c}r["E"](a)||r["C"](a)?o+=2:o+=1}}return i.push(o),i}static visibleColumnFromColumn2(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length;let o=0,s=1,a=0;while(a=65536?2:1,9===l)c=_.nextRenderTabStop(o,n);else{let t=r["x"](l);while(a=65536?2:1,t=o}c=r["E"](l)||r["C"](l)?o+2:o+1}const u=a+1;if(c>=t){const e=t-o,n=c-t;return ns?s:r}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function w(e){return"'"===e||'"'===e||"`"===e}},"2e5e":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return n.e("chunk-2d0c4a95").then(n.bind(null,"3c7f"))}})},"2e66":function(e,t,n){"use strict";n.r(t),n.d(t,"GhostTextController",(function(){return Ce})),n.d(t,"ActiveGhostTextController",(function(){return xe})),n.d(t,"commitInlineSuggestionAction",(function(){return ke})),n.d(t,"ShowNextInlineSuggestionAction",(function(){return Le})),n.d(t,"ShowPreviousInlineSuggestionAction",(function(){return Ee})),n.d(t,"TriggerInlineSuggestionAction",(function(){return De}));var i,r=n("a666"),o=n("b2cc"),s=n("c101"),a=(n("aa80"),n("11f7")),l=n("6a89"),c=n("5717"),u=n("3742"),h=n("6da2"),d=n("fd49"),f=n("7ab3"),p=n("1ddc"),g=n("e1b5"),m=n("7061"),v=n("b7d0"),b=n("918c"),y=n("ceb8"),_=n("2e5d"),w=n("7416"),C=n("4fc3"),S=n("0a0f"),x=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},O=function(e,t){return function(n,i){t(n,i,e)}};const k=null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy("editorGhostText",{createHTML:e=>e});let L=class extends r["a"]{constructor(e,t,n){super(),this.editor=e,this.model=t,this.instantiationService=n,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(E,this.editor)),this.additionalLinesWidget=this._register(new I(this.editor)),this.viewMoreContentWidget=void 0,this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(27)||e.hasChanged(104)||e.hasChanged(87)||e.hasChanged(81)||e.hasChanged(42)||e.hasChanged(41)||e.hasChanged(57))&&this.update()})),this._register(Object(r["i"])(()=>{var e;this.disposed=!0,this.update(),null===(e=this.viewMoreContentWidget)||void 0===e||e.dispose(),this.viewMoreContentWidget=void 0})),this._register(t.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e;const t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed)return this.partsWidget.clear(),void this.additionalLinesWidget.clear();const n=new Array,i=new Array;function r(e,t){if(i.length>0){const n=i[i.length-1];t&&n.decorations.push(new w["a"](n.content.length+1,n.content.length+1+e[0].length,t,0)),n.content+=e[0],e=e.slice(1)}for(const n of e)i.push({content:n,decorations:t?[new w["a"](1,n.length+1,t,0)]:[]})}const o=this.editor.getModel().getLineContent(t.lineNumber);this.editor.getModel().getLineTokens(t.lineNumber);let s=void 0,a=0;for(const l of t.parts){let e=l.lines;void 0===s?(n.push({column:l.column,text:e[0]}),e=e.slice(1)):r([o.substring(a,l.column-1)],void 0),e.length>0&&(r(e,"ghost-text"),void 0===s&&l.column<=o.length&&(s=l.column)),a=l.column-1}void 0!==s&&r([o.substring(a)],void 0),this.partsWidget.setParts(t.lineNumber,n,void 0!==s?{column:s,length:o.length+1-s}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,i,t.additionalReservedLineCount),t.parts.some(e=>e.lines.length<0)?this.viewMoreContentWidget=this.renderViewMoreLines(new m["a"](t.lineNumber,this.editor.getModel().getLineMaxColumn(t.lineNumber)),"",0):(null===(e=this.viewMoreContentWidget)||void 0===e||e.dispose(),this.viewMoreContentWidget=void 0)}renderViewMoreLines(e,t,n){const i=this.editor.getOption(41),o=document.createElement("div");o.className="suggest-preview-additional-widget",p["a"].applyFontInfoSlow(o,i);const s=document.createElement("span");s.className="content-spacer",s.append(t),o.append(s);const l=document.createElement("span");l.className="content-newline suggest-preview-text",l.append("⏎ "),o.append(l);const c=new r["b"],u=document.createElement("div");return u.className="button suggest-preview-text",u.append(`+${n} lines…`),c.add(a["o"](u,"mousedown",e=>{var t;null===(t=this.model)||void 0===t||t.setExpanded(!0),e.preventDefault(),this.editor.focus()})),o.append(u),new N(this.editor,e,o,c)}};L=x([O(2,S["a"])],L);let E=class{constructor(e,t,n,i){this.editor=e,this.codeEditorService=t,this.themeService=n,this.contextKeyService=i,this.decorationIds=[],this.disposableStore=new r["b"]}dispose(){this.clear(),this.disposableStore.dispose()}clear(){this.editor.deltaDecorations(this.decorationIds,[]),this.disposableStore.clear()}setParts(e,t,n){this.disposableStore.clear();const i=this.themeService.getColorTheme(),r=i.getColor(b["r"]);let o=void 0,s=void 0;r&&(o=String(r.rgba.a),s=y["a"].Format.CSS.format(D(r)));const a=i.getColor(b["q"]);let c=void 0;a&&(c="2px dashed "+a);const u=this.editor.getModel();if(!u)return;const{tabSize:h}=u.getOptions(),d=u.getLineContent(e)||"";let f=0,p="";const g=new Array;n&&g.push({range:l["a"].fromPositions(new m["a"](e,n.column),new m["a"](e,n.column+n.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});const v=this.contextKeyService.getContextKeyValue("config.editor.useInjectedText"),_=void 0===v||!!v;this.decorationIds=this.editor.deltaDecorations(this.decorationIds,t.map(t=>{p+=d.substring(f,t.column-1),f=t.column-1;const n=_?t.text:this.renderSingleLineText(t.text,p,h,!1),i=this.disposableStore.add(A(this.codeEditorService,"ghost-text","0-ghost-text-",{after:{contentText:n,opacity:o,color:s,border:c}}));return{range:l["a"].fromPositions(new m["a"](e,t.column)),options:_?{description:"ghost-text",after:{content:n,inlineClassName:"ghost-text-decoration"}}:Object.assign({},i.resolve())}}).concat(g))}renderSingleLineText(e,t,n,i){const r=t+e,o=_["a"].visibleColumnsByColumns(r,n);let s="",a=t.length+1;for(const l of e){if("\t"===l){const e=o[a+1]-o[a];if(i){s+="→";for(let t=1;t{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,n){const i=this.editor.getModel();if(!i)return;const{tabSize:r}=i.getOptions();this.editor.changeViewZones(i=>{this._viewZoneId&&(i.removeZone(this._viewZoneId),this._viewZoneId=void 0);const o=Math.max(t.length,n);if(o>0){const n=document.createElement("div");M(n,r,t,this.editor.getOptions()),this._viewZoneId=i.addZone({afterLineNumber:e,heightInLines:o,domNode:n})}})}}function M(e,t,n,i){const r=i.get(27),o=i.get(104),s="none",a=i.get(81),l=i.get(42),c=i.get(41),m=i.get(57),v=Object(f["a"])(1e4);v.appendASCIIString('
');for(let f=0,p=n.length;f');const p=u["B"](i),b=u["m"](i),y=g["a"].createEmpty(i);Object(h["d"])(new h["c"](c.isMonospace&&!r,c.canUseHalfwidthRightwardsArrow,i,!1,p,b,0,y,e.decorations,t,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,o,s,a,l!==d["e"].OFF,null),v),v.appendASCIIString("
")}v.appendASCIIString(""),p["a"].applyFontInfoSlow(e,c);const b=v.build(),y=k?k.createHTML(b):b;e.innerHTML=y}let T=0;function A(e,t,n,i){const r=n+T++;return e.registerDecorationType(t,r,i),{dispose(){e.removeDecorationType(r)},resolve(){return e.resolveDecorationOptions(r,!0)}}}class N extends r["a"]{constructor(e,t,n,i){super(),this.editor=e,this.position=t,this.domNode=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(i),this._register(Object(r["i"])(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Object(v["f"])((e,t)=>{const n=e.getColor(b["r"]);if(n){const e=String(n.rgba.a),i=y["a"].Format.CSS.format(D(n));t.addRule(`.monaco-editor .ghost-text-decoration { opacity: ${e}; color: ${i}; }`),t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { opacity: ${e}; color: ${i}; }`)}const i=e.getColor(b["q"]);i&&t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 2px dashed ${i}; }`)});var P=n("dff7"),j=n("5fe7"),R=n("2504"),F=n("fdcc"),B=n("308f"),W=n("b707"),V=n("d3f4"),z=n("9e74"),H=n("d585"),U=n("1b0e");class q{constructor(e,t,n=0){this.lineNumber=e,this.parts=t,this.additionalReservedLineCount=n}static equals(e,t){return e===t||!!e&&!!t&&e.equals(t)}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every((t,n)=>t.equals(e.parts[n]))}}class ${constructor(e,t){this.column=e,this.lines=t}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every((t,n)=>t===e.lines[n])}}class K extends r["a"]{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new B["b"],this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(105)&&void 0===this._expanded&&this.onDidChangeEmitter.fire()}))}get expanded(){return void 0===this._expanded||this._expanded}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}var G=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Y=function(e,t){return function(n,i){t(n,i,e)}},Z=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let X=class extends r["a"]{constructor(e,t){super(),this.editor=e,this.commandService=t,this.onDidChangeEmitter=new B["b"],this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new r["d"]),this.active=!1,this._register(t.onDidExecuteCommand(t=>{const n=new Set([o["i"].id,o["g"].id,H["CoreEditingCommands"].Tab.id,H["CoreEditingCommands"].DeleteLeft.id,H["CoreEditingCommands"].DeleteRight.id]);n.has(t.commandId)&&e.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(e=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.session&&!this.session.isValid&&this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var e;return null===(e=this.session)||void 0===e?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}get expanded(){return!!this.session&&this.session.expanded}setExpanded(e){var t;null===(t=this.session)||void 0===t||t.setExpanded(e)}setActive(e){var t;this.active=e,e&&(null===(t=this.session)||void 0===t||t.scheduleAutomaticUpdate())}startSessionIfTriggered(){const e=this.editor.getOption(53);e.enabled&&(this.session&&this.session.isValid||this.trigger())}trigger(){this.completionSession.value||(this.completionSession.value=new Q(this.editor,this.editor.getPosition(),()=>this.active,this.commandService),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()})))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;null===(e=this.session)||void 0===e||e.commitCurrentCompletion()}showNext(){var e;null===(e=this.session)||void 0===e||e.showNextInlineCompletion()}showPrevious(){var e;null===(e=this.session)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return Z(this,void 0,void 0,(function*(){const t=yield null===(e=this.session)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};X=G([Y(1,z["b"])],X);class Q extends K{constructor(e,t,n,i){super(e),this.triggerPosition=t,this.shouldUpdate=n,this.commandService=i,this.minReservedLineCount=0,this.updateOperation=this._register(new r["d"]),this.cache=this._register(new r["d"]),this.updateSoon=this._register(new j["e"](()=>this.update(W["s"].Automatic),50)),this.textModel=this.editor.getModel(),this.currentlySelectedCompletionId=void 0;let o=void 0;this._register(this.onDidChange(()=>{const e=this.currentCompletion;if(e&&e.sourceInlineCompletion!==o){o=e.sourceInlineCompletion;const t=e.sourceProvider;t.handleItemDidShow&&t.handleItemDidShow(e.sourceInlineCompletions,o)}})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.cache.value&&this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeModelContent(e=>{if(this.cache.value){let e=!1;for(const t of this.cache.value.completions){const n=this.textModel.getDecorationRange(t.decorationId);n?t.synchronizedRange.equalsRange(n)||(e=!0,t.synchronizedRange=n):Object(F["e"])(new Error("Decoration has no range"))}e&&this.onDidChangeEmitter.fire()}this.scheduleAutomaticUpdate()})),this._register(W["t"].onDidChange(()=>{this.updateSoon.schedule()})),this.scheduleAutomaticUpdate()}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value)return 0;if(0===this.cache.value.completions.length)return 0;const e=this.cache.value.completions.findIndex(e=>e.semanticId===this.currentlySelectedCompletionId);return-1===e?(this.currentlySelectedCompletionId=void 0,0):e}get currentCachedCompletion(){if(this.cache.value)return this.cache.value.completions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){var e;return Z(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const t=(null===(e=this.cache.value)||void 0===e?void 0:e.completions)||[];if(t.length>0){const e=(this.fixAndGetIndexOfCurrentSelection()+1)%t.length;this.currentlySelectedCompletionId=t[e].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}showPreviousInlineCompletion(){var e;return Z(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const t=(null===(e=this.cache.value)||void 0===e?void 0:e.completions)||[];if(t.length>0){const e=(this.fixAndGetIndexOfCurrentSelection()+t.length-1)%t.length;this.currentlySelectedCompletionId=t[e].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}ensureUpdateWithExplicitContext(){var e;return Z(this,void 0,void 0,(function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===W["s"].Explicit?yield this.updateOperation.value.promise:yield this.update(W["s"].Explicit):(null===(e=this.cache.value)||void 0===e?void 0:e.triggerKind)!==W["s"].Explicit&&(yield this.update(W["s"].Explicit))}))}hasMultipleInlineCompletions(){var e;return Z(this,void 0,void 0,(function*(){return yield this.ensureUpdateWithExplicitContext(),((null===(e=this.cache.value)||void 0===e?void 0:e.completions.length)||0)>1}))}get ghostText(){const e=this.currentCompletion,t=this.editor.getOptions().get(53).mode;return e?ne(e,this.editor.getModel(),t,this.editor.getPosition()):void 0}get currentCompletion(){const e=this.currentCachedCompletion;if(e)return{text:e.inlineCompletion.text,range:e.synchronizedRange,command:e.inlineCompletion.command,sourceProvider:e.inlineCompletion.sourceProvider,sourceInlineCompletions:e.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:e.inlineCompletion.sourceInlineCompletion}}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule()}update(e){return Z(this,void 0,void 0,(function*(){if(!this.shouldUpdate())return;const t=this.editor.getPosition(),n=Object(j["h"])(n=>Z(this,void 0,void 0,(function*(){let i;try{i=yield ae(t,this.editor.getModel(),{triggerKind:e},n)}catch(r){return void Object(F["e"])(r)}n.isCancellationRequested||(this.cache.value=new ee(this.editor,i,()=>this.onDidChangeEmitter.fire(),e),this.onDidChangeEmitter.fire())}))),i=new J(n,e);this.updateOperation.value=i,yield n,this.updateOperation.value===i&&this.updateOperation.clear()}))}takeOwnership(e){this._register(e)}commitCurrentCompletion(){if(!this.ghostText)return;const e=this.currentCompletion;e&&this.commit(e)}commit(e){const t=this.cache.clearAndLeak();this.editor.executeEdits("inlineSuggestion.accept",[V["a"].replaceMove(e.range,e.text)]),e.command?this.commandService.executeCommand(e.command.id,...e.command.arguments||[]).finally(()=>{null===t||void 0===t||t.dispose()}).then(void 0,F["f"]):null===t||void 0===t||t.dispose(),this.onDidChangeEmitter.fire()}}class J{constructor(e,t){this.promise=e,this.triggerKind=t}dispose(){this.promise.cancel()}}class ee extends r["a"]{constructor(e,t,n,i){super(),this.triggerKind=i;const o=e.deltaDecorations([],t.items.map(e=>({range:e.range,options:{description:"inline-completion-tracking-range"}})));this._register(Object(r["i"])(()=>{e.deltaDecorations(o,[])})),this.completions=t.items.map((e,t)=>new te(e,o[t])),this._register(e.onDidChangeModelContent(()=>{let t=!1;const i=e.getModel();for(const e of this.completions){const n=i.getDecorationRange(e.decorationId);n?e.synchronizedRange.equalsRange(n)||(t=!0,e.synchronizedRange=n):Object(F["e"])(new Error("Decoration has no range"))}t&&n()})),this._register(t)}}class te{constructor(e,t){this.inlineCompletion=e,this.decorationId=t,this.semanticId=JSON.stringify({text:this.inlineCompletion.text,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=e.range}}function ne(e,t,n,i){if(e.range.startLineNumber!==e.range.endLineNumber)return;const r=t.getValueInRange(e.range),o=re(r,e.text),s=e.range.startLineNumber,a=new Array;if("prefix"===n){const e=o.filter(e=>0===e.originalLength);if(e.length>1||1===e.length&&e[0].originalStart!==r.length)return}for(const l of o){const o=e.range.startColumn+l.originalStart+l.originalLength;if("subwordSmart"===n&&i&&i.lineNumber===e.range.startLineNumber&&o0){const e=r.substr(l.originalStart,l.originalLength),n=t.getLineFirstNonWhitespaceColumn(s);if(!/^(\t| )*$/.test(e)||!(0===n||o<=n))return}if(0===l.modifiedLength)continue;const c=e.text.substr(l.modifiedStart,l.modifiedLength),h=u["R"](c);a.push(new $(o,h))}return new q(s,a,0)}let ie=void 0;function re(e,t){if((null===ie||void 0===ie?void 0:ie.originalValue)===e&&(null===ie||void 0===ie?void 0:ie.newValue)===t)return null===ie||void 0===ie?void 0:ie.changes;{const n=oe(e,t);return ie={originalValue:e,newValue:t,changes:n},n}}function oe(e,t){function n(e){let t=0;for(let n=0,i=e.length;nt&&(t=i)}return t}const i=Math.max(n(e),n(t));function r(e){if(e<0)throw new Error("unexpected");return i+e+1}function o(e){let t=0,n=0;const i=new Int32Array(e.length);for(let o=0,s=e.length;os},{getElements:()=>a}).ComputeDiff(!1).changes}function se(e,t){const n=t.getWordAtPosition(e),i=t.getLineMaxColumn(e.lineNumber);return n?new l["a"](e.lineNumber,n.startColumn,e.lineNumber,i):l["a"].fromPositions(e,e.with(void 0,i))}function ae(e,t,n,i=R["a"].None){return Z(this,void 0,void 0,(function*(){const r=se(e,t),o=W["t"].all(t),s=yield Promise.all(o.map(r=>Z(this,void 0,void 0,(function*(){const o=yield r.provideInlineCompletions(t,e,n,i);return{completions:o,provider:r,dispose:()=>{o&&r.freeInlineCompletions(o)}}})))),a=new Map;for(const e of s){const t=e.completions;if(t)for(const n of t.items.map(n=>({text:n.text,range:n.range?l["a"].lift(n.range):r,command:n.command,sourceProvider:e.provider,sourceInlineCompletions:t,sourceInlineCompletion:n})))n.range.startLineNumber===n.range.endLineNumber&&a.set(JSON.stringify({text:n.text,range:n.range}),n)}return{items:[...a.values()],dispose:()=>{for(const e of s)e.dispose()}}}))}var le=n("b800"),ce=n("59a4"),ue=n("7a9e");class he extends K{constructor(e){super(e),this.isSuggestWidgetVisible=!1,this.currentGhostText=void 0,this._isActive=!1,this.isShiftKeyPressed=!1,this.minReservedLineCount=0,this.setInactiveDelayed=this._register(new j["e"](()=>{this.isSuggestWidgetVisible||this.isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100));const t=ue["SuggestController"].get(this.editor);if(t){let e=!1;const n=()=>{e||(e=!0,this._register(t.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this._isActive=!0,this.updateFromSuggestion()})),this._register(t.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.minReservedLineCount=0,this.updateFromSuggestion()})),this._register(t.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this._isActive=!0,this.updateFromSuggestion()})))};this._register(B["c"].once(t.model.onDidTrigger)(e=>{n()}))}this.updateFromSuggestion(),this._register(this.editor.onDidChangeCursorPosition(e=>{this.isSuggestionPreviewEnabled()&&this.update()})),this._register(Object(r["i"])(()=>{const e=ue["SuggestController"].get(this.editor);e&&e.stopForceRenderingAbove()})),this._register(e.onKeyDown(e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.updateFromSuggestion())})),this._register(e.onKeyUp(e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.updateFromSuggestion())}))}get isActive(){return this._isActive}setExpanded(e){super.setExpanded(e),this.updateFromSuggestion()}isSuggestionPreviewEnabled(){const e=this.editor.getOption(105);return e.preview}updateFromSuggestion(){const e=ue["SuggestController"].get(this.editor);if(!e)return void this.setCurrentInlineCompletion(void 0);if(!this.isSuggestWidgetVisible)return void this.setCurrentInlineCompletion(void 0);const t=e.widget.value.getFocusedItem();t?this.setCurrentInlineCompletion(de(e,this.editor.getPosition(),t,this.isShiftKeyPressed)):this.setCurrentInlineCompletion(void 0)}setCurrentInlineCompletion(e){this.currentCompletion=e,this.update()}update(){const e=this.currentCompletion,t=this.editor.getOptions().get(105).previewMode;this.setGhostText(e?ne(e,this.editor.getModel(),t,this.editor.getPosition())||new q(e.range.endLineNumber,[],this.minReservedLineCount):void 0)}setGhostText(e){if(q.equals(this.currentGhostText,e))return;this.currentGhostText=e,this.currentGhostText&&this.expanded&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,...this.currentGhostText.parts.map(e=>e.lines.length-1)));const t=ue["SuggestController"].get(this.editor);t&&(this.minReservedLineCount>=1&&this.isSuggestionPreviewEnabled()?t.forceRenderingAbove():t.stopForceRenderingAbove()),this.onDidChangeEmitter.fire()}get ghostText(){return this.isSuggestionPreviewEnabled()?this.currentGhostText:void 0}}function de(e,t,n,i){const r=n.item;if(Array.isArray(r.completion.additionalTextEdits))return{text:"",range:l["a"].fromPositions(t,t)};let{insertText:o}=r.completion;if(4&r.completion.insertTextRules){const n=(new le["c"]).parse(o),i=e.editor.getModel();ce["a"].adjustWhitespace(i,t,n,!0,!0),o=n.toString()}const s=e.getOverwriteInfo(r,i);return{text:o,range:l["a"].fromPositions(t.delta(0,-s.overwriteBefore),t.delta(0,Math.max(s.overwriteAfter,0)))}}function fe(e,t){return{object:e,dispose:()=>null===t||void 0===t?void 0:t.dispose()}}var pe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ge=function(e,t){return function(n,i){t(n,i,e)}},me=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class ve extends r["a"]{constructor(){super(...arguments),this.onDidChangeEmitter=new B["b"],this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new r["d"])}get targetModel(){var e;return null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object}setTargetModel(e){var t;(null===(t=this.currentModelRef.value)||void 0===t?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?fe(e,e.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=null===(t=null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object)||void 0===t?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;null===(t=this.targetModel)||void 0===t||t.setExpanded(e)}get expanded(){return!!this.targetModel&&this.targetModel.expanded}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let be=class extends ve{constructor(e,t){super(),this.editor=e,this.commandService=t,this.suggestWidgetAdapterModel=this._register(new he(this.editor)),this.inlineCompletionsModel=this._register(new X(this.editor,this.commandService)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const n=null===(t=this.activeInlineCompletionsModel)||void 0===t?void 0:t.ghostText;return!!n&&n.parts.some(t=>e.containsPosition(new m["a"](n.lineNumber,t.column)))}triggerInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.trigger()}commitInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.commitCurrentSuggestion()}hideInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.hide()}showNextInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showNext()}showPreviousInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showPrevious()}hasMultipleInlineCompletions(){var e;return me(this,void 0,void 0,(function*(){const t=yield null===(e=this.activeInlineCompletionsModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};be=pe([ge(1,z["b"])],be);var ye=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_e=function(e,t){return function(n,i){t(n,i,e)}},we=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let Ce=class e extends r["a"]{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new r["d"]),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(105)&&this.updateModelController(),e.hasChanged(53)&&this.updateModelController()})),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}updateModelController(){const e=this.editor.getOption(105),t=this.editor.getOption(53);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(xe,this.editor):void 0}shouldShowHoverAt(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,n;return(null===(n=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===n?void 0:n.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}commit(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}hide(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}showNextInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return we(this,void 0,void 0,(function*(){const t=yield null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};Ce.inlineSuggestionVisible=new C["c"]("inlineSuggestionVisible",!1,P["a"]("inlineSuggestionVisible","Whether an inline suggestion is visible")),Ce.inlineSuggestionHasIndentation=new C["c"]("inlineSuggestionHasIndentation",!1,P["a"]("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),Ce.ID="editor.contrib.ghostTextController",Ce=ye([_e(1,S["a"])],Ce);class Se{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=Ce.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=Ce.inlineSuggestionHasIndentation.bindTo(this.contextKeyService)}}let xe=class extends r["a"]{constructor(e,t,n){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=n,this.contextKeys=new Se(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(be,this.editor)),this.widget=this._register(this.instantiationService.createInstance(L,this.editor,this.model)),this._register(Object(r["i"])(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set(void 0!==(null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText));const t=this.model.inlineCompletionsModel.ghostText;if(t&&t.parts.length>0){const{column:e,lines:n}=t.parts[0],i=n[0].startsWith(" ")||n[0].startsWith("\t"),r=this.editor.getModel().getLineIndentColumn(t.lineNumber),o=e<=r;this.contextKeys.inlineCompletionSuggestsIndentation.set(!!this.model.activeInlineCompletionsModel&&i&&o)}else this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)}};xe=ye([_e(1,S["a"]),_e(2,C["b"])],xe);const Oe=o["c"].bindToContribution(Ce.get),ke=new Oe({id:"editor.action.inlineSuggest.commit",precondition:C["a"].and(Ce.inlineSuggestionVisible,Ce.inlineSuggestionHasIndentation.toNegated(),s["a"].tabMovesFocus.toNegated()),kbOpts:{weight:200,primary:2},handler(e){e.commit(),e.editor.focus()}});Object(o["k"])(ke),Object(o["k"])(new Oe({id:"editor.action.inlineSuggest.hide",precondition:Ce.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(e){e.hide()}}));class Le extends o["b"]{constructor(){super({id:Le.ID,label:P["a"]("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:C["a"].and(s["a"].writable,Ce.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return we(this,void 0,void 0,(function*(){const e=Ce.get(t);e&&(e.showNextInlineCompletion(),t.focus())}))}}Le.ID="editor.action.inlineSuggest.showNext";class Ee extends o["b"]{constructor(){super({id:Ee.ID,label:P["a"]("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:C["a"].and(s["a"].writable,Ce.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return we(this,void 0,void 0,(function*(){const e=Ce.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())}))}}Ee.ID="editor.action.inlineSuggest.showPrevious";class De extends o["b"]{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:P["a"]("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:s["a"].writable})}run(e,t){return we(this,void 0,void 0,(function*(){const e=Ce.get(t);e&&e.trigger()}))}}Object(o["l"])(Ce.ID,Ce),Object(o["j"])(De),Object(o["j"])(Le),Object(o["j"])(Ee)},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f1e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var i,r=n("89cd"),o=n("e8e3"),s=n("a666");(function(e){e[e["PRESERVE"]=0]="PRESERVE",e[e["LAST"]=1]="LAST"})(i||(i={}));const a={Quickaccess:"workbench.contributions.quickaccess"};class l{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),Object(s["i"])(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Object(o["e"])([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){const t=e&&this.providers.find(t=>e.startsWith(t.prefix))||void 0;return t||this.defaultProvider}}r["a"].add(a.Quickaccess,new l)},"2f1f":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("6d8b"),r=Object(i["createHashMap"])();function o(e,t){Object(i["assert"])(null==r.get(e)&&t),r.set(e,t)}function s(e,t,n){var i=r.get(t);if(!i)return n;var o=i(e);return o?n.concat(o):n}},"2f45":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var i=n("6d8b"),r=n("07fd"),o=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function s(e,t){var n={},s=n.encode={},l=Object(i["createHashMap"])(),u=[],h=[],d={};Object(i["each"])(e.dimensions,(function(t){var n=e.getDimensionInfo(t),i=n.coordDim;if(i){0;var o=n.coordDimIndex;a(s,i)[o]=t,n.isExtraCoord||(l.set(i,1),c(n.type)&&(u[0]=t),a(d,i)[o]=e.getDimensionIndex(n.name)),n.defaultTooltip&&h.push(t)}r["i"].each((function(e,t){var i=a(s,t),r=n.otherDims[t];null!=r&&!1!==r&&(i[r]=n.name)}))}));var f=[],p={};l.each((function(e,t){var n=s[t];p[t]=n[0],f=f.concat(n)})),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=Object(i["map"])(f,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=p;var g=s.label;g&&g.length&&(u=g.slice());var m=s.tooltip;return m&&m.length?h=m.slice():h.length||(h=u.slice()),s.defaultedLabel=u,s.defaultedTooltip=h,n.userOutput=new o(d,t),n}function a(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function l(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function c(e){return!("ordinal"===e||"time"===e)}},"2f62":function(e,t,n){"use strict";(function(e){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function i(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){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 P})),n.d(t,"c",(function(){return A}));var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=l(e[n],t)})),i}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function h(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var f=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)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(e,t){this._children[e]=t},f.prototype.removeChild=function(e){delete this._children[e]},f.prototype.getChild=function(e){return this._children[e]},f.prototype.hasChild=function(e){return e in this._children},f.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)},f.prototype.forEachChild=function(e){c(this._children,e)},f.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},f.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},f.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(f.prototype,p);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;m(e.concat(i),t.getChild(i),n.modules[i])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},g.prototype.update=function(e){m([],this.root,e)},g.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new f(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&c(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var b=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&T(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,a=o.dispatch,l=o.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var c=this._modules.root.state;S(this,c,[],this._modules.root),C(this,c),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:v.config.devtools;u&&s(this)},y={state:{configurable:!0}};function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),C(e,n,t)}function C(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};c(r,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=s,e.strict&&D(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),v.nextTick((function(){return i.$destroy()})))}function S(e,t,n,i,r){var o=!n.length,s=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=i),!o&&!r){var a=I(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){v.set(a,l,i.state)}))}var c=i.context=x(e,s,n);i.forEachMutation((function(t,n){var i=s+n;k(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:s+n,r=t.handler||t;L(e,i,r,c)})),i.forEachGetter((function(t,n){var i=s+n;E(e,i,t,c)})),i.forEachChild((function(i,o){S(e,t,n.concat(o),i,r)}))}function x(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=M(n,i,r),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=t+l),e.dispatch(l,s)},commit:i?e.commit:function(n,i,r){var o=M(n,i,r),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=t+l),e.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return O(e,t)}},state:{get:function(){return I(e.state,n)}}}),r}function O(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function k(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function L(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return h(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function E(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function D(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function I(e,t){return t.reduce((function(e,t){return e[t]}),e)}function M(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function T(e){v&&e===v||(v=e,i(v))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},b.prototype.commit=function(e,t,n){var i=this,r=M(e,t,n),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,i.state)})))},b.prototype.dispatch=function(e,t){var n=this,i=M(e,t),r=i.type,o=i.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(c){0}var l=a.length>1?Promise.all(a.map((function(e){return e(o)}))):a[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(c){0}t(e)}))}))}},b.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},b.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},b.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},b.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},b.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),C(this,this.state)},b.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=I(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),w(this)},b.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},b.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},b.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(b.prototype,y);var A=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=V(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),N=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=V(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),P=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||V(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),j=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=V(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),R=function(e){return{mapState:A.bind(null,e),mapGetters:P.bind(null,e),mapMutations:N.bind(null,e),mapActions:j.bind(null,e)}};function F(e){return B(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function B(e){return Array.isArray(e)||u(e)}function W(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function V(e,t,n){var i=e._modulesNamespaceMap[n];return i}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var a=e.logMutations;void 0===a&&(a=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=l(e.state);"undefined"!==typeof u&&(a&&e.subscribe((function(e,o){var s=l(o);if(n(e,h,s)){var a=q(),c=r(e),d="mutation "+e.type+a;H(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),U(u)}h=s})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var i=q(),r=s(e),a="action "+e.type+i;H(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),U(u)}})))}}function H(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function U(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function q(){var e=new Date;return" @ "+K(e.getHours(),2)+":"+K(e.getMinutes(),2)+":"+K(e.getSeconds(),2)+"."+K(e.getMilliseconds(),3)}function $(e,t){return new Array(t+1).join(e)}function K(e,t){return $("0",t-e.toString().length)+e}var G={Store:b,install:T,version:"3.6.2",mapState:A,mapMutations:N,mapGetters:P,mapActions:j,createNamespacedHelpers:R,createLogger:z};t["a"]=G}).call(this,n("c8ba"))},"2f9a":function(e,t){e.exports=function(){}},"2fae":function(e,t,n){"use strict";function i(e){var t=this;if(t instanceof i||(t=new i),t.tail=null,t.head=null,t.length=0,e&&"function"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,n=this.head.value}for(var r=0;null!==i;r++)n=e(n,i.value,r),i=i.next;return n},i.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==i;r--)n=e(n,i.value,r),i=i.prev;return n},i.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},i.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},i.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new i;if(tthis.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&rthis.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},i.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i{let n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)};return Object.keys(this.colorsById).sort(e).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n")}}const d=new h;function f(e,t,n,i,r){return d.registerColor(e,t,n,i,r)}i["a"].add(u.ColorContribution,d);const p=f("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s["a"]("foreground","Overall foreground color. This color is only used if not overridden by a component.")),g=f("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s["a"]("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),m=f("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},s["a"]("iconForeground","The default color for icons in the workbench.")),v=f("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},s["a"]("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),b=f("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s["a"]("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),y=f("contrastActiveBorder",{light:null,dark:null,hc:v},s["a"]("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),_=f("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s["a"]("textLinkForeground","Foreground color for links in text.")),w=f("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s["a"]("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),C=f("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:r["a"].black},s["a"]("textCodeBlockBackground","Background color for code blocks in text.")),S=f("widget.shadow",{dark:Zt(r["a"].black,.36),light:Zt(r["a"].black,.16),hc:null},s["a"]("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),x=f("input.background",{dark:"#3C3C3C",light:r["a"].white,hc:r["a"].black},s["a"]("inputBoxBackground","Input box background.")),O=f("input.foreground",{dark:p,light:p,hc:p},s["a"]("inputBoxForeground","Input box foreground.")),k=f("input.border",{dark:null,light:null,hc:b},s["a"]("inputBoxBorder","Input box border.")),L=f("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:b},s["a"]("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),E=f("inputOption.activeBackground",{dark:Zt(v,.4),light:Zt(v,.2),hc:r["a"].transparent},s["a"]("inputOption.activeBackground","Background color of activated options in input fields.")),D=f("inputOption.activeForeground",{dark:r["a"].white,light:r["a"].black,hc:null},s["a"]("inputOption.activeForeground","Foreground color of activated options in input fields.")),I=f("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:r["a"].black},s["a"]("inputValidationInfoBackground","Input validation background color for information severity.")),M=f("inputValidation.infoForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationInfoForeground","Input validation foreground color for information severity.")),T=f("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:b},s["a"]("inputValidationInfoBorder","Input validation border color for information severity.")),A=f("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:r["a"].black},s["a"]("inputValidationWarningBackground","Input validation background color for warning severity.")),N=f("inputValidation.warningForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationWarningForeground","Input validation foreground color for warning severity.")),P=f("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:b},s["a"]("inputValidationWarningBorder","Input validation border color for warning severity.")),j=f("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:r["a"].black},s["a"]("inputValidationErrorBackground","Input validation background color for error severity.")),R=f("inputValidation.errorForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationErrorForeground","Input validation foreground color for error severity.")),F=f("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:b},s["a"]("inputValidationErrorBorder","Input validation border color for error severity.")),B=f("dropdown.background",{dark:"#3C3C3C",light:r["a"].white,hc:r["a"].black},s["a"]("dropdownBackground","Dropdown background.")),W=f("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:r["a"].white},s["a"]("dropdownForeground","Dropdown foreground.")),V=f("button.foreground",{dark:r["a"].white,light:r["a"].white,hc:r["a"].white},s["a"]("buttonForeground","Button foreground color.")),z=f("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},s["a"]("buttonBackground","Button background color.")),H=f("button.hoverBackground",{dark:Yt(z,.2),light:Gt(z,.2),hc:null},s["a"]("buttonHoverBackground","Button background color when hovering.")),U=f("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:r["a"].black},s["a"]("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),q=f("badge.foreground",{dark:r["a"].white,light:"#333",hc:r["a"].white},s["a"]("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),$=f("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s["a"]("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),K=f("scrollbarSlider.background",{dark:r["a"].fromHex("#797979").transparent(.4),light:r["a"].fromHex("#646464").transparent(.4),hc:Zt(b,.6)},s["a"]("scrollbarSliderBackground","Scrollbar slider background color.")),G=f("scrollbarSlider.hoverBackground",{dark:r["a"].fromHex("#646464").transparent(.7),light:r["a"].fromHex("#646464").transparent(.7),hc:Zt(b,.8)},s["a"]("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Y=f("scrollbarSlider.activeBackground",{dark:r["a"].fromHex("#BFBFBF").transparent(.4),light:r["a"].fromHex("#000000").transparent(.6),hc:b},s["a"]("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Z=f("progressBar.background",{dark:r["a"].fromHex("#0E70C0"),light:r["a"].fromHex("#0E70C0"),hc:b},s["a"]("progressBarBackground","Background color of the progress bar that can show for long running operations.")),X=f("editorError.background",{dark:null,light:null,hc:null},s["a"]("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Q=f("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},s["a"]("editorError.foreground","Foreground color of error squigglies in the editor.")),J=f("editorError.border",{dark:null,light:null,hc:r["a"].fromHex("#E47777").transparent(.8)},s["a"]("errorBorder","Border color of error boxes in the editor.")),ee=f("editorWarning.background",{dark:null,light:null,hc:null},s["a"]("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),te=f("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},s["a"]("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),ne=f("editorWarning.border",{dark:null,light:null,hc:r["a"].fromHex("#FFCC00").transparent(.8)},s["a"]("warningBorder","Border color of warning boxes in the editor.")),ie=f("editorInfo.background",{dark:null,light:null,hc:null},s["a"]("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),re=f("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},s["a"]("editorInfo.foreground","Foreground color of info squigglies in the editor.")),oe=f("editorInfo.border",{dark:null,light:null,hc:r["a"].fromHex("#75BEFF").transparent(.8)},s["a"]("infoBorder","Border color of info boxes in the editor.")),se=f("editorHint.foreground",{dark:r["a"].fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s["a"]("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ae=f("editorHint.border",{dark:null,light:null,hc:r["a"].fromHex("#eeeeee").transparent(.8)},s["a"]("hintBorder","Border color of hint boxes in the editor.")),le=f("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:r["a"].black},s["a"]("editorBackground","Editor background color.")),ce=f("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:r["a"].white},s["a"]("editorForeground","Editor default foreground color.")),ue=f("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s["a"]("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),he=f("editorWidget.foreground",{dark:p,light:p,hc:p},s["a"]("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),de=f("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:b},s["a"]("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),fe=f("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s["a"]("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),pe=f("quickInput.background",{dark:ue,light:ue,hc:ue},s["a"]("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ge=f("quickInput.foreground",{dark:he,light:he,hc:he},s["a"]("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),me=f("quickInputTitle.background",{dark:new r["a"](new r["c"](255,255,255,.105)),light:new r["a"](new r["c"](0,0,0,.06)),hc:"#000000"},s["a"]("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ve=f("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:r["a"].white},s["a"]("pickerGroupForeground","Quick picker color for grouping labels.")),be=f("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:r["a"].white},s["a"]("pickerGroupBorder","Quick picker color for grouping borders.")),ye=f("keybindingLabel.background",{dark:new r["a"](new r["c"](128,128,128,.17)),light:new r["a"](new r["c"](221,221,221,.4)),hc:r["a"].transparent},s["a"]("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),_e=f("keybindingLabel.foreground",{dark:r["a"].fromHex("#CCCCCC"),light:r["a"].fromHex("#555555"),hc:r["a"].white},s["a"]("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),we=f("keybindingLabel.border",{dark:new r["a"](new r["c"](51,51,51,.6)),light:new r["a"](new r["c"](204,204,204,.4)),hc:new r["a"](new r["c"](111,195,223))},s["a"]("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Ce=f("keybindingLabel.bottomBorder",{dark:new r["a"](new r["c"](68,68,68,.6)),light:new r["a"](new r["c"](187,187,187,.4)),hc:new r["a"](new r["c"](111,195,223))},s["a"]("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Se=f("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s["a"]("editorSelectionBackground","Color of the editor selection.")),xe=f("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s["a"]("editorSelectionForeground","Color of the selected text for high contrast.")),Oe=f("editor.inactiveSelectionBackground",{light:Zt(Se,.5),dark:Zt(Se,.5),hc:Zt(Se,.5)},s["a"]("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),ke=f("editor.selectionHighlightBackground",{light:Jt(Se,le,.3,.6),dark:Jt(Se,le,.3,.6),hc:null},s["a"]("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Le=f("editor.selectionHighlightBorder",{light:null,dark:null,hc:y},s["a"]("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Ee=f("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s["a"]("editorFindMatch","Color of the current search match.")),De=f("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s["a"]("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=f("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s["a"]("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Me=f("editor.findMatchBorder",{light:null,dark:null,hc:y},s["a"]("editorFindMatchBorder","Border color of the current search match.")),Te=f("editor.findMatchHighlightBorder",{light:null,dark:null,hc:y},s["a"]("findMatchHighlightBorder","Border color of the other search matches.")),Ae=f("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Zt(y,.4)},s["a"]("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ne=f("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s["a"]("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Pe=f("editorHoverWidget.background",{light:ue,dark:ue,hc:ue},s["a"]("hoverBackground","Background color of the editor hover.")),je=f("editorHoverWidget.foreground",{light:he,dark:he,hc:he},s["a"]("hoverForeground","Foreground color of the editor hover.")),Re=f("editorHoverWidget.border",{light:de,dark:de,hc:de},s["a"]("hoverBorder","Border color of the editor hover.")),Fe=f("editorHoverWidget.statusBarBackground",{dark:Yt(Pe,.2),light:Gt(Pe,.05),hc:ue},s["a"]("statusBarBackground","Background color of the editor hover status bar.")),Be=f("editorLink.activeForeground",{dark:"#4E94CE",light:r["a"].blue,hc:r["a"].cyan},s["a"]("activeLinkForeground","Color of active links.")),We=f("editorInlayHint.foreground",{dark:Zt(q,.8),light:Zt(q,.8),hc:q},s["a"]("editorInlayHintForeground","Foreground color of inline hints")),Ve=f("editorInlayHint.background",{dark:Zt(U,.6),light:Zt(U,.3),hc:U},s["a"]("editorInlayHintBackground","Background color of inline hints")),ze=f("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},s["a"]("editorLightBulbForeground","The color used for the lightbulb actions icon.")),He=f("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},s["a"]("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Ue=new r["a"](new r["c"](155,185,85,.2)),qe=new r["a"](new r["c"](255,0,0,.2)),$e=f("diffEditor.insertedTextBackground",{dark:Ue,light:Ue,hc:null},s["a"]("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Ke=f("diffEditor.removedTextBackground",{dark:qe,light:qe,hc:null},s["a"]("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ge=f("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s["a"]("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Ye=f("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s["a"]("diffEditorRemovedOutline","Outline color for text that got removed.")),Ze=f("diffEditor.border",{dark:null,light:null,hc:b},s["a"]("diffEditorBorder","Border color between the two text editors.")),Xe=f("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},s["a"]("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),Qe=f("list.focusBackground",{dark:null,light:null,hc:null},s["a"]("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Je=f("list.focusForeground",{dark:null,light:null,hc:null},s["a"]("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),et=f("list.focusOutline",{dark:v,light:v,hc:y},s["a"]("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=f("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},s["a"]("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),nt=f("list.activeSelectionForeground",{dark:r["a"].white,light:r["a"].white,hc:null},s["a"]("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),it=f("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},s["a"]("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),rt=f("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s["a"]("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ot=f("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s["a"]("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),st=f("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},s["a"]("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),at=f("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s["a"]("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),lt=f("list.inactiveFocusOutline",{dark:null,light:null,hc:null},s["a"]("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ct=f("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s["a"]("listHoverBackground","List/Tree background when hovering over items using the mouse.")),ut=f("list.hoverForeground",{dark:null,light:null,hc:null},s["a"]("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),ht=f("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s["a"]("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),dt=f("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:v},s["a"]("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),ft=f("list.focusHighlightForeground",{dark:dt,light:Qt(tt,dt,"#9DDDFF"),hc:dt},s["a"]("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),pt=f("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:r["a"].black},s["a"]("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),gt=f("listFilterWidget.outline",{dark:r["a"].transparent,light:r["a"].transparent,hc:"#f38518"},s["a"]("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),mt=f("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:b},s["a"]("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),vt=f("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s["a"]("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),bt=f("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},s["a"]("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),yt=f("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,s["a"]("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),_t=f("quickInputList.focusForeground",{dark:nt,light:nt,hc:nt},s["a"]("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),wt=f("quickInputList.focusIconForeground",{dark:it,light:it,hc:it},s["a"]("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Ct=f("quickInputList.focusBackground",{dark:Xt(yt,tt),light:Xt(yt,tt),hc:null},s["a"]("quickInput.listFocusBackground","Quick picker background color for the focused item.")),St=f("menu.border",{dark:null,light:null,hc:b},s["a"]("menuBorder","Border color of menus.")),xt=f("menu.foreground",{dark:W,light:p,hc:W},s["a"]("menuForeground","Foreground color of menu items.")),Ot=f("menu.background",{dark:B,light:B,hc:B},s["a"]("menuBackground","Background color of menu items.")),kt=f("menu.selectionForeground",{dark:nt,light:nt,hc:nt},s["a"]("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Lt=f("menu.selectionBackground",{dark:tt,light:tt,hc:tt},s["a"]("menuSelectionBackground","Background color of the selected menu item in menus.")),Et=f("menu.selectionBorder",{dark:null,light:null,hc:y},s["a"]("menuSelectionBorder","Border color of the selected menu item in menus.")),Dt=f("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:b},s["a"]("menuSeparatorBackground","Color of a separator menu item in menus.")),It=f("editor.snippetTabstopHighlightBackground",{dark:new r["a"](new r["c"](124,124,124,.3)),light:new r["a"](new r["c"](10,50,100,.2)),hc:new r["a"](new r["c"](124,124,124,.3))},s["a"]("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Mt=f("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s["a"]("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Tt=f("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s["a"]("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),At=f("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r["a"](new r["c"](10,50,100,.5)),hc:"#525252"},s["a"]("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Nt=f("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s["a"]("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Pt=f("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s["a"]("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),jt=f("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s["a"]("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Rt=f("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},s["a"]("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Ft=f("minimap.errorHighlight",{dark:new r["a"](new r["c"](255,18,18,.7)),light:new r["a"](new r["c"](255,18,18,.7)),hc:new r["a"](new r["c"](255,50,50,1))},s["a"]("minimapError","Minimap marker color for errors.")),Bt=f("minimap.warningHighlight",{dark:te,light:te,hc:ne},s["a"]("overviewRuleWarning","Minimap marker color for warnings.")),Wt=f("minimap.background",{dark:null,light:null,hc:null},s["a"]("minimapBackground","Minimap background color.")),Vt=f("minimapSlider.background",{light:Zt(K,.5),dark:Zt(K,.5),hc:Zt(K,.5)},s["a"]("minimapSliderBackground","Minimap slider background color.")),zt=f("minimapSlider.hoverBackground",{light:Zt(G,.5),dark:Zt(G,.5),hc:Zt(G,.5)},s["a"]("minimapSliderHoverBackground","Minimap slider background color when hovering.")),Ht=f("minimapSlider.activeBackground",{light:Zt(Y,.5),dark:Zt(Y,.5),hc:Zt(Y,.5)},s["a"]("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),Ut=f("problemsErrorIcon.foreground",{dark:Q,light:Q,hc:Q},s["a"]("problemsErrorIconForeground","The color used for the problems error icon.")),qt=f("problemsWarningIcon.foreground",{dark:te,light:te,hc:te},s["a"]("problemsWarningIconForeground","The color used for the problems warning icon.")),$t=f("problemsInfoIcon.foreground",{dark:re,light:re,hc:re},s["a"]("problemsInfoIconForeground","The color used for the problems info icon."));function Kt(e,t){var n,i,o;switch(e.op){case 0:return null===(n=en(e.value,t))||void 0===n?void 0:n.darken(e.factor);case 1:return null===(i=en(e.value,t))||void 0===i?void 0:i.lighten(e.factor);case 2:return null===(o=en(e.value,t))||void 0===o?void 0:o.transparent(e.factor);case 3:for(const n of e.values){const e=en(n,t);if(e)return e}return;case 5:return en(t.defines(e.if)?e.then:e.else,t);case 4:const s=en(e.value,t);if(!s)return;const a=en(e.background,t);return a?s.isDarkerThan(a)?r["a"].getLighterColor(s,a,e.factor).transparent(e.transparency):r["a"].getDarkerColor(s,a,e.factor).transparent(e.transparency):s.transparent(e.factor*e.transparency);default:throw Object(c["b"])(e)}}function Gt(e,t){return{op:0,value:e,factor:t}}function Yt(e,t){return{op:1,value:e,factor:t}}function Zt(e,t){return{op:2,value:e,factor:t}}function Xt(...e){return{op:3,values:e}}function Qt(e,t,n){return{op:5,if:e,then:t,else:n}}function Jt(e,t,n,i){return{op:4,value:e,background:t,factor:n,transparency:i}}function en(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r["a"].fromHex(e):t.getColor(e):e instanceof r["a"]?e:"object"===typeof e?Kt(e,t):void 0}const tn="vscode://schemas/workbench-colors";let nn=i["a"].as(a["a"].JSONContribution);nn.registerSchema(tn,d.getColorSchema());const rn=new l["e"](()=>nn.notifySchemaChanged(tn),200);d.onDidChangeSchema(()=>{rn.isScheduled()||rn.schedule()})},"308f":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return g}));var i,r=n("fdcc"),o=n("a666"),s=n("db88"),a=n("e58e");(function(e){function t(e){return(t,n=null,i)=>{let r,o=!1;return r=e(e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)},null,i),o&&r.dispose(),r}}function n(e,t){return c((n,i=null,r)=>e(e=>n.call(i,t(e)),null,r))}function i(e,t){return c((n,i=null,r)=>e(e=>{t(e),n.call(i,e)},null,r))}function r(e,t){return c((n,i=null,r)=>e(e=>t(e)&&n.call(i,e),null,r))}function s(e){return e}function a(...e){return(t,n=null,i)=>Object(o["e"])(...e.map(e=>e(e=>t.call(n,e),null,i)))}function l(e,t,i){let r=i;return n(e,e=>(r=t(r,e),r))}function c(e){let t;const n=new h({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function u(e,t,n=100,i=!1,r){let o,s=void 0,a=void 0,l=0;const c=new h({leakWarningThreshold:r,onFirstListenerAdd(){o=e(e=>{l++,s=t(s,e),i&&!a&&(c.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{const e=s;s=void 0,a=void 0,(!i||l>1)&&c.fire(e),l=0},n)})},onLastListenerRemove(){o.dispose()}});return c.event}function d(e,t=((e,t)=>e===t)){let n,i=!0;return r(e,e=>{const r=i||!t(e,n);return i=!1,n=e,r})}function f(t,n){return[e.filter(t,n),e.filter(t,e=>!n(e))]}function p(e,t=!1,n=[]){let i=n.slice(),r=e(e=>{i?i.push(e):s.fire(e)});const o=()=>{i&&i.forEach(e=>s.fire(e)),i=null},s=new h({onFirstListenerAdd(){r||(r=e(e=>s.fire(e)))},onFirstListenerDidAdd(){i&&(t?setTimeout(o):o())},onLastListenerRemove(){r&&r.dispose(),r=null}});return s.event}e.None=()=>o["a"].None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=s,e.any=a,e.reduce=l,e.debounce=u,e.latch=d,e.split=f,e.buffer=p;class g{constructor(e){this.event=e}map(e){return new g(n(this.event,e))}forEach(e){return new g(i(this.event,e))}filter(e){return new g(r(this.event,e))}reduce(e,t){return new g(l(this.event,e,t))}latch(){return new g(d(this.event))}debounce(e,t=100,n=!1,i){return new g(u(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}function m(e){return new g(e)}function v(e,t,n=(e=>e)){const i=(...e)=>s.fire(n(...e)),r=()=>e.on(t,i),o=()=>e.removeListener(t,i),s=new h({onFirstListenerAdd:r,onLastListenerRemove:o});return s.event}function b(e,t,n=(e=>e)){const i=(...e)=>s.fire(n(...e)),r=()=>e.addEventListener(t,i),o=()=>e.removeEventListener(t,i),s=new h({onFirstListenerAdd:r,onLastListenerRemove:o});return s.event}function y(e){return new Promise(n=>t(e)(n))}e.chain=m,e.fromNodeEventEmitter=v,e.fromDOMEventEmitter=b,e.toPromise=y})(i||(i={}));class l{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${l._idPool++}`}start(e){this._stopWatch=new a["a"](!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;let c=-1;class u{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=c;if("number"===typeof this.customThreshold&&(t=this.customThreshold),t<=0||e{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class h{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=c>0?new u(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new s["a"]);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),c=Object(o["i"])(()=>{if(l&&l(),!this._disposed&&(a(),this._options&&this._options.onLastListenerRemove)){const e=this._listeners&&!this._listeners.isEmpty();e||this._options.onLastListenerRemove(this)}});return n instanceof o["b"]?n.add(c):Array.isArray(n)&&n.push(c),c}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new s["a"]);for(let t of this._listeners)this._deliveryQueue.push([t,e]);null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);while(this._deliveryQueue.size>0){const[e,t]=this._deliveryQueue.shift();try{"function"===typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(i){Object(r["e"])(i)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,i,r;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}class d extends h{constructor(e){super(e),this._isPaused=0,this._eventQueue=new s["a"],this._mergeFn=null===e||void 0===e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else while(!this._isPaused&&0!==this._eventQueue.size)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class f extends d{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class p{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e(e=>{const i=this.buffers[this.buffers.length-1];i?i.push(()=>t.call(n,e)):t.call(n,e)},void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}class g{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=o["a"].None,this.emitter=new h({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},"30b5":function(e,t,n){"use strict";var i=n("c532");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30d5":function(e,t,n){},"30db":function(e,t,n){"use strict";(function(e,i){var r;n.d(t,"b",(function(){return v})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return x})),n.d(t,"f",(function(){return O})),n.d(t,"d",(function(){return k})),n.d(t,"g",(function(){return L})),n.d(t,"i",(function(){return E})),n.d(t,"c",(function(){return D})),n.d(t,"l",(function(){return I})),n.d(t,"k",(function(){return M})),n.d(t,"a",(function(){return T})),n.d(t,"e",(function(){return P}));const o="en";let s=!1,a=!1,l=!1,c=!1,u=!1,h=!1,d=!1,f=void 0,p=o,g=void 0,m=void 0;const v="object"===typeof self?self:"object"===typeof e?e:{};let b=void 0;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?b=v.vscode.process:"undefined"!==typeof i&&(b=i);const y="string"===typeof(null===(r=null===b||void 0===b?void 0:b.versions)||void 0===r?void 0:r.electron)&&"renderer"===b.type,_=y&&(null===b||void 0===b?void 0:b.sandboxed),w=(()=>{if(_)return"bypassHeatCheck";const e=null===b||void 0===b?void 0:b.env["VSCODE_BROWSER_CODE_LOADING"];return"string"===typeof e?"none"===e||"code"===e||"bypassHeatCheck"===e||"bypassHeatCheckAndEagerCompile"===e?e:"bypassHeatCheck":void 0})(),C="string"===typeof w;if("object"!==typeof navigator||y)if("object"===typeof b){s="win32"===b.platform,a="darwin"===b.platform,l="linux"===b.platform,c=l&&!!b.env["SNAP"]&&!!b.env["SNAP_REVISION"],f=o,p=o;const e=b.env["VSCODE_NLS_CONFIG"];if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];f=t.locale,p=n||o,g=t._translationsConfigFile}catch(j){}u=!0}else console.error("Unable to resolve platform.");else m=navigator.userAgent,s=m.indexOf("Windows")>=0,a=m.indexOf("Macintosh")>=0,d=(m.indexOf("Macintosh")>=0||m.indexOf("iPad")>=0||m.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=m.indexOf("Linux")>=0,h=!0,f=navigator.language,p=f;let S=0;a?S=1:s?S=3:l&&(S=2);const x=s,O=a,k=l,L=u,E=h,D=d,I=m,M=function(){if(v.setImmediate)return v.setImmediate.bind(v);if("function"===typeof v.postMessage&&!v.importScripts){let e=[];v.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeSetImmediateId:i},"*")}}if("function"===typeof(null===b||void 0===b?void 0:b.nextTick))return b.nextTick.bind(b);const e=Promise.resolve();return t=>e.then(t)}(),T=a||d?2:s?1:3;let A=!0,N=!1;function P(){if(!N){N=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);A=513===t[0]}return A}}).call(this,n("c8ba"),n("4362"))},"313e":function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r["cb"]})),n.d(t,"dependencies",(function(){return r["l"]})),n.d(t,"PRIORITY",(function(){return r["g"]})),n.d(t,"init",(function(){return r["B"]})),n.d(t,"connect",(function(){return r["j"]})),n.d(t,"disconnect",(function(){return r["n"]})),n.d(t,"disConnect",(function(){return r["m"]})),n.d(t,"dispose",(function(){return r["o"]})),n.d(t,"getInstanceByDom",(function(){return r["w"]})),n.d(t,"getInstanceById",(function(){return r["x"]})),n.d(t,"registerTheme",(function(){return r["R"]})),n.d(t,"registerPreprocessor",(function(){return r["P"]})),n.d(t,"registerProcessor",(function(){return r["Q"]})),n.d(t,"registerPostInit",(function(){return r["N"]})),n.d(t,"registerPostUpdate",(function(){return r["O"]})),n.d(t,"registerUpdateLifecycle",(function(){return r["T"]})),n.d(t,"registerAction",(function(){return r["H"]})),n.d(t,"registerCoordinateSystem",(function(){return r["I"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return r["v"]})),n.d(t,"registerLocale",(function(){return r["L"]})),n.d(t,"registerLayout",(function(){return r["J"]})),n.d(t,"registerVisual",(function(){return r["U"]})),n.d(t,"registerLoading",(function(){return r["K"]})),n.d(t,"setCanvasCreator",(function(){return r["V"]})),n.d(t,"registerMap",(function(){return r["M"]})),n.d(t,"getMap",(function(){return r["y"]})),n.d(t,"registerTransform",(function(){return r["S"]})),n.d(t,"dataTool",(function(){return r["k"]})),n.d(t,"zrender",(function(){return r["eb"]})),n.d(t,"matrix",(function(){return r["D"]})),n.d(t,"vector",(function(){return r["bb"]})),n.d(t,"zrUtil",(function(){return r["db"]})),n.d(t,"color",(function(){return r["i"]})),n.d(t,"throttle",(function(){return r["X"]})),n.d(t,"helper",(function(){return r["A"]})),n.d(t,"use",(function(){return r["Z"]})),n.d(t,"setPlatformAPI",(function(){return r["W"]})),n.d(t,"parseGeoJSON",(function(){return r["F"]})),n.d(t,"parseGeoJson",(function(){return r["G"]})),n.d(t,"number",(function(){return r["E"]})),n.d(t,"time",(function(){return r["Y"]})),n.d(t,"graphic",(function(){return r["z"]})),n.d(t,"format",(function(){return r["u"]})),n.d(t,"util",(function(){return r["ab"]})),n.d(t,"env",(function(){return r["p"]})),n.d(t,"List",(function(){return r["e"]})),n.d(t,"Model",(function(){return r["f"]})),n.d(t,"Axis",(function(){return r["a"]})),n.d(t,"ComponentModel",(function(){return r["c"]})),n.d(t,"ComponentView",(function(){return r["d"]})),n.d(t,"SeriesModel",(function(){return r["h"]})),n.d(t,"ChartView",(function(){return r["b"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return r["C"]})),n.d(t,"extendComponentModel",(function(){return r["r"]})),n.d(t,"extendComponentView",(function(){return r["s"]})),n.d(t,"extendSeriesModel",(function(){return r["t"]})),n.d(t,"extendChartView",(function(){return r["q"]}));var i=n("22b4"),r=n("aa74"),o=n("f95e"),s=n("7a29"),a=n("cbe5"),l=n("0da8"),c=n("e86a"),u=n("dd4f"),h=Math.sin,d=Math.cos,f=Math.PI,p=2*Math.PI,g=180/f,m=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,l){var c=a-o,u=!l,m=Math.abs(c),v=Object(s["j"])(m-p)||(u?c>=p:-c>=p),b=c>0?c%p:c%p+p,y=!1;y=!!v||!Object(s["j"])(m)&&b>=f===!!u;var _=e+n*d(o),w=t+i*h(o);this._start&&this._add("M",_,w);var C=Math.round(r*g);if(v){var S=1/this._p,x=(u?1:-1)*(p-S);this._add("A",n,i,C,1,+u,e+n*d(o+x),t+i*h(o+x)),S>.01&&this._add("A",n,i,C,0,+u,_,w)}else{var O=e+n*d(a),k=t+i*h(a);this._add("A",n,i,C,+y,+u,O,k)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),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,i,r,o,s,a,l){for(var c=[],u=this._p,h=1;h"}function j(e){return""}function R(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs,s=e.text;return P(r,o)+("style"!==r?Object(L["a"])(s):s||"")+(t?""+n+Object(y["map"])(t,(function(e){return i(e)})).join(n)+n:"")+j(r)}return i(e)}function F(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",s=Object(y["map"])(Object(y["keys"])(e),(function(t){return t+r+Object(y["map"])(Object(y["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),a=Object(y["map"])(Object(y["keys"])(t),(function(e){return"@keyframes "+e+r+Object(y["map"])(Object(y["keys"])(t[e]),(function(n){return n+r+Object(y["map"])(Object(y["keys"])(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return s||a?[""].join(i):""}function B(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function W(e,t,n,i){return N("svg","root",{width:e,height:t,xmlns:E,"xmlns:xlink":D,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var V=n("5e76"),z=n("8582"),H=n("20c8"),U=n("d4c6"),q=n("b362"),$=0;function K(){return $++}var G={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"},Y="transform-origin";function Z(e,t,n){var i=Object(y["extend"])({},e.shape);Object(y["extend"])(i,t),e.buildPath(n,i);var r=new v;return r.reset(Object(s["f"])(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function X(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[Y]=n+"px "+i+"px")}var Q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function J(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function ee(e,t,n){var i,r,o=e.shape.paths,s={};if(Object(y["each"])(o,(function(e){var t=B(n.zrId);t.animation=!0,ne(e,{},t,!0);var o=t.cssAnims,a=t.cssNodes,l=Object(y["keys"])(o),c=l.length;if(c){r=l[c-1];var u=o[r];for(var h in u){var d=u[h];s[h]=s[h]||{d:""},s[h].d+=d.d||""}for(var f in a){var p=a[f].animation;p.indexOf(r)>=0&&(i=p)}}})),i){t.d=!1;var a=J(s,n);return i.replace(r,a)}}function te(e){return Object(y["isString"])(e)?G[e]?"cubic-bezier("+G[e]+")":Object(q["a"])(e)?e:"":""}function ne(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof U["a"]){var l=ee(e,t,n);if(l)a.push(l);else if(!o)return}else if(!o)return;for(var c={},u=0;u0})).length){var M=J(h,n);return M+" "+r[0]+" both"}}for(var v in c){l=m(c[v]);l&&a.push(l)}if(a.length){var b=n.zrId+"-cls-"+K();n.cssNodes["."+b]={animation:a.join(",")},t["class"]=b}}var ie=n("76a5"),re=n("726e"),oe=n("41ef");function se(e,t,n){if(!e.ignore)if(e.isSilent()){var i={"pointer-events":"none"};ae(i,t,n,!0)}else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=r.fill;if(!o){var s=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&a||s;l&&(o=Object(oe["liftColor"])(l))}var c=r.lineWidth;if(c){var u=!r.strokeNoScale&&e.transform?e.transform[0]:1;c/=u}i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),c&&(i["stroke-width"]=c),ae(i,t,n,!0)}}function ae(e,t,n,i){var r=JSON.stringify(e),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+K(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+o:o}var le=n("697e7"),ce=Math.round;function ue(e){return e&&Object(y["isString"])(e.src)}function he(e){return e&&Object(y["isFunction"])(e.toDataURL)}function de(e,t,n,i){k((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(s["k"])(o)?Le(t,e,r,i):a&&Object(s["n"])(o)?Ee(n,e,r,i):e[r]=a&&"none"===o?"transparent":o}),t,n,!1),ke(n,e,i)}function fe(e,t){var n=Object(le["getElementSSRData"])(t);n&&(n.each((function(t,n){null!=t&&(e[(T+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[T+"silent"]="true"))}function pe(e){return Object(s["j"])(e[0]-1)&&Object(s["j"])(e[1])&&Object(s["j"])(e[2])&&Object(s["j"])(e[3]-1)}function ge(e){return Object(s["j"])(e[4])&&Object(s["j"])(e[5])}function me(e,t,n){if(t&&(!ge(t)||!pe(t))){var i=n?10:1e4;e.transform=pe(t)?"translate("+ce(t[4]*i)/i+" "+ce(t[5]*i)/i+")":Object(s["e"])(t)}}function ve(e,t,n){for(var i=e.points,r=[],o=0;oc?(s=null==n[d+1]?null:n[d+1].elm,qe(e,s,n,l,d)):$e(e,t,a,c))}function Ye(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(Ke(e,t),We(t.text)?Ve(i)&&Ve(r)?i!==r&&Ge(n,i,r):Ve(r)?(Ve(e.text)&&je(n,""),qe(n,null,r,0,r.length-1)):Ve(i)?$e(n,i,0,i.length-1):Ve(e.text)&&je(n,""):e.text!==t.text&&(Ve(i)&&$e(n,i,0,i.length-1),je(n,t.text)))}function Ze(e,t){if(He(e,t))Ye(e,t);else{var n=e.elm,i=Ne(n);Ue(t),null!==i&&(Me(i,t.elm,Pe(n)),$e(i,[e],0,0))}return t}var Xe=n("3437"),Qe=0,Je=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=et("refreshHover"),this.configLayer=et("configLayer"),this.storage=t,this._opts=n=Object(y["extend"])({},n),this.root=e,this._id="zr"+Qe++,this._oldVNode=W(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=A("svg");Ke(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}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",Ze(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Oe(e,B(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=B(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis;var o=[],s=this._bgVNode=tt(n,i,this._backgroundColor,r);s&&o.push(s);var a=e.compress?null:this._mainVNode=N("g","main",{},[]);this._paintList(t,r,a?a.children:o),a&&o.push(a);var l=Object(y["map"])(Object(y["keys"])(r.defs),(function(e){return r.defs[e]}));if(l.length&&o.push(N("defs","defs",{},l)),e.animation){var c=F(r.cssNodes,r.cssAnims,{newline:!0});if(c){var u=N("style","stl",{},[],c);o.push(u)}}return W(n,i,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},R(this.renderToVNode({animation:Object(y["retrieve2"])(e.cssAnimation,!0),emphasis:Object(y["retrieve2"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(y["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 i,r,o=e.length,s=[],a=0,l=0,c=0;c=0;p--)if(h&&r&&h[p]===r[p])break;for(var g=f-1;g>p;g--)a--,i=s[a-1];for(var m=p+1;m-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.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}(st["b"]),ut=ct,ht=n("deca"),dt=n("2306"),ft=n("861c"),pt=n("7d6c"),gt=n("2b17");function mt(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Object(gt["e"])(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],s=0;s=0&&i.push(t[o])}return i.join(" ")}var bt=n("7837"),yt=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return Object(rt["a"])(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=Object(at["a"])(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=_t,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(pt["r"])(this.childAt(0))},t.prototype.downplay=function(){Object(pt["C"])(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,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,a=t.getSymbolSize(e,n),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,a,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:a[0]/2,scaleY:a[1]/2};c?h.attr(d):ht["h"](h,d,s,n),Object(ht["g"])(h)}if(this._updateCommon(e,n,a,i,r),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ht["c"](h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,s,a,c,u,h,d,f,p,g=this.childAt(0),m=e.hostModel;if(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,c=i.focus,u=i.blurScope,d=i.labelStatesModels,f=i.hoverScale,p=i.cursorStyle,h=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),b=v.getModel("emphasis");o=b.getModel("itemStyle").getItemStyle(),a=v.getModel(["select","itemStyle"]).getItemStyle(),s=v.getModel(["blur","itemStyle"]).getItemStyle(),c=b.get("focus"),u=b.get("blurScope"),h=b.get("disabled"),d=Object(bt["e"])(v),f=b.getShallow("scale"),p=v.getShallow("cursor")}var _=e.getItemVisual(t,"symbolRotate");g.attr("rotation",(_||0)*Math.PI/180||0);var w=Object(at["b"])(e.getItemVisual(t,"symbolOffset"),n);w&&(g.x=w[0],g.y=w[1]),p&&g.attr("cursor",p);var C=e.getItemVisual(t,"style"),S=C.fill;if(g instanceof l["a"]){var x=g.style;g.useStyle(Object(y["extend"])({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},C))}else g.__isEmptyBrush?g.useStyle(Object(y["extend"])({},C)):g.useStyle(C),g.style.decal=null,g.setColor(S,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var O=e.getItemVisual(t,"liftZ"),k=this._z2;null!=O?null==k&&(this._z2=g.z2,g.z2+=O):null!=k&&(g.z2=k,this._z2=null);var L=r&&r.useNameLabel;function E(t){return L?e.getName(t):mt(e,t)}Object(bt["g"])(g,d,{labelFetcher:m,labelDataIndex:t,defaultText:E,inheritColor:S,defaultOpacity:C.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=g.ensureState("emphasis");D.style=o,g.ensureState("select").style=a,g.ensureState("blur").style=s;var I=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*I,D.scaleY=this._sizeY*I,this.setSymbolScale(1),Object(pt["J"])(this,c,u,h)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Object(ft["a"])(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var s=i.getTextContent();s&&ht["e"](s,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ht["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Object(at["c"])(e.getItemVisual(t,"symbolSize"))},t}(lt["a"]);function _t(e,t){this.parent.drift(e,t)}var wt=yt;function Ct(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function St(e){return null==e||Object(y["isObject"])(e)||(e={isIgnore:e}),e||{}}function xt(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:Object(bt["e"])(t),cursorStyle:t.get("cursor")}}var Ot=function(){function e(e){this.group=new lt["a"],this._SymbolCtor=e||wt}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=St(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,s=t.disableAnimation,a=xt(e),l={disableAnimation:s},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=c(i);if(Ct(e,r,i,t)){var s=new o(e,i,a,l);s.setPosition(r),e.setItemGraphicEl(i,s),n.add(s)}})).update((function(u,h){var d=r.getItemGraphicEl(h),f=c(u);if(Ct(e,f,u,t)){var p=e.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new o(e,u,a,l),d.setPosition(f);else{d.updateData(e,u,a,l);var m={x:f[0],y:f[1]};s?d.attr(m):ht["h"](d,m,i)}n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xt(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=St(n);for(var r=e.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}function It(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,s=[];return s[o]=n.get(e.baseDim,i),s[1-o]=r,t.dataToPoint(s)}var Mt=n("f658");function Tt(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 At(e,t,n,i,r,o,s,a){for(var l=Tt(e,t),c=[],u=[],h=[],d=[],f=[],p=[],g=[],m=Et(r,t,s),v=e.getLayout("points")||[],b=t.getLayout("points")||[],y=0;y=r||g<0)break;if(Bt(v,b)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,b),h=v,d=b;else{var y=v-c,_=b-u;if(y*y+_*_<.5){g+=o;continue}if(s>0){var w=g+o,C=t[2*w],S=t[2*w+1];while(C===v&&S===b&&m=i||Bt(C,S))f=v,p=b;else{k=C-c,L=S-u;var I=v-c,M=C-v,T=b-u,A=S-b,N=void 0,P=void 0;if("x"===a){N=Math.abs(I),P=Math.abs(M);var j=k>0?1:-1;f=v-j*N*s,p=b,E=v+j*P*s,D=b}else if("y"===a){N=Math.abs(T),P=Math.abs(A);var R=L>0?1:-1;f=v,p=b-R*N*s,E=v,D=b+R*P*s}else N=Math.sqrt(I*I+T*T),P=Math.sqrt(M*M+A*A),O=P/(P+N),f=v-k*s*(1-O),p=b-L*s*(1-O),E=v+k*s*O,D=b+L*s*O,E=Rt(E,Ft(C,v)),D=Rt(D,Ft(S,b)),E=Ft(E,Rt(C,v)),D=Ft(D,Rt(S,b)),k=E-v,L=D-b,f=v-k*N/P,p=b-L*N/P,f=Rt(f,Ft(c,v)),p=Rt(p,Ft(u,b)),f=Ft(f,Rt(c,v)),p=Ft(p,Rt(u,b)),k=v-f,L=b-p,E=v+k*P/N,D=b+L*P/N}e.bezierCurveTo(h,d,f,p,v,b),h=E,d=D}else e.lineTo(v,b)}c=v,u=b,g+=o}return m}var Vt=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),zt=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(rt["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Vt},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!Bt(n[2*r-2],n[2*r-1]))break;for(;i=0){var b=a?(d-i)*v+i:(h-n)*v+n;return a?[e,b]:[b,e]}n=h,i=d;break;case s.C:h=o[c++],d=o[c++],f=o[c++],p=o[c++],g=o[c++],m=o[c++];var y=a?Object(jt["f"])(n,h,f,g,e,l):Object(jt["f"])(i,d,p,m,e,l);if(y>0)for(var _=0;_=0){b=a?Object(jt["a"])(i,d,p,m,w):Object(jt["a"])(n,h,f,g,w);return a?[e,b]:[b,e]}}n=g,i=m;break}}},t}(a["b"]),Ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t}(Vt),Ut=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ht},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,s=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!Bt(n[2*o-2],n[2*o-1]))break;for(;rt){i?r.push(s(i,l,t)):n&&r.push(s(n,l,0),s(n,l,t));break}n&&(r.push(s(n,l,0)),n=null),r.push(l),i=l}}return r}function ln(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,s=i.length-1;s>=0;s--){var a=e.getDimensionInfo(i[s].dimension);if(r=a&&a.coordDim,"x"===r||"y"===r){o=i[s];break}}if(o){var l=t.getAxis(r),c=y["map"](o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,h=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=an(c,"x"===r?n.getWidth():n.getHeight()),f=d.length;if(!f&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var p=10,g=d[0].coord-p,m=d[f-1].coord+p,v=m-g;if(v<.001)return"transparent";y["each"](d,(function(e){e.offset=(e.coord-g)/v})),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var b=new Nt["a"](0,0,0,0,d,!0);return b[r]=g,b[r+"2"]=m,b}}}function cn(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!un(o,t))){var s=t.mapDimension(o.dim),a={};return y["each"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);a[t]=1})),function(e){return!a.hasOwnProperty(t.get(s,e))}}}}function un(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),s=0;si)return!1;return!0}function hn(e,t){return isNaN(e)||isNaN(t)}function dn(e){for(var t=e.length/2;t>0;t--)if(!hn(e[2*t-2],e[2*t-1]))break;return t-1}function fn(e,t){return[e[2*t],e[2*t+1]]}function pn(e,t,n){for(var i,r,o=e.length/2,s="x"===n?0:1,a=0,l=-1,c=0;c=t||i>=t&&r<=t){l=c;break}a=c,i=r}else i=r;return{range:[a,l],t:(t-i)/(r-i)}}function gn(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var P=f.getState("emphasis").style;P.lineWidth=+f.style.lineWidth+1}Object(ft["a"])(f).seriesIndex=e.seriesIndex,Object(pt["J"])(f,T,A,N);var j=rn(e.get("smooth")),R=e.get("smoothMonotone");if(f.setShape({smooth:j,smoothMonotone:R,connectNulls:S}),p){var F=s.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(y["defaults"](l.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&(B=rn(F.get("smooth"))),p.setShape({smooth:j,stackedOnSmooth:B,smoothMonotone:R,connectNulls:S}),Object(pt["I"])(p,e,"areaStyle"),Object(ft["a"])(p).seriesIndex=e.seriesIndex,Object(pt["J"])(p,T,A,N)}var W=function(e){i._changePolyState(e)};s.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=W)})),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=r,this._stackedOnPoints=w,this._points=c,this._step=L,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Object(ft["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Pt["u"](r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var s=r.getLayout("points"),a=r.getItemGraphicEl(o);if(!a){var l=s[2*o],c=s[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,h=e.get("z")||0;a=new wt(r,o),a.x=l,a.y=c,a.setZ(u,h);var d=a.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else qt["a"].prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Pt["u"](r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else qt["a"].prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(pt["H"])(this._polyline,e),t&&Object(pt["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new zt({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 Ut({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),s=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var a=e.hostModel,l=a.get("animationDuration");y["isFunction"](l)&&(l=l(null));var c=a.get("animationDelay")||0,u=y["isFunction"](c)?c(null):c;e.eachItemGraphicEl((function(e,o){var a=e;if(a){var h=[e.x,e.y],d=void 0,f=void 0,p=void 0;if(n)if(r){var g=n,m=t.pointToCoord(h);i?(d=g.startAngle,f=g.endAngle,p=-m[1]/180*Math.PI):(d=g.r0,f=g.r,p=m[0])}else{var v=n;i?(d=v.x,f=v.x+v.width,p=e.x):(d=v.y+v.height,f=v.y,p=e.y)}var b=f===d?0:(p-d)/(f-d);s&&(b=1-b);var _=y["isFunction"](c)?c(o):l*b+u,w=a.getSymbolPath(),C=w.getTextContent();a.attr({scaleX:0,scaleY:0}),a.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:_}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(gn(e)){var r=e.getData(),o=this._polyline,s=r.getLayout("points");if(!s)return o.removeTextContent(),void(this._endLabel=null);var a=this._endLabel;a||(a=this._endLabel=new ie["a"]({z2:200}),a.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=dn(s);l>=0&&(Object(bt["g"])(o,Object(bt["e"])(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?vt(r,n):mt(r,e)},enableTextSetter:!0},vn(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,s){var a=this._endLabel,l=this._polyline;if(a){e<1&&null==i.originalX&&(i.originalX=a.x,i.originalY=a.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=t.shape,b=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,y=(g?f:0)*(m?-1:1),_=(g?0:-f)*(m?-1:1),w=g?"x":"y",C=pn(c,b,w),S=C.range,x=S[1]-S[0],O=void 0;if(x>=1){if(x>1&&!h){var k=fn(c,S[0]);a.attr({x:k[0]+y,y:k[1]+_}),r&&(O=u.getRawValue(S[0]))}else{k=l.getPointOn(b,w);k&&a.attr({x:k[0]+y,y:k[1]+_});var L=u.getRawValue(S[0]),E=u.getRawValue(S[1]);r&&(O=Pt["k"](n,d,L,E,C.t))}i.lastFrameIndex=S[0]}else{var D=1===e||i.lastFrameIndex>0?S[0]:0;k=fn(c,D);r&&(O=u.getRawValue(D)),a.attr({x:k[0]+y,y:k[1]+_})}if(r){var I=Object(bt["f"])(a);"function"===typeof I.setLabelText&&I.setLabelText(O)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,s){var a=this._polyline,l=this._polygon,c=e.hostModel,u=At(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=u.current,d=u.stackedOnCurrent,f=u.next,p=u.stackedOnNext;if(r&&(h=sn(u.current,n,r,s),d=sn(u.stackedOnCurrent,n,r,s),f=sn(u.next,n,r,s),p=sn(u.stackedOnNext,n,r,s)),nn(h,f)>3e3||l&&nn(d,p)>3e3)return a.stopAnimation(),a.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));a.shape.__points=u.current,a.shape.points=h;var g={shape:{points:f}};u.current!==h&&(g.shape.__points=u.next),a.stopAnimation(),ht["h"](a,g,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),ht["h"](l,{shape:{stackedOnPoints:p}},c),a.shape.points!==l.shape.points&&(l.shape.points=a.shape.points));for(var m=[],v=u.status,b=0;bt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt&&(t=o,n=r)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},Sn=function(e){return Math.round(e.length/2)};function xn(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&"cartesian2d"===o.type&&r){var a=o.getBaseAxis(),l=o.getOtherAxis(a),c=a.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(s/h);if(isFinite(d)&&d>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var f=void 0;Object(y["isString"])(r)?f=Cn[r]:Object(y["isFunction"])(r)&&(f=r),f&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,f,Sn))}}}}}function On(e){e.registerChartView(yn),e.registerSeriesModel(ut),e.registerLayout(wn("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,xn("line"))}var kn=n("9d57"),Ln=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(e),o=i.dataToPoint(r);if(n)Object(y["each"])(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),s=e.getTickModel().get("alignWithLabel"),a=r[n],l="x1"===t[n]||"y1"===t[n];if(l&&!s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var c=void 0,u=void 0,h=1,d=0;da){u=(f+c)/2;break}1===d&&(h=p-i[0].tickValue)}null==u&&(c?c&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=e.toGlobalCoord(u)}}));else{var s=this.getData(),a=s.getLayout("offset"),l=s.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;o[c]+=a+l/2}return o}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}(st["b"]);st["b"].registerClass(Ln);var En=Ln,Dn=n("8918"),In=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(){return Object(ot["a"])(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=Object(Dn["d"])(En.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}(En),Mn=In,Tn=n("88b3"),An=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}(),Nn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new An},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),s=.5*(o-r),a=r+s,l=t.startAngle,c=t.endAngle,u=t.clockwise,h=2*Math.PI,d=u?c-lMath.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function Fn(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Bn(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Wn(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(y["isArray"])(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(y["map"])(i,(function(e){return Object(c["g"])(e,r)}))}}var Vn=Math.max,zn=Math.min;function Hn(e,t){var n=e.getArea&&e.getArea();if(Qt(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var Un=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Object(dt["traverseElements"])(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,i){var r,o=this.group,s=e.getData(),a=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?r=c.isHorizontal():"polar"===l.type&&(r="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=Kn(e,l);h&&this._enableRealtimeSort(h,s,n);var d=e.get("clip",!0)||h,f=Hn(l,s);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,b=[],y=this._backgroundEls,_=i&&i.isInitSort,w=i&&"changeAxisOrder"===i.type;function C(e){var t=Jn[l.type](s,e),n=ui(l,r,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),b[e]=n,n}s.diff(a).add((function(t){var n=s.getItemModel(t),i=Jn[l.type](s,t,n);if(g&&C(t),s.hasValue(t)&&Qn[l.type](i)){var a=!1;d&&(a=qn[l.type](f,i));var m=$n[l.type](e,s,t,i,r,u,c.model,!1,p);h&&(m.forceLabelAnimation=!0),ni(m,s,t,n,i,e,r,"polar"===l.type),_?m.attr({shape:i}):h?Gn(h,u,m,i,t,r,!1,!1):Object(ht["c"])(m,{shape:i},e,t),s.setItemGraphicEl(t,m),o.add(m),m.ignore=a}})).update((function(t,n){var i=s.getItemModel(t),S=Jn[l.type](s,t,i);if(g){var x=void 0;0===y.length?x=C(n):(x=y[n],x.useStyle(m.getItemStyle()),"cartesian2d"===l.type?x.setShape("r",v):x.setShape("cornerRadius",v),b[t]=x);var O=Jn[l.type](s,t),k=ci(r,O,l);Object(ht["h"])(x,{shape:k},u,t)}var L=a.getItemGraphicEl(n);if(s.hasValue(t)&&Qn[l.type](S)){var E=!1;if(d&&(E=qn[l.type](f,S),E&&o.remove(L)),L?Object(ht["g"])(L):L=$n[l.type](e,s,t,S,r,u,c.model,!!L,p),h&&(L.forceLabelAnimation=!0),w){var D=L.getTextContent();if(D){var I=Object(bt["f"])(D);null!=I.prevValue&&(I.prevValue=I.value)}}else ni(L,s,t,i,S,e,r,"polar"===l.type);_?L.attr({shape:S}):h?Gn(h,u,L,S,t,r,!0,w):Object(ht["h"])(L,{shape:S},e,t,null),s.setItemGraphicEl(t,L),L.ignore=E,o.add(L)}else o.remove(L)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&Object(ht["f"])(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new lt["a"]);S.removeAll();for(var x=0;xo)return!0;o=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Object(ht["f"])(t,e,Object(ft["a"])(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}(qt["a"]),qn={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,s=Vn(t.x,e.x),a=zn(t.x+t.width,r),l=Vn(t.y,e.y),c=zn(t.y+t.height,o),u=ar?a:s,t.y=h&&l>o?c:l,t.width=u?0:a-s,t.height=h?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=zn(t.r,e.r),o=Vn(t.r0,e.r0);t.r=r,t.r0=o;var s=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return s}},$n={cartesian2d:function(e,t,n,i,r,o,s,a,l){var c=new $t["a"]({shape:Object(y["extend"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,h=r?"height":"width";u[h]=0}return c},polar:function(e,t,n,i,r,o,s,a,l){var c=!r&&l?Pn:Kt["a"],u=new c({shape:i,z2:1});u.name="item";var h=ti(r);if(u.calculateTextPosition=jn(h,{isRoundCap:c===Pn}),o){var d=u.shape,f=r?"r":"endAngle",p={};d[f]=r?i.r0:i.startAngle,p[f]=i[f],(a?ht["h"]:ht["c"])(u,{shape:p},o)}return u}};function Kn(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Gn(e,t,n,i,r,o,s,a){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),a||(s?ht["h"]:ht["c"])(n,{shape:l},t,r,null);var u=t?e.baseAxis.model:null;(s?ht["h"]:ht["c"])(n,{shape:c},u,r)}function Yn(e,t){for(var n=0;n0?1:-1,s=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+s*r/2,width:i.width-o*r,height:i.height-s*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ei(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function ti(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 ni(e,t,n,i,r,o,s,a){var l=t.getItemVisual(n,"style");if(a){if(!o.get("roundCap")){var c=e.shape,u=Wn(i.getModel("itemStyle"),c,!0);Object(y["extend"])(c,u),e.setShape(c)}}else{var h=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(l);var d=i.getShallow("cursor");d&&e.attr("cursor",d);var f=a?s?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":s?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=Object(bt["e"])(i);Object(bt["g"])(e,p,{labelFetcher:o,labelDataIndex:n,defaultText:mt(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=e.getTextContent();if(a&&g){var m=i.get(["label","position"]);e.textConfig.inside="middle"===m||null,Rn(e,"outside"===m?f:m,ti(s),i.get(["label","rotate"]))}Object(bt["h"])(g,p,o.getRawValue(n),(function(e){return vt(t,e)}));var v=i.getModel(["emphasis"]);Object(pt["J"])(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Object(pt["I"])(e,i),ei(r)&&(e.style.fill="none",e.style.stroke="none",Object(y["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ii(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var ri=function(){function e(){}return e}(),oi=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new ri},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],s=[],a=this.barWidth,l=0;l=0?n:null}),30,!1);function li(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,s=e.largeDataIndices,a=[],l=[],c=e.barWidth,u=0,h=o.length/3;u=a[0]&&t<=a[0]+l[0]&&n>=a[1]&&n<=a[1]+l[1])return s[u]}return-1}function ci(e,t,n){if(Qt(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function ui(e,t,n){var i="polar"===e.type?Kt["a"]:$t["a"];return new i({shape:ci(t,n,e),silent:!0,z2:0})}var hi=Un;function di(e){e.registerChartView(hi),e.registerSeriesModel(Mn),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,y["curry"](kn["c"],"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(kn["a"])("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xn("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 fi=n("f3bb"),pi=n("f934"),gi=2*Math.PI,mi=Math.PI/180;function vi(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function bi(e,t){var n=vi(e,t),i=e.get("center"),r=e.get("radius");y["isArray"](r)||(r=[0,r]);var o,s,a=Object(Gt["q"])(n.width,t.getWidth()),l=Object(Gt["q"])(n.height,t.getHeight()),c=Math.min(a,l),u=Object(Gt["q"])(r[0],c/2),h=Object(Gt["q"])(r[1],c/2),d=e.coordinateSystem;if(d){var f=d.dataToPoint(i);o=f[0]||0,s=f[1]||0}else y["isArray"](i)||(i=[i,i]),o=Object(Gt["q"])(i[0],a)+n.x,s=Object(Gt["q"])(i[1],l)+n.y;return{cx:o,cy:s,r0:u,r:h}}function yi(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=vi(e,n),o=bi(e,n),s=o.cx,a=o.cy,l=o.r,c=o.r0,u=-e.get("startAngle")*mi,h=e.get("endAngle"),d=e.get("padAngle")*mi;h="auto"===h?u-gi:-h*mi;var f=e.get("minAngle")*mi,p=f+d,g=0;t.each(i,(function(e){!isNaN(e)&&g++}));var m=t.getSum(i),v=Math.PI/(m||g)*2,b=e.get("clockwise"),y=e.get("roseType"),_=e.get("stillShowZeroSum"),w=t.getDataExtent(i);w[0]=0;var C=b?1:-1,S=[u,h],x=C*d/2;Object(H["b"])(S,!b),u=S[0],h=S[1];var O=_i(e);O.startAngle=u,O.endAngle=h,O.clockwise=b;var k=Math.abs(h-u),L=k,E=0,D=u;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:a,r0:c,r:y?NaN:l});else{i="area"!==y?0===m&&_?v:e*v:k/g,ii?(o=D+C*i/2,u=o):(o=D+x,u=r-x),t.setItemLayout(n,{angle:i,startAngle:o,endAngle:u,clockwise:b,cx:s,cy:a,r0:c,r:y?Object(Gt["m"])(e,w,[c,l]):l}),D=r}})),Ln?s:o,u=Math.abs(l.label.y-n);if(u>=c.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,p=Math.abs(h)e.unconstrainedWidth?null:f:null;i.setStyle("width",p)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-h)/2}}}function Ii(e){return"center"===e.position}function Mi(e){var t,n,i=e.getData(),r=[],o=!1,s=(e.get("minShowLabelAngle")||0)*ki,a=i.getLayout("viewRect"),l=i.getLayout("r"),c=a.width,u=a.x,h=a.y,d=a.height;function f(e){e.ignore=!0}function p(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var a=i.getItemGraphicEl(e),h=a.shape,d=a.getTextContent(),g=a.getTextGuideLine(),m=i.getItemModel(e),v=m.getModel("label"),b=v.get("position")||m.get(["emphasis","label","position"]),_=v.get("distanceToLabelLine"),w=v.get("alignTo"),C=Object(Gt["q"])(v.get("edgeDistance"),c),S=v.get("bleedMargin"),x=m.getModel("labelLine"),O=x.get("length");O=Object(Gt["q"])(O,c);var k=x.get("length2");if(k=Object(Gt["q"])(k,c),Math.abs(h.endAngle-h.startAngle)0?"right":"left":T>0?"left":"right"}var V=Math.PI,z=0,H=v.get("rotate");if(Object(y["isNumber"])(H))z=H*(V/180);else if("center"===b)z=0;else if("radial"===H||!0===H){var U=T<0?-M+V:-M;z=U}else if("tangential"===H&&"outside"!==b&&"outer"!==b){var q=Math.atan2(T,A);q<0&&(q=2*V+q);var $=A>0;$&&(q=V+q),z=q-V}if(o=!!z,d.x=L,d.y=E,d.rotation=z,d.setStyle({verticalAlign:"middle"}),N){d.setStyle({align:I});var K=d.states.select;K&&(K.x+=d.x,K.y+=d.y)}else{var G=d.getBoundingRect().clone();G.applyTransform(d.getComputedTransform());var Y=(d.style.margin||0)+2.1;G.y-=Y/2,G.height+=Y,r.push({label:d,labelLine:g,position:b,len:O,len2:k,minTurnAngle:x.get("minTurnAngle"),maxSurfaceAngle:x.get("maxSurfaceAngle"),surfaceNormal:new Si["a"](T,A),linePoints:D,textAlign:I,labelDistance:_,labelAlignTo:w,edgeDistance:C,bleedMargin:S,rect:G,unconstrainedWidth:G.width,labelStyleWidth:d.style.width})}a.setTextConfig({inside:N})}})),!o&&e.get("avoidLabelOverlap")&&Ei(r,t,n,l,c,d,u,h);for(var g=0;g0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=i.r0}},t.type="pie",t}(qt["a"]),Ni=Ai,Pi=n("b1d4"),ji=n("b682");function Ri(e,t,n){t=Object(y["isArray"])(t)&&{coordDimensions:t}||Object(y["extend"])({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=Object(Pi["b"])(i,t).dimensions,o=new ji["a"](r,e);return o.initData(i,n),o}var Fi=n("0f99"),Bi=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}(),Wi=Bi,Vi=Pt["o"](),zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wi(y["bind"](this.getData,this),y["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ri(this,{coordDimensions:["value"],encodeDefaulter:y["curry"](Fi["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=Vi(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),r=i.seats=Object(Gt["e"])(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Pt["f"](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,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(st["b"]),Hi=zi;function Ui(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(Object(y["isNumber"])(i)&&!isNaN(i)&&i<0)}))}}}function qi(e){e.registerChartView(Ni),e.registerSeriesModel(Hi),Object(fi["a"])("pie",e.registerAction),e.registerLayout(Object(y["curry"])(yi,"pie")),e.registerProcessor(wi("pie")),e.registerProcessor(Ui("pie"))}var $i=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(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}(st["b"]),Ki=$i,Gi=n("9850"),Yi=4,Zi=function(){function e(){}return e}(),Xi=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Zi},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,s=o.shape,a=e.getContext?e.getContext():e,l=a&&r[0]=0;a--){var l=2*a,c=i[l]-o/2,u=i[l+1]-s/2;if(e>=c&&t>=u&&e<=c+o&&t<=u+s)return a}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],s=1/0,a=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}(),Ji=Qi,er=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=wn("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Ji:new kt,this._isLargeDraw=r,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}(qt["a"]),tr=er,nr=n("b12f"),ir=n("6cb7"),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(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}(ir["a"]),or=rr,sr=n("2023"),ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt["b"]).models[0]},t.type="cartesian2dAxis",t}(ir["a"]);y["mixin"](ar,sr["a"]);var lr={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)"]}}},cr=y["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},lr),ur=y["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}}},lr),hr=y["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ur),dr=y["defaults"]({logBase:10},ur),fr={category:cr,value:ur,time:hr,log:dr},pr=n("8e43"),gr={value:1,category:1,time:1,log:1};function mr(e,t,n,i){Object(y["each"])(gr,(function(r,o){var s=Object(y["merge"])(Object(y["merge"])({},fr[o],!0),i,!0),a=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return Object(rt["a"])(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(pi["d"])(this),i=n?Object(pi["f"])(e):{},r=t.getTheme();Object(y["merge"])(e,r.get(o+"Axis")),Object(y["merge"])(e,this.getDefaultOption()),e.type=vr(e),n&&Object(pi["h"])(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=pr["a"].createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=s,n}(n);e.registerComponentModel(a)})),e.registerSubTypeDefaulter(t+"Axis",vr)}function vr(e){return e.type||(e.data?"category":"value")}var br=n("697e"),yr=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 y["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),y["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}(),_r=yr,wr=n("1687"),Cr=n("401b"),Sr=["x","y"];function xr(e){return"interval"===e.type||"time"===e.type}var Or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Sr,t}return Object(rt["a"])(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(xr(e)&&xr(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),s=n[1]-n[0],a=i[1]-i[0];if(s&&a){var l=(o[0]-r[0])/s,c=(o[1]-r[1])/a,u=r[0]-n[0]*l,h=r[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Object(wr["invert"])([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new Gi["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Object(Cr["applyTransform"])(n,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=s.toGlobalCoord(s.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),s=n.parse(e[0]),a=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Object(Cr["applyTransform"])(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,r=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-i+e,s=Math.max(n[0],n[1])-r+e;return new Gi["a"](i,r,o,s)},t}(_r),kr=Or,Lr=n("84ce"),Er=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i)||this;return s.index=0,s.type=r||"value",s.position=o||"bottom",s}return Object(rt["a"])(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}(Lr["a"]),Dr=Er;function Ir(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},s=r.getAxesOnZeroOf()[0],a=r.position,l=s?"onZero":a,c=r.dim,u=i.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p="x"===c?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===c?p[d[l]]:h[0],"x"===c?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===c?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[a],o.labelOffset=s?p[d[a]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),y["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Mr(e){return"cartesian2d"===e.get("coordinateSystem")}function Tr(e){var t={xAxisModel:null,yAxisModel:null};return y["each"](t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Pt["b"]).models[0];t[i]=o})),t}var Ar=n("944e"),Nr=n("89e3"),Pr=Math.log;function jr(e,t,n){var i=Nr["a"].prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),s=r.length-1,a=i.getInterval.call(n),l=Object(br["f"])(e,t),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===e.type){var d=Pr(e.base);c=[Pr(c[0])/d,Pr(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:h});var f=i.getExtent.call(e);u&&(c[0]=f[0]),h&&(c[1]=f[1]);var p=i.getInterval.call(e),g=c[0],m=c[1];if(u&&h)p=(m-g)/s;else if(u){m=c[0]+p*s;while(mc[0]&&isFinite(g)&&isFinite(c[0]))p=Object(Ar["c"])(p),g=c[1]-p*s}else{var v=e.getTicks().length-1;v>s&&(p=Object(Ar["c"])(p));var b=p*s;m=Math.ceil(c[1]/p)*p,g=Object(Gt["w"])(m-b),g<0&&c[0]>=0?(g=0,m=Object(Gt["w"])(b)):m>0&&c[1]<=0&&(m=0,g=-Object(Gt["w"])(b))}var y=(r[0].value-o[0].value)/a,_=(r[s].value-o[s].value)/a;i.setExtent.call(e,g+p*y,m+p*_),i.setInterval.call(e,p),(y||_)&&i.setNiceExtent.call(e,g+p,m-p)}var Rr=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Sr,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 i(e){var t,n=Object(y["keys"])(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var s=+n[o],a=e[s],l=a.model,c=a.scale;Object(Ar["e"])(c)&&l.get("alignTicks")&&null==l.get("interval")?r.push(a):(Object(br["i"])(c,l),Object(Ar["e"])(c)&&(t=a))}r.length&&(t||(t=r.pop(),Object(br["i"])(t.scale,t.model)),Object(y["each"])(r,(function(e){jr(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};Object(y["each"])(n.x,(function(e){Br(n,"y",e,r)})),Object(y["each"])(n.y,(function(e){Br(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=Object(pi["g"])(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;function a(){Object(y["each"])(s,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),Vr(e,t?o.x:o.y)}))}a(),r&&(Object(y["each"])(s,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Object(br["b"])(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),a()),Object(y["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(y["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):Object(Gt["l"])(o-qr)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},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}(),Kr={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),s=i.transform,a=[o[0],0],l=[o[1],0],c=a[0]>l[0];s&&(Object(Cr["applyTransform"])(a,a,s),Object(Cr["applyTransform"])(l,l,s));var u=Object(y["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Hr["a"]({shape:{x1:a[0],y1:a[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});dt["subPixelOptimizeLine"](h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=t.get(["axisLine","symbol"]);if(null!=d){var f=t.get(["axisLine","symbolSize"]);Object(y["isString"])(d)&&(d=[d,d]),(Object(y["isString"])(f)||Object(y["isNumber"])(f))&&(f=[f,f]);var p=Object(at["b"])(t.get(["axisLine","symbolOffset"])||0,f),g=f[0],m=f[1];Object(y["each"])([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((a[0]-l[0])*(a[0]-l[0])+(a[1]-l[1])*(a[1]-l[1]))}],(function(t,i){if("none"!==d[i]&&null!=d[i]){var r=Object(at["a"])(d[i],-g/2,-m/2,g,m,u.stroke,!0),o=t.r+t.offset,s=c?l:a;r.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=eo(n,i,t,e),o=no(n,i,t,e);if(Yr(t,o,r),to(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=Object(Oi["b"])(Object(y["map"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));Object(Oi["a"])(s)}},axisName:function(e,t,n,i){var r=Object(y["retrieve"])(e.axisName,t.get("name"));if(r){var o,s,a=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,h=t.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===a?h[0]-d*u:"end"===a?h[1]+d*u:(h[0]+h[1])/2,Qr(a)?e.labelOffset+l*u:0],p=t.get("nameRotate");null!=p&&(p=p*qr/180),Qr(a)?o=$r.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=Gr(e.rotation,a,p||0,h),s=e.axisNameAvailableWidth,null!=s&&(s=Math.abs(s/Math.sin(o.rotation)),!isFinite(s)&&(s=null)));var g=c.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,b=Object(y["retrieve"])(e.nameTruncateMaxWidth,m.maxWidth,s),_=new ie["a"]({x:f[0],y:f[1],rotation:o.rotation,silent:$r.isLabelSilent(t),style:Object(bt["c"])(c,{text:r,font:g,overflow:"truncate",width:b,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(dt["setTooltipConfig"]({el:_,componentModel:t,itemName:r}),_.__fullText=r,_.anid="name",t.get("triggerEvent")){var w=$r.makeAxisEventDataBase(t);w.targetType="axisName",w.name=r,Object(ft["a"])(_).eventData=w}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Gr(e,t,n,i){var r,o,s=Object(Gt["v"])(n-e),a=i[0]>i[1],l="start"===t&&!a||"start"!==t&&a;return Object(Gt["l"])(s-qr/2)?(o=l?"bottom":"top",r="center"):Object(Gt["l"])(s-1.5*qr)?(o=l?"top":"bottom",r="center"):(o="middle",r=s<1.5*qr&&s>qr/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:r,textVerticalAlign:o}}function Yr(e,t,n){if(!Object(br["j"])(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],s=t[1],a=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Zr(o),Zr(c)):Xr(o,s)&&(i?(Zr(s),Zr(u)):(Zr(o),Zr(c))),!1===r?(Zr(a),Zr(h)):Xr(l,a)&&(r?(Zr(l),Zr(d)):(Zr(a),Zr(h)))}}function Zr(e){e&&(e.ignore=!0)}function Xr(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=wr["identity"]([]);return wr["rotate"](r,r,-e.rotation),n.applyTransform(wr["mul"]([],r,e.getLocalTransform())),i.applyTransform(wr["mul"]([],r,t.getLocalTransform())),n.intersect(i)}}function Qr(e){return"middle"===e||"center"===e}function Jr(e,t,n,i,r){for(var o=[],s=[],a=[],l=0;l=0||e===t}function uo(e){var t=ho(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),s=n.get("value");null!=s&&(s=i.parse(s));var a=po(n);null==o&&(r.status=a?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==s||s>l[1])&&(s=l[1]),s0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=s;null!=h.color&&(d=y["defaults"]({color:h.color},s));var f=y["merge"](y["clone"](h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:a,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(y["isString"](l)){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else y["isFunction"](l)&&(f.name=l(f.name,f));var g=new Ur["a"](f,null,this.ecModel);return y["mixin"](g,sr["a"].prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},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:y["merge"]({lineStyle:{color:"#bbb"}},zo.axisLine),axisLabel:Ho(zo.axisLabel,!1),axisTick:Ho(zo.axisTick,!1),splitLine:Ho(zo.splitLine,!0),splitArea:Ho(zo.splitArea,!0),indicator:[]},t}(ir["a"]),qo=Uo,$o=n("d9fc"),Ko=n("4573"),Go=["axisLine","axisTickLabel","axisName"],Yo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=y["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",i=new io(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));y["each"](i,(function(e){y["each"](Go,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),s=r.getModel("lineStyle"),a=o.getModel("areaStyle"),l=r.get("show"),c=o.get("show"),u=s.get("color"),h=a.get("color"),d=y["isArray"](u)?u:[u],f=y["isArray"](h)?h:[h],p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,b=t.cy,_=0;_3?1.4:r>1?1.2:1.1,l=i>0?a:1/a;ds(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:s,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);ds(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!cs(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;ds(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(is["a"]);function ds(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(rs["g"](i.event),fs(e,t,n,i,r))}function fs(e,t,n,i,r){r.isAvailableBehavior=Object(y["bind"])(ps,null,n,i),e.trigger(t,r)}function ps(e,t,n){var i=n[e];return!e||i&&(!Object(y["isString"])(i)||t.event[i+"Key"])}var gs=hs;function ms(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function vs(e,t,n,i){var r=e.target,o=e.zoomLimit,s=e.zoom=e.zoom||1;if(s*=t,o){var a=o.min||0,l=o.max||1/0;s=Math.max(Math.min(l,s),a)}var c=s/e.zoom;e.zoom=s,r.x-=(n-r.x)*(c-1),r.y-=(i-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var bs={axisPointer:1,tooltip:1,brush:1};function ys(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!bs.hasOwnProperty(i.mainType)&&r&&r.model!==n}var _s,ws=n("ae69"),Cs=n("342d"),Ss=n("dded");function xs(e){if(Object(y["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 Os={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"},ks=Object(y["keys"])(Os),Ls={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Es=Object(y["keys"])(Ls),Ds=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=xs(e);this._defsUsePending=[];var i=new lt["a"];this._root=i;var r=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),a=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(a)&&(a=null),Ps(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,r,null,!1,!1),u=u.nextSibling;if(Bs(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=Vs(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=s&&null!=a&&(c=Gs(l,{x:0,y:0,width:s,height:a}),!t.ignoreViewBox)){var d=i;i=new lt["a"],i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==s||null==a||i.setClipPath(new $t["a"]({shape:{x:0,y:0,width:s,height:a}})),{root:i,width:s,height:a,viewBoxRect:l,viewBoxTransform:c,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var s,a=e.nodeName.toLowerCase(),l=i;if("defs"===a&&(r=!0),"text"===a&&(o=!0),"defs"===a||"switch"===a)s=t;else{if(!r){var c=_s[a];if(c&&Object(y["hasOwn"])(_s,a)){s=c.call(this,e,t);var u=e.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:a,el:s};n.push(h),"g"===a&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:a,el:s});t.add(s)}}var d=Is[a];if(d&&Object(y["hasOwn"])(Is,a)){var f=d.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=f)}}if(s&&s.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,s,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,s),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new u["a"]({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});As(t,n),Ps(e,n,this._defsUsePending,!1,!1),js(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},e.internalField=function(){_s={g:function(e,t){var n=new lt["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new $t["a"];return As(t,n),Ps(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 $o["a"];return As(t,n),Ps(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 Hr["a"];return As(t,n),Ps(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 ws["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=Ns(i));var r=new jo["a"]({shape:{points:n||[]},silent:!0});return As(t,r),Ps(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=Ns(i));var r=new Ci["a"]({shape:{points:n||[]},silent:!0});return As(t,r),Ps(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new l["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var s=new lt["a"];return As(t,s),Ps(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new lt["a"];return As(t,s),Ps(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",i=Object(Cs["b"])(n);return As(t,i),Ps(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Is={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new Nt["a"](t,n,i,r);return Ms(e,o),Ts(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new Ss["a"](t,n,i);return Ms(e,r),Ts(e,r),r}};function Ms(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function Ts(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};$s(n,o,o);var s=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:s})}n=n.nextSibling}}function As(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(y["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function Ns(e){for(var t=Vs(e),n=[],i=0;i0;o-=2){var s=i[o],a=i[o-1],l=Vs(s);switch(r=r||wr["create"](),a){case"translate":wr["translate"](r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":wr["scale"](r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":wr["rotate"](r,r,-parseFloat(l[0])*Hs,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*Hs);wr["mul"](r,[1,0,c,1,0,0],r);break;case"skewY":var u=Math.tan(parseFloat(l[0])*Hs);wr["mul"](r,[1,u,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var qs=/([^\s:;]+)\s*:\s*([^:;]+)/g;function $s(e,t,n){var i=e.getAttribute("style");if(i){var r;qs.lastIndex=0;while(null!=(r=qs.exec(i))){var o=r[1],s=Object(y["hasOwn"])(Os,o)?Os[o]:null;s&&(t[s]=r[2]);var a=Object(y["hasOwn"])(Ls,o)?Ls[o]:null;a&&(n[a]=r[2])}}}function Ks(e,t,n){for(var i=0;i0,g={api:n,geo:a,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===a.resourceType?this._buildGeoJSON(g):"geoSVG"===a.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=y["createHashMap"](),n=y["createHashMap"](),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,a=e.geo.projection,l=a&&a.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function u(e){for(var t=[],n=!l&&a&&a.project,i=0;i=0)&&(d=r);var f=s?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(bt["g"])(t,Object(bt["e"])(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=t.getTextContent();if(p&&(xa(p).ignore=p.ignore,t.textConfig&&s)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(s[0]-g.x)/g.width*100+"%",(s[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Ia(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Object(ft["a"])(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function Ma(e,t,n,i,r){e.data||dt["setTooltipConfig"]({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function Ta(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),s=o.get("focus");return Object(pt["J"])(t,s,o.get("blurScope"),o.get("disabled")),e.isGeo&&Object(pt["n"])(t,r,n),s}function Aa(e,t,n){var i,r=[];function o(){i=[]}function s(){i.length&&(r.push(i),i=[])}var a=t({polygonStart:o,polygonEnd:s,lineStart:o,lineEnd:s,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&a.polygonStart(),y["each"](e,(function(e){a.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}(st["b"]),Fa=Ra;function Ba(e,t){var n={};return y["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,s="ec-"+e[0].getName(r),a=0,l=1/0,c=-1/0,u=n[s].length,h=0;h1?(f.width=d,f.height=d/y):(f.height=d,f.width=d*y),f.y=h[1]-f.height/2,f.x=h[0]-f.width/2;else{var w=e.getBoxLayoutParams();w.aspect=y,f=pi["g"](w,{width:v,height:b})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Qa(e,t){y["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var Ja=function(){function e(){this.dimensions=Ka}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),s=new Za(o+r,o,y["extend"]({nameMap:e.get("nameMap")},i(e)));s.zoomLimit=e.get("scaleLimit"),n.push(s),e.coordinateSystem=s,s.model=e,s.resize=Xa,s.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),y["each"](r,(function(e,r){var o=y["map"](e,(function(e){return e.get("nameMap")})),s=new Za(r,r,y["extend"]({nameMap:y["mergeAll"](o)},i(e[0])));s.zoomLimit=y["retrieve"].apply(null,y["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=Xa,s.resize(e[0],t),y["each"](e,(function(e){e.coordinateSystem=s,Qa(s,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=y["createHashMap"](),s=0;s=0;s--){var a=i[s];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:s,thread:null},r.push(a)}}function pl(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){yl(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=_l(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function gl(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function ml(e){return arguments.length?e:Ol}function vl(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function bl(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yl(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function _l(e,t,n,i){if(t){var r=e,o=e,s=o.parentNode.children[0],a=t,l=r.hierNode.modifier,c=o.hierNode.modifier,u=s.hierNode.modifier,h=a.hierNode.modifier;while(a=wl(a),o=Cl(o),a&&o){r=wl(r),s=Cl(s),r.hierNode.ancestor=e;var d=a.hierNode.prelim+h-o.hierNode.prelim-c+i(a,o);d>0&&(xl(Sl(a,e,n),e,d),c+=d,l+=d),h+=a.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=s.hierNode.modifier}a&&!wl(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=h-l),o&&!Cl(s)&&(s.hierNode.thread=o,s.hierNode.modifier+=c-u,n=e)}return n}function wl(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Cl(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Sl(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function xl(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function Ol(e,t){return e.parentNode===t.parentNode?1:2}var kl=n("e263"),Ll=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),El=function(e){function t(t){return e.call(this,t)||this}return Object(rt["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ll},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],s=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var a=t.orient,l="TB"===a||"BT"===a?0:1,c=1-l,u=Object(Gt["q"])(t.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(s[c]-r[c])*u,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=s[l],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var d=1;db.x,C||(w-=Math.PI));var x=C?"left":"right",O=a.getModel("label"),k=O.get("rotate"),L=k*(Math.PI/180),E=m.getTextContent();E&&(m.setTextConfig({position:O.get("position")||x,rotation:null==k?-w:L,origin:"center"}),E.setStyle("verticalAlign","middle"))}var D=a.get(["emphasis","focus"]),I="relative"===D?y["concatArray"](s.getAncestorsIndices(),s.getDescendantIndices()):"ancestor"===D?s.getAncestorsIndices():"descendant"===D?s.getDescendantIndices():null;I&&(Object(ft["a"])(n).focus=I),Tl(r,s,u,n,p,f,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=s.parentNode&&e.getItemGraphicEl(s.parentNode.dataIndex);i&&i.hoverState===pt["d"]||Object(pt["H"])(n.__edge,t)}})}function Tl(e,t,n,i,r,o,s,a){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new dl["a"]({shape:jl(u,h,d,r,r)})),ht["h"](g,{shape:jl(u,h,d,o,s)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],b=0;bt&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=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 i=n.getData().tree.root,r=e.targetNode;if(y["isString"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ec(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function tc(e,t){var n=ec(e);return y["indexOf"](n,t)>=0}function nc(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var ic=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Ur["a"](n,this,this.ecModel),r=Ql.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var s=0;r.eachNode("preorder",(function(e){e.depth>s&&(s=e.depth)}));var a=e.expandAndCollapse,l=a&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),a=o.name;while(o&&o!==r)a=o.parentNode.name+"."+a,o=o.parentNode;return Object(Bo["c"])("nameValue",{name:a,value:s,noValue:isNaN(s)||null==s})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nc(i,this),n.collapsed=!i.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}(st["b"]),rc=ic;function oc(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var s=i.children;if(s.length)for(var a=0;a=0;o--)i.push(r[o])}}function ac(e,t){e.eachSeriesByType("tree",(function(e){lc(e,t)}))}function lc(e,t){var n=bl(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,s=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,s=ml((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,s=ml());var a=e.getData().tree.root,l=a.children[0];if(l){fl(a),oc(l,pl,s),a.hierNode.modifier=-l.hierNode.prelim,sc(l,gl);var c=l,u=l,h=l;sc(l,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>h.depth&&(h=e)}));var d=c===u?1:s(c,u)/2,f=d-c.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(u.getLayout().x+d+f),g=o/(h.depth-1||1),sc(l,(function(e){m=(e.getLayout().x+f)*p,v=(e.depth-1)*g;var t=vl(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var b=e.getOrient();"RL"===b||"LR"===b?(g=o/(u.getLayout().x+d+f),p=r/(h.depth-1||1),sc(l,(function(e){v=(e.getLayout().x+f)*g,m="LR"===b?(e.depth-1)*p:r-(e.depth-1)*p,e.setLayout({x:m,y:v},!0)}))):"TB"!==b&&"BT"!==b||(p=r/(u.getLayout().x+d+f),g=o/(h.depth-1||1),sc(l,(function(e){m=(e.getLayout().x+f)*p,v="TB"===b?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}function cc(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(y["extend"])(r,i)}))}))}function uc(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=ol(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function hc(e){e.registerChartView(Rl),e.registerSeriesModel(rc),e.registerLayout(ac),e.registerVisual(cc),uc(e)}var dc=["treemapZoomToNode","treemapRender","treemapMove"];function fc(e){for(var t=0;t1)n=n.parentNode;var r=Object(pc["b"])(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var mc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};vc(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Ur["a"]({itemStyle:r},this,t);i=e.levels=bc(i,t);var s=y["map"](i||[],(function(e){return new Ur["a"](e,o,t)}),this),a=Ql.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t),i=n?s[n.depth]:null;return e.parentModel=i||o,e}))}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return Object(Bo["c"])("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nc(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},y["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=y["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(){gc(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,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(st["b"]);function vc(e){var t=0;y["each"](e.children,(function(e){vc(e);var n=e.value;y["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;y["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),y["isArray"](e.value)?e.value[0]=n:e.value=n}function bc(e,t){var n=Object(Pt["r"])(t.get("color")),i=Object(Pt["r"])(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],y["each"](e,(function(e){var t=new Ur["a"](e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var s=e[0]||(e[0]={});return r||(s.color=n.slice()),!o&&i&&(s.decal=i.slice()),e}}var yc=mc,_c=n("80f0"),wc=8,Cc=8,Sc=5,xc=function(){function e(e){this.group=new lt["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var s=r.getModel("itemStyle"),a=r.getModel("emphasis"),l=s.getModel("textStyle"),c=a.getModel(["itemStyle","textStyle"]),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,s,a,l,c,i),pi["i"](o,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Object(Pt["e"])(i.getModel().get("name"),""),o=n.getTextRect(r),s=Math.max(o.width+2*wc,t.emptyItemWidth);t.totalWidth+=s+Cc,t.renderList.push({node:i,text:r,width:s})}},e.prototype._renderContent=function(e,t,n,i,r,o,s){for(var a=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=pi["e"](t.pos,t.box),h=t.totalWidth,d=t.renderList,f=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var g=d[p],m=g.node,v=g.width,b=g.text;h>u.width&&(h-=v-l,v=l,b=null);var _=new jo["a"]({shape:{points:Oc(a,0,v,c,p===d.length-1,0===p)},style:Object(y["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ie["a"]({style:Object(bt["c"])(r,{text:b})}),textConfig:{position:"inside"},z2:1e4*pt["j"],onclick:Object(y["curry"])(s,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Object(bt["c"])(o,{text:b}),_.ensureState("emphasis").style=f,Object(pt["J"])(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),kc(_,e,m),a+=v+Cc}},e.prototype.remove=function(){this.group.removeAll()},e}();function Oc(e,t,n,i,r,o){var s=[[r?e:e-Sc,t],[e+n,t],[e+n,t+i],[r?e:e-Sc,t+i]];return!o&&s.splice(2,0,[e+n+Sc,t+i/2]),!r&&s.push([e,t+i/2]),s}function kc(e,t,n){Object(ft["a"])(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&&nc(n,t)}}var Lc=xc,Ec=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;iAc||Math.abs(e.dy)>Ac)){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,i=e.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var s=new Gi["a"](o.x,o.y,o.width,o.height),a=null,l=this._controllerHost;a=l.zoomLimit;var c=l.zoom=l.zoom||1;if(c*=i,a){var u=a.min||0,h=a.max||1/0;c=Math.max(Math.min(h,c),u)}var d=c/l.zoom;l.zoom=c;var f=this.seriesModel.layoutInfo;t-=f.x,n-=f.y;var p=wr["create"]();wr["translate"](p,p,[-t,-n]),wr["scale"](p,p,[d,d]),wr["translate"](p,p,[t,n]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),s=o.get("link",!0),a=o.get("target",!0)||"blank";s&&Object(Jt["k"])(s,a)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Lc(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(tc(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Hc(),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,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),s=r.shape;if(!(s.x<=o[0]&&o[0]<=s.x+s.width&&s.y<=o[1]&&o[1]<=s.y+s.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(qt["a"]);function Hc(){return{nodeGroup:[],background:[],content:[]}}function Uc(e,t,n,i,r,o,s,a,l,c){if(s){var u=s.getLayout(),h=e.getData(),d=s.getModel();if(h.setItemGraphicEl(s.dataIndex,null),u&&u.isInView){var f=u.width,p=u.height,g=u.borderWidth,m=u.invisible,v=s.getRawIndex(),b=a&&a.getRawIndex(),_=s.viewChildren,w=u.upperHeight,C=_&&_.length,S=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),O=d.getModel(["blur","itemStyle"]),k=d.getModel(["select","itemStyle"]),L=S.get("borderRadius")||0,E=V("nodeGroup",Mc);if(E){if(l.add(E),E.x=u.x||0,E.y=u.y||0,E.markRedraw(),Vc(E).nodeWidth=f,Vc(E).nodeHeight=p,u.isAboveViewRoot)return E;var D=V("background",Tc,c,Rc);D&&j(E,D,C&&u.upperLabelHeight);var I=d.getModel("emphasis"),M=I.get("focus"),T=I.get("blurScope"),A=I.get("disabled"),N="ancestor"===M?s.getAncestorsIndices():"descendant"===M?s.getDescendantIndices():M;if(C)Object(pt["y"])(E)&&Object(pt["F"])(E,!1),D&&(Object(pt["F"])(D,!A),h.setItemGraphicEl(s.dataIndex,D),Object(pt["p"])(D,N,T));else{var P=V("content",Tc,c,Fc);P&&R(E,P),D.disableMorphing=!0,D&&Object(pt["y"])(D)&&Object(pt["F"])(D,!1),Object(pt["F"])(E,!A),h.setItemGraphicEl(s.dataIndex,E),Object(pt["p"])(E,N,T)}return E}}}function j(t,n,i){var r=Object(ft["a"])(n);if(r.dataIndex=s.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:L}),m)F(n);else{n.invisible=!1;var o=s.getVisual("style"),a=o.stroke,l=Wc(S);l.fill=a;var c=Bc(x);c.fill=x.get("borderColor");var u=Bc(O);u.fill=O.get("borderColor");var h=Bc(k);if(h.fill=k.get("borderColor"),i){var d=f-2*g;B(n,a,o.opacity,{x:g,y:0,width:d,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,Object(pt["G"])(n)}t.add(n)}function R(t,n){var i=Object(ft["a"])(n);i.dataIndex=s.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(f-2*g,0),o=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:L}),m)F(n);else{n.invisible=!1;var a=s.getVisual("style"),l=a.fill,c=Wc(S);c.fill=l,c.decal=a.decal;var u=Bc(x),h=Bc(O),d=Bc(k);B(n,l,a.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(pt["G"])(n)}t.add(n)}function F(e){!e.invisible&&o.push(e)}function B(t,n,i,r){var o=d.getModel(r?Pc:Nc),a=Object(Pt["e"])(d.get("name"),null),l=o.getShallow("show");Object(bt["g"])(t,Object(bt["e"])(d,r?Pc:Nc),{defaultText:l?a:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:s.dataIndex});var c=t.getTextContent();if(c){var h=c.style,f=Object(y["normalizeCssArray"])(h.padding||0);r&&(t.setTextConfig({layoutRect:r}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:t.shape.height)-f[0]-f[2],0);h.width===e&&h.height===n||c.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",W(h,r,u);var p=c.getState("emphasis");W(p?p.style:null,r,u)}}function W(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function V(e,i,o,s){var a=null!=b&&n[e][b],l=r[e];return a?(n[e][b]=null,z(l,a)):m||(a=new i,a instanceof ya["c"]&&(a.z2=qc(o,s)),H(l,a)),t[e][v]=a}function z(e,t){var n=e[v]={};t instanceof Mc?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(y["extend"])({},t.shape)}function H(e,t){var n=e[v]={},o=s.parentNode,a=t instanceof lt["a"];if(o&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=r.background[o.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),a?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!a}}function qc(e,t){return e*jc+t}var $c=zc,Kc=n("edae"),Gc=y["each"],Yc=y["isObject"],Zc=-1,Xc=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=y["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=cu[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(eu(r),Qc(r)):"category"===n?r.categories?Jc(r):eu(r,!0):(y["assert"]("linear"!==n||r.dataExtent),eu(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return y["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return y["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){y["isObject"](e)?y["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=y["isArray"](t)?[]:y["isObject"](t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var s=n.call(i,e,t);r?o=s:o[t]=s})),o},e.retrieveVisuals=function(t){var n,i={};return t&&Gc(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(y["isArray"](e))e=e.slice();else{if(!Yc(e))return[];var t=[];Gc(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,s=t.length;o=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function eu(e,t){var n=e.visual,i=[];y["isObject"](n)?Gc(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),lu(e,i)}function tu(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:su([0,1])}}function nu(e){var t=this.option.visual;return t[Math.round(Object(Gt["m"])(e,[0,1],[0,t.length-1],!0))]||{}}function iu(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function ru(e){var t=this.option.visual;return t[this.option.loop&&e!==Zc?e%t.length:e]}function ou(){return this.option.visual[0]}function su(e){return{linear:function(t){return Object(Gt["m"])(t,e,this.option.visual,!0)},category:ru,piecewise:function(t,n){var i=au.call(this,n);return null==i&&(i=Object(Gt["m"])(t,e,this.option.visual,!0)),i},fixed:ou}}function au(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=Xc.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function lu(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=y["map"](t,(function(e){var t=oe["parse"](e);return t||[0,0,0,1]}))),t}var cu={linear:function(e){return Object(Gt["m"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Xc.findPieceIndex(e,t,!0);if(null!=n)return Object(Gt["m"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Zc:t},fixed:y["noop"]};function uu(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=Cu(r,c,e,t,p,i);gu(e,o,n,i)}}))}else a=vu(c),u.fill=a}}function mu(e,t,n){var i=Object(y["extend"])({},t),r=n.designatedVisualItemStyle;return Object(y["each"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function vu(e){var t=yu(e,"color");if(t){var n=yu(e,"colorAlpha"),i=yu(e,"colorSaturation");return i&&(t=Object(oe["modifyHSL"])(t,null,null,i)),n&&(t=Object(oe["modifyAlpha"])(t,n)),t}}function bu(e,t){return null!=t?Object(oe["modifyHSL"])(t,null,null,e):null}function yu(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function _u(e,t,n,i,r,o){if(o&&o.length){var s=wu(t,"color")||null!=r.color&&"none"!==r.color&&(wu(t,"colorAlpha")||wu(t,"colorSaturation"));if(s){var a=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=a&&ac[1]&&(c[1]=l);var u=t.get("colorMappingBy"),h={type:s.name,dataExtent:c,visual:s.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new hu(h);return fu(d).drColorMappingBy=u,d}}}function wu(e,t){var n=e.get(t);return Object(y["isArray"])(n)&&n.length?{name:t,range:n}:null}function Cu(e,t,n,i,r,o){var s=Object(y["extend"])({},t);if(r){var a=r.type,l="color"===a&&fu(r).drColorMappingBy,c="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));s[a]=r.mapValueToVisual(c)}return s}var Su=Math.max,xu=Math.min,Ou=y["retrieve"],ku=y["each"],Lu=["itemStyle","borderWidth"],Eu=["itemStyle","gapWidth"],Du=["upperLabel","show"],Iu=["upperLabel","height"],Mu={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),s=e.option,a=pi["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],c=Object(Gt["q"])(Ou(a.width,l[0]),r),u=Object(Gt["q"])(Ou(a.height,l[1]),o),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],f=Jl(i,d,e),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,g=e.getViewRoot(),m=ec(g);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Bu(e,f,g,c,u):p?[p.width,p.height]:[c,u],b=s.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:s.squareRatio,sort:b,leafDepth:s.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};g.setLayout(w),Tu(g,_,!1,0),w=g.getLayout(),ku(m,(function(e,t){var n=(m[t+1]||g).getValue();e.setLayout(y["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},w))}))}var C=e.getData().tree.root;C.setLayout(Wu(a,p,f),!0),e.setLayoutInfo(a),Vu(C,new Gi["a"](-a.x,-a.y,r,o),m,g,0)}};function Tu(e,t,n,i){var r,o;if(!e.isRemoved()){var s=e.getLayout();r=s.width,o=s.height;var a=e.getModel(),l=a.get(Lu),c=a.get(Eu)/2,u=zu(a),h=Math.max(l,u),d=l-c,f=h-c;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),r=Su(r-2*d,0),o=Su(o-d-f,0);var p=r*o,g=Au(e,a,p,t,n,i);if(g.length){var m={x:d,y:f,width:r,height:o},v=xu(r,o),b=1/0,y=[];y.area=0;for(var _=0,w=g.length;_=0;l--){var c=r["asc"===i?s-l-1:l].getValue();c/n*ts[1]&&(s[1]=t)}))):s=[NaN,NaN],{sum:i,dataExtent:s}}function Ru(e,t,n){for(var i=0,r=1/0,o=0,s=void 0,a=e.length;oi&&(i=s));var l=e.area*e.area,c=t*t*n;return l?Su(c*i/l,l/(c*r)):1/0}function Fu(e,t,n,i,r){var o=t===n.width?0:1,s=1-o,a=["x","y"],l=["width","height"],c=n[a[o]],u=t?e.area/t:0;(r||u>n[l[s]])&&(u=n[l[s]]);for(var h=0,d=e.length;hGt["a"]&&(c=Gt["a"]),s=o}ci&&(i=t);var o=i%2?i+2:i+3;r=[];for(var s=0;s0&&(b[0]=-b[0],b[1]=-b[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var w=-Math.atan2(v[1],v[0]);c[0].8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*p+l[0],i.y=-u[1]*g+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*_+l[0],i.y=l[1]+C,h=v[0]<0?"right":"left",i.originX=-p*_,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=y[0],i.y=y[1]+C,h="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*_+c[0],i.y=c[1]+C,h=v[0]>=0?"right":"left",i.originX=p*_,i.originY=-C;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=s.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(lt["a"]),Nh=Ah,Ph=function(){function e(e){this.group=new lt["a"],this._LineCtor=e||Nh}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=Rh(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.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=Rh(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||jh(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i0}function Rh(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:Object(bt["e"])(t)}}function Fh(e){return isNaN(e[0])||isNaN(e[1])}function Bh(e){return e&&!Fh(e[0])&&!Fh(e[1])}var Wh=Ph,Vh=[],zh=[],Hh=[],Uh=jt["h"],qh=Cr["distSquare"],$h=Math.abs;function Kh(e,t,n){for(var i,r=e[0],o=e[1],s=e[2],a=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Vh[0]=Uh(r[0],o[0],s[0],u),Vh[1]=Uh(r[1],o[1],s[1],u);var h=$h(qh(Vh,t)-l);h=0?i+=c:i-=c:p>=0?i-=c:i+=c}return i}function Gh(e,t){var n=[],i=jt["n"],r=[[],[],[]],o=[[],[]],s=[];t/=2,e.eachEdge((function(e,a){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Cr["clone"](l[0]),Cr["clone"](l[1])],l[2]&&l.__original.push(Cr["clone"](l[2])));var h=l.__original;if(null!=l[2]){if(Cr["copy"](r[0],h[0]),Cr["copy"](r[1],h[2]),Cr["copy"](r[2],h[1]),c&&"none"!==c){var d=ch(e.node1),f=Kh(r,h[0],d*t);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&"none"!==u){d=ch(e.node2),f=Kh(r,h[1],d*t);i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]}Cr["copy"](l[0],r[0]),Cr["copy"](l[1],r[2]),Cr["copy"](l[2],r[1])}else{if(Cr["copy"](o[0],h[0]),Cr["copy"](o[1],h[1]),Cr["sub"](s,o[1],o[0]),Cr["normalize"](s,s),c&&"none"!==c){d=ch(e.node1);Cr["scaleAndAdd"](o[0],o[0],s,d*t)}if(u&&"none"!==u){d=ch(e.node2);Cr["scaleAndAdd"](o[1],o[1],s,-d*t)}Cr["copy"](l[0],o[0]),Cr["copy"](l[1],o[1])}}))}function Yh(e){return"view"===e.type}var Zh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){var n=new kt,i=new Wh,r=this.group;this._controller=new gs(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,a=this.group;if(Yh(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?a.attr(l):ht["h"](a,l,e)}Gh(e.getGraph(),lh(e));var c=e.getData();o.updateData(c);var u=e.getEdgeData();s.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var f=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var s=o.get("draggable");s&&r.on("drag",(function(o){switch(f){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[r.x,r.y]);break;case"circular":c.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),dh(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(n,[r.x,r.y]),sh(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(s,!!o.get("cursor"));var a=o.get(["emphasis","focus"]);"adjacency"===a&&(Object(ft["a"])(r).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Object(ft["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode((function(e){ph(e,p,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,s=this.group;r.setPointerChecker((function(t,i,r){var o=s.getBoundingRect();return o.applyTransform(s.transform),o.contain(i,r)&&!ys(t,n,e)})),Yh(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){ms(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){vs(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),Gh(e.getGraph(),lh(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=lh(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){Gh(e.getGraph(),lh(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(qt["a"]),Xh=Zh;function Qh(e){return"_EC_"+e}var Jh=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[Qh(e)]){var i=new ed(e,t);return i.hostGraph=this,this.nodes.push(i),n[Qh(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[Qh(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(y["isNumber"](e)&&(e=this.nodes[e]),y["isNumber"](t)&&(t=this.nodes[t]),e instanceof ed||(e=i[Qh(e)]),t instanceof ed||(t=i[Qh(t)]),e&&t){var o=e.id+"-"+t.id,s=new td(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),r[o]=s,s}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof ed&&(e=e.id),t instanceof ed&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof ed||(t=this._nodesMap[Qh(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}y["mixin"](ed,nd("hostGraph","data")),y["mixin"](td,nd("hostGraph","edgeData"));var id=Jh,rd=n("1f39");function od(e,t,n,i,r){for(var o=new id(i),s=0;s "+d)),c++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=Object(ot["a"])(e,n);else{var g=rd["a"].get(p),m=g&&g.dimensions||[];y["indexOf"](m,"value")<0&&m.concat(["value"]);var v=Object(Pi["b"])(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;f=new ji["a"](v,n),f.initData(e)}var b=new ji["a"](["value"],n);return b.initData(l,a),r&&r(f,b),Gl({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var sd=n("f6d8"),ad=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Wi(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(Pt["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){nh(this);var o=od(i,n,this,!0,s);return y["each"](o.edges,(function(e){ih(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function s(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Ur["a"].prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(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=o,e.getModel=i,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 i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),a=i.getName(o.node2.dataIndex),l=[];return null!=s&&l.push(s),null!=a&&l.push(a),Object(Bo["c"])("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var c=Object(sd["a"])({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=y["map"](this.option.categories||[],(function(e){return null!=e.value?e:y["extend"]({value:0},e)})),t=new ji["a"](["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}(st["b"]),ld=ad,cd={type:"graphRoam",event:"graphRoam",update:"none"};function ud(e){e.registerChartView(Xh),e.registerSeriesModel(ld),e.registerProcessor(Uu),e.registerVisual(qu),e.registerVisual(Ku),e.registerLayout(ah),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,gh),e.registerLayout(bh),e.registerCoordinateSystem("graphView",{dimensions:qa.dimensions,create:_h}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},y["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},y["noop"]),e.registerAction(cd,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=ol(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var hd=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),dd=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,s=t.angle,a=t.x-n(s)*o*(o>=r/3?1:2),l=t.y-i(s)*o*(o>=r/3?1:2);s=t.angle-Math.PI/2,e.moveTo(a,l),e.lineTo(t.x+n(s)*o,t.y+i(s)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(s)*o,t.y-i(s)*o),e.lineTo(a,l)},t}(a["b"]),fd=dd;function pd(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),s=Object(Gt["q"])(n[0],t.getWidth()),a=Object(Gt["q"])(n[1],t.getHeight()),l=Object(Gt["q"])(e.get("radius"),o/2);return{cx:s,cy:a,r:l}}function gd(e,t){var n=null==e?"":e+"";return t&&(Object(y["isString"])(t)?n=t.replace("{value}",n):Object(y["isFunction"])(t)&&(n=t(e))),n}var md=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=pd(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,s=e.get("clockwise"),a=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),h=u?Pn:Kt["a"],d=c.get("show"),f=c.getModel("lineStyle"),p=f.get("width"),g=[a,l];Object(H["b"])(g,!s),a=g[0],l=g[1];for(var m=l-a,v=a,b=[],_=0;d&&_=e&&(0===t?0:i[t-1][0])Math.PI/2&&(B+=Math.PI)):"tangential"===F?B=-O-Math.PI/2:Object(y["isNumber"])(F)&&(B=F*Math.PI/180),0===B?h.add(new ie["a"]({style:Object(bt["c"])(_,{text:N,x:j,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:P}),silent:!0})):h.add(new ie["a"]({style:Object(bt["c"])(_,{text:N,x:j,y:R,verticalAlign:"middle",align:"center"},{inheritColor:P}),silent:!0,originX:j,originY:R,rotation:B}))}if(b.get("show")&&M!==w){T=b.get("distance");T=T?T+l:l;for(var W=0;W<=C;W++){c=Math.cos(O),u=Math.sin(O);var V=new Hr["a"]({shape:{x1:c*(p-T)+d,y1:u*(p-T)+f,x2:c*(p-x-T)+d,y2:u*(p-x-T)+f},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:i((M+W/C)/w)}),h.add(V),O+=L}O-=L}else O+=k}},t.prototype._renderPointer=function(e,t,n,i,r,o,s,a,c){var u=this.group,h=this._data,d=this._progressEls,f=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),v=e.getData(),b=v.mapDimension("value"),_=+e.get("min"),w=+e.get("max"),C=[_,w],S=[o,s];function x(t,n){var i,o=v.getItemModel(t),s=o.getModel("pointer"),a=Object(Gt["q"])(s.get("width"),r.r),l=Object(Gt["q"])(s.get("length"),r.r),c=e.get(["pointer","icon"]),u=s.get("offsetCenter"),h=Object(Gt["q"])(u[0],r.r),d=Object(Gt["q"])(u[1],r.r),f=s.get("keepAspect");return i=c?Object(at["a"])(c,h-a/2,d-l,a,l,null,f):new fd({shape:{angle:-Math.PI/2,width:a,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function O(e,t){var n=g.get("roundCap"),i=n?Pn:Kt["a"],s=g.get("overlap"),l=s?g.get("width"):c/v.count(),u=s?r.r-l:r.r-(e+1)*l,h=s?r.r:r.r-e*l,d=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:a,r0:u,r:h}});return s&&(d.z2=w-v.get(b,e)%w),d}(m||p)&&(v.diff(h).add((function(t){var n=v.get(b,t);if(p){var i=x(t,o);ht["c"](i,{rotation:-((isNaN(+n)?S[0]:Object(Gt["m"])(n,C,S,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(m){var r=O(t,o),s=g.get("clip");ht["c"](r,{shape:{endAngle:Object(Gt["m"])(n,C,S,s)}},e),u.add(r),Object(ft["b"])(e.seriesIndex,v.dataType,t,r),f[t]=r}})).update((function(t,n){var i=v.get(b,t);if(p){var r=h.getItemGraphicEl(n),s=r?r.rotation:o,a=x(t,s);a.rotation=s,ht["h"](a,{rotation:-((isNaN(+i)?S[0]:Object(Gt["m"])(i,C,S,!0))+Math.PI/2)},e),u.add(a),v.setItemGraphicEl(t,a)}if(m){var l=d[n],c=l?l.shape.endAngle:o,y=O(t,c),_=g.get("clip");ht["h"](y,{shape:{endAngle:Object(Gt["m"])(i,C,S,_)}},e),u.add(y),Object(ft["b"])(e.seriesIndex,v.dataType,t,y),f[t]=y}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),s=n.get("disabled");if(p){var a=v.getItemGraphicEl(e),c=v.getItemVisual(e,"style"),u=c.fill;if(a instanceof l["a"]){var h=a.style;a.useStyle(Object(y["extend"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},c))}else a.useStyle(c),"pointer"!==a.type&&a.setColor(u);a.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===a.style.fill&&a.setStyle("fill",i(Object(Gt["m"])(v.get(b,e),C,[0,1],!0))),a.z2EmphasisLift=0,Object(pt["I"])(a,t),Object(pt["J"])(a,r,o,s)}if(m){var d=f[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Object(pt["I"])(d,t),Object(pt["J"])(d,r,o,s)}})),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),s=n.get("offsetCenter"),a=n.get("keepAspect"),l=Object(at["a"])(o,t.cx-r/2+Object(Gt["q"])(s[0],t.r),t.cy-r/2+Object(Gt["q"])(s[1],t.r),r,r,null,a);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,s=e.getData(),a=s.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new lt["a"],h=[],d=[],f=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add((function(e){h[e]=new ie["a"]({silent:!0}),d[e]=new ie["a"]({silent:!0})})).update((function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),s.each((function(t){var n=s.getItemModel(t),o=s.get(a,t),g=new lt["a"],m=i(Object(Gt["m"])(o,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),y=r.cx+Object(Gt["q"])(b[0],r.r),_=r.cy+Object(Gt["q"])(b[1],r.r),w=h[t];w.attr({z2:p?0:2,style:Object(bt["c"])(v,{x:y,y:_,text:s.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(w)}var C=n.getModel("detail");if(C.get("show")){var S=C.get("offsetCenter"),x=r.cx+Object(Gt["q"])(S[0],r.r),O=r.cy+Object(Gt["q"])(S[1],r.r),k=Object(Gt["q"])(C.get("width"),r.r),L=Object(Gt["q"])(C.get("height"),r.r),E=e.get(["progress","show"])?s.getItemVisual(t,"style").fill:m,D=(w=d[t],C.get("formatter"));w.attr({z2:p?0:2,style:Object(bt["c"])(C,{x:x,y:O,text:gd(o,D),width:isNaN(k)?null:k,height:isNaN(L)?null:L,align:"center",verticalAlign:"middle"},{inheritColor:E})}),Object(bt["h"])(w,{normal:C},o,(function(e){return gd(e,D)})),f&&Object(bt["a"])(w,t,s,e,{getFormattedLabel:function(e,t,n,i,r,s){return gd(s?s.interpolatedValue:o,D)}}),g.add(w)}u.add(g)})),this.group.add(u),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(qt["a"]),vd=md,bd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Ri(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}(st["b"]),yd=bd;function _d(e){e.registerChartView(vd),e.registerSeriesModel(yd)}var wd=["itemStyle","opacity"],Cd=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Ci["a"],s=new ie["a"];return r.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return Object(rt["a"])(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),a=o.getModel("emphasis"),l=o.get(wd);l=null==l?1:l,n||Object(ht["g"])(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:s.points}),i.style.opacity=0,ht["c"](i,{style:{opacity:l}},r,t)):ht["h"](i,{style:{opacity:l},shape:{points:s.points}},r,t),Object(pt["I"])(i,o),this._updateLabel(e,t),Object(pt["J"])(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,s=e.getItemModel(t),a=e.getItemLayout(t),l=a.label,c=e.getItemVisual(t,"style"),u=c.fill;Object(bt["g"])(r,Object(bt["e"])(s),{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 h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Si["a"](h[0][0],h[0][1]):null},ht["h"](r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(xi["d"])(n,Object(xi["a"])(s),{stroke:u})},t}(jo["a"]),Sd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new Cd(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);ht["f"](n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(qt["a"]),xd=Sd,Od=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wi(y["bind"](this.getData,this),y["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Ri(this,{coordDimensions:["value"],encodeDefaulter:y["curry"](Fi["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(Pt["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={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}(st["b"]),kd=Od;function Ld(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ed(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,s=0,a=e.count();sXd)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&ef(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function ef(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var tf=Qd,nf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&y["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){y["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=y["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);y["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}(ir["a"]),rf=nf,of=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i)||this;return s.type=r||"value",s.axisIndex=o,s}return Object(rt["a"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Lr["a"]),sf=of;function af(e,t,n,i,r,o){e=e||0;var s=n[1]-n[0];if(null!=r&&(r=cf(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var a=Math.abs(t[1]-t[0]);a=cf(a,[0,s]),r=o=cf(a,[r,o]),i=0}t[0]=cf(t[0],n),t[1]=cf(t[1],n);var l=lf(t,i);t[i]+=e;var c,u=r||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,t[i]=cf(t[i],h),c=lf(t,i),null!=r&&(c.sign!==l.sign||c.spano&&(t[1-i]=t[i]+c.sign*o),t}function lf(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 cf(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var uf=y["each"],hf=Math.min,df=Math.max,ff=Math.floor,pf=Math.ceil,gf=Gt["w"],mf=Math.PI,vf=function(){function e(e,t,n){this.type="parallel",this._axesMap=y["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;uf(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),s=this._axesMap.set(e,new sf(e,br["a"](o),[0,0],o.get("type"),i)),a="category"===s.type;s.onBand=a&&o.get("boundaryGap"),s.inverse=o.get("inverse"),o.axis=s,s.model=o,s.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],s=e[r];return o>=n&&o<=n+t.axisLength&&s>=i&&s<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();uf(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),br["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),s="horizontal"===o?0:1,a=n[r[s]],l=[0,a],c=this.dimensions.length,u=bf(t.get("axisExpandWidth"),l),h=bf(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&a>0,f=t.get("axisExpandWindow");if(f)e=bf(f[1]-f[0],l),f[1]=f[0]+e;else{e=bf(u*(h-1),l);var p=t.get("axisExpandCenter")||ff(c/2);f=[u*p-e/2],f[1]=f[0]+e}var g=(a-e)/(c-h);g<3&&(g=0);var m=[ff(gf(f[0]/u,1))+1,pf(gf(f[1]/u,1))-1],v=g/u*f[0];return{layout:o,pixelDimIndex:s,layoutBase:n[i[s]],layoutLength:a,axisBase:n[i[1-s]],axisLength:n[r[1-s]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:g,axisExpandWindow:f,axisCount:c,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),uf(n,(function(t,n){var o=(i.axisExpandable?_f:yf)(n,i),s={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},a={horizontal:mf/2,vertical:0},l=[s[r].x+e.x,s[r].y+e.y],c=a[r],u=wr["create"]();wr["rotate"](u,u,c),wr["translate"](u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,s=[],a=[];y["each"](o,(function(t){s.push(e.mapDimension(t)),a.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;cr*(1-u[0])?(l="jump",s=a-r*(1-u[2])):(s=a-r*u[1])>=0&&(s=a-r*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/c,s?af(s,i,o,"all"):l="none";else{var d=i[1]-i[0],f=o[1]*a/d;i=[df(0,f-d/2)],i[1]=hf(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function bf(e,t){return hf(df(e,t[0]),t[1])}function yf(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function _f(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,s=t.axisCount,a=t.axisCollapseWidth,l=t.winInnerIndices,c=a,u=!1;return e=0;n--)Gt["c"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;iTf}function Xf(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Qf(e,t,n,i){var r=new lt["a"];return r.add(new $t["a"]({name:"main",style:np(n),silent:!0,draggable:!0,cursor:"move",drift:Object(y["curry"])(ap,e,t,r,["n","s","w","e"]),ondragend:Object(y["curry"])(Yf,t,{isEnd:!0})})),Object(y["each"])(i,(function(n){r.add(new $t["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(y["curry"])(ap,e,t,r,n),ondragend:Object(y["curry"])(Yf,t,{isEnd:!0})}))})),r}function Jf(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=Df(r,Af),s=n[0][0],a=n[1][0],l=s-r/2,c=a-r/2,u=n[0][1],h=n[1][1],d=u-o+r/2,f=h-o+r/2,p=u-s,g=h-a,m=p+r,v=g+r;tp(e,t,"main",s,a,p,g),i.transformable&&(tp(e,t,"w",l,c,o,v),tp(e,t,"e",d,c,o,v),tp(e,t,"n",l,c,m,o),tp(e,t,"s",l,f,m,o),tp(e,t,"nw",l,c,o,o),tp(e,t,"ne",d,c,o,o),tp(e,t,"sw",l,f,o,o),tp(e,t,"se",d,f,o,o))}function ep(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(np(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(y["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?op(e,n[0]):sp(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?jf[o]+"-resize":null})}))}function tp(e,t,n,i,r,o,s){var a=t.childOfName(n);a&&a.setShape(hp(up(e,t,[[i,r],[i+o,r+s]])))}function np(e){return Object(y["defaults"])({strokeNoScale:!0},e.brushStyle)}function ip(e,t,n,i){var r=[Ef(e,n),Ef(t,i)],o=[Df(e,n),Df(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function rp(e){return dt["getTransform"](e.group)}function op(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=dt["transformDirection"](n[t],rp(e));return i[r]}function sp(e,t){var n=[op(e,t[0]),op(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function ap(e,t,n,i,r,o){var s=n.__brushOption,a=e.toRectRange(s.range),l=cp(t,r,o);Object(y["each"])(i,(function(e){var t=Pf[e];a[t[0]][t[1]]+=l[t[0]]})),s.range=e.fromRectRange(ip(a[0][0],a[1][0],a[0][1],a[1][1])),Uf(t,n),Yf(t,{isEnd:!1})}function lp(e,t,n,i){var r=t.__brushOption.range,o=cp(e,n,i);Object(y["each"])(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),Uf(e,t),Yf(e,{isEnd:!1})}function cp(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function up(e,t,n){var i=Kf(e,t);return i&&i!==Lf?i.clipPath(n,e._transform):Object(y["clone"])(n)}function hp(e){var t=Ef(e[0][0],e[1][0]),n=Ef(e[0][1],e[1][1]),i=Df(e[0][0],e[1][0]),r=Df(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function dp(e,t,n){if(e._brushType&&!yp(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=$f(e,t,n);if(!e._dragging)for(var s=0;si.getWidth()||n<0||n>i.getHeight()}var _p={lineX:wp(0),lineY:wp(1),rect:{createCover:function(e,t){function n(e){return e}return Qf({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Xf(e);return ip(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){Jf(e,t,n,i)},updateCommon:ep,contain:pp},polygon:{createCover:function(e,t){var n=new lt["a"];return n.add(new Ci["a"]({name:"main",style:np(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new jo["a"]({name:"main",draggable:!0,drift:Object(y["curry"])(lp,e,t),ondragend:Object(y["curry"])(Yf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:up(e,t,n)})},updateCommon:ep,contain:pp}};function wp(e){return{createCover:function(t,n){return Qf({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=Xf(t),i=Ef(n[0][e],n[1][e]),r=Df(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,s=Kf(t,n);if(s!==Lf&&s.getLinearBrushOtherExtent)o=s.getLinearBrushOtherExtent(e);else{var a=t._zr;o=[0,[a.getWidth(),a.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),Jf(t,n,l,r)},updateCommon:ep,contain:pp}}var Cp=Bf;function Sp(e){return e=kp(e),function(t){return dt["clipPointsByRect"](t,e)}}function xp(e,t){return e=kp(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function Op(e,t,n){var i=kp(e);return function(e,r){return i.contain(r[0],r[1])&&!ys(e,t,n)}}function kp(e){return Gi["a"].create(e)}var Lp=["axisLine","axisTickLabel","axisName"],Ep=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Cp(n.getZr())).on("brush",y["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Dp(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new lt["a"],this.group.add(this._axisGroup),e.get("show")){var o=Mp(e,t),s=o.coordinateSystem,a=e.getAreaSelectStyle(),l=a.width,c=e.axis.dim,u=s.getAxisLayout(c),h=y["extend"]({strokeContainThreshold:l},u),d=new io(e,h);y["each"](Lp,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,a,e,o,l,n),dt["groupTransition"](r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var s=n.axis.getExtent(),a=s[1]-s[0],l=Math.min(30,.1*Math.abs(a)),c=Gi["a"].create({x:s[0],y:-r/2,width:a,height:r});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:Sp(c),isTargetByCursor:Op(c,o,i),getLinearBrushOtherExtent:xp(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Ip(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=y["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(nr["a"]);function Dp(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Ip(e){var t=e.axis;return y["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Mp(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Tp=Ep,Ap={type:"axisAreaSelect",event:"axisAreaSelected"};function Np(e){e.registerAction(Ap,(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 Pp={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function jp(e){e.registerComponentView(tf),e.registerComponentModel(rf),e.registerCoordinateSystem("parallel",xf),e.registerPreprocessor(Gd),e.registerComponentModel(kf),e.registerComponentView(Tp),mr(e,"parallel",kf,Pp),Np(e)}function Rp(e){Object(i["a"])(jp),e.registerChartView(Wd),e.registerSeriesModel(Ud),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Kd)}var Fp=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}(),Bp=function(e){function t(t){return e.call(this,t)||this}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Fp},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(){Object(pt["r"])(this)},t.prototype.downplay=function(){Object(pt["C"])(this)},t}(a["b"]),Wp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,s=e.layoutInfo,a=s.width,l=s.height,c=e.getData(),u=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,r.eachEdge((function(t){var n=new Bp,i=Object(ft["a"])(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,s,c,d,f,p,g,m,v=t.getModel(),b=v.getModel("lineStyle"),_=b.get("curveness"),w=t.node1.getLayout(),C=t.node1.getModel(),S=C.get("localX"),x=C.get("localY"),O=t.node2.getLayout(),k=t.node2.getModel(),L=k.get("localX"),E=k.get("localY"),D=t.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=h,"vertical"===h?(r=(null!=S?S*a:w.x)+D.sy,s=(null!=x?x*l:w.y)+w.dy,c=(null!=L?L*a:O.x)+D.ty,d=null!=E?E*l:O.y,f=r,p=s*(1-_)+d*_,g=c,m=s*_+d*(1-_)):(r=(null!=S?S*a:w.x)+w.dx,s=(null!=x?x*l:w.y)+D.sy,c=null!=L?L*a:O.x,d=(null!=E?E*l:O.y)+D.ty,f=r*(1-_)+c*_,p=s,g=r*_+c*(1-_),m=d),n.setShape({x1:r,y1:s,x2:c,y2:d,cpx1:f,cpy1:p,cpx2:g,cpy2:m}),n.useStyle(b.getItemStyle()),Vp(n.style,h,t);var I=""+v.get("value"),M=Object(bt["e"])(v,"edgeLabel");Object(bt["g"])(n,M,{labelFetcher:{getFormattedLabel:function(t,n,i,r,o,s){return e.getFormattedLabel(t,n,"edge",r,Object(y["retrieve3"])(o,M.normal&&M.normal.get("formatter"),I),s)}},labelDataIndex:t.dataIndex,defaultText:I}),n.setTextConfig({position:"inside"});var T=v.getModel("emphasis");Object(pt["I"])(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return Vp(n,h,t),n})),o.add(n),u.setItemGraphicEl(t.dataIndex,n);var A=T.get("focus");Object(pt["J"])(n,"adjacency"===A?t.getAdjacentDataIndices():"trajectory"===A?t.getTrajectoryDataIndices():A,T.get("blurScope"),T.get("disabled"))})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),s=i.get("localY"),u=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new $t["a"]({shape:{x:null!=r?r*a:n.x,y:null!=s?s*l:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(bt["g"])(d,Object(bt["e"])(i),{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),Object(pt["I"])(d,i),o.add(d),c.setItemGraphicEl(t.dataIndex,d),Object(ft["a"])(d).dataType="node";var f=u.get("focus");Object(pt["J"])(d,"adjacency"===f?t.getAdjacentDataIndices():"trajectory"===f?t.getTrajectoryDataIndices():f,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,r){var o=c.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/a,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(zp(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(qt["a"]);function Vp(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 i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(y["isString"])(i)&&Object(y["isString"])(r)&&(e.fill=new Nt["a"](0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}function zp(e,t,n){var i=new $t["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ht["c"](i,{shape:{width:e.width+20}},t,n),i}var Hp=Wp,Up=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s=0&&(o[r[s].depth]=new Ur["a"](r[s],this,t));if(i&&n){var a=od(i,n,this,!0,l);return a.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,s=n.levelModels[o];s&&(e.parentModel=s)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,s=r.value,a=o.source+" -- "+o.target;return Object(Bo["c"])("nameValue",{name:a,value:s,noValue:i(s)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Object(Bo["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},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}(st["b"]),qp=Up;function $p(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=Kp(e,t);e.layoutInfo=r;var o=r.width,s=r.height,a=e.getGraph(),l=a.nodes,c=a.edges;Yp(l);var u=y["filter"](l,(function(e){return 0===e.getLayout().value})),h=0!==u.length?0:e.get("layoutIterations"),d=e.get("orient"),f=e.get("nodeAlign");Gp(l,c,n,i,o,s,h,d,f)}))}function Kp(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gp(e,t,n,i,r,o,s,a,l){Zp(e,t,n,r,o,a,l),tg(e,t,o,r,i,s,a),pg(e,a)}function Yp(e){y["each"](e,(function(e){var t=dg(e.outEdges,hg),n=dg(e.inEdges,hg),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function Zp(e,t,n,i,r,o,s){for(var a=[],l=[],c=[],u=[],h=0,d=0;d=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var b=0;bh-1?f:h-1;s&&"left"!==s&&Qp(e,s,o,S);var x="vertical"===o?(r-n)/S:(i-n)/S;eg(e,x,o)}function Xp(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Qp(e,t,n,i){if("right"===t){var r=[],o=e,s=0;while(o.length){for(var a=0;a0;o--)l*=.99,og(a,l,s),rg(a,r,n,i,s),fg(a,l,s),rg(a,r,n,i,s)}function ng(e,t){var n=[],i="vertical"===t?"y":"x",r=Object(Pt["j"])(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),y["each"](r.keys,(function(e){n.push(r.buckets.get(e))})),n}function ig(e,t,n,i,r,o){var s=1/0;y["each"](e,(function(e){var t=e.length,a=0;y["each"](e,(function(e){a+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/a:(n-(t-1)*r)/a;l0&&(s=a.getLayout()[o]+l,"vertical"===r?a.setLayout({x:s},!0):a.setLayout({y:s},!0)),c=a.getLayout()[o]+a.getLayout()[h]+t;var f="vertical"===r?i:n;if(l=c-t-f,l>0){s=a.getLayout()[o]-l,"vertical"===r?a.setLayout({x:s},!0):a.setLayout({y:s},!0),c=s;for(d=u-2;d>=0;--d)a=e[d],l=a.getLayout()[o]+a.getLayout()[h]+t-c,l>0&&(s=a.getLayout()[o]-l,"vertical"===r?a.setLayout({x:s},!0):a.setLayout({y:s},!0)),c=a.getLayout()[o]}}))}function og(e,t,n){y["each"](e.slice().reverse(),(function(e){y["each"](e,(function(e){if(e.outEdges.length){var i=dg(e.outEdges,sg,n)/dg(e.outEdges,hg);if(isNaN(i)){var r=e.outEdges.length;i=r?dg(e.outEdges,ag,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-ug(e,n))*t;e.setLayout({x:o},!0)}else{var s=e.getLayout().y+(i-ug(e,n))*t;e.setLayout({y:s},!0)}}}))}))}function sg(e,t){return ug(e.node2,t)*e.getValue()}function ag(e,t){return ug(e.node2,t)}function lg(e,t){return ug(e.node1,t)*e.getValue()}function cg(e,t){return ug(e.node1,t)}function ug(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function hg(e){return e.getValue()}function dg(e,t,n){var i=0,r=e.length,o=-1;while(++oo&&(o=t)})),y["each"](n,(function(t){var n=new hu({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),s=t.getModel().get(["itemStyle","color"]);null!=s?(t.setVisual("color",s),t.setVisual("style",{fill:s})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}i.length&&y["each"](i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function mg(e){e.registerChartView(Hp),e.registerSeriesModel(qp),e.registerLayout($p),e.registerVisual(gg),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 vg=n("2f45"),bg=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),s=r.get("type"),a=o.get("type");"category"===s?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===a?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],d=[r,o],f=d[c].get("type"),p=d[1-c].get("type"),g=e.data;if(g&&i){var m=[];y["each"](g,(function(e,t){var n;y["isArray"](e)?(n=e.slice(),e.unshift(t)):y["isArray"](e.value)?(n=y["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,b=[{name:u,type:Object(vg["a"])(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Object(vg["a"])(p),dimsDef:v.slice()}];return Ri(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:y["curry"](Fi["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),yg=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 Object(rt["a"])(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}(st["b"]);Object(y["mixin"])(yg,bg,!0);var _g=yg,wg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var s="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=xg(t,i,e,s,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=i.getItemLayout(e);n?(Object(ht["g"])(n),Og(a,n,i,e)):n=xg(a,i,e,s),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(qt["a"]),Cg=function(){function e(){}return e}(),Sg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Cg},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ig){var w=[v,_];i.push(w)}}}return{boxData:n,outliers:i}}var Ng=n("07fd"),Pg={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ng["c"]){var n="";0,Object(Kc["c"])(n)}var i=Ag(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function jg(e){e.registerSeriesModel(_g),e.registerChartView(Lg),e.registerLayout(Dg),e.registerTransform(Pg)}var Rg=["color","borderColor"],Fg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(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,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){dt["traverseElements"](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,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,a=s.getArea&&s.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s=t.getItemLayout(n);if(o&&zg(a,s))return;var l=Vg(s,n,!0);ht["c"](l,{shape:{points:s.ends}},e,n),Hg(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(s,l){var c=n.getItemGraphicEl(l);if(t.hasValue(s)){var u=t.getItemLayout(s);o&&zg(a,u)?i.remove(c):(c?(ht["h"](c,{shape:{points:u.ends}},e,s),Object(ht["g"])(c)):c=Vg(u,s),Hg(c,t,s,r),i.add(c),t.setItemGraphicEl(s,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Kg(e,this.group);var t=e.get("clip",!0)?Xt(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),s=Vg(o,n);Hg(s,i,n,r),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,t){Kg(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}(qt["a"]),Bg=function(){function e(){}return e}(),Wg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Bg},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}(a["b"]);function Vg(e,t,n){var i=e.ends;return new Wg({shape:{points:n?Ug(i,e):i},z2:100})}function zg(e,t){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(Rg);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var Yg=Fg,Zg=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 Object(rt["a"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={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}(st["b"]);Object(y["mixin"])(Zg,bg,!0);var Xg=Zg;function Qg(e){e&&y["isArray"](e.series)&&y["each"](e.series,(function(e){y["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var Jg=["itemStyle","borderColor"],em=["itemStyle","borderColor0"],tm=["itemStyle","borderColorDoji"],nm=["itemStyle","color"],im=["itemStyle","color0"],rm={seriesType:"candlestick",plan:Object(_n["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?nm:im)}function i(e,t){return t.get(0===e?tm:e>0?Jg:em)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),s=t.getItemLayout(r).sign,a=o.getItemStyle();a.fill=n(s,o),a.stroke=i(s,o)||a.fill;var l=t.ensureUniqueItemVisual(r,"style");Object(y["extend"])(l,a)}}}}}},om=rm,sm={seriesType:"candlestick",plan:Object(_n["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=lm(e,n),r=0,o=1,s=["x","y"],a=n.getDimensionIndex(n.mapDimension(s[r])),l=Object(y["map"])(n.mapDimensionsAll(s[o]),n.getDimensionIndex,n),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(a<0||l.length<4))return{progress:e.pipelineContext.large?p:f};function f(e,n){var s,l=n.getStore();while(null!=(s=e.next())){var f=l.get(a,s),p=l.get(c,s),g=l.get(u,s),m=l.get(h,s),v=l.get(d,s),b=Math.min(p,g),y=Math.max(p,g),_=L(b,f),w=L(y,f),C=L(m,f),S=L(v,f),x=[];E(x,w,0),E(x,_,1),x.push(I(S),I(w),I(C),I(_));var O=n.getItemModel(s),k=!!O.get(["itemStyle","borderColorDoji"]);n.setItemLayout(s,{sign:am(l,s,p,g,u,k),initBaseline:p>g?w[o]:_[o],ends:x,brushRect:D(m,v,f)})}function L(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function E(e,t,n){var o=t.slice(),s=t.slice();o[r]=Object(dt["subPixelOptimize"])(o[r]+i/2,1,!1),s[r]=Object(dt["subPixelOptimize"])(s[r]-i/2,1,!0),n?e.push(o,s):e.push(s,o)}function D(e,t,n){var s=L(e,n),a=L(t,n);return s[r]-=i/2,a[r]-=i/2,{x:s[0],y:s[1],width:o?i:a[0]-s[0],height:o?a[1]-s[1]:i}}function I(e){return e[r]=Object(dt["subPixelOptimize"])(e[r],1),e}}function p(n,i){var s,l,f=Object(Mt["a"])(4*n.count),p=0,g=[],m=[],v=i.getStore(),b=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var y=v.get(a,l),_=v.get(c,l),w=v.get(u,l),C=v.get(h,l),S=v.get(d,l);isNaN(y)||isNaN(C)||isNaN(S)?(f[p++]=NaN,p+=3):(f[p++]=am(v,l,_,w,u,b),g[r]=y,g[o]=C,s=t.dataToPoint(g,null,m),f[p++]=s?s[0]:NaN,f[p++]=s?s[1]:NaN,g[o]=S,s=t.dataToPoint(g,null,m),f[p++]=s?s[1]:NaN)}i.setLayout("largePoints",f)}}};function am(e,t,n,i,r,o){var s;return s=n>i?-1:n0?e.get(r,t-1)<=i?1:-1:1,s}function lm(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Object(Gt["q"])(Object(y["retrieve2"])(e.get("barMaxWidth"),r),r),s=Object(Gt["q"])(Object(y["retrieve2"])(e.get("barMinWidth"),1),r),a=e.get("barWidth");return null!=a?Object(Gt["q"])(a,r):Math.max(Math.min(r/2,o),s)}var cm=sm;function um(e){e.registerChartView(Yg),e.registerSeriesModel(Xg),e.registerPreprocessor(Qg),e.registerVisual(om),e.registerLayout(cm)}function hm(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 dm=function(e){function t(t,n){var i=e.call(this)||this,r=new wt(t,n),o=new lt["a"];return i.add(r),i.add(o),i.updateData(t,n),i}return Object(rt["a"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||s!==this._loop||a!==this._roundTrip){i.stopAnimation();var u=void 0;u=y["isFunction"](c)?c(n):c,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,s,a)}this._period=o,this._loop=s,this._roundTrip=a}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,s=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||s.done((function(){o.remove(e)})),s.start()}},t.prototype._getLineLength=function(e){return Cr["dist"](e.__p1,e.__cp1)+Cr["dist"](e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),a=jt["h"],l=jt["i"];o[0]=a(t[0],i[0],n[0],r),o[1]=a(t[1],i[1],n[1],r);var c=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),u=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);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;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=s;ot)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),c=n[o],u=n[o+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var h=e.__t<1?u[0]-c[0]:c[0]-u[0],d=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(_m),xm=Sm,Om=n("9680"),km=n("68ab"),Lm=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Em=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(rt["a"])(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 Lm},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(i[n++],i[n++]);for(var s=1;s0){var h=(a+c)/2-(l-u)*r,d=(l+u)/2-(c-a)*r;e.quadraticCurveTo(h,d,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,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var s=0,a=0;a0)for(var c=i[a++],u=i[a++],h=1;h0){var p=(c+d)/2-(u-f)*r,g=(u+f)/2-(d-c)*r;if(km["a"](c,u,p,g,d,f,o,e,t))return s}else if(Om["a"](c,u,d,f,o,e,t))return s;s++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,s=-1/0,a=0;a0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Im=Dm,Mm={seriesType:"lines",plan:Object(_n["a"])(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var s=[];if(i){var a=void 0,l=r.end-r.start;if(n){for(var c=0,u=r.start;u0&&(l||a.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),r.updateData(i);var c=e.get("clip",!0)&&Xt(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=Tm.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,s=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&s===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=s?new Im:new Wh(r?i?xm:Cm:i?_m:Nh),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=s),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}(qt["a"]),Nm=Am,Pm="undefined"===typeof Uint32Array?Array:Uint32Array,jm="undefined"===typeof Float64Array?Array:Float64Array;function Rm(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(y["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(y["mergeAll"])([n,e[0],e[1]])})))}var Fm=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 Object(rt["a"])(t,e),t.prototype.init=function(t){t.data=t.data||[],Rm(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(Rm(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(y["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(y["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],i=this._flatCoordsOffset[2*e+1],r=0;r ")})},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}(st["b"]),Bm=Fm;function Wm(e){return e instanceof Array||(e=[e,e]),e}var Vm={seriesType:"lines",reset:function(e){var t=Wm(e.get("symbol")),n=Wm(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=Wm(n.getShallow("symbol",!0)),r=Wm(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},zm=Vm;function Hm(e){e.registerChartView(Nm),e.registerSeriesModel(Bm),e.registerLayout(Tm),e.registerVisual(zm)}var Um=256,qm=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=re["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var s=this._getBrush(),a=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var f=0;f0){var L=o(b)?a:l;b>0&&(b=b*O+S),_[w++]=L[k],_[w++]=L[k+1],_[w++]=L[k+2],_[w++]=L[k+3]*b*256}else w+=4}return h.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=re["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}(),$m=qm;function Km(e,t,n){var i=e[1]-e[0];t=y["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i=0;i--){s=t[i].interval;if(s[0]<=e&&e<=s[1]){o=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function Ym(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var Zm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Ym(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(Ym(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){dt["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,s,a,l,c=e.coordinateSystem,u=Qt(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,o=h.getBandWidth()+.5,s=d.getBandWidth()+.5,a=h.scale.getExtent(),l=d.scale.getExtent()}for(var f=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),y=Object(bt["e"])(e),_=e.getModel("emphasis"),w=_.get("focus"),C=_.get("blurScope"),S=_.get("disabled"),x=u?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],O=n;Oa[1]||Dl[1])continue;var I=c.dataToPoint([E,D]);k=new $t["a"]({shape:{x:I[0]-o/2,y:I[1]-s/2,width:o,height:s},style:L})}else{if(isNaN(p.get(x[1],O)))continue;k=new $t["a"]({z2:1,shape:c.dataToRect([p.get(x[0],O)]).contentShape,style:L})}if(p.hasItemOption){var M=p.getItemModel(O),T=M.getModel("emphasis");g=T.getModel("itemStyle").getItemStyle(),m=M.getModel(["blur","itemStyle"]).getItemStyle(),v=M.getModel(["select","itemStyle"]).getItemStyle(),b=M.get(["itemStyle","borderRadius"]),w=T.get("focus"),C=T.get("blurScope"),S=T.get("disabled"),y=Object(bt["e"])(M)}k.shape.r=b;var A=e.getRawValue(O),N="-";A&&null!=A[2]&&(N=A[2]+""),Object(bt["g"])(k,y,{labelFetcher:e,labelDataIndex:O,defaultOpacity:L.opacity,defaultText:N}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=m,k.ensureState("select").style=v,Object(pt["J"])(k,w,C,S),k.incremental=r,r&&(k.states.emphasis.hoverLayer=!0),f.add(k),p.setItemGraphicEl(O,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,s=t.getData(),a=this._hmLayer||this._hmLayer||new $m;a.blurSize=t.get("blurSize"),a.pointSize=t.get("pointSize"),a.minOpacity=t.get("minOpacity"),a.maxOpacity=t.get("maxOpacity");var c=e.getViewRect().clone(),u=e.getRoamTransform();c.applyTransform(u);var h=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=f-h,m=p-d,v=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],b=s.mapArray(v,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=h,r[1]-=d,r.push(i),r})),y=n.getExtent(),_="visualMap.continuous"===n.type?Gm(y,n.option.range):Km(y,n.getPieceList(),n.option.selected);a.update(b,g,m,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var w=new l["a"]({style:{width:g,height:m,x:h,y:d,image:a.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(qt["a"]),Xm=Zm,Qm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=rd["a"].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}(st["b"]),Jm=Qm;function ev(e){e.registerChartView(Xm),e.registerSeriesModel(Jm)}var tv=["itemStyle","borderWidth"],nv=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],iv=new $o["a"],rv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,s=e.coordinateSystem,a=s.getBaseAxis(),l=a.isHorizontal(),c=s.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:nv[+l],categoryDim:nv[1-+l]};r.diff(o).add((function(e){if(r.hasValue(e)){var t=mv(r,e),n=ov(r,e,t,u),o=yv(r,u,n);r.setItemGraphicEl(e,o),i.add(o),Ov(o,u,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=mv(r,e),a=ov(r,e,s,u),l=Cv(r,a);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?_v(n,u,a):n=yv(r,u,a,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=a,i.add(n),Ov(n,u,a)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&wv(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var h=e.get("clip",!0)?Xt(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){wv(i,Object(ft["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(qt["a"]);function ov(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),s=n.get("symbolClip"),a=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};sv(n,o,r,i,d),lv(e,t,r,o,s,d.boundingLength,d.pxSign,u,i,d),cv(n,d.symbolScale,c,i,d);var f=d.symbolSize,p=Object(at["b"])(n.get("symbolOffset"),f);return uv(n,f,r,o,s,p,a,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function sv(e,t,n,i,r){var o,s=i.valueDim,a=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[s.wh]<=0);if(y["isArray"](a)){var h=[av(l,a[0])-c,av(l,a[1])-c];h[1]0?1:-1}function av(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function lv(e,t,n,i,r,o,s,a,l,c){var u,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,"symbolSize");u=y["isArray"](p)?p.slice():null==p?["100%","100%"]:[p,p],u[d.index]=Object(Gt["q"])(u[d.index],f),u[h.index]=Object(Gt["q"])(u[h.index],i?f:Math.abs(o)),c.symbolSize=u;var g=c.symbolScale=[u[0]/a,u[1]/a];g[h.index]*=(l.isHorizontal?-1:1)*s}function cv(e,t,n,i,r){var o=e.get(tv)||0;o&&(iv.attr({scaleX:t[0],scaleY:t[1],rotation:n}),iv.updateTransform(),o/=iv.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function uv(e,t,n,i,r,o,s,a,l,c,u,h){var d=u.categoryDim,f=u.valueDim,p=h.pxSign,g=Math.max(t[f.index]+a,0),m=g;if(i){var v=Math.abs(l),b=y["retrieve"](e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var w=Object(Gt["q"])(b,t[f.index]),C=Math.max(g+2*w,0),S=_?0:2*w,x=Object(Gt["k"])(i),O=x?i:kv((v+S)/C),k=v-O*g;w=k/2/(_?O:Math.max(O-1,1)),C=g+2*w,S=_?0:2*w,x||"fixed"===i||(O=c?kv((Math.abs(c)+S)/C):0),m=O*C-S,h.repeatTimes=O,h.symbolMargin=w}var L=p*(m/2),E=h.pathPosition=[];E[d.index]=n[d.wh]/2,E[f.index]="start"===s?L:"end"===s?l-L:l/2,o&&(E[0]+=o[0],E[1]+=o[1]);var D=h.bundlePosition=[];D[d.index]=n[d.xy],D[f.index]=n[f.xy];var I=h.barRectShape=y["extend"]({},n);I[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(E[f.index]+L)),I[d.wh]=n[d.wh];var M=h.clipShape={};M[d.xy]=-n[d.xy],M[d.wh]=u.ecSize[d.wh],M[f.xy]=0,M[f.wh]=n[f.wh]}function hv(e){var t=e.symbolPatternSize,n=Object(at["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function dv(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,s=n.valueLineWidth,a=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=o[t.valueDim.index]+s+2*n.symbolMargin;for(Sv(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:i<0)&&(r=c-1-e),t[l.index]=h*(r-c/2+.5)+a[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function fv(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?xv(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=hv(n),r.add(o),xv(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function pv(e,t,n){var i=y["extend"]({},t.barRectShape),r=e.__pictorialBarRect;r?xv(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new $t["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function gv(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=y["extend"]({},n.clipShape),s=t.valueDim,a=n.animationModel,l=n.dataIndex;if(r)ht["h"](r,{shape:o},a,l);else{o[s.wh]=0,r=new $t["a"]({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var c={};c[s.wh]=n.clipShape[s.wh],dt[i?"updateProps":"initProps"](r,{shape:c},a,l)}}}function mv(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=vv,n.isAnimationEnabled=bv,n}function vv(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function bv(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function yv(e,t,n,i){var r=new lt["a"],o=new lt["a"];return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?dv(r,t,n):fv(r,t,n),pv(r,n,i),gv(r,t,n,i),r.__pictorialShapeStr=Cv(e,n),r.__pictorialSymbolMeta=n,r}function _v(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;ht["h"](o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?dv(e,t,n,!0):fv(e,t,n,!0),pv(e,n,!0),gv(e,t,n,!0)}function wv(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Sv(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),y["each"](o,(function(e){ht["e"](e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function Cv(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Sv(e,t,n){y["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function xv(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&dt[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function Ov(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),s=o.getModel("itemStyle").getItemStyle(),a=r.getModel(["blur","itemStyle"]).getItemStyle(),c=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),d=o.get("blurScope"),f=o.get("scale");Sv(e,(function(e){if(e instanceof l["a"]){var t=e.style;e.useStyle(y["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=s,f&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=a,e.ensureState("select").style=c,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,Object(bt["g"])(g,Object(bt["e"])(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:mt(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(pt["J"])(e,h,d,o.get("disabled"))}function kv(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Lv=rv,Ev=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 Object(rt["a"])(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=Object(Dn["d"])(En.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(En),Dv=Ev;function Iv(e){e.registerChartView(Lv),e.registerSeriesModel(Dv),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(y["curry"])(kn["c"],"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(kn["a"])("pictorialBar"))}var Mv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,s=e.getLayerSeries(),a=i.getLayout("layoutInfo"),l=a.rect,c=a.boundaryGap;function u(e){return e.name}o.x=0,o.y=l.y+c[0];var h=new _c["a"](this._layersSeries||[],s,u,u),d=[];function f(t,n,a){var l=r._layers;if("remove"!==t){for(var c,u,h=[],f=[],p=s[n].indices,g=0;go&&(o=a),i.push(a)}for(var c=0;co&&(o=h)}return{y0:r,max:o}}function Wv(e){e.registerChartView(Av),e.registerSeriesModel(jv),e.registerLayout(Rv),e.registerProcessor(wi("themeRiver"))}var Vv=n("857d"),zv=2,Hv=4,Uv=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=zv,o.textConfig={inside:!0},Object(ft["a"])(o).seriesIndex=n.seriesIndex;var s=new ie["a"]({z2:Hv,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,i,r),o}return Object(rt["a"])(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Object(ft["a"])(o).dataIndex=t.dataIndex;var s=t.getModel(),a=s.getModel("emphasis"),l=t.getLayout(),c=y["extend"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var h=t.getVisual("decal");h&&(u.decal=Object(ba["a"])(h,r));var d=Wn(s.getModel("itemStyle"),c,!0);y["extend"](c,d),y["each"](pt["g"],(function(e){var t=o.ensureState(e),n=s.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=Wn(n,c);i&&(t.shape=i)})),e?(o.setShape(c),o.shape.r=l.r0,ht["c"](o,{shape:{r:l.r}},n,t.dataIndex)):(ht["h"](o,{shape:c},n),Object(ht["g"])(o)),o.useStyle(u),this._updateLabel(n);var f=s.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var p=a.get("focus"),g="ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p;Object(pt["J"])(this,g,a.get("blurScope"),a.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,s=(r.startAngle+r.endAngle)/2,a=Math.cos(s),l=Math.sin(s),c=this,u=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,f=i.get("show")&&!(null!=d&&Math.abs(o)k&&!Object(Gt["l"])(E-k)&&E0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new qv(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(u,h),g(s,a),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,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),s=o.get("link");if(s){var a=o.get("target",!0)||"_blank";Object(Jt["k"])(s,a)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$v,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(r*r+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(qt["a"]),Xv=Zv,Qv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Jv(n);var i=this._levelModels=y["map"](e.levels||[],(function(e){return new Ur["a"](e,this,t)}),this),r=Ql.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=nc(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){gc(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}(st["b"]);function Jv(e){var t=0;y["each"](e.children,(function(e){Jv(e);var n=e.value;y["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;y["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),y["isArray"](e.value)?e.value[0]=n:e.value=n}var eb=Qv,tb=Math.PI/180;function nb(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");y["isArray"](i)||(i=[0,i]),y["isArray"](t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),s=Math.min(r,o),a=Object(Gt["q"])(t[0],r),l=Object(Gt["q"])(t[1],o),c=Object(Gt["q"])(i[0],s/2),u=Object(Gt["q"])(i[1],s/2),h=-e.get("startAngle")*tb,d=e.get("minAngle")*tb,f=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,m=e.get("sort");null!=m&&ib(p,m);var v=0;y["each"](p.children,(function(e){!isNaN(e.getValue())&&v++}));var b=p.getValue(),_=Math.PI/(b||v)*2,w=p.depth>0,C=p.height-(w?-1:1),S=(u-c)/(C||1),x=e.get("clockwise"),O=e.get("stillShowZeroSum"),k=x?1:-1,L=function(t,n){if(t){var i=n;if(t!==f){var r=t.getValue(),o=0===b&&O?_:r*_;o1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&Object(y["isString"])(o)&&(o=Object(oe["lift"])(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=n(r,e,i.root.height));var a=t.ensureUniqueItemVisual(r.dataIndex,"style");Object(y["extend"])(a,s)}))}))}function sb(e){e.registerChartView(Xv),e.registerSeriesModel(eb),e.registerLayout(Object(y["curry"])(nb,"sunburst")),e.registerProcessor(Object(y["curry"])(wi,"sunburst")),e.registerVisual(ob),Yv(e)}var ab={color:"fill",borderColor:"stroke"},lb={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},cb=Object(Pt["o"])(),ub=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(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 Object(ot["a"])(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=cb(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(st["b"]),hb=ub;function db(e,t){return t=t||[0,0],y["map"](["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],s=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-s)-r.dataToCoord(o+s))}),this)}function fb(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:y["bind"](db,e)}}}function pb(e,t){return t=t||[0,0],y["map"]([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],s=[];return o[n]=i-r,s[n]=i+r,o[1-n]=s[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(s)[n])}),this)}function gb(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:y["bind"](pb,e)}}}function mb(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function vb(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(y["bind"])(mb,e)}}}function bb(e,t){return t=t||[0,0],y["map"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),s=t[i],a=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(s-a)-o.dataToCoord(s+a));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function yb(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),s=e.coordToPoint([r,o]);return s.push(r,o*Math.PI/180),s},size:y["bind"](bb,e)}}}function _b(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 wb(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(y["hasOwn"])(e,"text")))}function Cb(e,t,n){var i,r,o,s=e;if("text"===t)o=s;else{o={},Object(y["hasOwn"])(s,"text")&&(o.text=s.text),Object(y["hasOwn"])(s,"rich")&&(o.rich=s.rich),Object(y["hasOwn"])(s,"textFill")&&(o.fill=s.textFill),Object(y["hasOwn"])(s,"textStroke")&&(o.stroke=s.textStroke),Object(y["hasOwn"])(s,"fontFamily")&&(o.fontFamily=s.fontFamily),Object(y["hasOwn"])(s,"fontSize")&&(o.fontSize=s.fontSize),Object(y["hasOwn"])(s,"fontStyle")&&(o.fontStyle=s.fontStyle),Object(y["hasOwn"])(s,"fontWeight")&&(o.fontWeight=s.fontWeight),r={type:"text",style:o,silent:!0},i={};var a=Object(y["hasOwn"])(s,"textPosition");n?i.position=a?s.textPosition:"inside":a&&(i.position=s.textPosition),Object(y["hasOwn"])(s,"textPosition")&&(i.position=s.textPosition),Object(y["hasOwn"])(s,"textOffset")&&(i.offset=s.textOffset),Object(y["hasOwn"])(s,"textRotation")&&(i.rotation=s.textRotation),Object(y["hasOwn"])(s,"textDistance")&&(i.distance=s.textDistance)}return Sb(o,e),Object(y["each"])(o.rich,(function(e){Sb(e,e)})),{textConfig:i,textContent:r}}function Sb(e,t){t&&(t.font=t.textFont||t.font,Object(y["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(y["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(y["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(y["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(y["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(y["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(y["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(y["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(y["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(y["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(y["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(y["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(y["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(y["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(y["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function xb(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";Ob(i,t);var s=null==i.textFill;return r?s&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(s&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(y["each"])(t.rich,(function(e){Ob(e,e)})),i}function Ob(e,t){t&&(Object(y["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(y["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(y["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(y["hasOwn"])(t,"font")&&(e.font=t.font),Object(y["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(y["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(y["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(y["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(y["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(y["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(y["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(y["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(y["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(y["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(y["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(y["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(y["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(y["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(y["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(y["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(y["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(y["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(y["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(y["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(y["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(y["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var kb=n("06ad"),Lb={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Eb=Object(y["keys"])(Lb),Db=(Object(y["reduce"])(z["a"],(function(e,t){return e[t]=1,e}),{}),z["a"].join(", "),["","style","shape","extra"]),Ib=Object(Pt["o"])();function Mb(e,t,n,i,r){var o=e+"Animation",s=Object(ht["a"])(e,i,r)||{},a=Ib(t).userDuring;return s.duration>0&&(s.during=a?Object(y["bind"])(Vb,{el:t,userDuring:a}):null,s.setToFinal=!0,s.scope=e),Object(y["extend"])(s,n[o]),s}function Tb(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,s=i.clearStyle,a=n.isAnimationEnabled(),l=Ib(e),c=t.style;l.userDuring=t.during;var u={},h={};if(qb(e,t,h),Hb("shape",t,h),Hb("extra",t,h),!o&&a&&(Ub(e,t,u),zb("shape",e,t,u),zb("extra",e,t,u),$b(e,t,c,u)),h.style=c,jb(e,h,s),Fb(e,t),a)if(o){var d={};Object(y["each"])(Db,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Object(y["extend"])(e?d[e]:d,n.enterFrom))}));var f=Mb("enter",e,t,n,r);f.duration>0&&e.animateFrom(d,f)}else Rb(e,t,r||0,n,u);Ab(e,t),c?e.dirty():e.markRedraw()}function Ab(e,t){for(var n=Ib(e).leaveToProps,i=0;i0&&e.animateFrom(r,o)}}function Fb(e,t){Object(y["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(y["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof ya["c"]&&Object(y["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof a["b"]&&Object(y["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Bb={},Wb={setTransform:function(e,t){return Bb.el[e]=t,this},getTransform:function(e){return Bb.el[e]},setShape:function(e,t){var n=Bb.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Bb.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Bb.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Bb.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Bb.el.extra||(Bb.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Bb.el.extra;if(t)return t[e]}};function Vb(){var e=this,t=e.el;if(t){var n=Ib(t).userDuring,i=e.userDuring;n===i?(Bb.el=t,i(Wb)):e.el=e.userDuring=null}}function zb(e,t,n,i){var r=n[e];if(r){var o,s=t[e];if(s){var a=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),Pb(l))Object(y["extend"])(o,s);else for(var c=Object(Pt["r"])(l),u=0;u=0){!o&&(o=i[e]={});var f=Object(y["keys"])(s);for(u=0;u=0)){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!r&&(r=i.style={});var p=Object(y["keys"])(n);for(c=0;c=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o}function S(n,i){null==i&&(i=a);var r=t.getItemVisual(i,"style"),o=r&&r.fill,s=r&&r.opacity,l=b(i,Jb).getItemStyle();null!=o&&(l.fill=o),null!=s&&(l.opacity=s);var c={inheritColor:Object(y["isString"])(o)?o:"#000"},u=_(i,Jb),h=bt["c"](u,null,c,!1,!0);h.text=u.getShallow("show")?Object(y["retrieve2"])(e.getFormattedLabel(i,Jb),mt(t,i)):null;var d=bt["b"](u,c,!1);return k(n,l),l=xb(l,h,d),n&&O(l,n),l.legacy=!0,l}function x(n,i){null==i&&(i=a);var r=b(i,Qb).getItemStyle(),o=_(i,Qb),s=bt["c"](o,null,null,!0,!0);s.text=o.getShallow("show")?Object(y["retrieve3"])(e.getFormattedLabel(i,Qb),e.getFormattedLabel(i,Jb),mt(t,i)):null;var l=bt["b"](o,null,!0);return k(n,r),r=xb(r,s,l),n&&O(r,n),r.legacy=!0,r}function O(e,t){for(var n in t)Object(y["hasOwn"])(t,n)&&(e[n]=t[n])}function k(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function L(e,n){if(null==n&&(n=a),Object(y["hasOwn"])(ab,e)){var i=t.getItemVisual(n,"style");return i?i[ab[e]]:null}if(Object(y["hasOwn"])(lb,e))return t.getItemVisual(n,e)}function E(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Object(kn["b"])(Object(y["defaults"])({axis:t},e))}}function D(){return n.getCurrentSeriesIndices()}function I(e){return bt["d"](e,n)}}function _y(e){var t={};return Object(y["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function wy(e,t,n,i,r,o,s){if(i){var a=Cy(e,t,n,i,r,o);return a&&s.setItemGraphicEl(n,a),a&&Object(pt["J"])(a,i.focus,i.blurScope,i.emphasisDisabled),a}o.remove(t)}function Cy(e,t,n,i,r,o){var s=-1,a=t;t&&Sy(t,i,r)&&(s=Object(y["indexOf"])(o.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=py(i),a&&hy(a,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),ay.normal.cfg=ay.normal.conOpt=ay.emphasis.cfg=ay.emphasis.conOpt=ay.blur.cfg=ay.blur.conOpt=ay.select.cfg=ay.select.conOpt=null,ay.isLegacy=!1,Oy(c,n,i,r,l,ay),xy(c,n,i,r,l),gy(e,c,n,i,ay,r,l),Object(y["hasOwn"])(i,"info")&&(cb(c).info=i.info);for(var u=0;u=0?o.replaceAt(c,s):o.add(c),c}function Sy(e,t,n){var i=cb(e),r=t.type,o=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&jy(o)&&Py(o)!==i.customPathData||"image"===r&&Object(y["hasOwn"])(s,"image")&&s.image!==i.customImagePath}function xy(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var s=e.getClipPath();s&&Sy(s,o,i)&&(s=null),s||(s=py(o),e.setClipPath(s)),gy(null,s,t,o,null,i,r)}}function Oy(e,t,n,i,r,o){if(!e.isGroup){ky(n,null,o),ky(n,Qb,o);var s=o.normal.conOpt,a=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=s||null!=a||null!=c||null!=l){var u=e.getTextContent();if(!1===s)u&&e.removeTextContent();else{s=o.normal.conOpt=s||{type:"text"},u?u.clearStates():(u=py(s),e.setTextContent(u)),gy(null,u,t,s,null,i,r);for(var h=s&&s.style,d=0;d=u;f--){var p=t.childAt(f);Iy(t,p,r)}}}function Iy(e,t,n){t&&Nb(t,cb(e).option,n)}function My(e){new _c["a"](e.oldChildren,e.newChildren,Ty,Ty,e).add(Ay).update(Ay).remove(Ny).execute()}function Ty(e,t){var n=e&&e.name;return null!=n?n:sy+t}function Ay(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;Cy(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Ny(e){var t=this.context,n=t.oldChildren[e];n&&Nb(n,cb(n).option,t.seriesModel)}function Py(e){return e&&(e.pathData||e.d)}function jy(e){return e&&(Object(y["hasOwn"])(e,"pathData")||Object(y["hasOwn"])(e,"d"))}function Ry(e){e.registerChartView(fy),e.registerSeriesModel(hb)}var Fy=Object(Pt["o"])(),By=y["clone"],Wy=y["bind"],Vy=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var s=this._group,a=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(a&&a.hide());s&&s.show(),a&&a.show();var l={};this.makeElOption(l,r,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(s){var h=y["curry"](zy,t,u);this.updatePointerEl(s,l,h),this.updateLabelEl(s,l,h,t)}else s=this._group=new lt["a"],this.createPointerEl(s,l,e,t),this.createLabelEl(s,l,e,t),n.getZr().add(s);$y(s,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(o){var a=ho(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/a>s}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=Fy(e).pointerEl=new dt[r.type](By(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=Fy(e).labelEl=new ie["a"](By(t.label));e.add(r),Uy(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=Fy(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=Fy(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),Uy(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),s=n.get("status");if(!o.get("show")||!s||"hide"===s)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=dt["createIcon"](o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){rs["g"](e.event)},onmousedown:Wy(this._onHandleDragMove,this,0,0),drift:Wy(this._onHandleDragMove,this),ondragend:Wy(this._onHandleDragEnd,this)}),i.add(r)),$y(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var a=o.get("size");y["isArray"](a)||(a=[a,a]),r.scaleX=a[0]/2,r.scaleY=a[1]/2,Tn["b"](this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){zy(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(qy(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(qy(i)),Fy(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,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Tn["a"](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 zy(e,t,n,i){Hy(Fy(n).lastProp,i)||(Fy(n).lastProp=i,t?ht["h"](n,i,e):(n.stopAnimation(),n.attr(i)))}function Hy(e,t){if(y["isObject"](e)&&y["isObject"](t)){var n=!0;return y["each"](t,(function(t,i){n=n&&Hy(e[i],t)})),!!n}return e===t}function Uy(e,t){e[t.get(["label","show"])?"show":"hide"]()}function qy(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $y(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}var Ky=Vy;function Gy(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function Yy(e,t,n,i,r){var o=n.get("value"),s=Xy(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),l=Jt["i"](a.get("padding")||0),u=a.getFont(),h=c["d"](s,u),d=r.position,f=h.width+l[1]+l[3],p=h.height+l[0]+l[2],g=r.align;"right"===g&&(d[0]-=f),"center"===g&&(d[0]-=f/2);var m=r.verticalAlign;"bottom"===m&&(d[1]-=p),"middle"===m&&(d[1]-=p/2),Zy(d,f,p,i);var v=a.get("backgroundColor");v&&"auto"!==v||(v=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Object(bt["c"])(a,{text:s,font:u,fill:a.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function Zy(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Xy(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),s=r.formatter;if(s){var a={value:br["c"](t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};y["each"](i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&a.seriesData.push(r)})),y["isString"](s)?o=s.replace("{value}",o):y["isFunction"](s)&&(o=s(a))}return o}function Qy(e,t,n){var i=wr["create"]();return wr["rotate"](i,i,n.rotation),wr["translate"](i,i,n.position),dt["applyTransform"]([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Jy(e,t,n,i,r,o){var s=io.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Yy(t,i,r,o,{position:Qy(i.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function e_(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function t_(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function n_(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var i_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,s=o.grid,a=i.get("type"),l=r_(s,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(t,!0));if(a&&"none"!==a){var u=Gy(i),h=o_[a](o,c,l);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=Ir(s.model,n);Jy(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=Ir(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Qy(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,s=r.getGlobalExtent(!0),a=r_(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(s[1],c[l]),c[l]=Math.max(s[0],c[l]);var u=(a[1]+a[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[l]}},t}(Ky);function r_(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var o_={line:function(e,t,n){var i=e_([t,n[0]],[t,n[1]],s_(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:t_([t-i/2,n[0]],[i,r],s_(e))}}};function s_(e){return"x"===e.dim?0:1}var a_=i_,l_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(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}(ir["a"]),c_=l_,u_=n("22d1"),h_=Object(Pt["o"])(),d_=y["each"];function f_(e,t,n){if(!u_["a"].node){var i=t.getZr();h_(i).records||(h_(i).records={}),p_(i,t);var r=h_(i).records[e]||(h_(i).records[e]={});r.handler=n}}function p_(e,t){function n(n,i){e.on(n,(function(n){var r=b_(t);d_(h_(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),g_(r.pendings,t)}))}h_(e).initialized||(h_(e).initialized=!0,n("click",y["curry"](v_,"click")),n("mousemove",y["curry"](v_,"mousemove")),n("globalout",m_))}function g_(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function m_(e,t,n){e.handler("leave",null,n)}function v_(e,t,n,i){t.handler(e,n,i)}function b_(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function y_(e,t){if(!u_["a"].node){var n=t.getZr(),i=(h_(n).records||{})[e];i&&(h_(n).records[e]=null)}}var __=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";f_("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){y_("axisPointer",t)},t.prototype.dispose=function(e,t){y_("axisPointer",t)},t.type="axisPointer",t}(nr["a"]),w_=__;function C_(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),s=Pt["u"](o,e);if(null==s||s<0||y["isArray"](s))return{point:[]};var a=o.getItemGraphicEl(s),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(s)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,d=c.dim,f="x"===h||"radius"===h?1:0,p=o.mapDimension(d),g=[];g[f]=o.get(p,s),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),s),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(y["map"](l.dimensions,(function(e){return o.mapDimension(e)})),s))||[];else if(a){var m=a.getBoundingRect().clone();m.applyTransform(a.transform),i=[m.x+m.width/2,m.y+m.height/2]}return{point:i,el:a}}var S_=Object(Pt["o"])();function x_(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,s=e.dispatchAction||Object(y["bind"])(n.dispatchAction,n),a=t.getComponent("axisPointer").coordSysAxesInfo;if(a){N_(r)&&(r=C_({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=N_(r),c=o.axesInfo,u=a.axesInfo,h="leave"===i||N_(r),d={},f={},p={list:[],map:{}},g={showPointer:Object(y["curry"])(L_,f),showTooltip:Object(y["curry"])(E_,p)};Object(y["each"])(a.coordSysMap,(function(e,t){var n=l||e.containPoint(r);Object(y["each"])(a.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=T_(c,e);if(!h&&n&&(!c||o)){var s=o&&o.value;null!=s||l||(s=i.pointToData(r)),null!=s&&O_(e,s,g,!1,d)}}))}));var m={};return Object(y["each"])(u,(function(e,t){var n=e.linkGroup;n&&!f[t]&&Object(y["each"])(n.axesInfo,(function(t,i){var r=f[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,A_(t),A_(e)))),m[e.key]=o}}))})),Object(y["each"])(m,(function(e,t){O_(u[t],e,g,!0,d)})),D_(f,u,d),I_(p,r,e,s),M_(u,s,n),d}}function O_(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var s=k_(t,e),a=s.payloadBatch,l=s.snapToValue;a[0]&&null==r.seriesIndex&&Object(y["extend"])(r,a[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,a),n.showTooltip(e,s,l)}else n.showPointer(e,t)}function k_(e,t){var n=t.axis,i=n.dim,r=e,o=[],s=Number.MAX_VALUE,a=-1;return Object(y["each"])(t.seriesModels,(function(t,l){var c,u,h=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);u=d.dataIndices,c=d.nestestValue}else{if(u=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!u.length)return;c=t.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var f=e-c,p=Math.abs(f);p<=s&&((p=0&&a<0)&&(s=p,a=f,r=c,o.length=0),Object(y["each"])(u,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function L_(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function E_(e,t,n,i){var r=n.payloadBatch,o=t.axis,s=o.model,a=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,c=go(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:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:a.get(["label","precision"]),formatter:a.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function D_(e,t,n){var i=n.axesInfo=[];Object(y["each"])(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function I_(e,t,n,i){if(!N_(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function M_(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=S_(i)[r]||{},s=S_(i)[r]={};Object(y["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(y["each"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var a=[],l=[];Object(y["each"])(o,(function(e,t){!s[t]&&l.push(e)})),Object(y["each"])(s,(function(e,t){!o[t]&&a.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}function T_(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function A_(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function N_(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function P_(e){bo.registerAxisPointerClass("CartesianAxisPointer",a_),e.registerComponentModel(c_),e.registerComponentView(w_),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(y["isArray"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=ro(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},x_)}function j_(e){Object(i["a"])(Io),Object(i["a"])(P_)}var R_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var s=o.polar,a=s.getOtherAxis(o),l=a.getExtent(),c=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var h=Gy(i),d=B_[u](o,s,c,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var f=i.get(["label","margin"]),p=F_(t,n,i,s,f);Yy(e,n,i,r,p)},t}(Ky);function F_(e,t,n,i,r){var o=t.axis,s=o.dataToCoord(e),a=i.getAngleAxis().getExtent()[0];a=a/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=wr["create"]();wr["rotate"](d,d,a),wr["translate"](d,d,[i.cx,i.cy]),l=dt["applyTransform"]([s,-r],d);var f=t.getModel("axisLabel").get("rotate")||0,p=io.innerTextLayout(a,f*Math.PI/180,-1);c=p.textAlign,u=p.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,s]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var B_={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:e_(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:n_(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:n_(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},W_=R_,V_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(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}(ir["a"]),z_=V_,H_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Pt["b"]).models[0]},t.type="polarAxis",t}(ir["a"]);y["mixin"](H_,sr["a"]);var U_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="angleAxis",t}(H_),q_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="radiusAxis",t}(H_),$_=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(rt["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Lr["a"]);$_.prototype.dataToRadius=Lr["a"].prototype.dataToCoord,$_.prototype.radiusToData=Lr["a"].prototype.coordToData;var K_=$_,G_=Object(Pt["o"])(),Y_=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(rt["a"])(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,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),a=Math.abs(s),l=c["d"](null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),h=u/a;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),f=G_(e.model),p=f.lastAutoInterval,g=f.lastTickCount;return null!=p&&null!=g&&Math.abs(p-d)<=1&&Math.abs(g-r)<=1&&p>d?d=p:(f.lastTickCount=r,f.lastAutoInterval=d),d},t}(Lr["a"]);Y_.prototype.dataToAngle=Lr["a"].prototype.dataToCoord,Y_.prototype.angleToData=Lr["a"].prototype.coordToData;var Z_=Y_,X_=["radius","angle"],Q_=function(){function e(e){this.dimensions=X_,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new K_,this._angleAxis=new Z_,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,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);i.inverse?o=s-360:s=o+360;var a=Math.sqrt(t*t+n*n);t/=a,n/=a;var l=Math.atan2(-n,t)/Math.PI*180,c=ls)l+=360*c;return[a,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,s=this.r0;return r<=o*o&&r>=s*s}}},e.prototype.convertToPixel=function(e,t,n){var i=J_(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=J_(t);return i===this?this.pointToData(n):null},e}();function J_(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var ew=Q_;function tw(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Object(Gt["q"])(i[0],r),e.cy=Object(Gt["q"])(i[1],o);var s=e.getRadiusAxis(),a=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:y["isArray"](l)||(l=[0,l]);var c=[Object(Gt["q"])(l[0],a),Object(Gt["q"])(l[1],a)];s.inverse?s.setExtent(c[1],c[0]):s.setExtent(c[0],c[1])}function nw(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();y["each"](Object(br["d"])(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),y["each"](Object(br["d"])(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Object(br["i"])(i.scale,i.model),Object(br["i"])(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),s=360/i.scale.count();i.inverse?o[1]+=s:o[1]-=s,i.setExtent(o[0],o[1])}}function iw(e){return"angleAxis"===e.mainType}function rw(e,t){var n;if(e.type=t.get("type"),e.scale=Object(br["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),iw(t)){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=null!==(n=t.get("endAngle"))&&void 0!==n?n:i+(e.inverse?-360:360);e.setExtent(i,r)}t.axis=e,e.model=t}var ow={dimensions:X_,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new ew(i+"");r.update=nw;var o=r.getRadiusAxis(),s=r.getAngleAxis(),a=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");rw(o,a),rw(s,l),tw(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Pt["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},sw=ow,aw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lw(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function cw(e){var t=e.getRadiusAxis();return t.inverse?0:1}function uw(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 hw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),s=n.getMinorTicksCoords(),a=y["map"](n.getViewLabels(),(function(e){e=y["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));uw(a),uw(o),y["each"](aw,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||dw[t](this.group,e,i,o,s,r,a)}),this)}},t.type="angleAxis",t}(bo),dw={axisLine:function(e,t,n,i,r,o){var s,a=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),c=Math.PI/180,u=l.getExtent(),h=cw(n),d=h?0:1,f=360===Math.abs(u[1]-u[0])?"Circle":"Arc";s=0===o[d]?new dt[f]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse},style:a.getLineStyle(),z2:1,silent:!0}):new Ko["a"]({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[d]},style:a.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,e.add(s)},axisTick:function(e,t,n,i,r,o){var s=t.getModel("axisTick"),a=(s.get("inside")?-1:1)*s.get("length"),l=o[cw(n)],c=y["map"](i,(function(e){return new Hr["a"]({shape:lw(n,[l,l+a],e.coord)})}));e.add(dt["mergePath"](c,{style:y["defaults"](s.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var s=t.getModel("axisTick"),a=t.getModel("minorTick"),l=(s.get("inside")?-1:1)*a.get("length"),c=o[cw(n)],u=[],h=0;hp?"left":"right",v=Math.abs(f[1]-g)/d<.3?"middle":f[1]>g?"top":"bottom";if(a&&a[h]){var b=a[h];y["isObject"](b)&&b.textStyle&&(s=new Ur["a"](b.textStyle,l,l.ecModel))}var _=new ie["a"]({silent:io.isLabelSilent(t),style:Object(bt["c"])(s,{x:f[0],y:f[1],fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(_),u){var w=io.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=i.rawLabel,Object(ft["a"])(_).eventData=w}}),this)},splitLine:function(e,t,n,i,r,o){var s=t.getModel("splitLine"),a=s.getModel("lineStyle"),l=a.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h=0?"p":"n",E=C;b&&(i[a][k]||(i[a][k]={p:C,n:C}),E=i[a][k][L]);var D=void 0,I=void 0,M=void 0,T=void 0;if("radius"===h.dim){var A=h.dataToCoord(O)-C,N=o.dataToCoord(k);Math.abs(A)=T})}}}))}function Sw(e){var t={};y["each"](e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),s=ww(r,o),a=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(a[1]-a[0])/i.count(),c=t[s]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[s]=c;var h=_w(e);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Object(Gt["q"])(e.get("barWidth"),l),f=Object(Gt["q"])(e.get("barMaxWidth"),l),p=e.get("barGap"),g=e.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),f&&(u[h].maxWidth=f),null!=p&&(c.gap=p),null!=g&&(c.categoryGap=g)}));var n={};return y["each"](t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Object(Gt["q"])(e.categoryGap,r),s=Object(Gt["q"])(e.gap,1),a=e.remainedWidth,l=e.autoWidthCount,c=(a-o)/(l+(l-1)*s);c=Math.max(c,0),y["each"](i,(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(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=Vw(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Vw(t);return i===this?this.pointToData(n):null},e}();function Vw(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var zw=Ww;function Hw(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new zw(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Pt["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var Uw={create:Hw,dimensions:Bw},qw=Uw,$w=["x","y"],Kw=["width","height"],Gw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,s=o.coordinateSystem,a=Xw(s,1-Zw(o)),l=s.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=Gy(i),h=Yw[c](o,l,a);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=Dw(n);Jy(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=Dw(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Qy(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,s=Zw(r),a=Xw(o,s),l=[e.x,e.y];l[s]+=t[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var c=Xw(o,1-s),u=(c[1]+c[0])/2,h=[u,u];return h[s]=l[s],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(Ky),Yw={line:function(e,t,n){var i=e_([t,n[0]],[t,n[1]],Zw(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:t_([t-i/2,n[0]],[i,r],Zw(e))}}};function Zw(e){return e.isHorizontal()?0:1}function Xw(e,t){var n=e.getRect();return[n[$w[t]],n[$w[t]]+n[Kw[t]]]}var Qw=Gw,Jw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="single",t}(nr["a"]);function eC(e){Object(i["a"])(P_),bo.registerAxisPointerClass("SingleAxisPointer",Qw),e.registerComponentView(Jw),e.registerComponentView(Nw),e.registerComponentModel(jw),mr(e,"single",jw,jw.defaultOption),e.registerCoordinateSystem("single",qw)}var tC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(t,n,i){var r=Object(pi["f"])(t);e.prototype.init.apply(this,arguments),nC(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),nC(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}(ir["a"]);function nC(e,t){var n,i=e.cellSize;n=y["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=y["map"]([0,1],(function(e){return Object(pi["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(pi["h"])(e,t,{type:"box",ignoreSize:r})}var iC=tC,rC=n("ef59"),oC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),s=r.getOrient(),a=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,a,s,i),this._renderWeekText(e,a,o,s,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),a=t.start.time;a<=t.end.time;a=i.getNextNDay(a,1).time){var l=i.dataToRect([a],!1).tl,c=new $t["a"]({shape:{x:l[0],y:l[1],width:o,height:s},cursor:"default",style:r});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),a=e.get(["splitLine","show"]),l=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),a&&r._drawSplitline(l,s,i)}d(o.getNextNDay(t.end.time,1).formatedDate),a&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),s,i),a&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),s,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Ci["a"]({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],s=0;s<7;s++){var a=i.getNextNDay(r.time,s),l=i.dataToRect([a.time],!1);o[2*a.day]=l.tl,o[2*a.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(y["isString"])(e)&&e?Object(Jt["f"])(e,t):Object(y["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],s=t[1],a=["center","bottom"];"bottom"===i?(s+=r,a=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,a=["center","top"]):s-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:s,style:{align:a[0],verticalAlign:a[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==n?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(a[0][0]+a[1][0])/2,c=(a[0][1]+a[1][1])/2,u="horizontal"===n?0:1,h={top:[l,a[u][1]],bottom:[l,a[1-u][1]],left:[a[1-u][0],c],right:[a[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var f=r.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new ie["a"]({z2:30,style:Object(bt["c"])(r,{text:g})});m.attr(this._yearTextPositionControl(m,h[s],n,s,o)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",s="top",a=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(s="bottom")):(a+=r,t&&(s="middle"),"start"===i&&(o="right")),{x:a,y:l,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),s=r.get("margin"),a=r.get("position"),l=r.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(y["isString"])(o)||(o&&(t=Object(rC["d"])(o)||t),o=t.get(["time","monthAbbr"])||[]);var u="start"===a?0:1,h="horizontal"===n?0:1;s="start"===a?-s:s;for(var d="center"===l,f=0;f=i.start.time&&n.times.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/aC)-Math.floor(n[0].time/aC)+1,r=new Date(n[0].time),o=r.getDate(),s=n[1].date.getDate();r.setDate(o+i-1);var a=r.getDate();if(a!==s){var l=r.getTime()-n[1].time>0?1:-1;while((a=r.getDate())!==s&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(a-l)}var c=Math.floor((i+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:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&ti.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function cC(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var uC=lC;function hC(e){e.registerComponentModel(iC),e.registerComponentView(sC),e.registerCoordinateSystem("calendar",uC)}function dC(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function fC(e,t){var n;return y["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function pC(e,t,n){var i=y["extend"]({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(y["merge"](r,i,!0),Object(pi["h"])(r,i,{ignoreSize:!0}),Object(pi["c"])(n,r),vC(n,r),vC(n,r,"shape"),vC(n,r,"style"),vC(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var gC=["transition","enterFrom","leaveTo"],mC=gC.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function vC(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?gC:mC,r=0;r=0;l--){c=n[l],u=Pt["e"](c.id,null),h=null!=u?r.get(u):null;if(h){d=h.parent,g=wC(d);var m=d===i?{width:o,height:s}:{width:g.width,height:g.height},v={},b=pi["i"](h,c,m,null,{hv:c.hv,boundingMode:c.bounding},v);if(!wC(h).isNew&&b){for(var _=c.transition,w={},C=0;C=0)?w[S]=x:h[S]=x}Object(ht["h"])(h,w,e,0)}else h.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){OC(n,wC(n).option,t,e._lastGraphicModel)})),this._elMap=y["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(nr["a"]);function SC(e){var t=y["hasOwn"](_C,e)?_C[e]:dt["getShapeClass"](e);var n=new t({});return wC(n).type=e,n}function xC(e,t,n,i){var r=SC(n);return t.add(r),i.set(e,r),wC(r).id=e,wC(r).isNew=!0,r}function OC(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){OC(e,t,n,i)})),Nb(e,t,i),n.removeKey(wC(e).id))}function kC(e,t,n,i){e.isGroup||y["each"]([["cursor",ya["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];y["hasOwn"](t,i)?e[i]=y["retrieve2"](t[i],n[1]):null==e[i]&&(e[i]=n[1])})),y["each"](y["keys"](t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=y["isFunction"](i)?i:null}})),y["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function LC(e){return e=y["extend"]({},e),y["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(pi["a"]),(function(t){delete e[t]})),e}function EC(e,t,n){var i=Object(ft["a"])(e).eventData;e.silent||e.ignore||i||(i=Object(ft["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function DC(e){e.registerComponentModel(yC),e.registerComponentView(CC),e.registerPreprocessor((function(e){var t=e.graphic;Object(y["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var IC=["x","y","radius","angle","single"],MC=["cartesian2d","polar","singleAxis"];function TC(e){var t=e.get("coordinateSystem");return Object(y["indexOf"])(MC,t)>=0}function AC(e){return e+"Axis"}function NC(e,t){var n,i=Object(y["createHashMap"])(),r=[],o=Object(y["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||a(e)}));do{n=!1,e.eachComponent("dataZoom",s)}while(n);function s(e){!o.get(e.uid)&&l(e)&&(a(e),n=!0)}function a(e){o.set(e.uid,!0),r.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function PC(e){var t=e.ecModel,n={infoList:[],infoMap:Object(y["createHashMap"])()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(AC(e),i);if(r){var o=r.getCoordSysModel();if(o){var s=o.uid,a=n.infoMap.get(s);a||(a={model:o,axisModels:[]},n.infoList.push(a),n.infoMap.set(s,a)),a.axisModels.push(r)}}})),n}var jC=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}(),RC=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 Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){var i=FC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=FC(e);Object(y["merge"])(this.option,e,!0),Object(y["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(y["each"])([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(y["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(y["each"])(IC,(function(n){var i=this.getReferringComponents(AC(n),Pt["a"]);if(i.specified){t=!0;var r=new jC;Object(y["each"])(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});s(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});s(o,"single")}function s(t,n){var r=t[0];if(r){var o=new jC;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var s=r.getReferringComponents("grid",Pt["b"]).models[0];s&&Object(y["each"])(t,(function(e){r.componentIndex!==e.componentIndex&&s===e.getReferringComponents("grid",Pt["b"]).models[0]&&o.add(e.componentIndex)}))}}}i&&Object(y["each"])(IC,(function(t){if(i){var r=n.findComponents({mainType:AC(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new jC;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(y["each"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],s=null!=e[i[1]];o&&!s?t[r]="percent":!o&&s?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(AC(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Object(y["each"])(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(AC(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(y["each"])([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(y["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(),i=0;io[1];if(u&&!h&&!d)return!0;u&&(r=!0),h&&(t=!0),d&&(n=!0)}return r&&t&&n}))}else KC(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return s(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));KC(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function s(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;KC(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Gt["m"](n[0]+o,n,[0,100],!0):null!=r&&(o=Gt["m"](r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Gt["g"](n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function ZC(e,t,n){var i=[1/0,-1/0];KC(n,(function(e){Object(br["k"])(i,e.getData(),t)}));var r=e.getAxisModel(),o=Object($C["a"])(r.axis.scale,r,i).calculate();return[o.min,o.max]}var XC=YC,QC={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(AC(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new XC(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=Object(y["createHashMap"])();return Object(y["each"])(n,(function(e){Object(y["each"])(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},JC=QC;function eS(e){e.registerAction("dataZoom",(function(e,t){var n=NC(t,e);Object(y["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var tS=!1;function nS(e){tS||(tS=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,JC),eS(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function iS(e){e.registerComponentModel(VC),e.registerComponentView(qC),nS(e)}var rS=function(){function e(){}return e}(),oS={};function sS(e,t){oS[e]=t}function aS(e){return oS[e]}var lS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;y["each"](this.option.feature,(function(e,n){var i=aS(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),y["merge"](e,i.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}(ir["a"]),cS=lS;function uS(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},s=Object(pi["g"])(i,o,r);Object(pi["b"])(t.get("orient"),e,t.get("itemGap"),s.width,s.height),Object(pi["i"])(e,i,o,r)}function hS(e,t){var n=Jt["i"](t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new $t["a"]({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var dS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),s="vertical"===e.get("orient"),a=e.get("feature")||{},l=this._features||(this._features={}),u=[];y["each"](a,(function(e,t){u.push(t)})),new _c["a"](this._featureNames||[],u).add(h).update(h).remove(y["curry"](h,null)).execute(),this._featureNames=u,uS(r,e,n),r.add(hS(r.getBoundingRect(),e)),s||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),s=i.textConfig||(i.textConfig={}),a=e.getTextContent(),l=a&&a.ensureState("emphasis");if(l&&!y["isFunction"](l)&&t){var u=l.style||(l.style={}),h=c["d"](t,ie["a"].makeFont(u)),d=e.x+r.x,f=e.y+r.y+o,p=!1;f+h.height>n.getHeight()&&(s.position="top",p=!0);var g=p?-5-h.height:o+10;d+h.width/2>n.getWidth()?(s.position=["100%",g],u.align="right"):d-h.width/2<0&&(s.position=[0,g],u.align="left")}}))}function h(r,o){var s,c=u[r],h=u[o],f=a[c],p=new Ur["a"](f,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(f.title=i.newTitle),c&&!h){if(fS(c))s={onclick:p.option.onclick,featureName:c};else{var g=aS(c);if(!g)return;s=new g}l[c]=s}else if(s=l[h],!s)return;s.uid=Object(Dn["c"])("toolbox-feature"),s.model=p,s.ecModel=t,s.api=n;var m=s instanceof rS;c||!h?!p.get("show")||m&&s.unusable?m&&s.remove&&s.remove(t,n):(d(p,s,c),p.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?pt["r"]:pt["C"])(i[e])},s instanceof rS&&s.render&&s.render(p,t,n,i)):m&&s.dispose&&s.dispose(t,n)}function d(i,a,l){var c,u,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),f=a instanceof rS&&a.getIcons?a.getIcons():i.get("icon"),p=i.get("title")||{};y["isString"](f)?(c={},c[l]=f):c=f,y["isString"](p)?(u={},u[l]=p):u=p;var g=i.iconPaths={};y["each"](c,(function(l,c){var f=dt["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(h.getItemStyle());var p=f.ensureState("emphasis");p.style=d.getItemStyle();var m=new ie["a"]({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Object(bt["d"])({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},t)},ignore:!0});f.setTextContent(m),dt["setTooltipConfig"]({el:f,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),f.__title=u[c],f.on("mouseover",(function(){var t=d.getItemStyle(),i=s?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";m.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),f.setTextConfig({position:d.get("textPosition")||i}),m.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),m.hide()})),("emphasis"===i.get(["iconStatus",c])?pt["r"]:pt["C"])(f),r.add(f),f.on("click",y["bind"](a.onclick,a,t,n,c)),g[c]=f}))}},t.prototype.updateView=function(e,t,n,i){y["each"](this._features,(function(e){e instanceof rS&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){y["each"](this._features,(function(n){n instanceof rS&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){y["each"](this._features,(function(n){n instanceof rS&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(nr["a"]);function fS(e){return 0===e.indexOf("my")}var pS=dS,gS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),a=u_["a"].browser;if("function"!==typeof MouseEvent||!a.newEdge&&(a.ie||a.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=s.split(","),c=l[0].indexOf("base64")>-1,u=r?decodeURIComponent(l[1]):l[1];c&&(u=window.atob(u));var h=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var d=u.length,f=new Uint8Array(d);while(d--)f[d]=u.charCodeAt(d);var p=new Blob([f]);window.navigator.msSaveOrOpenBlob(p,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),m.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var b=n.get("lang"),y='',_=window.open();_.document.write(y),_.document.title=i}else{var w=document.createElement("a");w.download=i+"."+o,w.target="_blank",w.href=s;var C=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(C)}},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}(rS),mS=gS,vS="__ec_magicType_stack__",bS=[["line","bar"],["stack"]],yS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return y["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 i=this.model,r=i.get(["seriesIndex",n]);if(_S[n]){var o,s={series:[]},a=function(e){var t=e.subType,r=e.id,o=_S[n](t,r,e,i);o&&(y["defaults"](o,e.option),s.series.push(o));var a=e.coordinateSystem;if(a&&"cartesian2d"===a.type&&("line"===n||"bar"===n)){var l=a.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",h=e.getReferringComponents(u,Pt["b"]).models[0],d=h.componentIndex;s[u]=s[u]||[];for(var f=0;f<=d;f++)s[u][d]=s[u][d]||{};s[u][d].boundaryGap="bar"===n}}};y["each"](bS,(function(e){y["indexOf"](e,n)>=0&&y["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},a);var l=n;"stack"===n&&(o=y["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:s,newTitle:o,featureName:"magicType"})}},t}(rS),_S={line:function(e,t,n,i){if("bar"===e)return y["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return y["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===vS;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),y["merge"]({id:t,stack:r?"":vS},i.get(["option","stack"])||{},!0)}};os["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var wS=yS,CS=new Array(60).join("-"),SS="\t";function xS(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function OS(e){var t=[];return y["each"](e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,s=[" "].concat(y["map"](e.series,(function(e){return e.name}))),a=[i.model.getCategories()];y["each"](e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[s.join(SS)],c=0;c=0)return!0}var IS=new RegExp("["+SS+"]+","g");function MS(e){for(var t=e.split(/\n+/g),n=ES(t.shift()).split(IS),i=[],r=y["map"](n,(function(e){return{name:e,data:[]}})),o=0;o=0;r--){var o=n[r];if(o[i])break}if(r<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var a=s.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(t)}function WS(e){var t=HS(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return RS(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function VS(e){FS(e).snapshots=null}function zS(e){return HS(e).length}function HS(e){var t=FS(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var US=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.onclick=function(e,t){VS(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}(rS);os["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var qS=US,$S=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],KS=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=YS(t,e);Object(y["each"])(ZS,(function(e,t){(!n||!n.include||Object(y["indexOf"])(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=JS[e.brushType](0,n,t);e.__rangeOffset={offset:tx[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(y["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(y["each"])(i.coordSyses,(function(i){var r=JS[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(y["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=JS[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?tx[e.brushType](i.values,r.offset,ix(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(y["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Sp(i),isTargetByCursor:Op(i,e,n.coordSysModel),getLinearBrushOtherExtent:xp(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(y["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=YS(t,e),r=0;re[1]&&e.reverse(),e}function YS(e,t){return Object(Pt["s"])(e,t,{includeMainTypes:$S})}var ZS={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=Object(y["createHashMap"])(),s={},a={};(n||i||r)&&(Object(y["each"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(y["each"])(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(y["each"])(r,(function(e){o.set(e.id,e),s[e.id]=!0,a[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];Object(y["each"])(r.getCartesians(),(function(e,t){(Object(y["indexOf"])(n,e.getAxis("x").model)>=0||Object(y["indexOf"])(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:QS.grid,xAxisDeclared:s[e.id],yAxisDeclared:a[e.id]})})))},geo:function(e,t){Object(y["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:QS.geo})}))}},XS=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],QS={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(dt["getTransform"](e)),t}},JS={lineX:Object(y["curry"])(ex,0),lineY:Object(y["curry"])(ex,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),s=[GS([r[0],o[0]]),GS([r[1],o[1]])];return{values:s,xyMinMax:s}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(y["map"])(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function ex(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=GS(Object(y["map"])([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),s=[];return s[e]=o,s[1-e]=[NaN,NaN],{values:o,xyMinMax:s}}var tx={lineX:Object(y["curry"])(nx,0),lineY:Object(y["curry"])(nx,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(y["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function nx(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function ix(e,t){var n=rx(e),i=rx(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function rx(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var ox=KS,sx=n("2f1f"),ax=y["each"],lx=Object(Pt["p"])("toolbox-dataZoom_"),cx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new Cp(n.getZr()),this._brushController.on("brush",y["bind"](this._onBrush,this)).mount()),fx(e,t,this,i,n),dx(e,t)},t.prototype.onclick=function(e,t,n){ux[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new ox(hx(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),BS(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),a=o.model,l=s(e,a,i),c=l.findRepresentativeAxisProxy(a).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=af(0,r.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function s(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];ax(e,(function(e,n){t.push(y["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}(rS),ux={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(WS(this.ecModel))}};function hx(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 dx(e,t){e.setIconStatus("back",zS(t)>1?"emphasis":"normal")}function fx(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var s=new ox(hx(e),t,{include:["grid"]}),a=s.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(sx["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=hx(i),s=Object(Pt["s"])(e,o);return ax(s.xAxisModels,(function(e){return a(e,"xAxis","xAxisIndex")})),ax(s.yAxisModels,(function(e){return a(e,"yAxis","yAxisIndex")})),r}function a(e,t,n){var o=e.componentIndex,s={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:lx+t+o};s[n]=o,r.push(s)}}));var px=cx;function gx(e){e.registerComponentModel(cS),e.registerComponentView(pS),sS("saveAsImage",mS),sS("magicType",wS),sS("dataView",jS),sS("dataZoom",px),sS("restore",qS),Object(i["a"])(iS)}var mx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(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}(ir["a"]),vx=mx;function bx(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function yx(e){if(u_["a"].domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(o="left"===s?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(o="top"===s?225:45)+"deg)");var u=o*Math.PI/180,h=a+r,d=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),f=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+s+":-"+f+"px";var p=t+" solid "+r+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",l+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'
'}function Dx(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=u_["a"].transformSupported?","+Ox+i:",left"+i+",top"+i),xx+":"+r}function Ix(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!u_["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=u_["a"].transform3dSupported,s="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+Ox+":"+s+";":[["top",0],["left",0],[_x,s]]}function Mx(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,a=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+s+"px "+a+"px "+o+"px "+r),Object(y["each"])(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function Tx(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),a=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),h=Object(Bo["d"])(e,"html"),d=l+"px "+c+"px "+s+"px "+a;return i.push("box-shadow:"+d),t&&r&&i.push(Dx(r,n)),o&&i.push("background-color:"+o),Object(y["each"])(["width","color","radius"],(function(t){var n="border-"+t,r=Object(Jt["j"])(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(Mx(u)),null!=h&&i.push("padding:"+Object(Jt["i"])(h).join("px ")+"px"),i.join(";")+";"}function Ax(e,t,n,i,r){var o=t&&t.painter;if(n){var s=o&&o.getViewportRoot();s&&Object(L["d"])(e,s,n,i,r)}else{e[0]=i,e[1]=r;var a=o&&o.getViewportRootOffset();a&&(e[0]+=a.offsetLeft,e[1]+=a.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Nx=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,u_["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),r=t.appendTo,o=r&&(Object(y["isString"])(r)?document.querySelector(r):Object(y["isDom"])(r)?r:Object(y["isFunction"])(r)&&r(e.getDom()));Ax(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!s._enterable){var t=i.handler,n=i.painter.getViewportRoot();Object(rs["e"])(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=Sx(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=kx+Tx(e,!this._firstShow,this._longHide)+Ix(r[0],r[1],!0)+"border-color:"+Object(Jt["c"])(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var s="";if(Object(y["isString"])(r)&&"item"===n.get("trigger")&&!bx(n)&&(s=Ex(n,i,r)),Object(y["isString"])(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Object(y["isArray"])(e)||(e=[e]);for(var a=0;a=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!u_["a"].node&&n.getDom()){var r=$x(i,n);this._ticket="";var o=i.dataByCoordSys,s=Xx(i,t,n);if(s){var a=s.el.getBoundingRect().clone();a.applyTransform(s.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:s.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Hx;l.x=i.x,l.y=i.y,l.update(),Object(ft["a"])(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=C_(i,t),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide($x(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,s=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=s){var a=t.getSeriesByIndex(r);if(a){var l=a.getData(),c=qx([l.getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,s,a=Object(ft["a"])(n);if("legend"===a.ssrType)return;this._lastDataByCoordSys=null,Object(sl["a"])(n,(function(e){return null!=Object(ft["a"])(e).dataIndex?(o=e,!0):null!=Object(ft["a"])(e).tooltipConfig?(s=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):s?this._showComponentItemTooltip(e,s,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(y["bind"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=qx([t.tooltipOption],i),s=this._renderMode,a=[],l=Object(Bo["c"])("section",{blocks:[],noHeader:!0}),c=[],u=new Bo["a"];Object(y["each"])(e,(function(e){Object(y["each"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=Xy(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=Object(Bo["c"])("section",{header:o,noHeader:!Object(y["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(y["each"])(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=br["c"](t.axis,{value:r}),p.axisValueLabel=o,p.marker=u.makeTooltipMarker("item",Object(Jt["c"])(p.color),s);var g=Object(zx["b"])(d.formatTooltip(f,!0,null)),m=g.frag;if(m){var v=qx([d],i).get("valueFormatter");h.blocks.push(v?Object(y["extend"])({valueFormatter:v},m):m)}g.text&&c.push(g.text),a.push(p)}}))}}))})),l.blocks.reverse(),c.reverse();var h=t.position,d=o.get("order"),f=Object(Bo["b"])(l,u,s,d,n.get("useUTC"),o.get("textStyle"));f&&c.unshift(f);var p="richText"===s?"\n\n":"
",g=c.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,a)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,a):this._showTooltipContent(o,g,a,Math.random()+"",r[0],r[1],h,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Object(ft["a"])(t),o=r.seriesIndex,s=i.getSeriesByIndex(o),a=r.dataModel||s,l=r.dataIndex,c=r.dataType,u=a.getData(c),h=this._renderMode,d=e.positionDefault,f=qx([u.getItemModel(l),a,s&&(s.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=a.getDataParams(l,c),m=new Bo["a"];g.marker=m.makeTooltipMarker("item",Object(Jt["c"])(g.color),h);var v=Object(zx["b"])(a.formatTooltip(l,!1,c)),b=f.get("order"),_=f.get("valueFormatter"),w=v.frag,C=w?Object(Bo["b"])(_?Object(y["extend"])({valueFormatter:_},w):w,m,h,b,i.get("useUTC"),f.get("textStyle")):v.text,S="item_"+a.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,C,g,S,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i="html"===this._renderMode,r=Object(ft["a"])(t),o=r.tooltipConfig,s=o.option||{},a=s.encodeHTMLContent;if(Object(y["isString"])(s)){var l=s;s={content:l,formatter:l},a=!0}a&&i&&s.content&&(s=Object(y["clone"])(s),s.content=Object(L["a"])(s.content));var c=[s],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&c.push(u),c.push({formatter:s.content});var h=e.positionDefault,d=qx(c,this._tooltipModel,h?{position:h}:null),f=d.get("content"),p=Math.random()+"",g=new Bo["a"];this._showOrMove(d,(function(){var n=Object(y["clone"])(d.get("formatterParams")||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,g)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,s,a,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");s=s||e.get("position");var h=t,d=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),f=d.color;if(u)if(Object(y["isString"])(u)){var p=e.ecModel.get("useUTC"),g=Object(y["isArray"])(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=u,m&&(h=Object(Vx["h"])(g.axisValue,h,p)),h=Object(Jt["e"])(h,n,!0)}else if(Object(y["isFunction"])(u)){var v=Object(y["bind"])((function(t,i){t===this._ticket&&(c.setContent(i,l,e,f,s),this._updatePosition(e,s,r,o,c,n,a))}),this);this._ticket=i,h=u(n,i,v)}else h=u;c.setContent(h,l,e,f,s),c.show(e,f),this._updatePosition(e,s,r,o,c,n,a)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||Object(y["isArray"])(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(y["isArray"])(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,s){var a=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=r.getSize(),u=e.get("align"),h=e.get("verticalAlign"),d=s&&s.getBoundingRect().clone();if(s&&d.applyTransform(s.transform),Object(y["isFunction"])(t)&&(t=t([n,i],o,r.el,d,{viewSize:[a,l],contentSize:c.slice()})),Object(y["isArray"])(t))n=Object(Gt["q"])(t[0],a),i=Object(Gt["q"])(t[1],l);else if(Object(y["isObject"])(t)){var f=t;f.width=c[0],f.height=c[1];var p=Object(pi["g"])(f,{width:a,height:l});n=p.x,i=p.y,u=null,h=null}else if(Object(y["isString"])(t)&&s){var g=Yx(t,d,c,e.get("borderWidth"));n=g[0],i=g[1]}else{g=Kx(n,i,r,a,l,u?null:20,h?null:20);n=g[0],i=g[1]}if(u&&(n-=Zx(u)?c[0]/2:"right"===u?c[0]:0),h&&(i-=Zx(h)?c[1]/2:"bottom"===h?c[1]:0),bx(e)){g=Gx(n,i,r,a,l);n=g[0],i=g[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&Object(y["each"])(n,(function(n,o){var s=n.dataByAxis||[],a=e[o]||{},l=a.dataByAxis||[];r=r&&s.length===l.length,r&&Object(y["each"])(s,(function(e,n){var o=l[n]||{},s=e.seriesDataIndices||[],a=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&s.length===a.length,r&&Object(y["each"])(s,(function(e,t){var n=a[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&Object(y["each"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],s=i[n];o&&s&&s.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!u_["a"].node&&t.getDom()&&(Object(Tn["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),y_("itemTooltip",t))},t.type="tooltip",t}(nr["a"]);function qx(e,t,n){var i,r=t.ecModel;n?(i=new Ur["a"](n,r,r),i=new Ur["a"](t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var s=e[o];s&&(s instanceof Ur["a"]&&(s=s.get("tooltip",!0)),Object(y["isString"])(s)&&(s={formatter:s}),s&&(i=new Ur["a"](s,i,r)))}return i}function $x(e,t){return e.dispatchAction||Object(y["bind"])(t.dispatchAction,t)}function Kx(e,t,n,i,r,o,s){var a=n.getSize(),l=a[0],c=a[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=s&&(t+c+s>r?t-=c+s:t+=s),[e,t]}function Gx(e,t,n,i,r){var o=n.getSize(),s=o[0],a=o[1];return e=Math.min(e+s,i)-s,t=Math.min(t+a,r)-a,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Yx(e,t,n,i){var r=n[0],o=n[1],s=Math.ceil(Math.SQRT2*i)+8,a=0,l=0,c=t.width,u=t.height;switch(e){case"inside":a=t.x+c/2-r/2,l=t.y+u/2-o/2;break;case"top":a=t.x+c/2-r/2,l=t.y-o-s;break;case"bottom":a=t.x+c/2-r/2,l=t.y+u+s;break;case"left":a=t.x-r-s,l=t.y+u/2-o/2;break;case"right":a=t.x+c+s,l=t.y+u/2-o/2}return[a,l]}function Zx(e){return"center"===e||"middle"===e}function Xx(e,t,n){var i=Object(Pt["t"])(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Object(Pt["v"])(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),s=o.models[0];if(s){var a,l=n.getViewOfComponentModel(s);return l.group.traverse((function(t){var n=Object(ft["a"])(t).tooltipConfig;if(n&&n.name===e.name)return a=t,!0})),a?{componentMainType:r,componentIndex:s.componentIndex,el:a}:void 0}}}var Qx=Ux;function Jx(e){Object(i["a"])(P_),e.registerComponentModel(vx),e.registerComponentView(Qx),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},y["noop"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},y["noop"])}var eO=["rect","polygon","keep","clear"];function tO(e,t){var n=Object(Pt["r"])(e?e.brush:[]);if(n.length){var i=[];y["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;y["isArray"](r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),s=o.brush||(o.brush={}),a=s.type||(s.type=[]);a.push.apply(a,i),nO(a),t&&!a.length&&a.push.apply(a,eO)}}function nO(e){var t={};y["each"](e,(function(e){t[e]=1})),e.length=0,y["each"](t,(function(t,n){e.push(n)}))}var iO=n("0924"),rO=y["each"];function oO(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function sO(e,t,n){var i={};return rO(t,(function(t){var o=i[t]=r();rO(e[t],(function(e,i){if(hu.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new hu(r),"opacity"===i&&(r=y["clone"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new hu(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function aO(e,t,n){var i;y["each"](n,(function(e){t.hasOwnProperty(e)&&oO(t[e])&&(i=!0)})),i&&y["each"](n,(function(n){t.hasOwnProperty(n)&&oO(t[n])?e[n]=y["clone"](t[n]):delete e[n]}))}function lO(e,t,n,i,r,o){var s,a={};function l(e){return Object(iO["a"])(n,s,e)}function c(e,t){Object(iO["c"])(n,s,e,t)}function u(e,u){s=null==o?e:u;var h=n.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=i.call(r,e),f=t[d],p=a[d],g=0,m=p.length;gt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&OO(t)}};function OO(e){return new Gi["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var kO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Cp(t.getZr())).on("brush",y["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){bO(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:y["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:y["clone"](n),$from:t})},t.type="brush",t}(nr["a"]),LO=kO,EO="#ddd",DO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&aO(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:EO},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=y["map"](e,(function(e){return IO(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=IO(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}(ir["a"]);function IO(e,t){return y["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ur["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var MO=DO,TO=["rect","polygon","lineX","lineY","keep","clear"],AO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,y["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return y["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:TO.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}(rS),NO=AO;function PO(e){e.registerComponentView(LO),e.registerComponentModel(MO),e.registerPreprocessor(tO),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,yO),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"},y["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},y["noop"]),sS("brush",NO)}var jO=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 Object(rt["a"])(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}(ir["a"]),RO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),a=y["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new ie["a"]({style:Object(bt["c"])(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),h=new ie["a"]({style:Object(bt["c"])(o,{text:u,fill:o.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),f=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",(function(){Object(Jt["k"])(d,"_"+e.get("target"))})),f&&h.on("click",(function(){Object(Jt["k"])(f,"_"+e.get("subtarget"))})),Object(ft["a"])(l).eventData=Object(ft["a"])(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),u&&i.add(h);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Object(pi["g"])(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),"middle"===s&&(s="center"),"right"===s?v.x+=v.width:"center"===s&&(v.x+=v.width/2)),a||(a=e.get("top")||e.get("bottom"),"center"===a&&(a="middle"),"bottom"===a?v.y+=v.height:"middle"===a&&(v.y+=v.height/2),a=a||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var b={align:s,verticalAlign:a};l.setStyle(b),h.setStyle(b),g=i.getBoundingRect();var _=v.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var C=new $t["a"]({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(nr["a"]);function FO(e){e.registerComponentModel(jO),e.registerComponentView(RO)}var BO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],Object(y["each"])(n,(function(t,n){var i,o=Object(Pt["e"])(Object(Pt["h"])(t),"");Object(y["isObject"])(t)?(i=Object(y["clone"])(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",s=this._data=new ji["a"]([{name:"value",type:o}],this);s.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={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}(ir["a"]),WO=BO,VO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="timeline.slider",t.defaultOption=Object(Dn["d"])(WO.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}(WO);Object(y["mixin"])(VO,zx["a"].prototype);var zO=VO,HO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="timeline",t}(nr["a"]),UO=HO,qO=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return Object(rt["a"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Lr["a"]),$O=qO,KO=n("18c0"),GO=n("216a"),YO=Math.PI,ZO=Object(Pt["o"])(),XO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=s.scale.getLabel({value:e});return Object(Bo["c"])("nameValue",{noName:!0,value:t})},Object(y["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,s,e)}),this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=JO(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:YO/2},d="vertical"===r?o.height:o.width,f=e.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,b=e.get(["label","rotate"])||0;b=b*YO/180;var _=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),C=p&&f.get("showPrevBtn",!0),S=p&&f.get("showNextBtn",!0),x=0,O=d;"left"===_||"bottom"===_?(w&&(s=[0,0],x+=v),C&&(a=[x,0],x+=v),S&&(l=[O-g,0],O-=v)):(w&&(s=[O-g,0],O-=v),C&&(a=[0,0],x+=v),S&&(l=[O-g,0],O-=v));var k=[x,O];return e.get("inverse")&&k.reverse(),{viewRect:o,mainLength:d,orient:r,rotation:h[r],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[r],playPosition:s,prevBtnPosition:a,nextBtnPosition:l,axisExtent:k,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=wr["create"](),s=r.x,a=r.y+r.height;wr["translate"](o,o,[-s,-a]),wr["rotate"](o,o,-YO/2),wr["translate"](o,o,[s,a]),r=r.clone(),r.applyTransform(o)}var l=m(r),c=m(n.getBoundingRect()),u=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var f=e.labelPosOpt;if(null==f||Object(y["isString"])(f)){var p="+"===f?0:1;v(h,c,l,1,p),v(d,u,l,1,1-p)}else{p=f>=0?0:1;v(h,c,l,1,p),d[1]=h[1]+f}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=QO(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var s=new $O("value",r,e.axisExtent,i);return s.model=t,s},t.prototype._createGroup=function(e){var t=this[e]=new lt["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Hr["a"]({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(y["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var s=this._progressLine=new Hr["a"]({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(y["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(s)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),s=n.scale.getTicks();this._tickSymbols=[],Object(y["each"])(s,(function(e){var s=n.dataToCoord(e.value),a=o.getItemModel(e.value),l=a.getModel("itemStyle"),c=a.getModel(["emphasis","itemStyle"]),u=a.getModel(["progress","itemStyle"]),h={x:s,y:0,onclick:Object(y["bind"])(r._changeTimeline,r,e.value)},d=tk(a,l,t,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Object(pt["o"])(d);var f=Object(ft["a"])(d);a.get("tooltip")?(f.dataIndex=e.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var s=i.getData(),a=n.getViewLabels();this._tickLabels=[],Object(y["each"])(a,(function(i){var o=i.tickValue,a=s.getItemModel(o),l=a.getModel("label"),c=a.getModel(["emphasis","label"]),u=a.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new ie["a"]({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(y["bind"])(r._changeTimeline,r,o),silent:!1,style:Object(bt["c"])(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Object(bt["c"])(c),d.ensureState("progress").style=Object(bt["c"])(u),t.add(d),Object(pt["o"])(d),ZO(d).dataIndex=o,r._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),a=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(e,n,l,u){if(e){var h=Object(c["g"])(Object(y["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-h/2,h,h],f=ek(i,n+"Icon",d,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:s,onclick:l});f.ensureState("emphasis").style=a,t.add(f),Object(pt["o"])(f)}}h(e.nextBtnPosition,"next",Object(y["bind"])(this._changeTimeline,this,u?"-":"+")),h(e.prevBtnPosition,"prev",Object(y["bind"])(this._changeTimeline,this,u?"+":"-")),h(e.playPosition,l?"stop":"play",Object(y["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),s=r.getItemModel(o).getModel("checkpointStyle"),a=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(y["bind"])(a._handlePointerDrag,a),e.ondragend=Object(y["bind"])(a._handlePointerDragend,a),nk(e,a._progressLine,o,n,i,!0)},onUpdate:function(e){nk(e,a._progressLine,o,n,i)}};this._currentPointer=tk(s,s,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=Gt["c"](i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var wk={min:Object(y["curry"])(_k,"min"),max:Object(y["curry"])(_k,"max"),average:Object(y["curry"])(_k,"average"),median:Object(y["curry"])(_k,"median")};function Ck(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!yk(t)&&!Object(y["isArray"])(t.coord)&&Object(y["isArray"])(r)){var o=Sk(t,n,i,e);if(t=Object(y["clone"])(t),t.type&&wk[t.type]&&o.baseAxis&&o.valueAxis){var s=Object(y["indexOf"])(r,o.baseAxis.dim),a=Object(y["indexOf"])(r,o.valueAxis.dim),l=wk[t.type](n,o.baseDataDim,o.valueDataDim,s,a);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(y["isArray"])(r))for(var c=t.coord,u=0;u<2;u++)wk[c[u]]&&(c[u]=Ek(n,n.mapDimension(r[u]),c[u]));else t.coord=[];return t}}function Sk(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(xk(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function xk(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Ok(e,t){return!(e&&e.containData&&t.coord&&!bk(t))||e.containData(t.coord)}function kk(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!bk(t)&&!bk(n))||e.containZone(t.coord,n.coord)}function Lk(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return Object(vk["d"])(o,t[r])}:function(e,n,i,r){return Object(vk["d"])(e.value,t[r])}}function Ek(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var Dk=Object(Pt["o"])(),Ik=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(y["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){Dk(e).keep=!1})),t.eachSeries((function(e){var r=pk.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!Dk(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){Dk(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(y["each"])(e,(function(e){var i=pk.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?Object(pt["q"])(e):Object(pt["B"])(e))}))}}))},t.type="marker",t}(nr["a"]),Mk=Ik;function Tk(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,s=e.getItemModel(r),a=Gt["q"](s.get("x"),n.getWidth()),l=Gt["q"](s.get("y"),n.getHeight());if(isNaN(a)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var c=e.get(i.dimensions[0],r),u=e.get(i.dimensions[1],r);o=i.dataToPoint([c,u])}}else o=[a,l];isNaN(a)||(o[0]=a),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var Ak=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=pk.getMarkerModelFromSeries(e,"markPoint");t&&(Tk(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,s=e.getData(),a=this.markerGroupMap,l=a.get(o)||a.set(o,new kt),c=Nk(r,e,t);t.setData(c),Tk(t.getData(),e,i),c.each((function(e){var n=c.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(y["isFunction"])(i)||Object(y["isFunction"])(r)||Object(y["isFunction"])(o)||Object(y["isFunction"])(a)){var u=t.getRawValue(e),h=t.getDataParams(e);Object(y["isFunction"])(i)&&(i=i(u,h)),Object(y["isFunction"])(r)&&(r=r(u,h)),Object(y["isFunction"])(o)&&(o=o(u,h)),Object(y["isFunction"])(a)&&(a=a(u,h))}var d=n.getModel("itemStyle").getItemStyle(),f=Object(iO["b"])(s,"color");d.fill||(d.fill=f),c.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:a,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Object(ft["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(Mk);function Nk(e,t,n){var i;i=e?Object(y["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(y["extend"])(Object(y["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new ji["a"](i,n),o=Object(y["map"])(n.get("data"),Object(y["curry"])(Ck,t));e&&(o=Object(y["filter"])(o,Object(y["curry"])(Ok,e)));var s=Lk(!!e,i);return r.initData(o,null,s),r}var Pk=Ak;function jk(e){e.registerComponentModel(mk),e.registerComponentView(Pk),e.registerPreprocessor((function(e){uk(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var Rk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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}(pk),Fk=Rk,Bk=Object(Pt["o"])(),Wk=function(e,t,n,i){var r,o=e.getData();if(Object(y["isArray"])(i))r=i;else{var s=i.type;if("min"===s||"max"===s||"average"===s||"median"===s||null!=i.xAxis||null!=i.yAxis){var a=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)a=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(y["retrieve"])(i.yAxis,i.xAxis);else{var c=Sk(i,o,t,e);a=c.valueAxis;var u=Object(Lt["b"])(o,c.valueDataDim);l=Ek(o,u,s)}var h="x"===a.dim?0:1,d=1-h,f=Object(y["clone"])(i),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var g=n.get("precision");g>=0&&Object(y["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[h]=p.coord[h]=l,r=[f,p,{type:s,valueIndex:i.valueIndex,value:l}]}else r=[]}var m=[Ck(e,r[0]),Ck(e,r[1]),Object(y["extend"])({},r[2])];return m[2].type=m[2].type||null,Object(y["merge"])(m[2],m[0]),Object(y["merge"])(m[2],m[1]),m};function Vk(e){return!isNaN(e)&&!isFinite(e)}function zk(e,t,n,i){var r=1-e,o=i.dimensions[e];return Vk(t[r])&&Vk(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function Hk(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(zk(1,n,i,e)||zk(0,n,i,e)))return!0}return Ok(e,t[0])&&Ok(e,t[1])}function Uk(e,t,n,i,r){var o,s=i.coordinateSystem,a=e.getItemModel(t),l=Gt["q"](a.get("x"),r.getWidth()),c=Gt["q"](a.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=s.dimensions,h=e.get(u[0],t),d=e.get(u[1],t);o=s.dataToPoint([h,d])}if(Qt(s,"cartesian2d")){var f=s.getAxis("x"),p=s.getAxis("y");u=s.dimensions;Vk(e.get(u[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):Vk(e.get(u[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];e.setItemLayout(t,o)}var qk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=pk.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=Bk(t).from,o=Bk(t).to;r.each((function(t){Uk(r,t,!0,e,n),Uk(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,s=e.getData(),a=this.markerGroupMap,l=a.get(o)||a.set(o,new Wh);this.group.add(l.group);var c=$k(r,e,t),u=c.from,h=c.to,d=c.line;Bk(t).from=u,Bk(t).to=h,t.setData(d);var f=t.get("symbol"),p=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,r){var o=t.getItemModel(n);Uk(t,n,r,e,i);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=Object(iO["b"])(s,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(y["retrieve2"])(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:Object(y["retrieve2"])(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:Object(y["retrieve2"])(o.get("symbolSize"),p[r?0:1]),symbol:Object(y["retrieve2"])(o.get("symbol",!0),f[r?0:1]),style:a})}Object(y["isArray"])(f)||(f=[f,f]),Object(y["isArray"])(p)||(p=[p,p]),Object(y["isArray"])(g)||(g=[g,g]),Object(y["isArray"])(m)||(m=[m,m]),c.from.each((function(e){v(u,e,!0),v(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[u.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),d.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:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),c.line.eachItemGraphicEl((function(e){Object(ft["a"])(e).dataModel=t,e.traverse((function(e){Object(ft["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Mk);function $k(e,t,n){var i;i=e?Object(y["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(y["extend"])(Object(y["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new ji["a"](i,n),o=new ji["a"](i,n),s=new ji["a"]([],n),a=Object(y["map"])(n.get("data"),Object(y["curry"])(Wk,t,e,n));e&&(a=Object(y["filter"])(a,Object(y["curry"])(Hk,e)));var l=Lk(!!e,i);return r.initData(Object(y["map"])(a,(function(e){return e[0]})),null,l),o.initData(Object(y["map"])(a,(function(e){return e[1]})),null,l),s.initData(Object(y["map"])(a,(function(e){return e[2]}))),s.hasItemOption=!0,{from:r,to:o,line:s}}var Kk=qk;function Gk(e){e.registerComponentModel(Fk),e.registerComponentView(Kk),e.registerPreprocessor((function(e){uk(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var Yk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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}(pk),Zk=Yk,Xk=Object(Pt["o"])(),Qk=function(e,t,n,i){var r=i[0],o=i[1];if(r&&o){var s=Ck(e,r),a=Ck(e,o),l=s.coord,c=a.coord;l[0]=Object(y["retrieve"])(l[0],-1/0),l[1]=Object(y["retrieve"])(l[1],-1/0),c[0]=Object(y["retrieve"])(c[0],1/0),c[1]=Object(y["retrieve"])(c[1],1/0);var u=Object(y["mergeAll"])([{},s,a]);return u.coord=[s.coord,a.coord],u.x0=s.x,u.y0=s.y,u.x1=a.x,u.y1=a.y,u}};function Jk(e){return!isNaN(e)&&!isFinite(e)}function eL(e,t,n,i){var r=1-e;return Jk(t[r])&&Jk(n[r])}function tL(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return Qt(e,"cartesian2d")?!(!n||!i||!eL(1,n,i,e)&&!eL(0,n,i,e))||kk(e,r,o):Ok(e,r)||Ok(e,o)}function nL(e,t,n,i,r){var o,s=i.coordinateSystem,a=e.getItemModel(t),l=Gt["q"](a.get(n[0]),r.getWidth()),c=Gt["q"](a.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=e.getValues(["x0","y0"],t),h=e.getValues(["x1","y1"],t),d=s.clampData(u),f=s.clampData(h),p=[];"x0"===n[0]?p[0]=d[0]>f[0]?h[0]:u[0]:p[0]=d[0]>f[0]?u[0]:h[0],"y0"===n[1]?p[1]=d[1]>f[1]?h[1]:u[1]:p[1]=d[1]>f[1]?u[1]:h[1],o=i.getMarkerPosition(p,n,!0)}else{var g=e.get(n[0],t),m=e.get(n[1],t),v=[g,m];s.clampData&&s.clampData(v,v),o=s.dataToPoint(v,!0)}if(Qt(s,"cartesian2d")){var b=s.getAxis("x"),y=s.getAxis("y");g=e.get(n[0],t),m=e.get(n[1],t);Jk(g)?o[0]=b.toGlobalCoord(b.getExtent()["x0"===n[0]?0:1]):Jk(m)&&(o[1]=y.toGlobalCoord(y.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var iL=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],rL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=pk.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=Object(y["map"])(iL,(function(r){return nL(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,s=e.getData(),a=this.markerGroupMap,l=a.get(o)||a.set(o,{group:new lt["a"]});this.group.add(l.group),this.markKeep(l);var c=oL(r,e,t);t.setData(c),c.each((function(t){var n=Object(y["map"])(iL,(function(n){return nL(c,t,n,e,i)})),o=r.getAxis("x").scale,a=r.getAxis("y").scale,l=o.getExtent(),u=a.getExtent(),h=[o.parse(c.get("x0",t)),o.parse(c.get("x1",t))],d=[a.parse(c.get("y0",t)),a.parse(c.get("y1",t))];Gt["c"](h),Gt["c"](d);var f=!(l[0]>h[1]||l[1]d[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}(ir["a"]),uL=cL,hL=y["curry"],dL=y["each"],fL=lt["a"],pL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Object(rt["a"])(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new fL),this.group.add(this._selectorGroup=new fL),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var s=e.get("selector",!0),a=e.get("selectorPosition",!0);!s||a&&"auto"!==a||(a="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,s,o,a);var l=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),h=pi["g"](l,c,u),d=this.layoutInner(e,r,h,i,s,a),f=pi["g"](y["defaults"]({width:d.width,height:d.height},l),c,u);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hS(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,s){var a=this.getContentGroup(),l=y["createHashMap"](),c=t.get("selectedMode"),u=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),dL(t.getData(),(function(r,o){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var h=new fL;return h.newline=!0,void a.add(h)}var d=n.getSeriesByName(s)[0];if(!l.get(s)){if(d){var f=d.getData(),p=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),m=f.getVisual("style"),v=this._createItem(d,s,o,r,t,e,p,m,g,c,i);v.on("click",hL(vL,s,null,i,u)).on("mouseover",hL(yL,d.name,null,i,u)).on("mouseout",hL(_L,d.name,null,i,u)),n.ssr&&v.eachChild((function(e){var t=Object(ft["a"])(e);t.seriesIndex=d.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(s,!0)}else n.eachRawSeries((function(a){if(!l.get(s)&&a.legendVisualProvider){var h=a.legendVisualProvider;if(!h.containName(s))return;var d=h.indexOfName(s),f=h.getItemVisual(d,"style"),p=h.getItemVisual(d,"legendIcon"),g=Object(oe["parse"])(f.fill);g&&0===g[3]&&(g[3]=.2,f=y["extend"](y["extend"]({},f),{fill:Object(oe["stringify"])(g,"rgba")}));var m=this._createItem(a,s,o,r,t,e,{},f,p,c,i);m.on("click",hL(vL,null,s,i,u)).on("mouseover",hL(yL,null,s,i,u)).on("mouseout",hL(_L,null,s,i,u)),n.ssr&&m.eachChild((function(e){var t=Object(ft["a"])(e);t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(s,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,s)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();dL(e,(function(e){var i=e.type,r=new ie["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var s=t.getModel("selectorLabel"),a=t.getModel(["emphasis","selectorLabel"]);Object(bt["g"])(r,{normal:s,emphasis:a},{defaultText:e.title}),Object(pt["o"])(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,s,a,l,c,u){var h=e.visualDrawType,d=r.get("itemWidth"),f=r.get("itemHeight"),p=r.isSelected(t),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var b=gL(l,i,s,a,h,p,u),_=new fL,w=i.getModel("textStyle");if(!y["isFunction"](e.getLegendIcon)||v&&"inherit"!==v){var C="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;_.add(mL({itemWidth:d,itemHeight:f,icon:l,iconRotate:C,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}else _.add(e.getLegendIcon({itemWidth:d,itemHeight:f,icon:l,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));var S="left"===o?d+5:-5,x=o,O=r.get("formatter"),k=t;y["isString"](O)&&O?k=O.replace("{name}",null!=t?t:""):y["isFunction"](O)&&(k=O(t));var L=p?w.getTextColor():i.get("inactiveColor");_.add(new ie["a"]({style:Object(bt["c"])(w,{text:k,x:S,y:f/2,fill:L,align:x,verticalAlign:"middle"},{inheritColor:L})}));var E=new $t["a"]({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&dt["setTooltipConfig"]({el:E,componentModel:r,itemName:t,itemTooltipOption:D.option}),_.add(E),_.eachChild((function(e){e.silent=!0})),E.silent=!c,this.getContentGroup().add(_),Object(pt["o"])(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,t,n,i,r,o){var s=this.getContentGroup(),a=this.getSelectorGroup();pi["b"](e.get("orient"),s,e.get("itemGap"),n.width,n.height);var l=s.getBoundingRect(),c=[-l.x,-l.y];if(a.markRedraw(),s.markRedraw(),r){pi["b"]("horizontal",a,e.get("selectorItemGap",!0));var u=a.getBoundingRect(),h=[-u.x,-u.y],d=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:c[f]+=u[p]+d,h[1-f]+=l[g]/2-u[g]/2,a.x=h[0],a.y=h[1],s.x=c[0],s.y=c[1];var v={x:0,y:0};return v[p]=l[p]+d+u[p],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+h[1-f]),v}return s.x=c[0],s.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(nr["a"]);function gL(e,t,n,i,r,o,s){function a(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),dL(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Object(ba["a"])(h,s):i.decal,"inherit"===c.fill&&(c.fill=i[r]),"inherit"===c.stroke&&(c.stroke=i[u]),"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity),a(c,i);var d=t.getModel("lineStyle"),f=d.getLineStyle();if(a(f,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var p=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===p?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:f}}function mL(e){var t=e.icon||"roundRect",n=Object(at["a"])(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 vL(e,t,n,i){_L(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),yL(e,t,n,i)}function bL(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],p=[-h.x,-h.y];t||(p[i]=l[a]);var g=[0,0],m=[-d.x,-d.y],v=y["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var b=e.get("pageButtonPosition",!0);"end"===b?m[i]+=n[r]-d[r]:g[i]+=d[r]+v}m[1-i]+=h[o]/2-d[o]/2,l.setPosition(p),c.setPosition(g),u.setPosition(m);var _={x:0,y:0};if(_[r]=f?n[r]:h[r],_[o]=Math.max(h[o],d[o]),_[s]=Math.min(0,d[s]+m[1-i]),c.__rectSize=n[r],f){var w={x:0,y:0};w[r]=Math.max(n[r]-d[r]-v,0),w[o]=_[o],c.setClipPath(new $t["a"]({shape:w})),c.__rectSize=w[r]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var C=this._getPageInfo(e);return null!=C.pageIndex&&ht["h"](l,{x:C.contentPosition[0],y:C.contentPosition[1]},f?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;y["each"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],s=n.childOfName(i);s&&(s.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),s.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,s=null!=o?o+1:0,a=t.pageCount;i&&r&&i.setStyle("text",y["isString"](r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==a?"":a+""):r({current:s,total:a}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=IL[r],s=ML[r],a=this._findTargetItemIndex(t),l=n.children(),c=l[a],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var f=b(c);d.contentPosition[r]=-f.s;for(var p=a+1,g=f,m=f,v=null;p<=u;++p)v=b(l[p]),(!v&&m.e>g.s+i||v&&!y(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(p=a-1,g=f,m=f,v=null;p>=-1;--p)v=b(l[p]),v&&y(m,v.s)||!(g.i=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(wL),AL=TL;function NL(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 PL(e){Object(i["a"])(OL),e.registerComponentModel(EL),e.registerComponentView(AL),NL(e)}function jL(e){Object(i["a"])(OL),Object(i["a"])(PL)}var RL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="dataZoom.inside",t.defaultOption=Object(Dn["d"])(BC.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(BC),FL=RL,BL=Object(Pt["o"])();function WL(e,t,n){BL(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function VL(e,t){for(var n=BL(e).coordSysRecordMap,i=n.keys(),r=0;ri[n+t]&&(t=s),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function KL(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=BL(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(y["createHashMap"])());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=PC(e);Object(y["each"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,HL(t,n.model)),s=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(y["createHashMap"])());s.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var s=$L(r);n.enable(s.controlType,s.opt),n.setPointerChecker(e.containsPoint),Tn["b"](e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else zL(i,e)}))}))}var GL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(rt["a"])(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),WL(i,t,{pan:Object(y["bind"])(YL.pan,this),zoom:Object(y["bind"])(YL.zoom,this),scrollMove:Object(y["bind"])(YL.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){VL(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(HC),YL={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),s=e.axisModels[0];if(s){var a=XL[t](null,[i.originX,i.originY],s,n,e),l=(a.signal>0?a.pixelStart+a.pixelLength-a.pixel:a.pixel-a.pixelStart)/a.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return af(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:ZL((function(e,t,n,i,r,o){var s=XL[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return s.signal*(e[1]-e[0])*s.pixel/s.pixelLength})),scrollMove:ZL((function(e,t,n,i,r,o){var s=XL[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return s.signal*(e[1]-e[0])*o.scrollDelta}))};function ZL(e){return function(t,n,i,r){var o=this.range,s=o.slice(),a=t.axisModels[0];if(a){var l=e(s,a,t,n,i,r);return af(l,s,[0,100],"all"),this.range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var XL={grid:function(e,t,n,i,r){var o=n.axis,s={},a=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s},polar:function(e,t,n,i,r){var o=n.axis,s={},a=r.model.coordinateSystem,l=a.getRadiusAxis().getExtent(),c=a.getAngleAxis().getExtent();return e=e?a.pointToCoord(e):[0,0],t=a.pointToCoord(t),"radiusAxis"===n.mainType?(s.pixel=t[0]-e[0],s.pixelLength=l[1]-l[0],s.pixelStart=l[0],s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=c[1]-c[0],s.pixelStart=c[0],s.signal=o.inverse?-1:1),s},singleAxis:function(e,t,n,i,r){var o=n.axis,s=r.model.coordinateSystem.getRect(),a={};return e=e||[0,0],"horizontal"===o.orient?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a}},QL=GL;function JL(e){nS(e),e.registerComponentModel(FL),e.registerComponentView(QL),KL(e)}var eE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object(Dn["d"])(BC.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}(BC),tE=eE,nE=$t["a"],iE=7,rE=1,oE=30,sE=7,aE="horizontal",lE="vertical",cE=5,uE=["line","bar","candlestick","scatter"],hE={easing:"cubicOut",duration:100,delay:0},dE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(y["bind"])(this._onBrush,this),this._onBrushEnd=Object(y["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),Tn["b"](this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Tn["a"](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 lt["a"];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"),i=n?sE:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},s=this._orient===aE?{right:o.width-r.x-r.width,top:o.height-oE-iE-i,width:r.width,height:oE}:{right:iE,top:r.y,width:oE,height:r.height},a=pi["f"](e.option);Object(y["each"])(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=s[e])}));var l=pi["g"](a,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===lE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==aE||r?n===aE&&r?{scaleY:s?1:-1,scaleX:-1}:n!==lE||r?{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?1:-1,scaleX:1});var a=e.getBoundingRect([o]);e.x=t.x-a.x,e.y=t.y-a.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new nE({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new nE({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(y["bind"])(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=s){var a=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||s!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=r.getDataExtent(s),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],g=[],m=f[1]/(r.count()-1),v=0,b=Math.round(r.count()/t[0]);r.each([s],(function(e,t){if(b>0&&t%b)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:Object(Gt["m"])(e,c,d,!0);n&&!h&&t?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(p.push([v,0]),g.push([v,0])),p.push([v,i]),g.push([v,i]),v+=m,h=n}})),a=this._shadowPolygonPts=p,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=s,this._shadowSize=[t[0],t[1]];for(var y=this.dataZoomModel,_=0;_<3;_++){var w=C(1===_);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function C(e){var t=y.getModel(e?"selectedDataBackground":"dataBackground"),n=new lt["a"],i=new jo["a"]({shape:{points:a},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Ci["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var s=e.getAxisProxy(r,o).getTargetSeriesModels();Object(y["each"])(s,(function(e){if(!n&&!(!0!==t&&Object(y["indexOf"])(uE,e.get("type"))<0)){var s,a=i.getComponent(AC(r),o).axis,l=fE(r),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(s=c.getOtherAxis(a).inverse),l=e.getData().mapDimension(l),n={thisAxis:a,series:e,thisDim:r,otherDim:l,otherAxisInverse:s}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,a=this.api,l=s.get("borderRadius")||0,c=s.get("brushSelect"),u=t.filler=new nE({silent:c,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});r.add(u),r.add(new nE({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:rE,fill:"rgba(0,0,0,0)"}})),Object(y["each"])([0,1],(function(t){var o=s.get("handleIcon");!at["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var a=Object(at["a"])(o,-1,0,2,2,null,!0);a.attr({cursor:pE(this._orient),draggable:!0,drift:Object(y["bind"])(this._onDragMove,this,t),ondragend:Object(y["bind"])(this._onDragEnd,this),onmouseover:Object(y["bind"])(this._showDataInfo,this,!0),onmouseout:Object(y["bind"])(this._showDataInfo,this,!1),z2:5});var l=a.getBoundingRect(),c=s.get("handleSize");this._handleHeight=Object(Gt["q"])(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,a.setStyle(s.getModel("handleStyle").getItemStyle()),a.style.strokeNoScale=!0,a.rectHover=!0,a.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(pt["o"])(a);var u=s.get("handleColor");null!=u&&(a.style.fill=u),r.add(n[t]=a);var h=s.getModel("textStyle");e.add(i[t]=new ie["a"]({silent:!0,invisible:!0,style:Object(bt["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=u;if(c){var d=Object(Gt["q"])(s.get("moveHandleSize"),o[1]),f=t.moveHandle=new $t["a"]({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,g=t.moveHandleIcon=Object(at["a"])(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,f.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));h=t.moveZone=new $t["a"]({invisible:!0,shape:{y:o[1]-m,height:d+m}}),h.on("mouseover",(function(){a.enterEmphasis(f)})).on("mouseout",(function(){a.leaveEmphasis(f)})),r.add(f),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:pE(this._orient),drift:Object(y["bind"])(this._onDragMove,this,"all"),ondragstart:Object(y["bind"])(this._showDataInfo,this,!0),ondragend:Object(y["bind"])(this._onDragEnd,this),onmouseover:Object(y["bind"])(this._showDataInfo,this,!0),onmouseout:Object(y["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(Gt["m"])(e[0],[0,100],t,!0),Object(Gt["m"])(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];af(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Object(Gt["m"])(o.minSpan,s,r,!0):null,null!=o.maxSpan?Object(Gt["m"])(o.maxSpan,s,r,!0):null);var a=this._range,l=this._range=Object(Gt["c"])([Object(Gt["m"])(i[0],r,s,!0),Object(Gt["m"])(i[1],r,s,!0)]);return!a||a[0]!==l[0]||a[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Object(Gt["c"])(n.slice()),r=this._size;Object(y["each"])([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=t.dataShadowSegs,a=[0,i[0],i[1],r[0]],l=0;lt[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Si["a"](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,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Object(Gt["c"])([Object(Gt["m"])(n.x,r,o,!0),Object(Gt["m"])(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(rs["g"](e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new nE({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,a=s.transformCoordToLocal(e,t),l=s.transformCoordToLocal(o.x,o.y),c=this._size;a[0]=Math.max(Math.min(c[0],a[0]),0),r.setShape({x:l[0],y:0,width:a[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?hE:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=PC(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(HC);function fE(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function pE(e){return"vertical"===e?"ns-resize":"ew-resize"}var gE=dE;function mE(e){e.registerComponentModel(tE),e.registerComponentView(gE),nS(e)}function vE(e){Object(i["a"])(JL),Object(i["a"])(mE)}var bE={get:function(e,t,n){var i=y["clone"]((yE[e]||{})[t]);return n&&y["isArray"](i)?i[i.length-1]:i}},yE={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]}},_E=bE,wE=hu.mapVisual,CE=hu.eachVisual,SE=y["isArray"],xE=y["each"],OE=Gt["c"],kE=Gt["m"],LE=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 Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&aO(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=y["bind"](e,this),this.controllerVisuals=sO(this.option.controller,t,e),this.targetVisuals=sO(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=Pt["r"](e),t},t.prototype.eachTargetSeries=function(e,t){y["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,s=this.dataBound,a=r.formatter;n=n||["<",">"],y["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[c(e[0]),c(e[1])]:c(e);return y["isString"](a)?a.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):y["isFunction"](a)?i?a(e[0],e[1]):a(e):i?e[0]===s[0]?n[0]+" "+l[1]:e[1]===s[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===s[0]?"min":e===s[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=OE([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});y["merge"](i,n),y["merge"](r,n);var o=this.isCategory();function s(n){SE(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function a(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},xE(i,(function(e,t){if(hu.isValidType(t)){var n=_E.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),s=r||"roundRect";xE(this.stateList,(function(r){var a=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&y["clone"](t)||(o?s:[s])),null==l.symbolSize&&(l.symbolSize=n&&y["clone"](n)||(o?a[0]:[a[0],a[0]])),l.symbol=wE(l.symbol,(function(e){return"none"===e?s:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;CE(c,(function(e){e>u&&(u=e)})),l.symbolSize=wE(c,(function(e){return kE(e,[0,u],[0,a[0]],!0)}))}}),this)}s.call(this,i),s.call(this,r),a.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ir["a"]),EE=LE,DE=[20,140],IE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(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]=DE[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=DE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):y["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),y["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=Gt["c"]((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 i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=ME(this,"outOfRange",this.getExtent()),n=ME(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,s=0,a=n.length,l=t.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},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 lt["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,s=i.itemSize,a=i.getExtent();BE([0,1],(function(l){var c=r[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=FE(e[l],[0,s[1]],a,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/s[0],c.x=s[0]-h/2;var d=dt["applyTransform"](n.handleLabelPoints[l],dt["getTransform"](c,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),s=r.itemSize,a=[0,s[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",u),d=this.getControllerVisual(e,"symbolSize"),f=FE(e,o,a,!0),p=s[0]-d/2,g={x:c.x,y:c.y};c.y=f,c.x=p;var m=dt["applyTransform"](l.indicatorLabelPoint,dt["getTransform"](c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var b=this._applyTransform("left",l.mainGroup),y=this._orient,_="horizontal"===y;v.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?b:"middle",align:_?"center":b});var w={x:p,y:f,style:{fill:h}},C={style:{x:m[0],y:m[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,S),v.animateTo(C,S)}else c.attr(w),v.attr(C);this._firstShowIndicator=!1;var x=this._shapes.handleLabels;if(x)for(var O=0;Or[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",s):c[1]===1/0?this._showIndicator(l,c[0],"> ",s):this._showIndicator(l,l,"≈ ",s));var u=this._hoverLinkDataIndices,h=[];(t||KE(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=Pt["d"](u,h);this._dispatchHighDown("downplay",RE(d[0],n)),this._dispatchHighDown("highlight",RE(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Object(sl["a"])(e.target,(function(e){var n=Object(ft["a"])(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function JE(e,t,n,i){for(var r=t.targetVisuals[i],o=hu.prepareVisualTypes(r),s={color:Object(iO["b"])(e.getData(),"color")},a=0,l=o.length;a0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(ZE,XE),Object(y["each"])(QE,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(tD))}function oD(e){e.registerComponentModel(TE),e.registerComponentView(YE),rD(e)}var sD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],aD[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=y["clone"](r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=y["map"](this._pieceList,(function(e){return e=y["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=hu.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}y["each"](t.pieces,(function(e){y["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),y["each"](n,(function(e,n){var i=!1;y["each"](this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&y["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=_E.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,y["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;y["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=y["clone"](e)},t.prototype.getValueState=function(e){var t=hu.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=hu.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return y["each"](r,(function(e){var t=e.interval;t&&(t[0]>s&&a([s,t[0]],"outOfRange"),a(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function a(r,o){var s=i.getRepresentValue({interval:r});o||(o=i.getValueState(s));var a=e(s,o);r[0]===-1/0?n[0]=a:r[1]===1/0?n[1]=a:t.push({value:r[0],color:a},{value:r[1],color:a})}},t.type="visualMap.piecewise",t.defaultOption=Object(Dn["d"])(EE.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}(EE),aD={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,a=i[0];s","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function lD(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var cD=sD,uD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),a=t.itemSize,l=this._getViewData(),c=l.endsText,u=y["retrieve"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],a,u,s),y["each"](l.viewPieceList,(function(i){var l=i.piece,c=new lt["a"];c.onclick=y["bind"](this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,a[0],a[1]]),u){var d=this.visualMapModel.getValueState(h);c.add(new ie["a"]({style:{x:"right"===s?-n:a[0]+n,y:a[1]/2,text:l.text,verticalAlign:"middle",align:s,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],a,u,s),pi["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:RE(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return jE(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new lt["a"],s=this.visualMapModel.textStyleModel;o.add(new ie["a"]({style:Object(bt["c"])(s,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=y["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(at["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=y["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,y["each"](r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(NE),hD=uD;function dD(e){e.registerComponentModel(cD),e.registerComponentView(hD),rD(e)}function fD(e){Object(i["a"])(oD),Object(i["a"])(dD)}var pD={label:{enabled:!0},decal:{show:!1}},gD=Object(Pt["o"])(),mD={};function vD(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=y["clone"](pD);y["merge"](i.label,e.getLocaleModel().get("aria"),!1),y["merge"](n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=y["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),gD(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(y["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Object(pc["b"])(t.ecModel,t.name,mD,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",c(r,i))}else{var o=t.getRawData(),s={},a=gD(t).scope;n.each((function(e){var t=n.getRawIndex(e);s[t]=e}));var l=o.count();o.each((function(e){var i=s[e],r=o.getName(e)||e+"",u=Object(pc["b"])(t.ecModel,r,a,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,u))}))}}function c(e,t){var n=e?y["extend"](y["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=t.getZr().dom;if(i){var r=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=y["defaults"](o.option,r),o.get("enabled"))if(o.get("description"))i.setAttribute("aria-label",o.get("description"));else{var c,u=e.getSeriesCount(),h=o.get(["data","maxCount"])||10,d=o.get(["series","maxCount"])||10,f=Math.min(u,d);if(!(u<1)){var p=a();if(p){var g=o.get(["general","withTitle"]);c=s(g,{title:p})}else c=o.get(["general","withoutTitle"]);var m=[],v=u>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);c+=s(v,{seriesCount:u}),e.eachSeries((function(e,t){if(t1?o.get(["series","multiple",r]):o.get(["series","single",r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var a=e.getData();if(a.count()>h){var c=o.get(["data","partialData"]);n+=s(c,{displayCnt:h})}else n+=o.get(["data","allData"]);for(var d=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),g=[],v=0;v":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wD=function(){function e(e){var t=this._condVal=Object(y["isString"])(e)?new RegExp(e):Object(y["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(Kc["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(y["isString"])(t)?this._condVal.test(e):!!Object(y["isNumber"])(t)&&this._condVal.test(e+"")},e}(),CD=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),SD=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function p(e,n,i,r){BD(e,i)&&BD(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,s){var a=Math.abs(n-e),l=4*Math.tan(a/4)/3,c=nx:L2&&l.push(t),l}function VD(e,t,n,i,r,o,s,a,l,c){if(BD(e,n)&&BD(t,i)&&BD(r,s)&&BD(o,a))l.push(s,a);else{var u=2/c,h=u*u,d=s-e,f=a-t,p=Math.sqrt(d*d+f*f);d/=p,f/=p;var g=n-e,m=i-t,v=r-s,b=o-a,y=g*g+m*m,_=v*v+b*b;if(y=0&&x=0)l.push(s,a);else{var O=[],k=[];Object(jt["g"])(e,n,r,s,.5,O),Object(jt["g"])(t,i,o,a,.5,k),VD(O[0],k[0],O[1],k[1],O[2],k[2],O[3],k[3],l,c),VD(O[4],k[4],O[5],k[5],O[6],k[6],O[7],k[7],l,c)}}}}function zD(e,t){var n=WD(e),i=[];t=t||1;for(var r=0;r0)for(c=0;cMath.abs(c),h=HD([l,c],u?0:1,t),d=(u?a:c)/h.length,f=0;fr,s=HD([i,r],o?0:1,t),a=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=e[a]/s.length,d=0;d1?null:new Si["a"](g*l+e,g*c+t)}function GD(e,t,n){var i=new Si["a"];Si["a"].sub(i,n,t),i.normalize();var r=new Si["a"];Si["a"].sub(r,e,t);var o=r.dot(i);return o}function YD(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function ZD(e,t,n){for(var i=e.length,r=[],o=0;os?(c.x=u.x=a+o/2,c.y=l,u.y=l+s):(c.y=u.y=l+s/2,c.x=a,u.x=a+o),ZD(t,c,u)}function QD(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);QD(e,o[0],r,i),QD(e,o[1],n-r,i)}return i}function JD(e,t){for(var n=[],i=0;i0)for(var w=i/n,C=-i/2;C<=i/2;C+=w){var S=Math.sin(C),x=Math.cos(C),O=0;for(y=0;y0;c/=2){var u=0,h=0;(e&c)>0&&(u=1),(t&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(e=c-1-e,t=c-1-t),a=e,e=t,t=a)}return l}function bI(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(y["map"])(e,(function(e){var o=e.getBoundingRect(),s=e.getComputedTransform(),a=o.x+o.width/2+(s?s[4]:0),l=o.y+o.height/2+(s?s[5]:0);return t=Math.min(a,t),n=Math.min(l,n),i=Math.max(a,i),r=Math.max(l,r),[a,l]})),s=Object(y["map"])(o,(function(o,s){return{cp:o,z:vI(o[0],o[1],t,n,i,r),path:e[s]}}));return s.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function yI(e){return nI(e.path,e.count)}function _I(){return{fromIndividuals:[],toIndividuals:[],count:0}}function wI(e,t,n){var i=[];function r(e){for(var t=0;t=0;r--)if(!n[r].many.length){var l=n[a].many;if(l.length<=1){if(!a)return n;a=0}o=l.length;var c=Math.ceil(o/2);n[r].many=l.slice(c,o),n[a].many=l.slice(0,c),a++}return n}var OI={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i0){var a,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},s);SI(e)&&(a=e,l=t),SI(t)&&(a=t,l=e);for(var h=a?a===e:e.length>t.length,d=a?xI(l,a):xI(h?t:e,[h?e:t]),f=0,p=0;pEI))for(var r=n.getIndices(),o=0;o0&&r.group.traverse((function(e){e instanceof a["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function HI(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function UI(e){return Object(y["isArray"])(e)?e.sort().join(","):e}function qI(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function $I(e,t){var n=Object(y["createHashMap"])(),i=Object(y["createHashMap"])(),r=Object(y["createHashMap"])();return Object(y["each"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],s=e.oldData[n],a=HI(t),l=UI(a);i.set(l,{dataGroupId:o,data:s}),Object(y["isArray"])(a)&&Object(y["each"])(a,(function(e){r.set(e,{key:l,dataGroupId:o,data:s})}))})),Object(y["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),s=HI(e),a=UI(s),l=i.get(a);if(l)n.set(a,{oldSeries:[{dataGroupId:l.dataGroupId,divide:qI(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:qI(o),data:o}]});else if(Object(y["isArray"])(s)){0;var c=[];Object(y["each"])(s,(function(e){var t=i.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:qI(t.data),data:t.data})})),c.length&&n.set(a,{oldSeries:c,newSeries:[{dataGroupId:t,data:o,divide:qI(o)}]})}else{var u=r.get(s);if(u){var h=n.get(u.key);h||(h={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:qI(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({dataGroupId:t,data:o,divide:qI(o)})}}}})),n}function KI(e,t){for(var n=0;n=0&&r.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:qI(t.oldData[n]),groupIdDim:e.dimension})})),Object(y["each"])(Object(Pt["r"])(e.to),(function(e){var i=KI(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:qI(r),groupIdDim:e.dimension})}})),r.length>0&&o.length>0&&zI(r,o,i)}function YI(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(y["each"])(Object(Pt["r"])(n.seriesTransition),(function(e){Object(y["each"])(Object(Pt["r"])(e.to),(function(e){for(var t=n.updatedSeries,i=0;i=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class o{constructor(){this._actual=new r(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},"31b5":function(e,t,n){"use strict";var i=n("fbd7").codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function o(e,t,n,o){var s=r(t,o,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?n:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},"31df":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("11f7");function r(e,t={}){const n=s(t);return n.textContent=e,n}function o(e,t={}){const n=s(t);return l(n,c(e,!!t.renderCodeSegements),t.actionHandler,t.renderCodeSegements),n}function s(e){const t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,n,r){let o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(7===t.type&&r)o=document.createElement("code");else if(5===t.type&&n){const e=document.createElement("a");e.href="#",n.disposeables.add(i["o"](e,"click",e=>{n.callback(String(t.index),e)})),o=e}else 8===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach(e=>{l(o,e,n,r)})}function c(e,t){const n={type:1,children:[]};let i=0,r=n;const o=[],s=new a(e);while(!s.eos()){let e=s.next();const n="\\"===e&&0!==h(s.peek(),t);if(n&&(e=s.next()),!n&&u(e,t)&&e===s.peek()){s.advance(),2===r.type&&(r=o.pop());const n=h(e,t);if(r.type===n||5===r.type&&6===n)r=o.pop();else{const e={type:n,children:[]};5===n&&(e.index=i,i++),r.children.push(e),o.push(r),r=e}}else if("\n"===e)2===r.type&&(r=o.pop()),r.children.push({type:8});else if(2!==r.type){const t={type:2,content:e};r.children.push(t),o.push(r),r=t}else r.content+=e}return 2===r.type&&(r=o.pop()),o.length,n}function u(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},"323e":function(e,t,n){var i,r; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(o,s){i=s,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function n(e,t,n){return en?n:e}function i(e){return 100*(-1+e)}function r(e,n,r){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"},o.transition="all "+n+"ms "+r,o}e.configure=function(e){var n,i;for(n in e)i=e[n],void 0!==i&&e.hasOwnProperty(n)&&(t[n]=i);return this},e.status=null,e.set=function(i){var a=e.isStarted();i=n(i,t.minimum,1),e.status=1===i?null:i;var l=e.render(!a),c=l.querySelector(t.barSelector),u=t.speed,h=t.easing;return l.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),s(c,r(i,u,h)),1===i?(s(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){s(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 i=e.status;return i?("number"!==typeof t&&(t=(1-i)*n(Math.random()*i,.1,.95)),i=n(i+t,0,.994),e.set(i)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(i){return i&&"resolved"!==i.state()?(0===n&&e.start(),t++,n++,i.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 r=document.createElement("div");r.id="nprogress",r.innerHTML=t.template;var o,a=r.querySelector(t.barSelector),c=n?"-100":i(e.status||0),u=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(o=r.querySelector(t.spinnerSelector),o&&h(o)),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(r),r},e.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(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 o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=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 i(t){var n=document.body.style;if(t in n)return t;var i,r=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(r--)if(i=e[r]+o,i in n)return i;return t}function r(e){return e=n(e),t[e]||(t[e]=i(e))}function o(e,t,n){t=r(t),e.style[t]=n}return function(e,t){var n,i,r=arguments;if(2==r.length)for(n in t)i=t[n],void 0!==i&&t.hasOwnProperty(n)&&o(e,n,i);else o(e,r[1],r[2])}}();function a(e,t){var n="string"==typeof e?e:u(e);return n.indexOf(" "+t+" ")>=0}function l(e,t){var n=u(e),i=n+t;a(n,t)||(e.className=i.substring(1))}function c(e,t){var n,i=u(e);a(e,t)&&(n=i.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},"32a4":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p}));var i=n("dff7"),r=n("308f"),o=n("b707"),s=n("70cb"),a=n("89cd"),l=n("b9b4");const c={ModesRegistry:"editor.modesRegistry"};class u{constructor(){this._onDidChangeLanguages=new r["b"],this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}},0)},"32b8":function(e,t,n){"use strict";n.d(t,"i",(function(){return _})),n.d(t,"e",(function(){return w})),n.d(t,"d",(function(){return C})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return x})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return k})),n.d(t,"c",(function(){return L})),n.d(t,"h",(function(){return E}));var i=n("c317");const r=65,o=97,s=90,a=122,l=46,c=47,u=92,h=58,d=63;class f extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${r} ${i} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function p(e,t){if("string"!==typeof e)throw new f(t,"string",e)}function g(e){return e===c||e===u}function m(e){return e===c}function v(e){return e>=r&&e<=s||e>=o&&e<=a}function b(e,t,n,i){let r="",o=0,s=-1,a=0,u=0;for(let h=0;h<=e.length;++h){if(h2){const e=r.lastIndexOf(n);-1===e?(r="",o=0):(r=r.slice(0,e),o=r.length-1-r.lastIndexOf(n)),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?n+"..":"..",o=2)}else r.length>0?r+=`${n}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else u===l&&-1!==a?++a:a=-1}return r}function y(e,t){if(null===t||"object"!==typeof t)throw new f("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const _={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0){if(s=e[o],p(s,"path"),0===s.length)continue}else 0===t.length?s=i["a"]():(s=i["b"]["="+t]||i["a"](),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===u)&&(s=t+"\\"));const a=s.length;let l=0,c="",d=!1;const f=s.charCodeAt(0);if(1===a)g(f)&&(l=1,d=!0);else if(g(f))if(d=!0,g(s.charCodeAt(1))){let e=2,t=e;while(e2&&g(s.charCodeAt(2))&&(d=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=d,d&&t.length>0)break}return n=b(n,!r,"\\",g),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){p(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const o=e.charCodeAt(0);if(1===t)return m(o)?"\\":e;if(g(o))if(r=!0,g(e.charCodeAt(1))){let r=2,o=r;while(r2&&g(e.charCodeAt(2))&&(r=!0,i=3));let s=i0&&g(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?r?"\\"+s:s:r?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){p(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return g(n)||t>2&&v(n)&&e.charCodeAt(1)===h&&g(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let o=0;o0&&(void 0===t?t=n=i:t+="\\"+i)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&g(n.charCodeAt(0))){++r;const e=n.length;e>1&&g(n.charCodeAt(1))&&(++r,e>2&&(g(n.charCodeAt(2))?++r:i=!1))}if(i){while(r=2&&(t="\\"+t.slice(r))}return _.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";const n=_.resolve(e),i=_.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";let r=0;while(rr&&e.charCodeAt(o-1)===u)o--;const s=o-r;let a=0;while(aa&&t.charCodeAt(l-1)===u)l--;const c=l-a,h=sh){if(t.charCodeAt(a+f)===u)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}s>h&&(e.charCodeAt(r+f)===u?d=f:2===f&&(d=3)),-1===d&&(d=0)}let g="";for(f=r+d+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==u||(g+=0===g.length?"..":"\\..");return a+=d,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===u&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e)return e;if(0===e.length)return"";const t=_.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===u){if(t.charCodeAt(1)===u){const e=t.charCodeAt(2);if(e!==d&&e!==l)return"\\\\?\\UNC\\"+t.slice(2)}}else if(v(t.charCodeAt(0))&&t.charCodeAt(1)===h&&t.charCodeAt(2)===u)return"\\\\?\\"+t;return e},dirname(e){p(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return g(r)?e:".";if(g(r)){if(n=i=1,g(e.charCodeAt(1))){let r=2,o=r;while(r2&&g(e.charCodeAt(2))?3:2,i=n);let o=-1,s=!0;for(let a=t-1;a>=i;--a)if(g(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&p(t,"ext"),p(e,"path");let n,i=0,r=-1,o=!0;if(e.length>=2&&v(e.charCodeAt(0))&&e.charCodeAt(1)===h&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(g(l)){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(g(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=0,n=-1,i=0,r=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===h&&v(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(g(t)){if(!o){i=a+1;break}}else-1===r&&(o=!1,r=a+1),t===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===r||0===s||1===s&&n===r-1&&n===i+1?"":e.slice(n,r)},format:y.bind(null,"\\"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return g(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(g(r)){if(i=1,g(e.charCodeAt(1))){let t=2,r=t;while(t0&&(t.root=e.slice(0,i));let o=-1,s=i,a=-1,c=!0,u=e.length-1,d=0;for(;u>=i;--u)if(r=e.charCodeAt(u),g(r)){if(!c){s=u+1;break}}else-1===a&&(c=!1,a=u+1),r===l?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);return-1!==a&&(-1===o||0===d||1===d&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==i?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},w={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:i["a"]();p(o,"path"),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===c)}return t=b(t,!n,"/",m),n?"/"+t:t.length>0?t:"."},normalize(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return e=b(e,!t,"/",m),0===e.length?t?"/":n?"./":".":(n&&(e+="/"),t?"/"+e:e)},isAbsolute(e){return p(e,"path"),e.length>0&&e.charCodeAt(0)===c},join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":w.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";if(e=w.resolve(e),t=w.resolve(t),e===t)return"";const n=1,i=e.length,r=i-n,o=1,s=t.length-o,a=ra){if(t.charCodeAt(o+u)===c)return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else r>a&&(e.charCodeAt(n+u)===c?l=u:0===u&&(l=0));let h="";for(u=n+l+1;u<=i;++u)u!==i&&e.charCodeAt(u)!==c||(h+=0===h.length?"..":"/..");return`${h}${t.slice(o+l)}`},toNamespacedPath(e){return e},dirname(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===c){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&p(t,"ext"),p(e,"path");let n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=-1,n=0,i=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==c)-1===i&&(r=!1,i=s+1),a===l?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:y.bind(null,"/"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let i;n?(t.root="/",i=1):i=0;let r=-1,o=0,s=-1,a=!0,u=e.length-1,h=0;for(;u>=i;--u){const t=e.charCodeAt(u);if(t!==c)-1===s&&(a=!1,s=u+1),t===l?-1===r?r=u:1!==h&&(h=1):-1!==r&&(h=-1);else if(!a){o=u+1;break}}if(-1!==s){const i=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?t.base=t.name=e.slice(i,s):(t.name=e.slice(i,r),t.base=e.slice(i,s),t.ext=e.slice(r,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};w.win32=_.win32=_,w.posix=_.posix=w;const C="win32"===i["c"]?_.normalize:w.normalize,S="win32"===i["c"]?_.resolve:w.resolve,x="win32"===i["c"]?_.relative:w.relative,O="win32"===i["c"]?_.dirname:w.dirname,k="win32"===i["c"]?_.basename:w.basename,L="win32"===i["c"]?_.extname:w.extname,E="win32"===i["c"]?_.sep:w.sep},"32c3":function(e,t,n){"use strict";var i;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=n("e142").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,o,s){s=r(s);var l=!1;e.on("close",(function(){l=!0})),void 0===i&&(i=n("ddda")),i(e,{readable:t,writable:o},(function(e){if(e)return s(e);l=!0,s()}));var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void s(t||new a("pipe"))}}function h(e){e()}function d(e,t){return e.pipe(t)}function f(e){return e.length?"function"!==typeof e[e.length-1]?l:e.pop():l}function p(){for(var e=arguments.length,t=new Array(e),n=0;n0;return u(e,s,a,(function(e){i||(i=e),e&&o.forEach(h),s||(o.forEach(h),r(i))}))}));return t.reduce(d)}e.exports=p},"32cc":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e("chunk-2d0c0a09").then(n.bind(null,"431e"))}})},"32f2":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));class i{constructor(e,t,n){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|n}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class r{constructor(e,t,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colorn&&(h=n-d);const f=r.color;let p=this._color2Id[f];p||(p=++this._lastAssignedId,this._color2Id[f]=p,this._id2Color[p]=f);const g=new i(h-d,h+d,p);r.setColorZone(g),a.push(g)}return this._colorZonesInvalid=!1,a.sort(i.compare),a}}},3301:function(e,t,n){"use strict";const{Buffer:i}=n("1c35"),r=Symbol.for("BufferList");function o(e){if(!(this instanceof o))return new o(e);o._init.call(this,e)}o._init=function(e){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},o.prototype._new=function(e){return new o(e)},o.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},o.prototype.slice=function(e,t){return"number"===typeof e&&e<0&&(e+=this.length),"number"===typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},o.prototype.copy=function(e,t,n,r){if(("number"!==typeof n||n<0)&&(n=0),("number"!==typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||i.alloc(0);if(r<=0)return e||i.alloc(0);const o=!!e,s=this._offset(n),a=r-n;let l=a,c=o&&t||0,u=s[1];if(0===n&&r===this.length){if(!o)return 1===this._bufs.length?this._bufs[0]:i.concat(this._bufs,this.length);for(let t=0;tt)){this._bufs[i].copy(e,c,u,u+l),c+=t;break}this._bufs[i].copy(e,c,u),c+=t,l-=t,u&&(u=0)}return e.length>c?e.slice(0,c):e},o.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!==typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),i=this._offset(t),r=this._bufs.slice(n[0],i[0]+1);return 0===i[1]?r.pop():r[r.length-1]=r[r.length-1].slice(0,i[1]),0!==n[1]&&(r[0]=r[0].slice(n[1])),this._new(r)},o.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},o.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){const e=this._new();for(let t=0;tthis.length?this.length:t;const r=this._offset(t);let o=r[0],s=r[1];for(;o=e.length){const n=t.indexOf(e,s);if(-1!==n)return this._reverseOffset([o,n]);s=t.length-e.length+1}else{const t=this._reverseOffset([o,s]);if(this._match(t,e))return t;s++}}s=0}return-1},o.prototype._match=function(e,t){if(this.length-e{const[r]=t.selectedItems;if(r){if(!this.isValidLineNumber(i,r.lineNumber))return;this.gotoLocation(e,{range:this.toRange(r.lineNumber,r.column),keyMods:t.keyMods,preserveFocus:n.inBackground}),n.inBackground||t.hide()}}));const l=()=>{const e=this.parsePosition(i,t.value.trim().substr(a.PREFIX.length)),n=this.getPickLabel(i,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:n}],t.ariaLabel=n,!this.isValidLineNumber(i,e.lineNumber))return void this.clearDecorations(i);const r=this.toRange(e.lineNumber,e.column);i.revealRangeInCenter(r,0),this.addDecorations(i,r)};l(),o.add(t.onDidChangeValue(()=>l()));const c=Object(s["a"])(i);if(c){const e=c.getOptions(),t=e.get(58);2===t.renderType&&(c.updateOptions({lineNumbers:"on"}),o.add(Object(r["i"])(()=>c.updateOptions({lineNumbers:"relative"}))))}return o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const n=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),i=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:i+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?Object(i["a"])("gotoLineColumnLabel","Go to line {0} and character {1}.",t,n):Object(i["a"])("gotoLineLabel","Go to line {0}.",t);const r=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?Object(i["a"])("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",r.lineNumber,r.column,o):Object(i["a"])("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",r.lineNumber,r.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,n){if(!n||"number"!==typeof n)return!1;const i=this.getModel(e);if(!i)return!1;const r={lineNumber:t,column:n};return i.validatePosition(r).equals(r)}lineCount(e){var t,n;return null!==(n=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==n?n:0}}a.PREFIX=":";var l=n("89cd"),c=n("2f1e"),u=n("5717"),h=n("ef8e"),d=n("03d9"),f=n("308f"),p=n("b2cc"),g=n("c101"),m=n("66bd"),v=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},b=function(e,t){return function(n,i){t(n,i,e)}};let y=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=f["c"].None}get activeTextEditorControl(){return Object(h["o"])(this.editorService.getFocusedCodeEditor())}};y=v([b(0,u["a"])],y),l["a"].as(c["b"].Quickaccess).registerQuickAccessProvider({ctor:y,prefix:y.PREFIX,helpEntries:[{description:d["b"].gotoLineActionLabel,needsEditor:!0}]});class _ extends p["b"]{constructor(){super({id:"editor.action.gotoLine",label:d["b"].gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:g["a"].focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m["a"]).quickAccess.show(y.PREFIX)}}Object(p["j"])(_)},"333a":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e("chunk-2d0e6553").then(n.bind(null,"97fe"))}})},3352:function(e,t,n){"use strict";var i,r;n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return l})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(i||(i={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(r||(r={}));class o{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class s{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class a{constructor(e,t,n,i,r,o){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class l{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}},"335d":function(e,t,n){},"338e":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return h}));class i{constructor(){this.changeType=1}}class r{constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new r(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new r(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber),t}}class o{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class s{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class l{constructor(){this.changeType=5}}class c{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t1&&(s*=f(_),a*=f(_));var w=(r===o?-1:1)*f((s*s*(a*a)-s*s*(v*v)-a*a*(d*d))/(s*s*(v*v)+a*a*(d*d)))||0,C=w*s*v/a,S=w*-a*d/s,x=(e+n)/2+g(h)*C-p(h)*S,O=(t+i)/2+p(h)*C+g(h)*S,k=y([1,0],[(d-C)/s,(v-S)/a]),L=[(d-C)/s,(v-S)/a],E=[(-1*d-C)/s,(-1*v-S)/a],D=y(L,E);if(b(L,E)<=-1&&(D=m),b(L,E)>=1&&(D=0),D<0){var I=Math.round(D/m*1e6)/1e6;D=2*m+I%2*m}u.addData(c,x,O,s,a,k,D,h,o)}var w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,C=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function S(e){var t=new o["a"];if(!e)return t;var n,i=0,r=0,s=i,a=r,l=o["a"].CMD,c=e.match(w);if(!c)return t;for(var u=0;u=0&&i(c)?c:.5;var u=e.createRadialGradient(a,l,0,a,l,c);return u}function s(e,t,n){for(var i="radial"===t.type?o(e,t,n):r(e,t,n),s=t.colorStops,a=0;a=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))}),t.splice(r,0,n)}function s(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}}function a(){let e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!==typeof i&&"env"in i&&(e=Object({NODE_ENV:"production",VUE_APP_BAI_DU_AK:"nAtaBg9FYzav6c8P9rF9qzsWZfT8O0PD",VUE_APP_BASE_API:"/prod-api",VUE_APP_MQTT_SERVER_URL:"",VUE_APP_TITLE:"FastBee物联网系统",VUE_APP_XIN_ZHI_KEY:"SBh45_yy21FU5ErV_",BASE_URL:"/"}).DEBUG),e}function l(){try{return localStorage}catch(e){}}t.formatArgs=o,t.save=s,t.load=a,t.useColors=r,t.storage=l(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n("dc90")(t);const{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n("4362"))},3502:function(e,t,n){"use strict";var i=n("33f9");n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i["Emitter"]})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i["Range"]})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i["Uri"]})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i["editor"]})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},3511:function(e,t){var n=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw n("Maximum allowed index exceeded");return e}},"351f":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));n("b329");var i=n("dff7"),r=n("5fe7"),o=n("a666"),s=n("3813"),a=n("6a89"),l=n("b2cc"),c=n("4fc3"),u=n("b7d0"),h=n("303e"),d=n("9c41"),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};let g=class e{constructor(t,n){this._messageWidget=new o["d"],this._messageListeners=new o["b"],this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(n),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(t){return t.getContribution(e.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let n;Object(s["a"])(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new v(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new r["g"](()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(n?n.containsPosition(e.target.position)||this.closeMessage():n=new a["a"](t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(v.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(i["a"]("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};g.ID="editor.contrib.messageController",g.MESSAGE_VISIBLE=new c["c"]("messageVisible",!1,i["a"]("messageVisible","Whether the editor is currently showing an inline message")),g=f([p(1,c["b"])],g);const m=l["c"].bindToContribution(g.get);Object(l["k"])(new m({id:"leaveEditorMessage",precondition:g.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class v{constructor(e,{lineNumber:t,column:n},i){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("message"),o.textContent=i,this._domNode.appendChild(o);const s=document.createElement("div");s.classList.add("anchor","below"),this._domNode.appendChild(s),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const n=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}Object(l["l"])(g.ID,g),Object(u["f"])((e,t)=>{const n=e.getColor(h["qb"]);if(n){let i=e.type===d["a"].HIGH_CONTRAST?2:1;t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${n}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${n}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${i}px solid ${n}; }`)}const i=e.getColor(h["pb"]);i&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i}; }`);const r=e.getColor(h["rb"]);r&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${r}; }`)})},3529:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("59ed"),s=n("f069"),a=n("e667"),l=n("2266"),c=n("5eed");i({target:"Promise",stat:!0,forced:c},{race:function(e){var t=this,n=s.f(t),i=n.reject,c=a((function(){var s=o(t.resolve);l(e,(function(e){r(s,t,e).then(n.resolve,i)}))}));return c.error&&i(c.value),n.promise}})},"357d":function(e,t,n){},"35a1":function(e,t,n){var i=n("f5df"),r=n("dc4a"),o=n("7234"),s=n("3f8c"),a=n("b622"),l=a("iterator");e.exports=function(e){if(!o(e))return r(e,l)||r(e,"@@iterator")||s[i(e)]}},3648:function(e,t,n){},3742:function(e,t,n){"use strict";function i(e){return!e||"string"!==typeof e||0===e.trim().length}n.d(t,"D",(function(){return i})),n.d(t,"w",(function(){return o})),n.d(t,"t",(function(){return s})),n.d(t,"u",(function(){return a})),n.d(t,"V",(function(){return l})),n.d(t,"K",(function(){return c})),n.d(t,"P",(function(){return u})),n.d(t,"p",(function(){return h})),n.d(t,"U",(function(){return d})),n.d(t,"q",(function(){return f})),n.d(t,"O",(function(){return p})),n.d(t,"N",(function(){return g})),n.d(t,"R",(function(){return m})),n.d(t,"v",(function(){return v})),n.d(t,"y",(function(){return b})),n.d(t,"J",(function(){return y})),n.d(t,"f",(function(){return _})),n.d(t,"h",(function(){return w})),n.d(t,"g",(function(){return C})),n.d(t,"i",(function(){return S})),n.d(t,"H",(function(){return x})),n.d(t,"I",(function(){return O})),n.d(t,"s",(function(){return L})),n.d(t,"S",(function(){return D})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return M})),n.d(t,"F",(function(){return T})),n.d(t,"G",(function(){return A})),n.d(t,"j",(function(){return N})),n.d(t,"A",(function(){return P})),n.d(t,"L",(function(){return R})),n.d(t,"M",(function(){return F})),n.d(t,"r",(function(){return B})),n.d(t,"m",(function(){return V})),n.d(t,"k",(function(){return H})),n.d(t,"B",(function(){return q})),n.d(t,"a",(function(){return $})),n.d(t,"n",(function(){return K})),n.d(t,"l",(function(){return G})),n.d(t,"E",(function(){return Y})),n.d(t,"C",(function(){return Z})),n.d(t,"b",(function(){return X})),n.d(t,"T",(function(){return Q})),n.d(t,"o",(function(){return J})),n.d(t,"Q",(function(){return ee})),n.d(t,"x",(function(){return te})),n.d(t,"c",(function(){return ne})),n.d(t,"z",(function(){return oe}));const r=/{(\d+)}/g;function o(e,...t){return 0===t.length?e:e.replace(r,(function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function s(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t=" "){const n=c(e,t);return u(n,t)}function c(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;while(e.indexOf(t,i)===i)i+=n;return e.substring(i)}function u(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,o=-1;while(1){if(o=e.lastIndexOf(t,r-1),-1===o||o+n!==r)break;if(0===o)return"";r=o}return e.substring(0,r)}function h(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(e){return e.replace(/\*/g,"")}function f(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function p(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;const t=e.exec("");return!(!t||0!==e.lastIndex)}function g(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function m(e){return e.split(/\r\n|\r|\n/)}function v(e){for(let t=0,n=e.length;t=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function _(e,t){return et?1:0}function w(e,t,n=0,i=e.length,r=0,o=t.length){for(;no)return 1}const s=i-n,a=o-r;return sa?1:0}function C(e,t){return S(e,t,0,e.length,0,t.length)}function S(e,t,n=0,i=e.length,r=0,o=t.length){for(;na?1:0}function x(e){return e>=97&&e<=122}function O(e){return e>=65&&e<=90}function k(e){return x(e)||O(e)}function L(e,t){return e.length===t.length&&E(e,t)}function E(e,t,n=e.length){for(let i=0;ie.length)&&E(e,t,n)}function I(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n1){const i=e.charCodeAt(t-2);if(T(i))return N(i,n)}return n}function R(e,t){const n=ie.getInstance(),i=t,r=e.length,o=P(e,r,t);t+=o>=65536?2:1;let s=n.getGraphemeBreakType(o);while(t=65536?2:1,s=o}return t-i}function F(e,t){const n=ie.getInstance(),i=t,r=j(e,t);t-=r>=65536?2:1;let o=n.getGraphemeBreakType(r);while(t>0){const i=j(e,t),r=n.getGraphemeBreakType(i);if(ne(r,o))break;t-=i>=65536?2:1,o=r}return i-t}function B(e){const t=e.byteLength,n=[];let i=0;while(i=240&&i+3>>0|(63&e[i++])<<12>>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=224&&i+2>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=192&&i+1>>0|(63&e[i++])<<0>>>0:e[i++],o>=0&&o<=55295||o>=57344&&o<=65535)n.push(String.fromCharCode(o));else if(o>=65536&&o<=1114111){const e=o-65536,t=55296+((1047552&e)>>>10),i=56320+((1023&e)>>>0);n.push(String.fromCharCode(t)),n.push(String.fromCharCode(i))}else n.push(String.fromCharCode(65533))}return n.join("")}const W=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function V(e){return W.test(e)}const z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function H(e){return z.test(e)}const U=/^[\t\n\r\x20-\x7E]*$/;function q(e){return U.test(e)}const $=/[\u2028\u2029]/;function K(e){return $.test(e)}function G(e){for(let t=0,n=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Z(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const X=String.fromCharCode(65279);function Q(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){const t=26;return e%=2*t,et[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function re(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function oe(e,t){if(0===e)return 0;const n=se(e,t);if(void 0!==n)return n;const i=j(t,e);return e-=ae(i),e}function se(e,t){let n=j(t,e);e-=ae(n);while(le(n)||65039===n||8419===n){if(0===e)return;n=j(t,e),e-=ae(n)}if(Z(n)){if(e>=0){const n=j(t,e);8205===n&&(e-=ae(n))}return e}}function ae(e){return e>=65536?2:1}function le(e){return 127995<=e&&e<=127999}ie._INSTANCE=null},3765:function(e,t,n){"use strict";n.r(t),n.d(t,"SelectionAnchorSet",(function(){return p}));n("1754");var i=n("b2cc"),r=n("dff7"),o=n("c101"),s=n("8025"),a=n("fe45"),l=n("4fc3"),c=n("78bc"),u=n("3813"),h=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){return function(n,i){t(n,i,e)}},f=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const p=new l["c"]("selectionAnchorSet",!1);let g=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:s["a"].fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new c["a"]).appendText(Object(r["a"])("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Object(u["a"])(Object(r["a"])("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(s["a"].fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};g.ID="editor.contrib.selectionAnchorController",g=h([d(1,l["b"])],g);class m extends i["b"]{constructor(){super({id:"editor.action.setSelectionAnchor",label:Object(r["a"])("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:o["a"].editorTextFocus,primary:Object(a["a"])(2089,2080),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.setSelectionAnchor()}))}}class v extends i["b"]{constructor(){super({id:"editor.action.goToSelectionAnchor",label:Object(r["a"])("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.goToSelectionAnchor()}))}}class b extends i["b"]{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:Object(r["a"])("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:o["a"].editorTextFocus,primary:Object(a["a"])(2089,2089),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.selectFromAnchorToCursor()}))}}class y extends i["b"]{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:Object(r["a"])("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:o["a"].editorTextFocus,primary:9,weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.cancelSelectionAnchor()}))}}Object(i["l"])(g.ID,g),Object(i["j"])(m),Object(i["j"])(v),Object(i["j"])(b),Object(i["j"])(y)},"37e8":function(e,t,n){var i=n("83ab"),r=n("aed9"),o=n("9bf2"),s=n("825a"),a=n("fc6a"),l=n("df75");t.f=i&&!r?Object.defineProperties:function(e,t){s(e);var n,i=a(t),r=l(t),c=r.length,u=0;while(c>u)o.f(e,n=r[u++],i[n]);return e}},3803:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a}));var i=n("0a0f");const r=Object(i["c"])("undoRedoService");class o{constructor(e,t){this.resource=e,this.elements=t}}class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s;class a{constructor(){this.id=a._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}a._ID=0,a.None=new a},3813:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return f}));n("5029");var i=n("30db"),r=n("11f7");const o=2e4;let s,a,l,c,u;function h(e){s=document.createElement("div"),s.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};a=t(),l=t();const n=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};c=n(),u=n(),e.appendChild(s)}function d(e){s&&(a.textContent!==e?(r["t"](l),p(a,e)):(r["t"](a),p(l,e)))}function f(e){s&&(i["f"]?d(e):c.textContent!==e?(r["t"](u),p(c,e)):(r["t"](c),p(u,e)))}function p(e,t){r["t"](e),t.length>o&&(t=t.substr(0,o)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},3835:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return a}));n("a4d3"),n("e01a"),n("d28b"),n("14d9"),n("d3b7"),n("3ca3"),n("ddb0");function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(c)throw r}}return a}}var o=n("06c5");n("d9e2");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return i(e)||r(e,t)||Object(o["a"])(e,t)||s()}},3842:function(e,t,n){"use strict";n.d(t,"m",(function(){return a})),n.d(t,"q",(function(){return l})),n.d(t,"w",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"v",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"p",(function(){return w})),n.d(t,"s",(function(){return C})),n.d(t,"t",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"r",(function(){return O})),n.d(t,"u",(function(){return k})),n.d(t,"o",(function(){return L})),n.d(t,"k",(function(){return E})),n.d(t,"j",(function(){return D})),n.d(t,"d",(function(){return M}));var i=n("6d8b"),r=1e-4,o=20;function s(e){return e.replace(/^\s+|\s+$/g,"")}function a(e,t,n,i){var r=t[0],o=t[1],s=n[0],a=n[1],l=o-r,c=a-s;if(0===l)return 0===c?s:(s+a)/2;if(i)if(l>0){if(e<=r)return s;if(e>=o)return a}else{if(e>=r)return s;if(e<=o)return a}else{if(e===r)return s;if(e===o)return a}return(e-r)/l*c+s}function l(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 i["isString"](e)?s(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function c(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),o),e=(+e).toFixed(t),n?e:+e}function u(e){return e.sort((function(e,t){return e-t})),e}function h(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 d(e)}function d(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),s=o<0?0:r-1-o;return Math.max(0,s-i)}function f(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),s=Math.min(Math.max(-r+o,0),20);return isFinite(s)?s:20}function p(e,t,n){if(!e[t])return 0;var i=g(e,n);return i[t]||0}function g(e,t){var n=i["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),o=i["map"](e,(function(e){return(isNaN(e)?0:e)/n*r*100})),s=100*r,a=i["map"](o,(function(e){return Math.floor(e)})),l=i["reduce"](a,(function(e,t){return e+t}),0),c=i["map"](o,(function(e,t){return e-a[t]}));while(lu&&(u=c[d],h=d);++a[h],c[h]=0,++l}return i["map"](a,(function(e){return e/r}))}function m(e,t){var n=Math.max(h(e),h(t)),i=e+t;return n>o?i:c(i,n)}var v=9007199254740991;function b(e){var t=2*Math.PI;return(e%t+t)%t}function y(e){return e>-r&&e=10&&t++,t}function x(e,t){var n,i=S(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function O(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function k(e){e.sort((function(e,t){return a(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i0;return u(e,s,a,(function(e){i||(i=e),e&&o.forEach(h),s||(o.forEach(h),r(i))}))}));return t.reduce(d)}e.exports=p},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},"38a2":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l}));var i=n("6d8b"),r=n("2b17"),o=n("eda2"),s=/\{@(.+?)\}/g,a=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),a=n.getItemVisual(e,"style"),l=a&&a[n.getItemVisual(e,"drawType")||"fill"],c=a&&a.stroke,u=this.mainType,h="series"===u,d=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:s,dataType:t,value:i,color:l,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,a,l,c){t=t||"normal";var u=this.getData(n),h=this.getDataParams(e,n);if(c&&(h.value=c.interpolatedValue),null!=a&&i["isArray"](h.value)&&(h.value=h.value[a]),!l){var d=u.getItemModel(e);l=d.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(i["isFunction"](l))return h.status=t,h.dimensionIndex=a,l(h);if(i["isString"](l)){var f=Object(o["e"])(l,h);return f.replace(s,(function(t,n){var o=n.length,s=n;"["===s.charAt(0)&&"]"===s.charAt(o-1)&&(s=+s.slice(1,o-1));var a=Object(r["e"])(u,e,s);if(c&&i["isArray"](c.interpolatedValue)){var l=u.getDimensionIndex(s);l>=0&&(a=c.interpolatedValue[l])}return null!=a?a+"":""}))}},e.prototype.getRawValue=function(e,t){return Object(r["e"])(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return i["isObject"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}},"38a2b":function(e,t,n){},"38e9":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e("chunk-2d0ba136").then(n.bind(null,"3652"))}})},"38f6":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return n.e("chunk-2d0dda4e").then(n.bind(null,"81ed"))}})},3901:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i=n("282b"),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=Object(i["a"])(r),s=function(){function e(){}return e.prototype.getLineStyle=function(e){return o(this,e)},e}()},"392f":function(e,t,n){"use strict";var i=n("9ab4"),r=n("19eb"),o=n("9850"),s=[],a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Object(i["a"])(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;nu)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"39f9":function(e,t,n){},"3a19":function(e,t,n){},"3a34":function(e,t,n){"use strict";var i=n("83ab"),r=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(r(e)&&!s(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,n){var i=n("e330");e.exports=i({}.isPrototypeOf)},"3bbe":function(e,t,n){var i=n("1626"),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},"3bd2":function(e,t,n){"use strict";(function(t,i){var r;e.exports=D,D.ReadableState=E;n("faa1").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=n("946b"),a=n("1c35").Buffer,l=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return a.from(e)}function u(e){return a.isBuffer(e)||e instanceof l}var h,d=n(8);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=n("86ef"),v=n("015d"),b=n("75d2"),y=b.getHighWaterMark,_=n("e142").codes,w=_.ERR_INVALID_ARG_TYPE,C=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(D,s);var O=v.errorOrDestroy,k=["error","close","destroy","pause","resume"];function L(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function E(e,t,i){r=r||n("030c"),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n("aa22").StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function D(e){if(r=r||n("030c"),!(this instanceof D))return new D(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function I(e,t,n,i,r){h("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,j(e,s);else if(r||(o=T(s,t)),o)O(e,o);else if(s.objectMode||t&&t.length>0)if("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),i)s.endEmitted?O(e,new x):M(e,s,t,!0);else if(s.ended)O(e,new C);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?M(e,s,t,!1):B(e,s)):M(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e,t){if(h("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function R(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(W,e,t))}function W(e,t){while(!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){h("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(q,e,t))}function q(e,t){h("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}function K(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function G(e){var t=e._readableState;h("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(h("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Z(e,t){for(var n=0,i=e.length;n=t.highWaterMark:t.length>0)||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):R(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&G(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e0?K(e,t):null,null===i?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==i&&this.emit("data",i),i},D.prototype._read=function(e){O(this,new S("_read()"))},D.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,a=s?c:b;function l(e,t){h("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){h("onend"),e.end()}r.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",l);var u=V(n);e.on("drain",u);var d=!1;function f(){h("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function p(t){h("ondata");var i=e.write(t);h("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Z(r.pipes,e))&&!d&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function g(t){h("onerror",t),b(),e.removeListener("error",g),0===o(e,"error")&&O(e,t)}function m(){e.removeListener("finish",v),b()}function v(){h("onfinish"),e.removeListener("close",m),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),L(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",n),r.flowing||(h("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?R(this):r.reading||i.nextTick(H,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),n},D.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(z,this),t},D.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this},D.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){if(h("wrapped data"),n.decoder&&(r=n.decoder.write(r)),(!n.objectMode||null!==r&&void 0!==r)&&(n.objectMode||r&&r.length)){var o=t.push(r);o||(i=!0,e.pause())}})),e)void 0===this[r]&&"function"===typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o=n.length?a(void 0,!0):(e=i(n,r),t.index+=e.length,a(e,!1))}))},"3d33":function(e,t,n){ /** * @license * Video.js 6.13.0 * Copyright Brightcove, Inc. * Available under Apache License Version 2.0 * * * Includes vtt.js * Available under Apache License Version 2.0 * */ function i(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=i(n("be09")),o=i(n("ef34")),s=i(n("1b8d")),a=i(n("8c10")),l=i(n("eec7")),c=i(n("2b8c")),u="6.13.0",h=r.navigator&&r.navigator.userAgent||"",d=/AppleWebKit\/([\d.]+)/i.exec(h),f=d?parseFloat(d.pop()):null,p=/iPad/i.test(h),g=/iPhone/i.test(h)&&!p,m=/iPod/i.test(h),v=g||p||m,b=function(){var e=h.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),y=/Android/i.test(h),_=function(){var e=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),w=y&&/webkit/i.test(h)&&_<2.3,C=y&&_<5&&f<537,S=/Firefox/i.test(h),x=/Edge/i.test(h),O=!x&&(/Chrome/i.test(h)||/CriOS/i.test(h)),k=function(){var e=h.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),L=/MSIE\s8\.0/.test(h),E=function(){var e=/MSIE\s(\d+)\.\d/.exec(h),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(t=11),t}(),D=/Safari/i.test(h)&&!O&&!y&&!x,I=(D||v)&&!O,M=ne()&&("ontouchstart"in r||r.navigator.maxTouchPoints||r.DocumentTouch&&r.document instanceof r.DocumentTouch),T=ne()&&"backgroundSize"in r.document.createElement("video").style,A=(Object.freeze||Object)({IS_IPAD:p,IS_IPHONE:g,IS_IPOD:m,IS_IOS:v,IOS_VERSION:b,IS_ANDROID:y,ANDROID_VERSION:_,IS_OLD_ANDROID:w,IS_NATIVE_ANDROID:C,IS_FIREFOX:S,IS_EDGE:x,IS_CHROME:O,CHROME_VERSION:k,IS_IE8:L,IE_VERSION:E,IS_SAFARI:D,IS_ANY_SAFARI:I,TOUCH_ENABLED:M,BACKGROUND_SIZE_SUPPORTED:T}),N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},j=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},R=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},F=function(e,t){return e.raw=t,e},B=Object.prototype.toString,W=function(e){return U(e)?Object.keys(e):[]};function V(e,t){W(e).forEach((function(n){return t(e[n],n)}))}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return W(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function H(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],r=o.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Y.warn(s(Q,e,n)),r.setAttribute(e,n)):"textContent"===e?ae(r,n):r[e]=n})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&ke(r,i),r}function ae(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ce(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ue(e,t){return e.classList?e.classList.add(t):ce(e,t)||(e.className=(e.className+" "+t).trim()),e}function he(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function de(e,t,n){var i=ce(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?ue(e,t):he(e,t),e}function fe(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function pe(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var o=i[r].name,s=i[r].value;"boolean"!==typeof e[o]&&-1===n.indexOf(","+o+",")||(s=null!==s),t[o]=s}return t}function ge(e,t){return e.getAttribute(t)}function me(e,t,n){e.setAttribute(t,n)}function ve(e,t){e.removeAttribute(t)}function be(){o.body.focus(),o.onselectstart=function(){return!1}}function ye(){o.onselectstart=function(){return!0}}function _e(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(X(e,"height"))),n.width||(n.width=parseFloat(X(e,"width"))),n}}function we(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=o.documentElement,i=o.body,s=n.clientLeft||i.clientLeft||0,a=r.pageXOffset||i.scrollLeft,l=t.left+a-s,c=n.clientTop||i.clientTop||0,u=r.pageYOffset||i.scrollTop,h=t.top+u-c;return{left:Math.round(l),top:Math.round(h)}}function Ce(e,t){var n={},i=we(e),r=e.offsetWidth,o=e.offsetHeight,s=i.top,a=i.left,l=t.pageY,c=t.pageX;return t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+o)/o)),n.x=Math.max(0,Math.min(1,(c-a)/r)),n}function Se(e){return U(e)&&3===e.nodeType}function xe(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Oe(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ie(e)||Se(e)?e:"string"===typeof e&&/\S/.test(e)?o.createTextNode(e):void 0})).filter((function(e){return e}))}function ke(e,t){return Oe(t).forEach((function(t){return e.appendChild(t)})),e}function Le(e,t){return ke(xe(e),t)}function Ee(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===E||0===e.button&&1===e.buttons))}var De=oe("querySelector"),Ie=oe("querySelectorAll"),Me=(Object.freeze||Object)({isReal:ne,isEl:ie,isInFrame:re,createEl:se,textContent:ae,prependTo:le,hasClass:ce,addClass:ue,removeClass:he,toggleClass:de,setAttributes:fe,getAttributes:pe,getAttribute:ge,setAttribute:me,removeAttribute:ve,blockTextSelection:be,unblockTextSelection:ye,getBoundingClientRect:_e,findPosition:we,getPointerPosition:Ce,isTextNode:Se,emptyEl:xe,normalizeContent:Oe,appendContent:ke,insertContent:Le,isSingleLeftClick:Ee,$:De,$$:Ie}),Te=1;function Ae(){return Te++}var Ne={},Pe="vdata"+(new Date).getTime();function je(e){var t=e[Pe];return t||(t=e[Pe]=Ae()),Ne[t]||(Ne[t]={}),Ne[t]}function Re(e){var t=e[Pe];return!!t&&!!Object.getOwnPropertyNames(Ne[t]).length}function Fe(e){var t=e[Pe];if(t){delete Ne[t];try{delete e[Pe]}catch(n){e.removeAttribute?e.removeAttribute(Pe):e[Pe]=null}}}function Be(e,t){var n=je(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Fe(e)}function We(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function Ve(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var i=e||r.event;for(var s in e={},i)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&i.preventDefault||(e[s]=i[s]));if(e.target||(e.target=e.srcElement||o),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=o.documentElement,l=o.body;e.pageX=e.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var ze=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){ze=!0}});r.addEventListener("test",null,e),r.removeEventListener("test",null,e)}catch(t){}})();var He=["touchstart","touchmove"];function Ue(e,t,n){if(Array.isArray(t))return We(Ue,e,t,n);var i=je(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Ae()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=Ve(t);var r=i.handlers[t.type];if(r)for(var o=r.slice(0),s=0,a=o.length;s-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function qe(e,t,n){if(Re(e)){var i=je(e);if(i.handlers){if(Array.isArray(t))return We(qe,e,t,n);var r=function(e,t){i.handlers[t]=[],Be(e,t)};if(void 0!==t){var o=i.handlers[t];if(o)if(n){if(n.guid)for(var s=0;s0)for(var r=0,s=e.length;r0)for(var a=0,l=t.length;a0)for(var c=0,u=n.length;c0)for(var h=0,d=i.length;h=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,o=void 0,s=function(){i.clearTimeout(o),o=null},a=function(){var r=this,s=arguments,a=function(){o=null,a=null,n||e.apply(r,s)};!o&&n&&e.apply(r,s),i.clearTimeout(o),o=i.setTimeout(a,t)};return a.cancel=s,a},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ue(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){qe(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ke(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=Ve(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),$e(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger;var ot=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},st=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},at=function(e){if(!e.nodeName&&!ot(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!st(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ct=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ut=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,r=void 0,o=void 0;return n?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],o=t[1]):(i=t[0],r=t[1],o=t[2]),at(i),lt(r),ct(o),o=tt(e,o),{isTargetingSelf:n,target:i,type:r,listener:o}},ht=function(e,t,n,i){at(e),e.nodeName?Ge[t](e,n,i):e[t](n,i)},dt={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=se("span",{className:"vjs-event-bus"});return H(e,dt),e.on("dispose",(function(){e.off(),r.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var pt={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var n=void 0;return V(e,(function(e,i){t.state[i]!==e&&(n=n||{},n[i]={from:t.state[i],to:e}),t.state[i]=e})),n&&ot(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function gt(e,t){return H(e,pt),e.state=H({},e.state,t),"function"===typeof e.handleStateChanged&&ot(e)&&e.on("statechanged",e.handleStateChanged),e}function mt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function vt(e,t){return mt(e)===mt(t)}function bt(){for(var e={},t=arguments.length,n=Array(t),i=0;i=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Fe(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return Y.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=bt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return se(e,t,n)},e.prototype.localize=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[i],s=i&&i.split("-")[0],a=r&&r[s],l=n;return o&&o[e]?l=o[e]:a&&a[e]&&(l=a[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=mt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,o=void 0;if("string"===typeof t){o=mt(t);var s=n.componentClass||o;n.name=o;var a=e.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!==typeof a)return null;r=new a(this.player_||this,n)}else r=t;if(this.children_.splice(i,0,r),"function"===typeof r.id&&(this.childIndex_[r.id()]=r),o=o||r.name&&mt(r.name()),o&&(this.childNameIndex_[o]=r),"function"===typeof r.el&&r.el()){var l=this.contentEl().children,c=l[i]||null;this.contentEl().insertBefore(r.el(),c)}return r},e.prototype.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var i=this.options_,r=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}},o=void 0,s=e.getComponent("Tech");o=Array.isArray(n)?n:Object.keys(n),o.concat(Object.keys(this.options_).filter((function(e){return!o.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i=void 0,r=void 0;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||mt(t.name));return n&&!s.isTech(n)})).forEach(r)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},e.prototype.$=function(e,t){return De(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Ie(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ce(this.el_,e)},e.prototype.addClass=function(e){ue(this.el_,e)},e.prototype.removeClass=function(e){he(this.el_,e)},e.prototype.toggleClass=function(e,t){de(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return ge(this.el_,e)},e.prototype.setAttribute=function(e,t){me(this.el_,e,t)},e.prototype.removeAttribute=function(e){ve(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+mt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var i="offset"+mt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=10,i=200,r=void 0;this.on("touchstart",(function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=(new Date).getTime(),r=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)r=!1;else if(t){var i=e.touches[0].pageX-t.pageX,o=e.touches[0].pageY-t.pageY,s=Math.sqrt(i*i+o*o);s>n&&(r=!1)}}));var o=function(){r=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(n){if(t=null,!0===r){var o=(new Date).getTime()-e;o0&&c.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=mt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function _t(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function wt(e,t,n,i){return _t(e,i,n.length-1),n[i][t]}function Ct(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:wt.bind(null,"start",0,e),end:wt.bind(null,"end",1,e)}}function St(e,t){return Array.isArray(e)?Ct(e):void 0===e||void 0===t?Ct():Ct([[e,t]])}function xt(e,t){var n=0,i=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=St(0,0));for(var o=0;ot&&(r=t),n+=r-i;return n/t}yt.prototype.supportsRaf_="function"===typeof r.requestAnimationFrame&&"function"===typeof r.cancelAnimationFrame,yt.registerComponent("Component",yt);for(var Ot={},kt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Lt=kt[0],Et=void 0,Dt=0;Dt0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;P(this,t);var s=R(this,e.call(this));if(!r&&(r=s,L))for(var a in r=o.createElement("custom"),t.prototype)"constructor"!==a&&(r[a]=t.prototype[a]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);for(var s=void 0,a=r.length-1;a>=0;a--)if(r[a].enabled){Ut(r,r[a]);break}if(L){for(var l in s=o.createElement("custom"),zt.prototype)"constructor"!==l&&(s[l]=zt.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(s[c]=t.prototype[c])}return n=R(this,e.call(this,r,s)),s=n,s.changing_=!1,i=s,R(n,i)}return j(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&Ut(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){n.changing_||(n.changing_=!0,Ut(n,t),n.changing_=!1,n.trigger("change"))}))},t}(zt),$t=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);for(var s=void 0,a=r.length-1;a>=0;a--)if(r[a].selected){$t(r,r[a]);break}if(L){for(var l in s=o.createElement("custom"),zt.prototype)"constructor"!==l&&(s[l]=zt.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(s[c]=t.prototype[c])}return n=R(this,e.call(this,r,s)),s=n,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);var s=void 0;if(L){for(var a in s=o.createElement("custom"),zt.prototype)"constructor"!==a&&(s[a]=zt.prototype[a]);for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l])}return n=R(this,e.call(this,r,s)),s=n,i=s,R(n,i)}return j(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var n=["metadata","chapters"];-1===n.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(zt),Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];P(this,e);var n=this;if(L)for(var i in n=o.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var r=0,s=t.length;r0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var r=R(this,e.call(this)),s=r;if(L)for(var a in s=o.createElement("custom"),t.prototype)"constructor"!==a&&(s[a]=t.prototype[a]);var l={id:i.id||"vjs_track_"+Ae(),kind:i.kind||"",label:i.label||"",language:i.language||""},c=function(e){Object.defineProperty(s,e,{get:function(){return l[e]},set:function(){}})};for(var u in l)c(u);return n=s,R(r,n)}return j(t,e),t}(rt),nn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,s=void 0;i&&(s=o.createElement("div"),s.innerHTML='
',n=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),o.body.appendChild(s));for(var a={},l=0;lx',e=t.firstChild.href}return e},on=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},sn=function(e){var t=r.location,n=nn(e),i=":"===n.protocol?t.protocol:n.protocol,o=i+n.host!==t.protocol+t.host;return o},an=(Object.freeze||Object)({parseUrl:nn,getAbsoluteURL:rn,getFileExtension:on,isCrossOrigin:sn}),ln=function(e,t){var n=new r.WebVTT.Parser(r,r.vttjs,r.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(r.console&&r.console.groupCollapsed&&r.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return Y.error(e)})),r.console&&r.console.groupEnd&&r.console.groupEnd()),n.flush()},cn=function(e,t){var n={uri:e},i=sn(e);i&&(n.cors=i),l(n,tt(this,(function(e,n,i){if(e)return Y.error(e,n);if(t.loaded_=!0,"function"!==typeof r.WebVTT){if(t.tech_){var o=function(){return ln(i,t)};t.tech_.on("vttjsloaded",o),t.tech_.on("vttjserror",(function(){Y.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",o)}))}}else ln(i,t)})))},un=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P(this,t),!r.tech)throw new Error("A tech was not provided.");var o=bt(r,{kind:Jt[r.kind]||"subtitles",language:r.language||r.srclang||""}),s=en[o.mode]||"disabled",a=o["default"];"metadata"!==o.kind&&"chapters"!==o.kind||(s="hidden");var l=(n=R(this,e.call(this,o)),n);if(l.tech_=o.tech,L)for(var c in t.prototype)"constructor"!==c&&(l[c]=t.prototype[c]);l.cues_=[],l.activeCues_=[];var u=new Zt(l.cues_),h=new Zt(l.activeCues_),d=!1,f=tt(l,(function(){this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",f)}),!0),Object.defineProperty(l,"default",{get:function(){return a},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(e){var t=this;en[e]&&(s=e,"disabled"!==s?this.tech_.ready((function(){t.tech_.on("timeupdate",f)}),!0):this.tech_.off("timeupdate",f),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(d=!1,t.length!==this.activeCues_.length)d=!0;else for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var o=bt(r,{kind:Qt[r.kind]||""}),s=(n=R(this,e.call(this,o)),n),a=!1;if(L)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return a},set:function(e){"boolean"===typeof e&&e!==a&&(a=e,this.trigger("enabledchange"))}}),o.enabled&&(s.enabled=o.enabled),s.loaded_=!0,i=s,R(n,i)}return j(t,e),t}(tn),dn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var o=bt(r,{kind:Xt[r.kind]||""}),s=(n=R(this,e.call(this,o)),n),a=!1;if(L)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return a},set:function(e){"boolean"===typeof e&&e!==a&&(a=e,this.trigger("selectedchange"))}}),o.selected&&(s.selected=o.selected),i=s,R(n,i)}return j(t,e),t}(tn),fn=0,pn=1,gn=2,mn=3,vn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var i=R(this,e.call(this)),r=void 0,s=i;if(L)for(var a in s=o.createElement("custom"),t.prototype)"constructor"!==a&&(s[a]=t.prototype[a]);var l,c=new un(n);return s.kind=c.kind,s.src=c.src,s.srclang=c.language,s.label=c.label,s["default"]=c["default"],Object.defineProperty(s,"readyState",{get:function(){return r}}),Object.defineProperty(s,"track",{get:function(){return c}}),r=fn,c.addEventListener("loadeddata",(function(){r=gn,s.trigger({type:"load",target:s})})),L?(l=s,R(i,l)):i}return j(t,e),t}(rt);vn.prototype.allowedEvents_={load:"load"},vn.NONE=fn,vn.LOADING=pn,vn.LOADED=gn,vn.ERROR=mn;var bn={audio:{ListClass:qt,TrackClass:hn,capitalName:"Audio"},video:{ListClass:Kt,TrackClass:dn,capitalName:"Video"},text:{ListClass:Gt,TrackClass:un,capitalName:"Text"}};Object.keys(bn).forEach((function(e){bn[e].getterName=e+"Tracks",bn[e].privateName=e+"Tracks_"}));var yn={remoteText:{ListClass:Gt,TrackClass:un,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:vn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},_n=bt(bn,yn);function wn(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var s=new _n.text.TrackClass(r);return o.addTrack(s),s}yn.names=Object.keys(yn),bn.names=Object.keys(bn),_n.names=[].concat(yn.names).concat(bn.names);var Cn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};P(this,t),n.reportTouchActivity=!1;var r=R(this,e.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),_n.names.forEach((function(e){var t=_n[e];n&&n[t.getterName]&&(r[t.privateName]=n[t.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===n["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new _n.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return j(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return St(0,0)},t.prototype.bufferedPercent=function(){return xt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(bn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Mt(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?St(0,0):St()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;bn.names.forEach((function(t){var n=bn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!r.WebVTT)if(o.body.contains(this.el())){if(!this.options_["vtt.js"]&&q(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var t=o.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),r.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},s=function(){o();for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(Y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==n&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(i.track)})),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=mt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=mt(e),t.techs_&&t.techs_[e]?t.techs_[e]:r&&r.videojs&&r.videojs[e]?(Y.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r.videojs[e]):void 0},t}(yt);_n.names.forEach((function(e){var t=_n[e];Cn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Cn.prototype.featuresVolumeControl=!0,Cn.prototype.featuresMuteControl=!0,Cn.prototype.featuresFullscreenResize=!1,Cn.prototype.featuresPlaybackRate=!1,Cn.prototype.featuresProgressEvents=!1,Cn.prototype.featuresSourceset=!1,Cn.prototype.featuresTimeupdateEvents=!1,Cn.prototype.featuresNativeTextTracks=!1,Cn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],i=void 0,r=0;r3&&void 0!==arguments[3]?arguments[3]:null,r="call"+mt(n),o=e.reduce(Pn(r),i),s=o===On,a=s?null:t[n](o);return jn(e,n,a,s),a}var Tn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},An={setCurrentTime:1},Nn={play:1,pause:1};function Pn(e){return function(t,n){return t===On?On:n[e]?n[e](t):t}}function jn(e,t,n,i){for(var r=e.length-1;r>=0;r--){var o=e[r];o[t]&&o[t](i,n)}}function Rn(e){xn[e.id()]=null}function Fn(e,t){var n=xn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),xn[e.id()]=[[t,i]],i;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=t[0],a=t.slice(1);if("string"===typeof s)Bn(e,Sn[s],n,i,r,o);else if(s){var l=Fn(i,s);if(!l.setSource)return r.push(l),Bn(e,a,n,i,r,o);l.setSource(H({},e),(function(t,s){if(t)return Bn(e,a,n,i,r,o);r.push(l),Bn(s,e.type===s.type?a:Sn[s.type],n,i,r,o)}))}else a.length?Bn(e,a,n,i,r,o):o?n(e,r):Bn(e,Sn["*"],n,i,r,!0)}var Wn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=on(e),n=Wn[t.toLowerCase()];return n||""},zn=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=H({innerHTML:'',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Y.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=H({role:"button"},i),this.tabIndex_=n.tabIndex;var r=e.prototype.createEl.call(this,t,n,i);return this.createControlTextEl(r),r},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=se("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,ae(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){Ue(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){qe(o,"keydown",tt(this,this.handleKeyPress))},t}(yt);yt.registerComponent("ClickableComponent",$n);var Kn=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.update(),n.on("posterchange",tt(r,r.update)),r}return j(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=se("div",{className:"vjs-poster",tabIndex:-1});return T||(this.fallbackImg_=se("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Nt(this.player_.play()):this.player_.pause())},t}($n);yt.registerComponent("PosterImage",Kn);var Gn="#222",Yn="#ccc",Zn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Xn(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Qn(e,t,n){try{e.style[t]=n}catch(i){return}}var Jn=function(e){function t(n,i,o){P(this,t);var s=R(this,e.call(this,n,i,o)),a=tt(s,s.updateDisplay);return n.on("loadstart",tt(s,s.toggleDisplay)),n.on("texttrackchange",a),n.on("loadstart",tt(s,s.preselectTrack)),n.ready(tt(s,(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",a),n.on("playerresize",a),r.addEventListener&&r.addEventListener("orientationchange",a),n.on("dispose",(function(){return r.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=H({innerHTML:'',className:this.buildCSSClass()},t),n=H({type:"button"},n);var i=yt.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return Y.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),yt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}($n);yt.registerComponent("Button",ti);var ni=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Nt(t);else{var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};At(t)?t.then(r,(function(){})):this.setTimeout(r,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(ti);ni.prototype.controlText_="Play Video",yt.registerComponent("BigPlayButton",ni);var ii=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(ti);yt.registerComponent("CloseButton",ii);var ri=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r.on(n,"ended",r.handleEnded),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(ti);ri.prototype.controlText_="Play",yt.registerComponent("PlayToggle",ri);var oi=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||s>0?r+":":"",i=((r||o>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},si=oi;function ai(e){si=e}function li(){si=oi}var ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return si(e,t)},ui=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.throttledUpdateContent=nt(tt(r,r.updateContent),25),r.on(n,"timeupdate",r.throttledUpdateContent),r}return j(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:''+this.localize(this.labelText_)+" "});return this.contentEl_=se("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=o.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return ci(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(yt);ui.prototype.labelText_="Time",ui.prototype.controlText_="Time",yt.registerComponent("TimeDisplay",ui);var hi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"ended",r.handleEnded),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(ui);hi.prototype.labelText_="Current Time",hi.prototype.controlText_="Current Time",yt.registerComponent("CurrentTimeDisplay",hi);var di=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"loadedmetadata",r.throttledUpdateContent),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(ui);di.prototype.labelText_="Duration",di.prototype.controlText_="Duration",yt.registerComponent("DurationDisplay",di);var fi=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},t}(yt);yt.registerComponent("TimeDivider",fi);var pi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"durationchange",r.throttledUpdateContent),r.on(n,"ended",r.handleEnded),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(ui);pi.prototype.labelText_="Remaining Time",pi.prototype.controlText_="Remaining Time",yt.registerComponent("RemainingTimeDisplay",pi);var gi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return j(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=se("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+" "+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(yt);yt.registerComponent("LiveDisplay",gi);var mi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return j(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=H({tabIndex:0},n),i=H({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||O||e.preventDefault(),be(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ye(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=n:i.width=n,e}}},t.prototype.calculateDistance=function(e){var t=Ce(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(yt);yt.registerComponent("Slider",mi);var vi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,o=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(i,n);for(var s=0;st.length;u--)this.el_.removeChild(r[u-1]);r.length=t.length},t}(yt);yt.registerComponent("LoadProgressBar",vi);var bi=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var i=_e(this.el_),r=_e(this.player_.el()),o=e.width*t;if(r&&i){var s=e.left-r.left+o,a=e.width-o+(r.right-e.right),l=i.width/2;si.width&&(l=i.width),this.el_.style.right="-"+l+"px",ae(this.el_,n)}},t}(yt);yt.registerComponent("TimeTooltip",bi);var yi=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),r=ci(i,n.player_.duration()),o=n.getChild("timeTooltip");o&&o.update(e,t,r)}))},t}(yt);yi.prototype.options_={children:[]},E&&!(E>8)||v||y||yi.prototype.options_.children.push("timeTooltip"),yt.registerComponent("PlayProgressBar",yi);var _i=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.update=nt(tt(r,r.update),25),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.duration(),r=ci(t*i,i);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,r)}))},t}(yt);_i.prototype.options_={children:["timeTooltip"]},yt.registerComponent("MouseTimeDisplay",_i);var wi=5,Ci=30,Si=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.setEventHandlers_(),r}return j(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=nt(tt(this,this.update),Ci),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),Ci)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ci(e,n),ci(n,n)],"{1} of {2}")),this.bar.update(_e(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Ee(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Ee(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Nt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+wi)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-wi)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(mi);Si.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},E&&!(E>8)||v||y||Si.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Si.prototype.playerEvent="timeupdate",yt.registerComponent("SeekBar",Si);var xi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.handleMouseMove=nt(tt(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=nt(tt(r,r.handleMouseSeek),25),r.enable(),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),i=t.el(),r=_e(i),o=Ce(i,e).x;o>1?o=1:o<0&&(o=0),n&&n.update(r,o)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(yt);xi.prototype.options_={children:["seekBar"]},yt.registerComponent("ProgressControl",xi);var Oi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),!1===o[Ot.fullscreenEnabled]&&r.disable(),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ti);Oi.prototype.controlText_="Fullscreen",yt.registerComponent("FullscreenToggle",Oi);var ki=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Li=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},t}(yt);yt.registerComponent("VolumeLevel",Li);var Ei=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on("slideractive",r.updateLastVolume_),r.on(n,"volumechange",r.updateARIAAttributes),n.ready((function(){return r.updateARIAAttributes()})),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Ee(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Ee(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(mi);Ei.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ei.prototype.playerEvent="volumechange",yt.registerComponent("VolumeBar",Ei);var Di=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||q(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var r=R(this,e.call(this,n,i));return ki(r,n),r.throttledHandleMouseMove=nt(tt(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}return j(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(yt);Di.prototype.options_={children:["volumeBar"]},yt.registerComponent("VolumeControl",Di);var Ii=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Mi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return Ii(r,n),r.on(n,["loadstart","volumechange"],r.update),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;v&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)he(this.el_,"vjs-vol-"+n);ue(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(ti);Mi.prototype.controlText_="Mute",yt.registerComponent("MuteToggle",Mi);var Ti=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||q(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var r=R(this,e.call(this,n,i));return r.on(n,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return j(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(yt);Ti.prototype.options_={children:["muteToggle","volumeControl"]},yt.registerComponent("VolumePanel",Ti);var Ai=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return i&&(r.menuButton_=i.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return j(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=se(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ue(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(yt);yt.registerComponent("Menu",Ai);var Ni=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t);var r=R(this,e.call(this,n,i));r.menuButton_=new ti(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=ti.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return j(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Ai(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=se("li",{className:"vjs-menu-title",innerHTML:mt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){Ue(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){qe(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&&re())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(yt);yt.registerComponent("MenuButton",Ni);var Pi=function(e){function t(n,i){P(this,t);var r=i.tracks,o=R(this,e.call(this,n,i));if(o.items.length<=1&&o.hide(),!r)return R(o);var s=tt(o,o.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),o.player_.on("ready",s),o.player_.on("dispose",(function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})),o}return j(t,e),t}(Ni);yt.registerComponent("TrackButton",Pi);var ji=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.selectable=i.selectable,r.isSelected_=i.selected||!1,r.multiSelectable=i.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return j(t,e),t.prototype.createEl=function(t,n,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",H({className:"vjs-menu-item",innerHTML:''+this.localize(this.options_.label)+"",tabIndex:-1},n),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}($n);yt.registerComponent("MenuItem",ji);var Ri=function(e){function t(n,i){P(this,t);var s=i.track,a=n.textTracks();i.label=s.label||s.language||"Unknown",i.selected="showing"===s.mode;var l=R(this,e.call(this,n,i));l.track=s;var c=function(){for(var e=arguments.length,t=Array(e),n=0;n-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(ji);yt.registerComponent("TextTrackMenuItem",Ri);var Fi=function(e){function t(n,i){return P(this,t),i.track={player:n,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,R(this,e.call(this,n,i))}return j(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Ri);yt.registerComponent("OffTextTrackMenuItem",Fi);var Bi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,t),i.tracks=n.textTracks(),R(this,e.call(this,n,i))}return j(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ri,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new Fi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r-1){var s=new t(this.player_,{track:o,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+o.kind+"-menu-item"),e.push(s)}}return e},t}(Pi);yt.registerComponent("TextTrackButton",Bi);var Wi=function(e){function t(n,i){P(this,t);var r=i.track,o=i.cue,s=n.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=o.text,i.selected=o.startTime<=s&&s=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(mt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n