UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

1 lines 262 kB
export const __webpack_ids__=["50382"];export const __webpack_modules__={40793:function(t,e,n){var r=n(40810),i=n(71998),o=n(73994),a=n(4576),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return o(a(i(this)),s,{that:t,IS_RECORD:!0}),t}})},42933:function(t,e,n){n.d(e,{D:()=>s,KZ:()=>u,XD:()=>f,Zi:()=>p,_W:()=>d,bX:()=>h,eq:()=>l,ke:()=>o});var r=n(6836),i=(0,n(31936).Yf)();function o(t,e,n,i,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var u="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,h=void 0,c=void 0;return i?(l=(0,r.retrieve2)(i.duration,200),h=(0,r.retrieve2)(i.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),h=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(l=a.duration),null!=a.easing&&(h=a.easing),null!=a.delay&&(c=a.delay)),(0,r.isFunction)(c)&&(c=c(n,o)),(0,r.isFunction)(l)&&(l=l(n)),{duration:l||0,delay:c,easing:h}}return null}function a(t,e,n,i,a,s,u){var l,h=!1;(0,r.isFunction)(a)?(u=s,s=a,a=null):(0,r.isObject)(a)&&(s=a.cb,u=a.during,h=a.isFrom,l=a.removeOpt,a=a.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var f=o(t,i,a,c?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var p={duration:f.duration,delay:f.delay||0,easing:f.easing,done:s,force:!!s||!!u,setToFinal:!c,scope:t,during:u};h?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!h&&e.attr(n),u&&u(1),s&&s()}function s(t,e,n,r,i,o){a("update",t,e,n,r,i,o)}function u(t,e,n,r,i,o){a("enter",t,e,n,r,i,o)}function l(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function h(t,e,n,r,i,o){l(t)||a("leave",t,e,n,r,i,o)}function c(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),h(t,{style:{opacity:0}},e,n,r)}function f(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||c(t,e,n,r)})):c(t,e,n,r)}function p(t){i(t).oldStyle=t.style}function d(t){return i(t).oldStyle}},8355:function(t,e,n){n.d(e,{Z:()=>i});var r=n(31936);function i(){var t=(0,r.Yf)();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}},77385:function(t,e,n){n.d(e,{Z:()=>v});var r=n(6836),i=n(38439),o=n(82190),a=n(10538),s=n(31936),u=n(49051),l=function(t){this.coordSysDims=[],this.axisMap=(0,r.createHashMap)(),this.categoryAxisMap=(0,r.createHashMap)(),this.coordSysName=t};var h={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",s.C6).models[0],o=t.getReferringComponents("yAxis",s.C6).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),c(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),c(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",s.C6).models[0];e.coordSysDims=["single"],n.set("single",i),c(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",s.C6).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),c(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),c(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();(0,r.each)(a.parallelAxisIndex,(function(t,r){var a=o.getComponent("parallelAxis",t),u=s[r];n.set(u,a),c(a)&&(i.set(u,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function c(t){return"category"===t.get("type")}var f=n(3517),p=n(62951),d=n(73279),y=n(21202);const v=function(t,e,n){n=n||{};var c,v=e.getSourceManager(),g=!1;t?(g=!0,c=(0,f.nx)(t)):g=(c=v.getSource()).sourceFormat===y.cy;var m=function(t){var e=t.get("coordinateSystem"),n=new l(e),r=h[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),_=function(t,e){var n,i=t.get("coordinateSystem"),o=u.Z.get(i);return e&&e.coordSysDims&&(n=r.map(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=(0,a.T)(i)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(e,m),x=n.useEncodeDefaulter,w=r.isFunction(x)?x:x?r.curry(d.pY,_,e):null,S={coordDimensions:_,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:w,canOmitUnusedDimensions:!g},b=(0,o.Z)(c,S),D=function(t,e,n){var i,o;return n&&r.each(t,(function(t,r){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=r),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==i||(t[i].otherDims.itemName=0),i}(b.dimensions,n.createInvertedIndices,m),M=g?null:v.getSharedDataStore(b),T=(0,p.BM)(e,{schema:b,store:M}),k=new i.Z(b,e);k.setCalculationInfo(T);var C=null!=D&&function(t){if(t.sourceFormat===y.cy){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!r.isArray((0,s.C4)(e))}}(c)?function(t,e,n,r){return r===D?n:this.defaultDimValueGetter(t,e,n,r)}:null;return k.hasItemOption=!1,k.initData(g?c:M,null,C),k}},96810:function(t,e,n){n.d(e,{BY:()=>_,TX:()=>p,d_:()=>b,iv:()=>D,jT:()=>S});n(92745);var r=n(61962),i=n(94485),o=n(6836),a=n(66278),s=n(96131),u="line-height:1";function l(t){var e=t.lineHeight;return null==e?u:"line-height:"+(0,r.F1)(e+"")+"px"}function h(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,u=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,r.F1)(i+"")+"px;color:"+(0,r.F1)(n)+";font-weight:"+(0,r.F1)(o+""),valueStyle:"font-size:"+(0,r.F1)(s+"")+"px;color:"+(0,r.F1)(a)+";font-weight:"+(0,r.F1)(u+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:u}}}var c=[0,10,20,30],f=["","\n","\n\n","\n\n\n"];function p(t,e){return e.type=t,e}function d(t){return"section"===t.type}function y(t){return d(t)?g:m}function v(t){if(d(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return(0,o.each)(t.blocks,(function(t){var n=v(t);n>=e&&(e=n+ +(r&&(!n||d(t)&&!t.noHeader)))})),e}return 0}function g(t,e,n,s){var u,p=e.noHeader,d=(u=v(e),{html:c[u],richText:f[u]}),g=[],m=e.blocks||[];(0,o.assert)(!m||(0,o.isArray)(m)),m=m||[];var _=t.orderMode;if(e.sortBlocks&&_){m=m.slice();var S={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(S,_)){var b=new a.ID(S[_],null);m.sort((function(t,e){return b.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===_&&m.reverse()}(0,o.each)(m,(function(n,r){var i=e.valueFormatter,a=y(n)(i?(0,o.extend)((0,o.extend)({},t),{valueFormatter:i}):t,n,r>0?d.html:0,s);null!=a&&g.push(a)}));var D="richText"===t.renderMode?g.join(d.richText):x(s,g.join(""),p?n:d.html);if(p)return D;var M=(0,i.uX)(e.header,"ordinal",t.useUTC),T=h(s,t.renderMode).nameStyle,k=l(s);return"richText"===t.renderMode?w(t,M,T)+d.richText+D:x(s,'<div style="'+T+";"+k+';">'+(0,r.F1)(M)+"</div>"+D,n)}function m(t,e,n,a){var s=t.renderMode,u=e.noName,l=e.noValue,c=!e.markerType,f=e.name,p=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return t=(0,o.isArray)(t)?t:[t],(0,o.map)(t,(function(t,e){return(0,i.uX)(t,(0,o.isArray)(g)?g[e]:g,p)}))};if(!u||!l){var y=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),v=u?"":(0,i.uX)(f,"ordinal",p),g=e.valueType,m=l?[]:d(e.value,e.dataIndex),_=!c||!u,S=!c&&u,b=h(a,s),D=b.nameStyle,M=b.valueStyle;return"richText"===s?(c?"":y)+(u?"":w(t,v,D))+(l?"":function(t,e,n,r,i){var a=[i],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(e)?e.join(" "):e,a)}(t,m,_,S,M)):x(a,(c?"":y)+(u?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+(0,r.F1)(t)+"</span>"}(v,!c,D))+(l?"":function(t,e,n,i){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=(0,o.isArray)(t)?t:[t],'<span style="'+s+";"+i+'">'+(0,o.map)(t,(function(t){return(0,r.F1)(t)})).join("&nbsp;&nbsp;")+"</span>"}(m,_,S,M)),n)}}function _(t,e,n,r,i,o){if(t)return y(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function x(t,e,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+l(t)+';">'+e+'<div style="clear:both"></div></div>'}function w(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function S(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,i.Lz)(n)}function b(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var D=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.jj)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,a=(0,i.A0)({color:e,type:t,renderMode:n,markerId:r});return(0,o.isString)(a)?a:(this.richTextStyles[r]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,o.isArray)(e)?(0,o.each)(e,(function(t){return(0,o.extend)(n,t)})):(0,o.extend)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}()},49051:function(t,e,n){n.d(e,{Z:()=>o});var r=n(6836),i={};const o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];r.each(i,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){r.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){i[t]=e},t.get=function(t){return i[t]},t}()},82357:function(t,e,n){n.d(e,{I2:()=>f,D0:()=>p,sO:()=>c,Li:()=>y,G8:()=>d});var r=n(30057),i=n(53970);var o=n(6836),a="ZH",s="EN",u=s,l={},h={},c=i.Z.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||u).toUpperCase().indexOf(a)>-1?a:u;function f(t,e){t=t.toUpperCase(),h[t]=new r.Z(e),l[t]=e}function p(t){if((0,o.isString)(t)){var e=l[t.toUpperCase()]||{};return t===a||t===s?(0,o.clone)(e):(0,o.merge)((0,o.clone)(e),(0,o.clone)(l[u]),!1)}return(0,o.merge)((0,o.clone)(t),(0,o.clone)(l[u]),!1)}function d(t){return h[t]}function y(){return h[u]}f(s,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),f(a,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}})},49162:function(t,e,n){n.d(e,{v:()=>i});var r=n(6836);function i(t){return new o(t)}var o=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=c(this._modBy),u=this._modDataCount||0,l=c(t&&t.modBy),h=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}s===l&&u===h||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=l,this._modDataCount=h;var f=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(a||p<d)){var y=this._progress;if((0,r.isArray)(y))for(var v=0;v<y.length;v++)this._doProgress(y[v],p,d,l,h);else this._doProgress(y,p,d,l,h)}this._dueIndex=d;var g=null!=this._settedOutputEnd?this._settedOutputEnd:d;0,this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){a.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,r.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),a=function(){var t,e,n,r,i,o={reset:function(u,l,h,c){e=u,t=l,n=h,r=c,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}()},8942:function(t,e,n){n.d(e,{Z:()=>o});n(92745);function r(t){return null==t?0:t.length||1}function i(t){return t}const o=function(){function t(t,e,n,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=o,this._diffModeMultiple="multiple"===a}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],u=n[s],l=r(u);if(l>1){var h=u.shift();1===u.length&&(n[s]=u[0]),this._update&&this._update(h,a)}else 1===l?(n[s]=null,this._update&&this._update(u,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var u=o[s],l=n[u],h=i[u],c=r(l),f=r(h);if(c>1&&1===f)this._updateManyToOne&&this._updateManyToOne(h,l),i[u]=null;else if(1===c&&f>1)this._updateOneToMany&&this._updateOneToMany(h,l),i[u]=null;else if(1===c&&1===f)this._update&&this._update(h,l),i[u]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(h,l),i[u]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],a=r(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),e){var u=e[s],l=r(u);0===l?(e[s]=a,o&&n.push(s)):1===l?e[s]=[u,a]:u.push(a)}}},t}()},61511:function(t,e,n){n.d(e,{ZP:()=>y,hG:()=>h});n(92745),n(26200),n(25754),n(22246),n(9359),n(56475),n(70104),n(71375),n(15524),n(20267);var r,i=n(6836),o=n(66278),a=n(3517),s="undefined",u=typeof Uint32Array===s?Array:Uint32Array,l=typeof Uint16Array===s?Array:Uint16Array,h=typeof Int32Array===s?Array:Int32Array,c=typeof Float64Array===s?Array:Float64Array,f={float:c,int:h,ordinal:Array,number:Array,time:c};function p(t){return t>65535?u:l}function d(t,e,n,r,i){var o=f[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var u=new o(r),l=0;l<s;l++)u[l]=a[l];t[e]=u}}else t[e]=new o(r)}const y=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,i.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),s=this.defaultDimValueGetter=r[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];(0,a.QY)(o);this._dimensions=(0,i.map)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new f[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],u=o;u<a;u++){var l=n[u]=e.parseAndCollect(n[u]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<o;l++){d(n,l,(y=i[l]).type,u,!0)}for(var h=[],c=s;c<u;c++)for(var f=c-s,p=0;p<o;p++){var y=i[p],v=r.arrayRows.call(this,t[f]||h,y.property,f,p);n[p][c]=v;var g=a[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,u=this._rawExtent,l=(0,i.map)(a,(function(t){return t.property})),h=0;h<s;h++){var c=a[h];u[h]||(u[h]=[1/0,-1/0]),d(o,h,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,o,u);else for(var f=[],p=t;p<e;p++){f=r.getItem(p,f);for(var y=0;y<s;y++){var v=o[y],g=this._dimValueGetter(f,l[y],p,y);v[p]=g;var m=u[y];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,u=0,l=this.count();u<l;u++){var h=e-r[this.getRawIndex(u)],c=Math.abs(h);c<=n&&((c<o||c===o&&h>=0&&a<0)&&(o=c,a=h,s=0),h===a&&(i[s++]=u))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=p(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(p(n._rawCount))(r),o=[],a=t.length,s=0,u=t[0],l=n._chunks,h=0;h<r;h++){var c=void 0,f=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a){c=e(l[u][f],h)}else{for(var d=0;d<a;d++)o[d]=l[t[d]][f];o[d]=h,c=e.apply(null,o)}c&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=(0,i.keys)(t),o=r.length;if(!o)return this;var a=e.count(),s=new(p(e._rawCount))(a),u=0,l=r[0],h=t[l][0],c=t[l][1],f=e._chunks,d=!1;if(!e._indices){var y=0;if(1===o){for(var v=f[r[0]],g=0;g<n;g++){((w=v[g])>=h&&w<=c||isNaN(w))&&(s[u++]=y),y++}d=!0}else if(2===o){v=f[r[0]];var m=f[r[1]],_=t[r[1]][0],x=t[r[1]][1];for(g=0;g<n;g++){var w=v[g],S=m[g];(w>=h&&w<=c||isNaN(w))&&(S>=_&&S<=x||isNaN(S))&&(s[u++]=y),y++}d=!0}}if(!d)if(1===o)for(g=0;g<a;g++){var b=e.getRawIndex(g);((w=f[r[0]][b])>=h&&w<=c||isNaN(w))&&(s[u++]=b)}else for(g=0;g<a;g++){for(var D=!0,M=(b=e.getRawIndex(g),0);M<o;M++){var T=r[M];((w=f[T][b])<t[T][0]||w>t[T][1])&&(D=!1)}D&&(s[u++]=e.getRawIndex(g))}return u<a&&(e._indices=s),e._count=u,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],u=t._rawExtent,l=0;l<e.length;l++)u[e[l]]=[1/0,-1/0];for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),f=0;f<o;f++)s[f]=r[e[f]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(l=0;l<p.length;l++){var d=e[l],y=p[l],v=u[d],g=r[d];g&&(g[c]=y),y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),u=0,l=Math.floor(1/e),h=this.getRawIndex(0),c=new(p(this._rawCount))(Math.min(2*(Math.ceil(s/l)+2),s));c[u++]=h;for(var f=1;f<s-1;f+=l){for(var d=Math.min(f+l,s-1),y=Math.min(f+2*l,s),v=(y+d)/2,g=0,m=d;m<y;m++){var _=a[T=this.getRawIndex(m)];isNaN(_)||(g+=_)}g/=y-d;var x=f,w=Math.min(f+l,s),S=f-1,b=a[h];n=-1,i=x;var D=-1,M=0;for(m=x;m<w;m++){var T;_=a[T=this.getRawIndex(m)];isNaN(_)?(M++,D<0&&(D=T)):(r=Math.abs((S-v)*(_-b)-(S-m)*(g-b)))>n&&(n=r,i=T)}M>0&&M<w-x&&(c[u++]=Math.min(D,i),i=Math.max(D,i)),c[u++]=i,h=i}return c[u++]=this.getRawIndex(s-1),o._count=u,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),r=n._chunks,i=Math.floor(1/e),o=r[t],a=this.count(),s=new(p(this._rawCount))(2*Math.ceil(a/i)),u=0,l=0;l<a;l+=i){var h=l,c=o[this.getRawIndex(h)],f=l,d=o[this.getRawIndex(f)],y=i;l+i>a&&(y=a-l);for(var v=0;v<y;v++){var g=o[this.getRawIndex(l+v)];g<c&&(c=g,h=l+v),g>d&&(d=g,f=l+v)}var m=this.getRawIndex(h),_=this.getRawIndex(f);h<f?(s[u++]=m,s[u++]=_):(s[u++]=_,s[u++]=m)}return n._count=u,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),u=o[t],l=this.count(),h=i._rawExtent[t]=[1/0,-1/0],c=new(p(this._rawCount))(Math.ceil(l/s)),f=0,d=0;d<l;d+=s){s>l-d&&(s=l-d,a.length=s);for(var y=0;y<s;y++){var v=this.getRawIndex(d+y);a[y]=u[v]}var g=n(a),m=this.getRawIndex(Math.min(d+r(a,g)||0,l-1));u[m]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),c[f++]=m}return i._count=f,i._indices=c,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,u=[];s<n;s++)u[s]=r[t[s]][a];u[s]=i,e.apply(null,u)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var u=e[this.getRawIndex(s)];u<o&&(o=u),u>a&&(a=u)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,o,a=new t,s=this._chunks,u=e&&(0,i.reduce)(e,(function(t,e){return t[e]=!0,t}),{});if(u)for(var l=0;l<s.length;l++)a._chunks[l]=u[l]?(r=s[l],o=void 0,(o=r.constructor)===Array?r.slice():new o(r)):s[l];else a._chunks=s;return this._copyCommonProps(a),n||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,i.clone)(this._extent),t._rawExtent=(0,i.clone)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return(0,o.yQ)(t[r],this._dimensions[r])}r={arrayRows:t,objectRows:function(t,e,n,r){return(0,o.yQ)(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return(0,o.yQ)(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}()},38439:function(t,e,n){n.d(e,{Z:()=>C});n(92745),n(26200),n(25754),n(22246),n(9359),n(56475),n(70104),n(71375),n(15524),n(20267);var r,i,o,a,s,u,l,h=n(6836),c=n(30057),f=n(8942),p=n(45370),d=n(10538),y=n(74401),v=n(21202),g=n(31936),m=n(89523),_=n(3517),x=n(61511),w=n(64597),S=h.isObject,b=h.map,D="undefined"==typeof Int32Array?Array:Int32Array,M=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],T=["_approximateExtent"],k=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;(0,w.bB)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,u={},l=0;l<n.length;l++){var c=n[l],f=h.isString(c)?new y.Z({name:c}):c instanceof y.Z?c:new y.Z(c),p=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=p,f.coordDimIndex=0);var d=f.otherDims=f.otherDims||{};o.push(p),i[p]=f,null!=u[p]&&(s=!0),f.createInvertedIndices&&(a[p]=[]),0===d.itemName&&(this._nameDimIdx=l),0===d.itemId&&(this._idDimIdx=l),r&&(f.storeDimIndex=l)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var v=this._dimIdxToName=h.createHashMap();h.each(o,(function(t){v.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(h.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof x.ZP&&(r=t),!r){var o=this.dimensions,a=(0,_.Ld)(t)||h.isArrayLike(t)?new p.Pl(t,o.length):t;r=new x.ZP;var s=b(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=(0,d.y)(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&l(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==v.J5&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===v.cy&&!n.pure)for(var a=[],s=t;s<e;s++){var u=n.getItem(s,a);if(!this.hasItemOption&&(0,g.Co)(u)&&(this.hasItemOption=!0),u){var h=u.name;null==i[s]&&null!=h&&(i[s]=(0,g.U5)(h,null));var c=u.id;null==o[s]&&null!=c&&(o[s]=(0,g.U5)(c,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)l(this,s);r(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){S(t)?h.extend(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=o(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return i(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return h.isArray(t)?r.getValues(b(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n&&n[e];return null==r||isNaN(r)?-1:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=b(a(t),this._getStoreDimIndex,this);this._store.each(i,r?h.bind(e,r):e)},t.prototype.filterSelf=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=b(a(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?h.bind(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=h.keys(t),i=[];return h.each(r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=b(a(t),this._getStoreDimIndex,this),s=u(this);return s._store=this._store.map(o,i?h.bind(e,i):e),s},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=b(a(t),this._getStoreDimIndex,this);this._store.modify(o,i?h.bind(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=u(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.minmaxDownSample=function(t,e){var n=u(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=u(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new c.Z(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new f.Z(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return i(t,e)}),(function(t){return i(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},S(t)?h.extend(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),h.isArray(i)?i=i.slice():S(i)&&(i=h.extend({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,S(e)?h.extend(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){S(t)?h.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;(0,m.Q)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){h.each(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:b(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];h.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(h.slice(arguments)))})},t.internalField=(r=function(t){var e=t._invertedIndicesMap;h.each(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new D(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},o=function(t,e,n){return(0,g.U5)(t._getCategory(e,n),null)},i=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=o(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},a=function(t){return h.isArray(t)||(t=null!=t?[t]:[]),t},u=function(e){var n=new t(e._schema?e._schema:b(e.dimensions,e._getDimInfo,e),e.hostModel);return s(n,e),n},s=function(t,e){h.each(M.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,h.each(T,(function(n){t[n]=h.clone(e[n])})),t._calculationInfo=h.extend({},e._calculationInfo)},void(l=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,a=t._idDimIdx,s=n[e],u=r[e];if(null==s&&null!=i&&(n[e]=s=o(t,i,e)),null==u&&null!=a&&(r[e]=u=o(t,a,e)),null==u&&null!=s){var l=t._nameRepeatCount,h=l[s]=(l[s]||0)+1;u=s,h>1&&(u+="__ec__"+h),r[e]=u}})),t}();const C=k},74401:function(t,e,n){n.d(e,{Z:()=>i});var r=n(6836);const i=function(t){this.otherDims={},null!=t&&r.extend(this,t)}},3517:function(t,e,n){n.d(e,{Kp:()=>f,Ld:()=>u,ML:()=>c,QY:()=>y,_P:()=>l,nx:()=>h});n(92745);var r=n(6836),i=n(21202),o=n(31936),a=n(73279),s=function(t){this.data=t.data||(t.sourceFormat===i.hL?{}:[]),this.sourceFormat=t.sourceFormat||i.RA,this.seriesLayoutBy=t.seriesLayoutBy||i.fY,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&(0,a.u7)(this,n)===a.Dq.Must&&(r.type="ordinal")}};function u(t){return t instanceof s}function l(t,e,n){n=n||f(t);var a=e.seriesLayoutBy,u=function(t,e,n,a,s){var u,l;if(!t)return{dimensionsDefine:p(s),startIndex:l,dimensionsDetectedCount:u};if(e===i.XD){var h=t;"auto"===a||null==a?d((function(t){null!=t&&"-"!==t&&((0,r.isString)(t)?null==l&&(l=1):l=0)}),n,h,10):l=(0,r.isNumber)(a)?a:a?1:0,s||1!==l||(s=[],d((function(t,e){s[e]=null!=t?t+"":""}),n,h,1/0)),u=s?s.length:n===i.Wc?h.length:h[0]?h[0].length:null}else if(e===i.qb)s||(s=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return(0,r.keys)(e)}(t));else if(e===i.hL)s||(s=[],(0,r.each)(t,(function(t,e){s.push(e)})));else if(e===i.cy){var c=(0,o.C4)(t[0]);u=(0,r.isArray)(c)&&c.length||1}else i.J5;return{startIndex:l,dimensionsDefine:p(s),dimensionsDetectedCount:u}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectedCount:u.dimensionsDetectedCount,metaRawOption:(0,r.clone)(e)})}function h(t){return new s({data:t,sourceFormat:(0,r.isTypedArray)(t)?i.J5:i.cy})}function c(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,r.clone)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function f(t){var e=i.RA;if((0,r.isTypedArray)(t))e=i.J5;else if((0,r.isArray)(t)){0===t.length&&(e=i.XD);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if((0,r.isArray)(a)||(0,r.isTypedArray)(a)){e=i.XD;break}if((0,r.isObject)(a)){e=i.qb;break}}}}else if((0,r.isObject)(t))for(var s in t)if((0,r.hasOwn)(t,s)&&(0,r.isArrayLike)(t[s])){e=i.hL;break}return e}function p(t){if(t){var e=(0,r.createHashMap)();return(0,r.map)(t,(function(t,n){var i={name:(t=(0,r.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i}))}}function d(t,e,n,r){if(e===i.Wc)for(var o=0;o<n.length&&o<r;o++)t(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<r;o++)t(a[o],o)}}function y(t){var e=t.sourceFormat;return e===i.qb||e===i.hL}},64597:function(t,e,n){n.d(e,{Eo:()=>u,Jj:()=>c,Jl:()=>f,bB:()=>l,v5:()=>h});n(92745);var r=n(6836),i=n(31936),o=n(3517),a=(0,i.Yf)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=c(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,r.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=(0,o.QY)(this.source),n=!f(t),r="",i=[],a=0,u=0;a<t;a++){var l=void 0,h=void 0,c=void 0,p=this.dimensions[u];if(p&&p.storeDimIndex===a)l=e?p.name:null,h=p.type,c=p.ordinalMeta,u++;else{var d=this.getSourceDimension(a);d&&(l=e?d.name:null,h=d.type)}i.push({property:l,type:h,ordinalMeta:c}),!e||null==l||p&&p.isCalculationCoord||(r+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=s[h]||"f",c&&(r+=c.uid),r+="$"}var y=this.source;return{dimensions:i,hash:[y.seriesLayoutBy,y.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function l(t){return t instanceof u}function h(t){for(var e=(0,r.createHashMap)(),n=0;n<(t||[]).length;n++){var i=t[n],o=(0,r.isObject)(i)?i.name:i;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function c(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=h(t.dimensionsDefine))}function f(t){return t>30}},82190:function(t,e,n){n.d(e,{Z:()=>f,q:()=>c});n(92745);var r=n(21202),i=n(74401),o=n(6836),a=n(3517),s=n(61511),u=n(31936),l=n(73279),h=n(64597);function c(t,e){return f(t,e).dimensions}function f(t,e){(0,a.Ld)(t)||(t=(0,a.nx)(t));var n=(e=e||{}).coordDimensions||[],c=e.dimensionsDefine||t.dimensionsDefine||[],f=(0,o.createHashMap)(),d=[],y=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return(0,o.each)(e,(function(t){var e;(0,o.isObject)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,c,e.dimensionsCount),v=e.canOmitUnusedDimensions&&(0,h.Jl)(y),g=c===t.dimensionsDefine,m=g?(0,h.Jj)(t):(0,h.v5)(c),_=e.encodeDefine;!_&&e.encodeDefaulter&&(_=e.encodeDefaulter(t,y));for(var x=(0,o.createHashMap)(_),w=new s.hG(y),S=0;S<w.length;S++)w[S]=-1;function b(t){var e=w[t];if(e<0){var n=c[t],r=(0,o.isObject)(n)?n:{name:n},a=new i.Z,s=r.name;null!=s&&null!=m.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var u=d.length;return w[t]=u,a.storeDimIndex=t,d.push(a),a}return d[e]}if(!v)for(S=0;S<y;S++)b(S);x.each((function(t,e){var n=(0,u.kF)(t).slice();if(1===n.length&&!(0,o.isString)(n[0])&&n[0]<0)x.set(e,!1);else{var r=x.set(e,[]);(0,o.each)(n,(function(t,n){var i=(0,o.isString)(t)?m.get(t):t;null!=i&&i<y&&(r[n]=i,M(b(i),e,n))}))}}));var D=0;function M(t,e,n){null!=r.f7.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,f.set(e,!0))}(0,o.each)(n,(function(t){var e,n,r,i;if((0,o.isString)(t))e=t,i={};else{e=(i=t).name;var a=i.ordinalMeta;i.ordinalMeta=null,(i=(0,o.extend)({},i)).ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=x.get(e);if(!1!==s){if(!(s=(0,u.kF)(s)).length)for(var l=0;l<(n&&n.length||1);l++){for(;D<y&&null!=b(D).coordDim;)D++;D<y&&s.push(D++)}(0,o.each)(s,(function(t,a){var s=b(t);if(g&&null!=i.type&&(s.type=i.type),M((0,o.defaults)(s,i),e,a),null==s.name&&n){var u=n[a];!(0,o.isObject)(u)&&(u={name:u}),s.name=s.displayName=u.name,s.defaultTooltip=u.defaultTooltip}r&&(0,o.defaults)(s.otherDims,r)}))}}));var T=e.generateCoord,k=e.generateCoordCount,C=null!=k;k=T?k||1:0;var I=T||"value";function O(t){null==t.name&&(t.name=t.coordDim)}if(v)(0,o.each)(d,(function(t){O(t)})),d.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var P=0;P<y;P++){var A=b(P);null==A.coordDim&&(A.coordDim=p(I,f,C),A.coordDimIndex=0,(!T||k<=0)&&(A.isExtraCoord=!0),k--),O(A),null!=A.type||(0,l.u7)(t,P)!==l.Dq.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}return function(t){for(var e=(0,o.createHashMap)(),n=0;n<t.length;n++){var r=t[n],i=r.name,a=e.get(i)||0;a>0&&(r.name=i+(a-1)),a++,e.set(i,a)}}(d),new h.Eo({source:t,dimensions:d,fullDimensionCount:y,dimensionOmitted:v})}function p(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}},45370:function(t,e,n){n.d(e,{Pl:()=>f,_j:()=>y,a:()=>m,hk:()=>b,tB:()=>w});n(92745);var r,i,o,a,s,u=n(6836),l=n(31936),h=n(3517),c=n(21202),f=function(){function t(t,e){var n=(0,h.Ld)(t)?t:(0,h.nx)(t);this._source=n;var r=this._data=n.data;n.sourceFormat===c.J5&&(this._offset=0,this._dimSize=e,this._data=r),s(this,r,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoIniti