From 5bf98782eaf7556d40d22292f294f6e9b9778949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 7 Sep 2021 13:31:30 +0200 Subject: [PATCH] Added autocomplete to field types --- server/src/uds/core/ui/user_interface.py | 23 +++++++++++++++++-- server/src/uds/static/admin/main.js | 2 +- server/src/uds/templates/uds/admin/index.html | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/server/src/uds/core/ui/user_interface.py b/server/src/uds/core/ui/user_interface.py index e6af27c2..961f2281 100644 --- a/server/src/uds/core/ui/user_interface.py +++ b/server/src/uds/core/ui/user_interface.py @@ -116,10 +116,9 @@ class gui: """ Helper to convert from array of strings to the same dict used in choice, multichoice, .. - The id is set to values in the array (strings), while text is left empty. """ if isinstance(vals, (list, tuple)): - return [{'id': v, 'text': ''} for v in vals] + return [{'id': v, 'text': v} for v in vals] # Dictionary return [{'id': k, 'text': v} for k, v in vals.items()] @@ -234,6 +233,7 @@ class gui: """ TEXT_TYPE: typing.ClassVar[str] = 'text' + TEXT_AUTOCOMPLETE_TYPE: typing.ClassVar[str] = 'text-autocomplete' TEXTBOX_TYPE: typing.ClassVar[str] = 'textbox' NUMERIC_TYPE: typing.ClassVar[str] = 'numeric' PASSWORD_TYPE: typing.ClassVar[str] = 'password' @@ -404,6 +404,25 @@ class gui: def cleanStr(self): return str(self.value).strip() + class TextAutocompleteField(TextField): + """ + This represents a text field that holds autocomplete values. + Values are a list of strings... + """ + + def __init__(self, **options) -> None: + super().__init__(**options) + # Change the type + self._type(gui.InputField.TEXT_AUTOCOMPLETE_TYPE) + # And store values in a list + self._data['values'] = gui.convertToChoices(options.get('values', [])) + + def setValues(self, values: typing.List[str]): + """ + Set the values for this choice field + """ + self._data['values'] = gui.convertToChoices(values) + class NumericField(InputField): """ This represents a numeric field. It apears with an spin up/down button. diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index 3a45a3e8..2d95c06b 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1 +1 @@ -(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[179],{98255:function(Zo){function sr(Dt){return Promise.resolve().then(function(){var Oe=new Error("Cannot find module '"+Dt+"'");throw Oe.code="MODULE_NOT_FOUND",Oe})}sr.keys=function(){return[]},sr.resolve=sr,sr.id=98255,Zo.exports=sr},38175:function(Zo,sr,Dt){"use strict";Dt.r(sr),Dt.d(sr,{Axis:function(){return _l},ChartView:function(){return Vn},ComponentModel:function(){return qt},ComponentView:function(){return un},List:function(){return Ga},Model:function(){return Fn},PRIORITY:function(){return lT},SeriesModel:function(){return vt},color:function(){return Ie},connect:function(){return z8},dataTool:function(){return W8},dependencies:function(){return R8},disConnect:function(){return O2},disconnect:function(){return DZ},dispose:function(){return U8},env:function(){return Ze},extendChartView:function(){return DU},extendComponentModel:function(){return NZ},extendComponentView:function(){return VZ},extendSeriesModel:function(){return TU},format:function(){return It},getCoordinateSystemDimensions:function(){return G8},getInstanceByDom:function(){return I2},getInstanceById:function(){return R2},getMap:function(){return j8},graphic:function(){return Gn},helper:function(){return _t},init:function(){return TZ},innerDrawElementOnCanvas:function(){return tT},matrix:function(){return ko},number:function(){return ae},parseGeoJSON:function(){return b2},parseGeoJson:function(){return b2},registerAction:function(){return pl},registerCoordinateSystem:function(){return B2},registerLayout:function(){return H2},registerLoading:function(){return mT},registerLocale:function(){return LM},registerMap:function(){return _T},registerPostInit:function(){return N2},registerPostUpdate:function(){return V2},registerPreprocessor:function(){return L2},registerProcessor:function(){return F2},registerTheme:function(){return QC},registerTransform:function(){return U2},registerUpdateLifecycle:function(){return vT},registerVisual:function(){return Bf},setCanvasCreator:function(){return AZ},throttle:function(){return Wt},time:function(){return xr},use:function(){return Ot},util:function(){return Nu},vector:function(){return zi},version:function(){return M2},zrUtil:function(){return Oe},zrender:function(){return W}});var Oe={};Dt.r(Oe),Dt.d(Oe,{$override:function(){return mk},HashMap:function(){return qP},assert:function(){return Oa},bind:function(){return Ye},clone:function(){return rt},concatArray:function(){return Bb},createCanvas:function(){return md},createHashMap:function(){return et},createObject:function(){return Mp},curry:function(){return St},defaults:function(){return tt},each:function(){return q},eqNaN:function(){return zu},extend:function(){return Se},filter:function(){return Yn},find:function(){return UP},guid:function(){return qe},hasOwn:function(){return Ae},indexOf:function(){return Rt},inherits:function(){return kp},isArray:function(){return we},isArrayLike:function(){return Pa},isBuiltInObject:function(){return GP},isDom:function(){return Xr},isFunction:function(){return An},isGradientObject:function(){return jP},isImagePatternObject:function(){return WP},isNumber:function(){return yk},isObject:function(){return at},isPrimitive:function(){return Zg},isRegExp:function(){return CH},isString:function(){return yt},isStringSafe:function(){return Gc},isTypedArray:function(){return Oi},keys:function(){return _n},logError:function(){return Ns},map:function(){return Te},merge:function(){return Be},mergeAll:function(){return Lb},mixin:function(){return qr},noop:function(){return Mo},normalizeCssArray:function(){return Nb},reduce:function(){return Hu},retrieve:function(){return ni},retrieve2:function(){return ot},retrieve3:function(){return $o},setAsPrimitive:function(){return Vb},slice:function(){return Fb},trim:function(){return jc}});var zi={};Dt.r(zi),Dt.d(zi,{add:function(){return dr},applyTransform:function(){return _i},clone:function(){return Uu},copy:function(){return ua},create:function(){return _d},dist:function(){return Vs},distSquare:function(){return Xc},distance:function(){return qc},distanceSquare:function(){return wk},div:function(){return KP},dot:function(){return kH},len:function(){return zb},lenSquare:function(){return ZP},length:function(){return We},lengthSquare:function(){return pt},lerp:function(){return Cd},max:function(){return Gu},min:function(){return Ia},mul:function(){return Yc},negate:function(){return yn},normalize:function(){return bd},scale:function(){return Ub},scaleAndAdd:function(){return Ck},set:function(){return Ja},sub:function(){return yd}});var Ie={};Dt.r(Ie),Dt.d(Ie,{fastLerp:function(){return Wb},fastMapToColor:function(){return LX},lerp:function(){return PH},lift:function(){return lO},lum:function(){return qb},mapToColor:function(){return cO},modifyAlpha:function(){return Yb},modifyHSL:function(){return $c},parse:function(){return La},random:function(){return Ad},stringify:function(){return zl},toHex:function(){return uO}});var ko={};Dt.r(ko),Dt.d(ko,{clone:function(){return lm},copy:function(){return Po},create:function(){return no},identity:function(){return ju},invert:function(){return Gl},mul:function(){return Jo},rotate:function(){return Od},scale:function(){return Qb},translate:function(){return Oo}});var W={};Dt.r(W),Dt.d(W,{dispose:function(){return zH},disposeAll:function(){return kO},getInstance:function(){return MO},init:function(){return Hp},registerPainter:function(){return xO},version:function(){return UH}});var F={};Dt.r(F),Dt.d(F,{Arc:function(){return i_},BezierCurve:function(){return c_},BoundingRect:function(){return Ft},Circle:function(){return sl},CompoundPath:function(){return Nx},Ellipse:function(){return yC},Group:function(){return ct},Image:function(){return si},IncrementalDisplayable:function(){return Tv},Line:function(){return Ti},LinearGradient:function(){return xv},OrientedBoundingRect:function(){return TC},Path:function(){return Nt},Point:function(){return Tt},Polygon:function(){return ya},Polyline:function(){return _r},RadialGradient:function(){return MC},Rect:function(){return sn},Ring:function(){return Mv},Sector:function(){return rr},Text:function(){return fn},applyTransform:function(){return ul},clipPointsByRect:function(){return Gx},clipRectByRect:function(){return YR},createIcon:function(){return cl},extendPath:function(){return UR},extendShape:function(){return Bx},getShapeClass:function(){return Hx},getTransform:function(){return Lf},groupTransition:function(){return Dv},initProps:function(){return mr},isElementRemoved:function(){return ev},lineLineIntersect:function(){return jx},linePolygonIntersect:function(){return v_},makeImage:function(){return GR},makePath:function(){return DC},mergePath:function(){return ba},registerShape:function(){return ll},removeElement:function(){return Cf},removeElementWithFadeOut:function(){return Fm},resizePath:function(){return Ux},setTooltipConfig:function(){return Av},subPixelOptimize:function(){return Rf},subPixelOptimizeLine:function(){return r8},subPixelOptimizeRect:function(){return jR},transformDirection:function(){return AC},updateProps:function(){return ln}});var _t={};Dt.r(_t),Dt.d(_t,{createDimensions:function(){return Q2},createList:function(){return pU},createScale:function(){return vU},createSymbol:function(){return Ir},createTextStyle:function(){return bL},dataStack:function(){return _L},enableHoverEmphasis:function(){return qn},getECData:function(){return ht},getLayoutRect:function(){return li},mixinAxisModelCommonMethods:function(){return yL}});var ae={};Dt.r(ae),Dt.d(ae,{MAX_SAFE_INTEGER:function(){return Up},asc:function(){return io},getPercentWithPrecision:function(){return TO},getPixelPrecision:function(){return o0},getPrecision:function(){return ns},getPrecisionSafe:function(){return qk},isNumeric:function(){return of},isRadianAroundZero:function(){return hm},linearMap:function(){return bn},nice:function(){return pm},numericToNumber:function(){return Fa},parseDate:function(){return ao},quantile:function(){return Ci},quantity:function(){return Fd},quantityExponent:function(){return Xt},reformIntervals:function(){return af},remRadian:function(){return Ld},round:function(){return hi}});var xr={};Dt.r(xr),Dt.d(xr,{format:function(){return iu},parse:function(){return ao}});var Gn={};Dt.r(Gn),Dt.d(Gn,{Arc:function(){return i_},BezierCurve:function(){return c_},BoundingRect:function(){return Ft},Circle:function(){return sl},CompoundPath:function(){return Nx},Ellipse:function(){return yC},Group:function(){return ct},Image:function(){return si},IncrementalDisplayable:function(){return Tv},Line:function(){return Ti},LinearGradient:function(){return xv},Polygon:function(){return ya},Polyline:function(){return _r},RadialGradient:function(){return MC},Rect:function(){return sn},Ring:function(){return Mv},Sector:function(){return rr},Text:function(){return fn},clipPointsByRect:function(){return Gx},clipRectByRect:function(){return YR},createIcon:function(){return cl},extendPath:function(){return UR},extendShape:function(){return Bx},getShapeClass:function(){return Hx},getTransform:function(){return Lf},initProps:function(){return mr},makeImage:function(){return GR},makePath:function(){return DC},mergePath:function(){return ba},registerShape:function(){return ll},resizePath:function(){return Ux},updateProps:function(){return ln}});var It={};Dt.r(It),Dt.d(It,{addCommas:function(){return UM},capitalFirst:function(){return Bz},encodeHTML:function(){return Bo},formatTime:function(){return Vz},formatTpl:function(){return Wm},getTextRect:function(){return CL},getTooltipMarker:function(){return SI},normalizeCssArray:function(){return lh},toCamelCase:function(){return Na},truncateText:function(){return eM}});var Nu={};Dt.r(Nu),Dt.d(Nu,{bind:function(){return Ye},clone:function(){return rt},curry:function(){return St},defaults:function(){return tt},each:function(){return q},extend:function(){return Se},filter:function(){return Yn},indexOf:function(){return Rt},inherits:function(){return kp},isArray:function(){return we},isFunction:function(){return An},isObject:function(){return at},isString:function(){return yt},map:function(){return Te},merge:function(){return Be},reduce:function(){return Hu}});var ue=function(o,i){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(r[u]=s[u])})(o,i)};function he(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=o}ue(o,i),o.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}var ei=function(){return(ei=Object.assign||function(i){for(var r,s=1,u=arguments.length;s18),d&&(r.weChat=!0),i.canvasSupported=!!document.createElement("canvas").getContext,i.svgSupported="undefined"!=typeof SVGRect,i.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,i.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),i.domSupported="undefined"!=typeof document;var p=document.documentElement.style;i.transform3dSupported=(r.ie&&"transition"in p||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in p)&&!("OTransition"in p),i.transformSupported=i.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,fr);var Ze=fr,Fs={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},HP={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Sp=Object.prototype.toString,Uc=Array.prototype,Ob=Uc.forEach,DX=Uc.filter,Ib=Uc.slice,gn=Uc.map,gk=function(){}.constructor,Rb=gk?gk.prototype:null,Bu={};function mk(o,i){Bu[o]=i}var zP=2311;function qe(){return zP++}function Ns(){for(var o=[],i=0;i>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[v]+":0",u[g]+":0",s[1-v]+":auto",u[1-g]+":auto",""].join("!important;"),o.appendChild(d),r.push(d)}return r}(i,f),f,u);if(p)return p(o,r,s),!0}return!1}function tr(o){return"CANVAS"===o.nodeName.toUpperCase()}var Dp="undefined"!=typeof window&&!!window.addEventListener,Mk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$g=[];function Gb(o,i,r,s){return r=r||{},s||!Ze.canvasSupported?eO(o,i,r):Ze.browser.firefox&&null!=i.layerX&&i.layerX!==i.offsetX?(r.zrX=i.layerX,r.zrY=i.layerY):null!=i.offsetX?(r.zrX=i.offsetX,r.zrY=i.offsetY):eO(o,i,r),r}function eO(o,i,r){if(Ze.domSupported&&o.getBoundingClientRect){var s=i.clientX,u=i.clientY;if(tr(o)){var f=o.getBoundingClientRect();return r.zrX=s-f.left,void(r.zrY=u-f.top)}if(JP($g,o,s,u))return r.zrX=$g[0],void(r.zrY=$g[1])}r.zrX=r.zrY=0}function zs(o){return o||window.event}function ca(o,i,r){if(null!=(i=zs(i)).zrX)return i;var s=i.type;if(s&&s.indexOf("touch")>=0){var d="touchend"!==s?i.targetTouches[0]:i.changedTouches[0];d&&Gb(o,d,i,r)}else{Gb(o,i,i,r);var f=function(o){var i=o.wheelDelta;if(i)return i;var r=o.deltaX,s=o.deltaY;return null==r||null==s?i:3*Math.abs(0!==s?s:r)*(s>0?-1:s<0?1:r>0?-1:1)}(i);i.zrDelta=f?f/120:-(i.detail||0)/3}var p=i.button;return null==i.which&&void 0!==p&&Mk.test(i.type)&&(i.which=1&p?1:2&p?3:4&p?2:0),i}function ke(o,i,r,s){Dp?o.addEventListener(i,r,s):o.attachEvent("on"+i,r)}function tO(o,i,r,s){Dp?o.removeEventListener(i,r,s):o.detachEvent("on"+i,r)}var Vl=Dp?function(o){o.preventDefault(),o.stopPropagation(),o.cancelBubble=!0}:function(o){o.returnValue=!1,o.cancelBubble=!0};function xk(o){return 2===o.which||3===o.which}var bt=function(){function o(){this._track=[]}return o.prototype.recognize=function(i,r,s){return this._doTrack(i,r,s),this._recognize(i)},o.prototype.clear=function(){return this._track.length=0,this},o.prototype._doTrack=function(i,r,s){var u=i.touches;if(u){for(var f={points:[],touches:[],target:r,event:i},d=0,p=u.length;d1&&u&&u.length>1){var d=nO(u)/nO(f);!isFinite(d)&&(d=1),r.pinchScale=d;var p=[((o=u)[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2];return r.pinchX=p[0],r.pinchY=p[1],{type:"pinch",target:i[0].target,event:r}}}}};function Kc(){Vl(this.event)}var wd=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.handler=null,r}return Rn(i,o),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Bs),fa=function(i,r){this.x=i,this.y=r},TH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xo=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d._hovered=new fa(0,0),d.storage=r,d.painter=s,d.painterRoot=f,u=u||new wd,d.proxy=null,d.setHandlerProxy(u),d._draggingMgr=new Qg(d),d}return Rn(i,o),i.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(q(TH,function(s){r.on&&r.on(s,this[s],this)},this),r.handler=this),this.proxy=r},i.prototype.mousemove=function(r){var s=r.zrX,u=r.zrY,f=mn(this,s,u),d=this._hovered,p=d.target;p&&!p.__zr&&(p=(d=this.findHover(d.x,d.y)).target);var v=this._hovered=f?new fa(s,u):this.findHover(s,u),g=v.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),p&&g!==p&&this.dispatchToElement(d,"mouseout",r),this.dispatchToElement(v,"mousemove",r),g&&g!==p&&this.dispatchToElement(v,"mouseover",r)},i.prototype.mouseout=function(r){var s=r.zrEventControl;"only_globalout"!==s&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==s&&this.trigger("globalout",{type:"globalout",event:r})},i.prototype.resize=function(){this._hovered=new fa(0,0)},i.prototype.dispatch=function(r,s){var u=this[r];u&&u.call(this,s)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(r){var s=this.proxy;s.setCursor&&s.setCursor(r)},i.prototype.dispatchToElement=function(r,s,u){var f=(r=r||{}).target;if(!f||!f.silent){for(var d="on"+s,p=function(o,i,r){return{type:o,event:r,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Kc}}(s,r,u);f&&(f[d]&&(p.cancelBubble=!!f[d].call(f,p)),f.trigger(s,p),f=f.__hostTarget?f.__hostTarget:f.parent,!p.cancelBubble););p.cancelBubble||(this.trigger(s,p),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(v){"function"==typeof v[d]&&v[d].call(v,p),v.trigger&&v.trigger(s,p)}))}},i.prototype.findHover=function(r,s,u){for(var f=this.storage.getDisplayList(),d=new fa(r,s),p=f.length-1;p>=0;p--){var v=void 0;if(f[p]!==u&&!f[p].ignore&&(v=st(f[p],r,s))&&(!d.topTarget&&(d.topTarget=f[p]),"silent"!==v)){d.target=f[p];break}}return d},i.prototype.processGesture=function(r,s){this._gestureMgr||(this._gestureMgr=new bt);var u=this._gestureMgr;"start"===s&&u.clear();var f=u.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===s&&u.clear(),f){var d=f.type;r.gestureEvent=d;var p=new fa;p.target=f.target,this.dispatchToElement(p,d,f.event)}},i}(Bs);function st(o,i,r){if(o[o.rectHover?"rectContain":"contain"](i,r)){for(var s=o,u=void 0,f=!1;s;){if(s.ignoreClip&&(f=!0),!f){var d=s.getClipPath();if(d&&!d.contain(i,r))return!1;s.silent&&(u=!0)}s=s.__hostTarget||s.parent}return!u||"silent"}return!1}function mn(o,i,r){var s=o.painter;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){xo.prototype[o]=function(i){var f,d,r=i.zrX,s=i.zrY,u=mn(this,r,s);if(("mouseup"!==o||!u)&&(d=(f=this.findHover(r,s)).target),"mousedown"===o)this._downEl=d,this._downPoint=[i.zrX,i.zrY],this._upEl=d;else if("mouseup"===o)this._upEl=d;else if("click"===o){if(this._downEl!==this._upEl||!this._downPoint||Vs(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(f,o,i)}});var Pr=xo;function Zr(o,i,r,s){var u=i+1;if(u===r)return 1;if(s(o[u++],o[i])<0){for(;u=0;)u++;return u-i}function kd(o,i,r,s,u){for(s===i&&s++;s>>1])<0?p=v:d=v+1;var g=s-d;switch(g){case 3:o[d+3]=o[d+2];case 2:o[d+2]=o[d+1];case 1:o[d+1]=o[d];break;default:for(;g>0;)o[d+g]=o[d+g-1],g--}o[d]=f}}function rn(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])>0){for(p=s-u;v0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}else{for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}for(d++;d>>1);f(o,i[r+m])>0?d=m+1:v=m}return v}function Ap(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])<0){for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}else{for(p=s-u;v=0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}for(d++;d>>1);f(o,i[r+m])<0?v=m:d=m+1}return v}function em(o,i,r,s){r||(r=0),s||(s=o.length);var u=s-r;if(!(u<2)){var f=0;if(u<32)return void kd(o,r,s,r+(f=Zr(o,r,s,i)),i);var d=function(o,i){var d,p,r=7,v=0,g=[];function w(x){var T=d[x],P=p[x],O=d[x+1],R=p[x+1];p[x]=P+R,x===v-3&&(d[x+1]=d[x+2],p[x+1]=p[x+2]),v--;var V=Ap(o[O],o,T,P,0,i);T+=V,0!=(P-=V)&&0!==(R=rn(o[T+P-1],o,O,R,R-1,i))&&(P<=R?function(x,T,P,O){var R=0;for(R=0;R=7||Z>=7);if(Q)break;j<0&&(j=0),j+=2}if((r=j)<1&&(r=1),1===T){for(R=0;R=0;R--)o[X+R]=o[j+R];if(0===T){ee=!0;break}}if(o[z--]=g[B--],1==--O){ee=!0;break}if(0!=(te=O-rn(o[V],g,0,O,O-1,i))){for(O-=te,X=1+(z-=te),j=1+(B-=te),R=0;R=7||te>=7);if(ee)break;Z<0&&(Z=0),Z+=2}if((r=Z)<1&&(r=1),1===O){for(X=1+(z-=T),j=1+(V-=T),R=T-1;R>=0;R--)o[X+R]=o[j+R];o[z]=g[B]}else{if(0===O)throw new Error;for(j=z-(O-1),R=0;R=0;R--)o[X+R]=o[j+R];o[z]=g[B]}else for(j=z-(O-1),R=0;R1;){var x=v-2;if(x>=1&&p[x-1]<=p[x]+p[x+1]||x>=2&&p[x-2]<=p[x]+p[x-1])p[x-1]p[x+1])break;w(x)}},forceMergeRuns:function(){for(;v>1;){var x=v-2;x>0&&p[x-1]=32;)i|=1&o,o>>=1;return o+i}(u);do{if((f=Zr(o,r,s,i))p&&(v=p),kd(o,r,r+v,r+f,i),f=v}d.pushRun(r,f),d.mergeRuns(),u-=f,r+=f}while(0!==u);d.forceMergeRuns()}}var Md=!1;function To(){Md||(Md=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hr(o,i){return o.zlevel===i.zlevel?o.z===i.z?o.z2-i.z2:o.z-i.z:o.zlevel-i.zlevel}var AH=function(){function o(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hr}return o.prototype.traverse=function(i,r){for(var s=0;s0&&(m.__clipPaths=[]),isNaN(m.z)&&(To(),m.z=0),isNaN(m.z2)&&(To(),m.z2=0),isNaN(m.zlevel)&&(To(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var y=i.getDecalElement&&i.getDecalElement();y&&this._updateAndAddDisplayable(y,r,s);var b=i.getTextGuideLine();b&&this._updateAndAddDisplayable(b,r,s);var w=i.getTextContent();w&&this._updateAndAddDisplayable(w,r,s)}},o.prototype.addRoot=function(i){i.__zr&&i.__zr.storage===this||this._roots.push(i)},o.prototype.delRoot=function(i){if(i instanceof Array)for(var r=0,s=i.length;r=0&&this._roots.splice(u,1)}},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}(),nm="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)},Qc={linear:function(i){return i},quadraticIn:function(i){return i*i},quadraticOut:function(i){return i*(2-i)},quadraticInOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)},cubicIn:function(i){return i*i*i},cubicOut:function(i){return--i*i*i+1},cubicInOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)},quarticIn:function(i){return i*i*i*i},quarticOut:function(i){return 1- --i*i*i*i},quarticInOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)},quinticIn:function(i){return i*i*i*i*i},quinticOut:function(i){return--i*i*i*i*i+1},quinticInOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)},sinusoidalIn:function(i){return 1-Math.cos(i*Math.PI/2)},sinusoidalOut:function(i){return Math.sin(i*Math.PI/2)},sinusoidalInOut:function(i){return.5*(1-Math.cos(Math.PI*i))},exponentialIn:function(i){return 0===i?0:Math.pow(1024,i-1)},exponentialOut:function(i){return 1===i?1:1-Math.pow(2,-10*i)},exponentialInOut:function(i){return 0===i?0:1===i?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(2-Math.pow(2,-10*(i-1)))},circularIn:function(i){return 1-Math.sqrt(1-i*i)},circularOut:function(i){return Math.sqrt(1- --i*i)},circularInOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)},elasticIn:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),-s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4))},elasticOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),s*Math.pow(2,-10*i)*Math.sin((i-r)*(2*Math.PI)/.4)+1)},elasticInOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),(i*=2)<1?s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*-.5:s*Math.pow(2,-10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*.5+1)},backIn:function(i){var r=1.70158;return i*i*((r+1)*i-r)},backOut:function(i){var r=1.70158;return--i*i*((r+1)*i+r)+1},backInOut:function(i){var r=2.5949095;return(i*=2)<1?i*i*((r+1)*i-r)*.5:.5*((i-=2)*i*((r+1)*i+r)+2)},bounceIn:function(i){return 1-Qc.bounceOut(1-i)},bounceOut:function(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},bounceInOut:function(i){return i<.5?.5*Qc.bounceIn(2*i):.5*Qc.bounceOut(2*i-1)+.5}},jb=Qc,da=function(){function o(i){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=i.life||1e3,this._delay=i.delay||0,this.loop=null!=i.loop&&i.loop,this.gap=i.gap||0,this.easing=i.easing||"linear",this.onframe=i.onframe,this.ondestroy=i.ondestroy,this.onrestart=i.onrestart}return o.prototype.step=function(i,r){if(this._initialized||(this._startTime=i+this._delay,this._initialized=!0),!this._paused){var s=(i-this._startTime-this._pausedTime)/this._life;s<0&&(s=0),s=Math.min(s,1);var u=this.easing,f="string"==typeof u?jb[u]:u,d="function"==typeof f?f(s):s;if(this.onframe&&this.onframe(d),1===s){if(!this.loop)return!0;this._restart(i),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=r},o.prototype._restart=function(i){this._startTime=i-(i-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},o.prototype.pause=function(){this._paused=!0},o.prototype.resume=function(){this._paused=!1},o}(),iO=function(i){this.value=i},Hl=function(){function o(){this._len=0}return o.prototype.insert=function(i){var r=new iO(i);return this.insertEntry(r),r},o.prototype.insertEntry=function(i){this.head?(this.tail.next=i,i.prev=this.tail,i.next=null,this.tail=i):this.head=this.tail=i,this._len++},o.prototype.remove=function(i){var r=i.prev,s=i.next;r?r.next=s:this.head=s,s?s.prev=r:this.tail=r,i.next=i.prev=null,this._len--},o.prototype.len=function(){return this._len},o.prototype.clear=function(){this.head=this.tail=null,this._len=0},o}(),Td=function(){function o(i){this._list=new Hl,this._maxSize=10,this._map={},this._maxSize=i}return o.prototype.put=function(i,r){var s=this._list,u=this._map,f=null;if(null==u[i]){var d=s.len(),p=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var v=s.head;s.remove(v),delete u[v.key],f=v.value,this._lastRemovedEntry=v}p?p.value=r:p=new iO(r),p.key=i,s.insertEntry(p),u[i]=p}return f},o.prototype.get=function(i){var r=this._map[i],s=this._list;if(null!=r)return r!==s.tail&&(s.remove(r),s.insertEntry(r)),r.value},o.prototype.clear=function(){this._list.clear(),this._map={}},o.prototype.len=function(){return this._list.len()},o}(),rm={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function to(o){return(o=Math.round(o))<0?0:o>255?255:o}function im(o){return o<0?0:o>1?1:o}function aO(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?to(parseFloat(i)/100*255):to(parseInt(i,10))}function Pp(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?im(parseFloat(i)/100):im(parseFloat(i))}function Tk(o,i,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?o+(i-o)*r*6:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o}function Dd(o,i,r){return o+(i-o)*r}function Ws(o,i,r,s,u){return o[0]=i,o[1]=r,o[2]=s,o[3]=u,o}function oO(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o}var EH=new Td(20),Dk=null;function am(o,i){Dk&&oO(Dk,i),Dk=EH.put(o,Dk||i.slice())}function La(o,i){if(o){i=i||[];var r=EH.get(o);if(r)return oO(i,r);var s=(o+="").replace(/ /g,"").toLowerCase();if(s in rm)return oO(i,rm[s]),am(o,i),i;var f,u=s.length;if("#"===s.charAt(0))return 4===u||5===u?(f=parseInt(s.slice(1,4),16))>=0&&f<=4095?(Ws(i,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,5===u?parseInt(s.slice(4),16)/15:1),am(o,i),i):void Ws(i,0,0,0,1):7===u||9===u?(f=parseInt(s.slice(1,7),16))>=0&&f<=16777215?(Ws(i,(16711680&f)>>16,(65280&f)>>8,255&f,9===u?parseInt(s.slice(7),16)/255:1),am(o,i),i):void Ws(i,0,0,0,1):void 0;var d=s.indexOf("("),p=s.indexOf(")");if(-1!==d&&p+1===u){var v=s.substr(0,d),g=s.substr(d+1,p-(d+1)).split(","),m=1;switch(v){case"rgba":if(4!==g.length)return 3===g.length?Ws(i,+g[0],+g[1],+g[2],1):Ws(i,0,0,0,1);m=Pp(g.pop());case"rgb":return 3!==g.length?void Ws(i,0,0,0,1):(Ws(i,aO(g[0]),aO(g[1]),aO(g[2]),m),am(o,i),i);case"hsla":return 4!==g.length?void Ws(i,0,0,0,1):(g[3]=Pp(g[3]),sO(g,i),am(o,i),i);case"hsl":return 3!==g.length?void Ws(i,0,0,0,1):(sO(g,i),am(o,i),i);default:return}}Ws(i,0,0,0,1)}}function sO(o,i){var r=(parseFloat(o[0])%360+360)%360/360,s=Pp(o[1]),u=Pp(o[2]),f=u<=.5?u*(s+1):u+s-u*s,d=2*u-f;return Ws(i=i||[],to(255*Tk(d,f,r+1/3)),to(255*Tk(d,f,r)),to(255*Tk(d,f,r-1/3)),1),4===o.length&&(i[3]=o[3]),i}function lO(o,i){var r=La(o);if(r){for(var s=0;s<3;s++)r[s]=i<0?r[s]*(1-i)|0:(255-r[s])*i+r[s]|0,r[s]>255?r[s]=255:r[s]<0&&(r[s]=0);return zl(r,4===r.length?"rgba":"rgb")}}function uO(o){var i=La(o);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function Wb(o,i,r){if(i&&i.length&&o>=0&&o<=1){r=r||[];var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=i[u],p=i[f],v=s-u;return r[0]=to(Dd(d[0],p[0],v)),r[1]=to(Dd(d[1],p[1],v)),r[2]=to(Dd(d[2],p[2],v)),r[3]=im(Dd(d[3],p[3],v)),r}}var LX=Wb;function PH(o,i,r){if(i&&i.length&&o>=0&&o<=1){var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=La(i[u]),p=La(i[f]),v=s-u,g=zl([to(Dd(d[0],p[0],v)),to(Dd(d[1],p[1],v)),to(Dd(d[2],p[2],v)),im(Dd(d[3],p[3],v))],"rgba");return r?{color:g,leftIndex:u,rightIndex:f,value:s}:g}}var cO=PH;function $c(o,i,r,s){var u=La(o);if(o)return u=function(o){if(o){var v,g,i=o[0]/255,r=o[1]/255,s=o[2]/255,u=Math.min(i,r,s),f=Math.max(i,r,s),d=f-u,p=(f+u)/2;if(0===d)v=0,g=0;else{g=p<.5?d/(f+u):d/(2-f-u);var m=((f-i)/6+d/2)/d,y=((f-r)/6+d/2)/d,b=((f-s)/6+d/2)/d;i===f?v=b-y:r===f?v=1/3+m-b:s===f&&(v=2/3+y-m),v<0&&(v+=1),v>1&&(v-=1)}var w=[360*v,g,p];return null!=o[3]&&w.push(o[3]),w}}(u),null!=i&&(u[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(i)),null!=r&&(u[1]=Pp(r)),null!=s&&(u[2]=Pp(s)),zl(sO(u),"rgba")}function Yb(o,i){var r=La(o);if(r&&null!=i)return r[3]=im(i),zl(r,"rgba")}function zl(o,i){if(o&&o.length){var r=o[0]+","+o[1]+","+o[2];return("rgba"===i||"hsva"===i||"hsla"===i)&&(r+=","+o[3]),i+"("+r+")"}}function qb(o,i){var r=La(o);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*i:0}function Ad(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var Xb=Array.prototype.slice;function an(o,i,r){return(i-o)*r+o}function dO(o,i,r,s){for(var u=i.length,f=0;fd)s.length=d;else for(var v=f;v=2&&this.interpolable&&this.maxTime>0},o.prototype.getAdditiveTrack=function(){return this._additiveTrack},o.prototype.addKeyframe=function(i,r){i>=this.maxTime?this.maxTime=i:this._needsSort=!0;var s=this.keyframes,u=s.length;if(this.interpolable)if(Pa(r)){var f=function(o){return Pa(o&&o[0])?2:1}(r);if(u>0&&this.arrDim!==f)return void(this.interpolable=!1);if(1===f&&"number"!=typeof r[0]||2===f&&"number"!=typeof r[0][0])return void(this.interpolable=!1);if(u>0){var d=s[u-1];this._isAllValueEqual&&(1===f&&Zb(r,d.value)||(this._isAllValueEqual=!1))}this.arrDim=f}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof r){var p=La(r);p?(r=p,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof r||isNaN(r))return void(this.interpolable=!1);this._isAllValueEqual&&u>0&&(d=s[u-1],(this.isValueColor&&!Zb(d.value,r)||d.value!==r)&&(this._isAllValueEqual=!1))}var v={time:i,value:r,percent:0};return this.keyframes.push(v),v},o.prototype.prepare=function(i){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var s=this.arrDim,u=r.length,f=r[u-1],d=0;d0&&d!==u-1&&IH(r[d].value,f.value,s);if(i&&this.needsAnimate()&&i.needsAnimate()&&s===i.arrDim&&this.isValueColor===i.isValueColor&&!i._finished){this._additiveTrack=i;var p=r[0].value;for(d=0;d=0&&!(f[m].percent<=r);m--);m=Math.min(m,d-2)}else{for(m=this._lastFrame;mr);m++);m=Math.min(m-1,d-2)}var b=f[m+1],w=f[m];if(w&&b){this._lastFrame=m,this._lastFramePercent=r;var S=b.percent-w.percent;if(0!==S){var M=(r-w.percent)/S,x=s?this._additiveValue:g?Pd:i[p];if((v>0||g)&&!x&&(x=this._additiveValue=[]),this.useSpline){var T=f[m][u],P=f[0===m?m:m-1][u],O=f[m>d-2?d-1:m+1][u],R=f[m>d-3?d-1:m+2][u];if(v>0)1===v?Do(x,P,T,O,R,M,M*M,M*M*M):function(o,i,r,s,u,f,d,p){for(var v=i.length,g=i[0].length,m=0;m0?1===v?dO(x,w[u],b[u],M):function(o,i,r,s){for(var u=i.length,f=u&&i[0].length,d=0;d.5?i:o}(w[u],b[u],M),s?this._additiveValue=V:i[p]=V);s&&this._addToTarget(i)}}}},o.prototype._addToTarget=function(i){var r=this.arrDim,s=this.propName,u=this._additiveValue;0===r?this.isValueColor?(La(i[s],Pd),om(Pd,Pd,u,1),i[s]=Ed(Pd)):i[s]=i[s]+u:1===r?om(i[s],i[s],u,1):2===r&&Ak(i[s],i[s],u,1)},o}(),Pk=function(){function o(i,r,s){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=i,this._loop=r,r&&s?Ns("Can' use additive animation on looped animation."):this._additiveAnimators=s}return o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(i){this._target=i},o.prototype.when=function(i,r){return this.whenWithKeys(i,r,_n(r))},o.prototype.whenWithKeys=function(i,r,s){for(var u=this._tracks,f=0;f0)){this._started=1;for(var s=this,u=[],f=0;f1){var p=d.pop();f.addKeyframe(p.time,i[u]),f.prepare(f.getAdditiveTrack())}}}},o}(),LH=function(o){function i(r){var s=o.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,s.stage=(r=r||{}).stage||{},s.onframe=r.onframe||function(){},s}return Rn(i,o),i.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._clipsHead?(this._clipsTail.next=r,r.prev=this._clipsTail,r.next=null,this._clipsTail=r):this._clipsHead=this._clipsTail=r,r.animation=this},i.prototype.addAnimator=function(r){r.animation=this;var s=r.getClip();s&&this.addClip(s)},i.prototype.removeClip=function(r){if(r.animation){var s=r.prev,u=r.next;s?s.next=u:this._clipsHead=u,u?u.prev=s:this._clipsTail=s,r.next=r.prev=r.animation=null}},i.prototype.removeAnimator=function(r){var s=r.getClip();s&&this.removeClip(s),r.animation=null},i.prototype.update=function(r){for(var s=(new Date).getTime()-this._pausedTime,u=s-this._time,f=this._clipsHead;f;){var d=f.next;f.step(s,u)&&(f.ondestroy&&f.ondestroy(),this.removeClip(f)),f=d}this._time=s,r||(this.onframe(u),this.trigger("frame",u),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){var r=this;this._running=!0,nm(function s(){r._running&&(nm(s),!r._paused&&r.update())})},i.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var r=this._clipsHead;r;){var s=r.next;r.prev=r.next=r.animation=null,r=s}this._clipsHead=this._clipsTail=null},i.prototype.isFinished=function(){return null==this._clipsHead},i.prototype.animate=function(r,s){s=s||{},this.start();var u=new Pk(r,s.loop);return this.addAnimator(u),u},i}(Bs),Ok=Ze.domSupported,vO=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:o=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Te(o,function(u){var f=u.replace("mouse","pointer");return r.hasOwnProperty(f)?f:u})}),sm_mouse=["mousemove","mouseup"],sm_pointer=["pointermove","pointerup"],Ao=!1;function Ik(o){var i=o.pointerType;return"pen"===i||"touch"===i}function Jc(o){o&&(o.zrByTouch=!0)}function Lk(o,i){for(var r=i,s=!1;r&&9!==r.nodeType&&!(s=r.domBelongToZr||r!==i&&r===o.painterRoot);)r=r.parentNode;return s}var Fk=function(i,r){this.stopPropagation=Mo,this.stopImmediatePropagation=Mo,this.preventDefault=Mo,this.type=r.type,this.target=this.currentTarget=i.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY},Ys={mousedown:function(i){i=ca(this.dom,i),this.__mayPointerCapture=[i.zrX,i.zrY],this.trigger("mousedown",i)},mousemove:function(i){i=ca(this.dom,i);var r=this.__mayPointerCapture;r&&(i.zrX!==r[0]||i.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",i)},mouseup:function(i){i=ca(this.dom,i),this.__togglePointerCapture(!1),this.trigger("mouseup",i)},mouseout:function(i){Lk(this,(i=ca(this.dom,i)).toElement||i.relatedTarget)||(this.__pointerCapturing&&(i.zrEventControl="no_globalout"),this.trigger("mouseout",i))},wheel:function(i){Ao=!0,i=ca(this.dom,i),this.trigger("mousewheel",i)},mousewheel:function(i){Ao||(i=ca(this.dom,i),this.trigger("mousewheel",i))},touchstart:function(i){Jc(i=ca(this.dom,i)),this.__lastTouchMoment=new Date,this.handler.processGesture(i,"start"),Ys.mousemove.call(this,i),Ys.mousedown.call(this,i)},touchmove:function(i){Jc(i=ca(this.dom,i)),this.handler.processGesture(i,"change"),Ys.mousemove.call(this,i)},touchend:function(i){Jc(i=ca(this.dom,i)),this.handler.processGesture(i,"end"),Ys.mouseup.call(this,i),+new Date-+this.__lastTouchMoment<300&&Ys.click.call(this,i)},pointerdown:function(i){Ys.mousedown.call(this,i)},pointermove:function(i){Ik(i)||Ys.mousemove.call(this,i)},pointerup:function(i){Ys.mouseup.call(this,i)},pointerout:function(i){Ik(i)||Ys.mouseout.call(this,i)}};q(["click","dblclick","contextmenu"],function(o){Ys[o]=function(i){i=ca(this.dom,i),this.trigger(o,i)}});var Ul={pointermove:function(i){Ik(i)||Ul.mousemove.call(this,i)},pointerup:function(i){Ul.mouseup.call(this,i)},mousemove:function(i){this.trigger("mousemove",i)},mouseup:function(i){var r=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",i),r&&(i.zrEventControl="only_globalout",this.trigger("mouseout",i))}};function Lt(o,i,r,s){o.mounted[i]=r,o.listenerOpts[i]=s,ke(o.domTarget,i,r,s)}function mO(o){var i=o.mounted;for(var r in i)i.hasOwnProperty(r)&&tO(o.domTarget,r,i[r],o.listenerOpts[r]);o.mounted={}}var _O=function(i,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=i,this.domHandlers=r},NH=function(o){function i(r,s){var u=o.call(this)||this;return u.__pointerCapturing=!1,u.dom=r,u.painterRoot=s,u._localHandlerScope=new _O(r,Ys),Ok&&(u._globalHandlerScope=new _O(document,Ul)),function(o,i){var r=i.domHandlers;Ze.pointerEventsSupported?q(vO.pointer,function(s){Lt(i,s,function(u){r[s].call(o,u)})}):(Ze.touchEventsSupported&&q(vO.touch,function(s){Lt(i,s,function(u){r[s].call(o,u),function(o){o.touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(i)})}),q(vO.mouse,function(s){Lt(i,s,function(u){u=zs(u),i.touching||r[s].call(o,u)})}))}(u,u._localHandlerScope),u}return Rn(i,o),i.prototype.dispose=function(){mO(this._localHandlerScope),Ok&&mO(this._globalHandlerScope)},i.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},i.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Ok&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var s=this._globalHandlerScope;r?function(o,i){function r(s){Lt(i,s,function(f){f=zs(f),Lk(o,f.target)||(f=function(o,i){return ca(o.dom,new Fk(o,i),!0)}(o,f),i.domHandlers[s].call(o,f))},{capture:!0})}Ze.pointerEventsSupported?q(sm_pointer,r):Ze.touchEventsSupported||q(sm_mouse,r)}(this,s):mO(s)}},i}(Bs),Vk=1;"undefined"!=typeof window&&(Vk=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kb=Vk,En="#333",pe="#ccc";function no(){return[1,0,0,1,0,0]}function ju(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function Po(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4],o[5]=i[5],o}function Jo(o,i,r){var u=i[1]*r[0]+i[3]*r[1],f=i[0]*r[2]+i[2]*r[3],d=i[1]*r[2]+i[3]*r[3],p=i[0]*r[4]+i[2]*r[5]+i[4],v=i[1]*r[4]+i[3]*r[5]+i[5];return o[0]=i[0]*r[0]+i[2]*r[1],o[1]=u,o[2]=f,o[3]=d,o[4]=p,o[5]=v,o}function Oo(o,i,r){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4]+r[0],o[5]=i[5]+r[1],o}function Od(o,i,r){var s=i[0],u=i[2],f=i[4],d=i[1],p=i[3],v=i[5],g=Math.sin(r),m=Math.cos(r);return o[0]=s*m+d*g,o[1]=-s*g+d*m,o[2]=u*m+p*g,o[3]=-u*g+m*p,o[4]=m*f+g*v,o[5]=m*v-g*f,o}function Qb(o,i,r){var s=r[0],u=r[1];return o[0]=i[0]*s,o[1]=i[1]*u,o[2]=i[2]*s,o[3]=i[3]*u,o[4]=i[4]*s,o[5]=i[5]*u,o}function Gl(o,i){var r=i[0],s=i[2],u=i[4],f=i[1],d=i[3],p=i[5],v=r*d-f*s;return v?(o[0]=d*(v=1/v),o[1]=-f*v,o[2]=-s*v,o[3]=r*v,o[4]=(s*p-d*u)*v,o[5]=(f*u-r*p)*v,o):null}function lm(o){var i=[1,0,0,1,0,0];return Po(i,o),i}var ha=ju;function Ip(o){return o>5e-5||o<-5e-5}var Zs,Hr,es=[],ro=[],Bk=[1,0,0,1,0,0],$b=Math.abs,VH=function(){function o(){}return o.prototype.getLocalTransform=function(i){return o.getLocalTransform(this,i)},o.prototype.setPosition=function(i){this.x=i[0],this.y=i[1]},o.prototype.setScale=function(i){this.scaleX=i[0],this.scaleY=i[1]},o.prototype.setSkew=function(i){this.skewX=i[0],this.skewY=i[1]},o.prototype.setOrigin=function(i){this.originX=i[0],this.originY=i[1]},o.prototype.needLocalTransform=function(){return Ip(this.rotation)||Ip(this.x)||Ip(this.y)||Ip(this.scaleX-1)||Ip(this.scaleY-1)},o.prototype.updateTransform=function(){var i=this.parent&&this.parent.transform,r=this.needLocalTransform(),s=this.transform;r||i?(s=s||[1,0,0,1,0,0],r?this.getLocalTransform(s):ha(s),i&&(r?Jo(s,i,s):Po(s,i)),this.transform=s,this._resolveGlobalScaleRatio(s)):s&&ha(s)},o.prototype._resolveGlobalScaleRatio=function(i){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(es);var s=es[0]<0?-1:1,u=es[1]<0?-1:1,f=((es[0]-s)*r+s)/es[0]||0,d=((es[1]-u)*r+u)/es[1]||0;i[0]*=f,i[1]*=f,i[2]*=d,i[3]*=d}this.invTransform=this.invTransform||[1,0,0,1,0,0],Gl(this.invTransform,i)},o.prototype.getComputedTransform=function(){for(var i=this,r=[];i;)r.push(i),i=i.parent;for(;i=r.pop();)i.updateTransform();return this.transform},o.prototype.setLocalTransform=function(i){if(i){var r=i[0]*i[0]+i[1]*i[1],s=i[2]*i[2]+i[3]*i[3],u=Math.atan2(i[1],i[0]),f=Math.PI/2+u-Math.atan2(i[3],i[2]);s=Math.sqrt(s)*Math.cos(f),r=Math.sqrt(r),this.skewX=f,this.skewY=0,this.rotation=-u,this.x=+i[4],this.y=+i[5],this.scaleX=r,this.scaleY=s,this.originX=0,this.originY=0}},o.prototype.decomposeTransform=function(){if(this.transform){var i=this.parent,r=this.transform;i&&i.transform&&(Jo(ro,i.invTransform,r),r=ro);var s=this.originX,u=this.originY;(s||u)&&(Bk[4]=s,Bk[5]=u,Jo(ro,r,Bk),ro[4]-=s,ro[5]-=u,r=ro),this.setLocalTransform(r)}},o.prototype.getGlobalScale=function(i){var r=this.transform;return i=i||[],r?(i[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),i[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(i[0]=-i[0]),r[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},o.prototype.transformCoordToLocal=function(i,r){var s=[i,r],u=this.invTransform;return u&&_i(s,s,u),s},o.prototype.transformCoordToGlobal=function(i,r){var s=[i,r],u=this.transform;return u&&_i(s,s,u),s},o.prototype.getLineScale=function(){var i=this.transform;return i&&$b(i[0]-1)>1e-10&&$b(i[3]-1)>1e-10?Math.sqrt($b(i[0]*i[3]-i[2]*i[1])):1},o.prototype.copyTransform=function(i){for(var s=0;sS&&(S=O,Tt.set(Fp,MS&&(S=R,Tt.set(Fp,0,T=s.x&&i<=s.x+s.width&&r>=s.y&&r<=s.y+s.height},o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height)},o.prototype.copy=function(i){o.copy(this,i)},o.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},o.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},o.prototype.isZero=function(){return 0===this.width||0===this.height},o.create=function(i){return new o(i.x,i.y,i.width,i.height)},o.copy=function(i,r){i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height},o.applyTransform=function(i,r,s){if(s){if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var u=s[0],f=s[3],p=s[5];return i.x=r.x*u+s[4],i.y=r.y*f+p,i.width=r.width*u,i.height=r.height*f,i.width<0&&(i.x+=i.width,i.width=-i.width),void(i.height<0&&(i.y+=i.height,i.height=-i.height))}ef.x=tf.x=r.x,ef.y=nf.y=r.y,jl.x=nf.x=r.x+r.width,jl.y=tf.y=r.y+r.height,ef.transform(s),nf.transform(s),jl.transform(s),tf.transform(s),i.x=Rp(ef.x,jl.x,tf.x,nf.x),i.y=Rp(ef.y,jl.y,tf.y,nf.y);var v=Jb(ef.x,jl.x,tf.x,nf.x),g=Jb(ef.y,jl.y,tf.y,nf.y);i.width=v-i.x,i.height=g-i.y}else i!==r&&o.copy(i,r)},o}(),bO={},ri="12px sans-serif",zk_measureText=function(o,i){return Zs||(Zs=md().getContext("2d")),Hr!==i&&(Hr=Zs.font=i||ri),Zs.measureText(o)};function Io(o,i){var r=bO[i=i||ri];r||(r=bO[i]=new Td(500));var s=r.get(o);return null==s&&(s=zk_measureText(o,i).width,r.put(o,s)),s}function CO(o,i,r,s){var u=Io(o,i),f=Id(i),d=rf(0,u,r),p=Wu(0,f,s);return new Ft(d,p,u,f)}function um(o,i,r,s){var u=((o||"")+"").split("\n");if(1===u.length)return CO(u[0],i,r,s);for(var d=new Ft(0,0,0,0),p=0;p=0?parseFloat(o)/100*i:parseFloat(o):o}function n0(o,i,r){var s=i.position||"inside",u=null!=i.distance?i.distance:5,f=r.height,d=r.width,p=f/2,v=r.x,g=r.y,m="left",y="top";if(s instanceof Array)v+=Ro(s[0],r.width),g+=Ro(s[1],r.height),m=null,y=null;else switch(s){case"left":v-=u,g+=p,m="right",y="middle";break;case"right":v+=u+d,g+=p,y="middle";break;case"top":v+=d/2,g-=u,m="center",y="bottom";break;case"bottom":v+=d/2,g+=f+u,m="center";break;case"inside":v+=d/2,g+=p,m="center",y="middle";break;case"insideLeft":v+=u,g+=p,y="middle";break;case"insideRight":v+=d-u,g+=p,m="right",y="middle";break;case"insideTop":v+=d/2,g+=u,m="center";break;case"insideBottom":v+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":v+=u,g+=u;break;case"insideTopRight":v+=d-u,g+=u,m="right";break;case"insideBottomLeft":v+=u,g+=f-u,y="bottom";break;case"insideBottomRight":v+=d-u,g+=f-u,m="right",y="bottom"}return(o=o||{}).x=v,o.y=g,o.align=m,o.verticalAlign=y,o}var Wl="__zr_normal__",Rd=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],BH={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Np={},cm=new Ft(0,0,0,0),fm=function(){function o(i){this.id=qe(),this.animators=[],this.currentStates=[],this.states={},this._init(i)}return o.prototype._init=function(i){this.attr(i)},o.prototype.drift=function(i,r,s){switch(this.draggable){case"horizontal":r=0;break;case"vertical":i=0}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=i,u[5]+=r,this.decomposeTransform(),this.markRedraw()},o.prototype.beforeUpdate=function(){},o.prototype.afterUpdate=function(){},o.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},o.prototype.updateInnerText=function(i){var r=this._textContent;if(r&&(!r.ignore||i)){this.textConfig||(this.textConfig={});var s=this.textConfig,u=s.local,f=r.innerTransformable,d=void 0,p=void 0,v=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(r),null!=s.position){var m=cm;m.copy(s.layoutRect?s.layoutRect:this.getBoundingRect()),u||m.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Np,s,m):n0(Np,s,m),f.x=Np.x,f.y=Np.y,d=Np.align,p=Np.verticalAlign;var y=s.origin;if(y&&null!=s.rotation){var b=void 0,w=void 0;"center"===y?(b=.5*m.width,w=.5*m.height):(b=Ro(y[0],m.width),w=Ro(y[1],m.height)),g=!0,f.originX=-f.x+b+(u?0:m.x),f.originY=-f.y+w+(u?0:m.y)}}null!=s.rotation&&(f.rotation=s.rotation);var S=s.offset;S&&(f.x+=S[0],f.y+=S[1],g||(f.originX=-S[0],f.originY=-S[1]));var M=null==s.inside?"string"==typeof s.position&&s.position.indexOf("inside")>=0:s.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),T=void 0,P=void 0,O=void 0;M&&this.canBeInsideText()?(P=s.insideStroke,(null==(T=s.insideFill)||"auto"===T)&&(T=this.getInsideTextFill()),(null==P||"auto"===P)&&(P=this.getInsideTextStroke(T),O=!0)):(P=s.outsideStroke,(null==(T=s.outsideFill)||"auto"===T)&&(T=this.getOutsideFill()),(null==P||"auto"===P)&&(P=this.getOutsideStroke(T),O=!0)),((T=T||"#000")!==x.fill||P!==x.stroke||O!==x.autoStroke||d!==x.align||p!==x.verticalAlign)&&(v=!0,x.fill=T,x.stroke=P,x.autoStroke=O,x.align=d,x.verticalAlign=p,r.setDefaultTextStyle(x)),r.__dirty|=1,v&&r.dirtyStyle(!0)}},o.prototype.canBeInsideText=function(){return!0},o.prototype.getInsideTextFill=function(){return"#fff"},o.prototype.getInsideTextStroke=function(i){return"#000"},o.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pe:En},o.prototype.getOutsideStroke=function(i){var r=this.__zr&&this.__zr.getBackgroundColor(),s="string"==typeof r&&La(r);s||(s=[255,255,255,1]);for(var u=s[3],f=this.__zr.isDarkMode(),d=0;d<3;d++)s[d]=s[d]*u+(f?0:255)*(1-u);return s[3]=1,zl(s,"rgba")},o.prototype.traverse=function(i,r){},o.prototype.attrKV=function(i,r){"textConfig"===i?this.setTextConfig(r):"textContent"===i?this.setTextContent(r):"clipPath"===i?this.setClipPath(r):"extra"===i?(this.extra=this.extra||{},Se(this.extra,r)):this[i]=r},o.prototype.hide=function(){this.ignore=!0,this.markRedraw()},o.prototype.show=function(){this.ignore=!1,this.markRedraw()},o.prototype.attr=function(i,r){if("string"==typeof i)this.attrKV(i,r);else if(at(i))for(var u=_n(i),f=0;f0},o.prototype.getState=function(i){return this.states[i]},o.prototype.ensureState=function(i){var r=this.states;return r[i]||(r[i]={}),r[i]},o.prototype.clearStates=function(i){this.useState(Wl,!1,i)},o.prototype.useState=function(i,r,s,u){var f=i===Wl;if(this.hasState()||!f){var p=this.currentStates,v=this.stateTransition;if(!(Rt(p,i)>=0)||!r&&1!==p.length){var g;if(this.stateProxy&&!f&&(g=this.stateProxy(i)),g||(g=this.states&&this.states[i]),!g&&!f)return void Ns("State "+i+" not exists.");f||this.saveCurrentToNormalState(g);var m=!!(g&&g.hoverLayer||u);m&&this._toggleHoverLayerFlag(!0),this._applyStateObj(i,g,this._normalState,r,!s&&!this.__inHover&&v&&v.duration>0,v);var y=this._textContent,b=this._textGuide;return y&&y.useState(i,r,s,m),b&&b.useState(i,r,s,m),f?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(i):this.currentStates=[i],this._updateAnimationTargets(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),g}}},o.prototype.useStates=function(i,r,s){if(i.length){var u=[],f=this.currentStates,d=i.length,p=d===f.length;if(p)for(var v=0;v0,S);var M=this._textContent,x=this._textGuide;M&&M.useStates(i,r,b),x&&x.useStates(i,r,b),this._updateAnimationTargets(),this.currentStates=i.slice(),this.markRedraw(),!b&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},o.prototype._updateAnimationTargets=function(){for(var i=0;i=0){var s=this.currentStates.slice();s.splice(r,1),this.useStates(s)}},o.prototype.replaceState=function(i,r,s){var u=this.currentStates.slice(),f=Rt(u,i),d=Rt(u,r)>=0;f>=0?d?u.splice(f,1):u[f]=r:s&&!d&&u.push(r),this.useStates(u)},o.prototype.toggleState=function(i,r){r?this.useState(i,!0):this.removeState(i)},o.prototype._mergeStates=function(i){for(var s,r={},u=0;u=0&&f.splice(d,1)}),this.animators.push(i),s&&s.animation.addAnimator(i),s&&s.wakeUp()},o.prototype.updateDuringAnimation=function(i){this.markRedraw()},o.prototype.stopAnimation=function(i,r){for(var s=this.animators,u=s.length,f=[],d=0;d8)&&(u("position","_legacyPos","x","y"),u("scale","_legacyScale","scaleX","scaleY"),u("origin","_legacyOrigin","originX","originY"))}(),o}();function Uk(o,i,r,s,u){var f=[];dm(o,"",o,i,r=r||{},s,f,u);var d=f.length,p=!1,v=r.done,g=r.aborted,m=function(){p=!0,--d<=0&&(p?v&&v():g&&g())},y=function(){--d<=0&&(p?v&&v():g&&g())};d||v&&v(),f.length>0&&r.during&&f[0].during(function(S,M){r.during(M)});for(var b=0;b0||u.force&&!d.length){for(var O=o.animators,R=[],V=0;V=0&&(u.splice(f,0,r),this._doAdd(r))}return this},i.prototype.replace=function(r,s){var u=Rt(this._children,r);return u>=0&&this.replaceAt(s,u),this},i.prototype.replaceAt=function(r,s){var u=this._children,f=u[s];if(r&&r!==this&&r.parent!==this&&r!==f){u[s]=r,f.parent=null;var d=this.__zr;d&&f.removeSelfFromZr(d),this._doAdd(r)}return this},i.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var s=this.__zr;s&&s!==r.__zr&&r.addSelfToZr(s),s&&s.refresh()},i.prototype.remove=function(r){var s=this.__zr,u=this._children,f=Rt(u,r);return f<0||(u.splice(f,1),r.parent=null,s&&r.removeSelfFromZr(s),s&&s.refresh()),this},i.prototype.removeAll=function(){for(var r=this._children,s=this.__zr,u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},o.prototype.setSleepAfterStill=function(i){this._sleepAfterStill=i},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.addHover=function(i){},o.prototype.removeHover=function(i){},o.prototype.clearHover=function(){},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(i){this.painter.resize((i=i||{}).width,i.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.pathToImage=function(i,r){if(this.painter.pathToImage)return this.painter.pathToImage(i,r)},o.prototype.setCursorStyle=function(i){this.handler.setCursorStyle(i)},o.prototype.findHover=function(i,r){return this.handler.findHover(i,r)},o.prototype.on=function(i,r,s){return this.handler.on(i,r,s),this},o.prototype.off=function(i,r){this.handler.off(i,r)},o.prototype.trigger=function(i,r){this.handler.trigger(i,r)},o.prototype.clear=function(){for(var i=this.storage.getRoots(),r=0;r0){if(o<=u)return d;if(o>=f)return p}else{if(o>=u)return d;if(o<=f)return p}else{if(o===u)return d;if(o===f)return p}return(o-u)/v*g+d}function Fe(o,i){switch(o){case"center":case"middle":o="50%";break;case"left":case"top":o="0%";break;case"right":case"bottom":o="100%"}return"string"==typeof o?function(o){return o.replace(/^\s+|\s+$/g,"")}(o).match(/%$/)?parseFloat(o)/100*i:parseFloat(o):null==o?NaN:+o}function hi(o,i,r){return null==i&&(i=10),i=Math.min(Math.max(0,i),20),o=(+o).toFixed(i),r?o:+o}function io(o){return o.sort(function(i,r){return i-r}),o}function ns(o){if(o=+o,isNaN(o))return 0;if(o>1e-14)for(var i=1,r=0;r<15;r++,i*=10)if(Math.round(o*i)/i===o)return r;return qk(o)}function qk(o){var i=o.toString().toLowerCase(),r=i.indexOf("e"),s=r>0?+i.slice(r+1):0,u=r>0?r:i.length,f=i.indexOf(".");return Math.max(0,(f<0?0:u-1-f)-s)}function o0(o,i){var r=Math.log,s=Math.LN10,u=Math.floor(r(o[1]-o[0])/s),f=Math.round(r(Math.abs(i[1]-i[0]))/s),d=Math.min(Math.max(-u+f,0),20);return isFinite(d)?d:20}function TO(o,i,r){if(!o[i])return 0;var s=Hu(o,function(S,M){return S+(isNaN(M)?0:M)},0);if(0===s)return 0;for(var u=Math.pow(10,r),f=Te(o,function(S){return(isNaN(S)?0:S)/s*u*100}),d=100*u,p=Te(f,function(S){return Math.floor(S)}),v=Hu(p,function(S,M){return S+M},0),g=Te(f,function(S,M){return S-p[M]});vm&&(m=g[b],y=b);++p[y],g[y]=0,++v}return p[i]/u}function GH(o,i){var r=Math.max(ns(o),ns(i)),s=o+i;return r>20?s:hi(s,r)}var Up=9007199254740991;function Ld(o){var i=2*Math.PI;return(o%i+i)%i}function hm(o){return o>-1e-4&&o<1e-4}var DO=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ao(o){if(o instanceof Date)return o;if("string"==typeof o){var i=DO.exec(o);if(!i)return new Date(NaN);if(i[8]){var r=+i[4]||0;return"Z"!==i[8].toUpperCase()&&(r-=+i[8].slice(0,3)),new Date(Date.UTC(+i[1],+(i[2]||1)-1,+i[3]||1,r,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0))}return new Date(+i[1],+(i[2]||1)-1,+i[3]||1,+i[4]||0,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0)}return null==o?new Date(NaN):new Date(Math.round(o))}function Fd(o){return Math.pow(10,Xt(o))}function Xt(o){if(0===o)return 0;var i=Math.floor(Math.log(o)/Math.LN10);return o/Math.pow(10,i)>=10&&i++,i}function pm(o,i){var r=Xt(o),s=Math.pow(10,r),u=o/s;return o=(i?u<1.5?1:u<2.5?2:u<4?3:u<7?5:10:u<1?1:u<2?2:u<3?3:u<5?5:10)*s,r>=-20?+o.toFixed(r<0?-r:0):o}function Ci(o,i){var r=(o.length-1)*i+1,s=Math.floor(r),u=+o[s-1],f=r-s;return f?u+f*(o[s]-u):u}function af(o){o.sort(function(v,g){return p(v,g,0)?-1:1});for(var i=-1/0,r=1,s=0;s=0||f&&Rt(f,v)<0)){var g=s.getShallow(v,i);null!=g&&(d[o[p][0]]=g)}}return d}}var tz=Hd([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Qk=function(){function o(){}return o.prototype.getAreaStyle=function(i,r){return tz(this,i,r)},o}(),$k=new Td(50);function Jk(o){if("string"==typeof o){var i=$k.get(o);return i&&i.image}return o}function zd(o,i,r,s,u){if(o){if("string"==typeof o){if(i&&i.__zrImageSrc===o||!r)return i;var f=$k.get(o),d={hostEl:r,cb:s,cbPayload:u};return f?!g0(i=f.image)&&f.pending.push(d):((i=new Image).onload=i.onerror=v0,$k.put(o,i.__cachedImgObj={image:i,pending:[d]}),i.src=i.__zrImageSrc=o),i}return o}return i}function v0(){var o=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i=d;v++)p-=d;var g=Io(r,i);return g>p&&(r="",g=0),p=o-g,u.ellipsis=r,u.ellipsisWidth=g,u.contentWidth=p,u.containerWidth=o,u}function uf(o,i){var r=i.containerWidth,s=i.font,u=i.contentWidth;if(!r)return"";var f=Io(o,s);if(f<=r)return o;for(var d=0;;d++){if(f<=u||d>=i.maxIterations){o+=i.ellipsis;break}var p=0===d?_m(o,u,i.ascCharWidth,i.cnCharWidth):f>0?Math.floor(o.length*u/f):0;f=Io(o=o.substr(0,p),s)}return""===o&&(o=i.placeholder),o}function _m(o,i,r,s){for(var u=0,f=0,d=o.length;f0&&S+s.accumWidth>s.width&&(m=i.split("\n"),g=!0),s.accumWidth=S}else{var M=rM(i,v,s.width,s.breakAll,s.accumWidth);s.accumWidth=M.accumWidth+w,y=M.linesWidths,m=M.lines}}else m=i.split("\n");for(var x=0;x=33&&i<=255}(o)||!!Fo[o]}function rM(o,i,r,s,u){for(var f=[],d=[],p="",v="",g=0,m=0,y=0;yr:u+m+w>r)?m?(p||v)&&(S?(p||(p=v,v="",m=g=0),f.push(p),d.push(m-g),v+=b,p="",m=g+=w):(v&&(p+=v,m+=g,v="",g=0),f.push(p),d.push(m),p=b,m=w)):S?(f.push(v),d.push(g),v=b,g=w):(f.push(b),d.push(w)):(m+=w,S?(v+=b,g+=w):(v&&(p+=v,v="",g=0),p+=b))}else v&&(p+=v,m+=g),f.push(p),d.push(m),p="",v="",g=0,m=0}return!f.length&&!p&&(p=o,v="",g=0),v&&(p+=v),p&&(f.push(p),d.push(m)),1===f.length&&(m+=u),{accumWidth:m,lines:f,linesWidths:d}}var ym="__zr_style_"+Math.round(10*Math.random()),Xl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xl[ym]=!0;var OO=["z","z2","invisible"],oz=["invisible"],Wp=function(o){function i(r){return o.call(this,r)||this}return Rn(i,o),i.prototype._init=function(r){for(var s=_n(r),u=0;u-1e-8&&o<1e-8}function sz(o){return o>1e-8||o<-1e-8}function pr(o,i,r,s,u){var f=1-u;return f*f*(f*o+3*u*i)+u*u*(u*s+3*f*r)}function b0(o,i,r,s,u){var f=1-u;return 3*(((i-o)*f+2*(r-i)*u)*f+(s-r)*u*u)}function C0(o,i,r,s,u,f){var d=s+3*(i-r)-o,p=3*(r-2*i+o),v=3*(i-o),g=o-u,m=p*p-3*d*v,y=p*v-9*d*g,b=v*v-3*p*g,w=0;if(cf(m)&&cf(y))cf(p)?f[0]=0:(S=-v/p)>=0&&S<=1&&(f[w++]=S);else{var M=y*y-4*m*b;if(cf(M)){var x=y/m,T=-x/2;(S=-p/d+x)>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T)}else if(M>0){var P=Gd(M),O=m*p+1.5*d*(-y+P),R=m*p+1.5*d*(-y-P);(S=(-p-((O=O<0?-_0(-O,jd):_0(O,jd))+(R=R<0?-_0(-R,jd):_0(R,jd))))/(3*d))>=0&&S<=1&&(f[w++]=S)}else{var V=(2*m*p-3*d*y)/(2*Gd(m*m*m)),B=Math.acos(V)/3,z=Gd(m),j=Math.cos(B),S=(-p-2*z*j)/(3*d),X=(T=(-p+z*(j+RO*Math.sin(B)))/(3*d),(-p+z*(j-RO*Math.sin(B)))/(3*d));S>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T),X>=0&&X<=1&&(f[w++]=X)}}return w}function aM(o,i,r,s,u){var f=6*r-12*i+6*o,d=9*i+3*s-3*o-9*r,p=3*i-3*o,v=0;if(cf(d))sz(f)&&(g=-p/f)>=0&&g<=1&&(u[v++]=g);else{var m=f*f-4*d*p;if(cf(m))u[0]=-f/(2*d);else if(m>0){var g,y=Gd(m),b=(-f-y)/(2*d);(g=(-f+y)/(2*d))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}function qu(o,i,r,s,u,f){var d=(i-o)*u+o,p=(r-i)*u+i,v=(s-r)*u+r,g=(p-d)*u+d,m=(v-p)*u+p,y=(m-g)*u+g;f[0]=o,f[1]=d,f[2]=g,f[3]=y,f[4]=y,f[5]=m,f[6]=v,f[7]=s}function ff(o,i,r,s,u,f,d,p,v,g,m){var y,S,M,x,T,b=.005,w=1/0;os[0]=v,os[1]=g;for(var P=0;P<1;P+=.05)Gi[0]=pr(o,r,u,d,P),Gi[1]=pr(i,s,f,p,P),(x=Xc(os,Gi))=0&&x=0&&w1e-4)return p[0]=o-r,p[1]=i-s,v[0]=o+r,void(v[1]=i+s);if(Cm[0]=lM(u)*r+o,Cm[1]=sM(u)*s+i,w0[0]=lM(f)*r+o,w0[1]=sM(f)*s+i,g(p,Cm,w0),m(v,Cm,w0),(u%=Wd)<0&&(u+=Wd),(f%=Wd)<0&&(f+=Wd),u>f&&!d?f+=Wd:uu&&(S0[0]=lM(w)*r+o,S0[1]=sM(w)*s+i,g(p,S0,p),m(v,S0,v))}var Ln={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},df=[],hf=[],Qs=[],pf=[],Kl=[],Ql=[],Yd=Math.min,qd=Math.max,Xu=Math.cos,Xd=Math.sin,k0=Math.sqrt,$l=Math.abs,uM=Math.PI,vf=2*uM,cM="undefined"!=typeof Float32Array,km=[];function M0(o){return Math.round(o/uM*1e8)/1e8%2*uM}function Mm(o,i){var r=M0(o[0]);r<0&&(r+=vf);var u=o[1];u+=r-o[0],!i&&u-r>=vf?u=r+vf:i&&r-u>=vf?u=r-vf:!i&&r>u?u=r+(vf-M0(r-u)):i&&r0&&(this._ux=$l(s/Kb/i)||0,this._uy=$l(s/Kb/r)||0)},o.prototype.setDPR=function(i){this.dpr=i},o.prototype.setContext=function(i){this._ctx=i},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(i,r){return this._drawPendingPt(),this.addData(Ln.M,i,r),this._ctx&&this._ctx.moveTo(i,r),this._x0=i,this._y0=r,this._xi=i,this._yi=r,this},o.prototype.lineTo=function(i,r){var s=$l(i-this._xi),u=$l(r-this._yi),f=s>this._ux||u>this._uy;if(this.addData(Ln.L,i,r),this._ctx&&f&&(this._needsDash?this._dashedLineTo(i,r):this._ctx.lineTo(i,r)),f)this._xi=i,this._yi=r,this._pendingPtDist=0;else{var d=s*s+u*u;d>this._pendingPtDist&&(this._pendingPtX=i,this._pendingPtY=r,this._pendingPtDist=d)}return this},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){return this._drawPendingPt(),this.addData(Ln.C,i,r,s,u,f,d),this._ctx&&(this._needsDash?this._dashedBezierTo(i,r,s,u,f,d):this._ctx.bezierCurveTo(i,r,s,u,f,d)),this._xi=f,this._yi=d,this},o.prototype.quadraticCurveTo=function(i,r,s,u){return this._drawPendingPt(),this.addData(Ln.Q,i,r,s,u),this._ctx&&(this._needsDash?this._dashedQuadraticTo(i,r,s,u):this._ctx.quadraticCurveTo(i,r,s,u)),this._xi=s,this._yi=u,this},o.prototype.arc=function(i,r,s,u,f,d){return this._drawPendingPt(),km[0]=u,km[1]=f,Mm(km,d),this.addData(Ln.A,i,r,s,s,u=km[0],(f=km[1])-u,0,d?0:1),this._ctx&&this._ctx.arc(i,r,s,u,f,d),this._xi=Xu(f)*s+i,this._yi=Xd(f)*s+r,this},o.prototype.arcTo=function(i,r,s,u,f){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(i,r,s,u,f),this},o.prototype.rect=function(i,r,s,u){return this._drawPendingPt(),this._ctx&&this._ctx.rect(i,r,s,u),this.addData(Ln.R,i,r,s,u),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ln.Z);var i=this._ctx,r=this._x0,s=this._y0;return i&&(this._needsDash&&this._dashedLineTo(r,s),i.closePath()),this._xi=r,this._yi=s,this},o.prototype.fill=function(i){i&&i.fill(),this.toStatic()},o.prototype.stroke=function(i){i&&i.stroke(),this.toStatic()},o.prototype.setLineDash=function(i){if(i instanceof Array){this._lineDash=i,this._dashIdx=0;for(var r=0,s=0;sm.length&&(this._expandData(),m=this.data);for(var y=0;y0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var i=[],r=0;r0&&b<=i||g<0&&b>=i||0===g&&(m>0&&w<=r||m<0&&w>=r);)b+=g*(M=u[x=this._dashIdx]),w+=m*M,this._dashIdx=(x+1)%S,!(g>0&&bp||m>0&&wv)&&f[x%2?"moveTo":"lineTo"](g>=0?Yd(b,i):qd(b,i),m>=0?Yd(w,r):qd(w,r));this._dashOffset=-k0((g=b-i)*g+(m=w-r)*m)},o.prototype._dashedBezierTo=function(i,r,s,u,f,d){var x,T,P,O,R,p=this._ctx,v=this._dashSum,g=this._dashOffset,m=this._lineDash,y=this._xi,b=this._yi,w=0,S=this._dashIdx,M=m.length,V=0;for(g<0&&(g=v+g),g%=v,x=0;x<1;x+=.1)T=pr(y,i,s,f,x+.1)-pr(y,i,s,f,x),P=pr(b,r,u,d,x+.1)-pr(b,r,u,d,x),w+=k0(T*T+P*P);for(;Sg);S++);for(x=(V-g)/w;x<=1;)O=pr(y,i,s,f,x),R=pr(b,r,u,d,x),S%2?p.moveTo(O,R):p.lineTo(O,R),x+=m[S]/w,S=(S+1)%M;S%2!=0&&p.lineTo(f,d),this._dashOffset=-k0((T=f-O)*T+(P=d-R)*P)},o.prototype._dashedQuadraticTo=function(i,r,s,u){var f=s,d=u;s=(s+2*i)/3,u=(u+2*r)/3,this._dashedBezierTo(i=(this._xi+2*i)/3,r=(this._yi+2*r)/3,s,u,f,d)},o.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var i=this.data;i instanceof Array&&(i.length=this._len,cM&&this._len>11&&(this.data=new Float32Array(i)))}},o.prototype.getBoundingRect=function(){Qs[0]=Qs[1]=Kl[0]=Kl[1]=Number.MAX_VALUE,pf[0]=pf[1]=Ql[0]=Ql[1]=-Number.MAX_VALUE;var d,i=this.data,r=0,s=0,u=0,f=0;for(d=0;ds||$l(O)>u||b===r-1)&&(M=Math.sqrt(P*P+O*O),f=x,d=T);break;case Ln.C:var R=i[b++],V=i[b++],T=(x=i[b++],i[b++]),B=i[b++],z=i[b++];M=lz(f,d,R,V,x,T,B,z,10),f=B,d=z;break;case Ln.Q:M=FO(f,d,R=i[b++],V=i[b++],x=i[b++],T=i[b++],10),f=x,d=T;break;case Ln.A:var j=i[b++],X=i[b++],Z=i[b++],Q=i[b++],te=i[b++],ee=i[b++],le=ee+te;b+=1,b++,S&&(p=Xu(te)*Z+j,v=Xd(te)*Q+X),M=qd(Z,Q)*Yd(vf,Math.abs(ee)),f=Xu(le)*Z+j,d=Xd(le)*Q+X;break;case Ln.R:p=f=i[b++],v=d=i[b++],M=2*i[b++]+2*i[b++];break;case Ln.Z:var P=p-f;O=v-d,M=Math.sqrt(P*P+O*O),f=p,d=v}M>=0&&(g[y++]=M,m+=M)}return this._pathLen=m,m},o.prototype.rebuildPath=function(i,r){var p,v,g,m,y,b,S,P,R,V,s=this.data,u=this._ux,f=this._uy,d=this._len,w=r<1,x=0,T=0,O=0;if(!w||(this._pathSegLen||this._calculateLength(),S=this._pathSegLen,P=r*this._pathLen))e:for(var B=0;B0&&(i.lineTo(R,V),O=0),z){case Ln.M:p=g=s[B++],v=m=s[B++],i.moveTo(g,m);break;case Ln.L:y=s[B++],b=s[B++];var X=$l(y-g),Z=$l(b-m);if(X>u||Z>f){if(w){if(x+(Q=S[T++])>P){i.lineTo(g*(1-(te=(P-x)/Q))+y*te,m*(1-te)+b*te);break e}x+=Q}i.lineTo(y,b),g=y,m=b,O=0}else{var ee=X*X+Z*Z;ee>O&&(R=y,V=b,O=ee)}break;case Ln.C:var le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],_e=s[B++],xe=s[B++];if(w){if(x+(Q=S[T++])>P){qu(g,le,de,_e,te=(P-x)/Q,df),qu(m,oe,ge,xe,te,hf),i.bezierCurveTo(df[1],hf[1],df[2],hf[2],df[3],hf[3]);break e}x+=Q}i.bezierCurveTo(le,oe,de,ge,_e,xe),g=_e,m=xe;break;case Ln.Q:if(le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],w){if(x+(Q=S[T++])>P){ji(g,le,de,te=(P-x)/Q,df),ji(m,oe,ge,te,hf),i.quadraticCurveTo(df[1],hf[1],df[2],hf[2]);break e}x+=Q}i.quadraticCurveTo(le,oe,de,ge),g=de,m=ge;break;case Ln.A:var Me=s[B++],He=s[B++],Je=s[B++],mt=s[B++],$t=s[B++],zt=s[B++],Mt=s[B++],Yt=!s[B++],Ut=Je>mt?Je:mt,Wn=$l(Je-mt)>.001,ur=$t+zt,fi=!1;if(w&&(x+(Q=S[T++])>P&&(ur=$t+zt*(P-x)/Q,fi=!0),x+=Q),Wn&&i.ellipse?i.ellipse(Me,He,Je,mt,Mt,$t,ur,Yt):i.arc(Me,He,Ut,$t,ur,Yt),fi)break e;j&&(p=Xu($t)*Je+Me,v=Xd($t)*mt+He),g=Xu(ur)*Je+Me,m=Xd(ur)*mt+He;break;case Ln.R:p=g=s[B],v=m=s[B+1],y=s[B++],b=s[B++];var xt=s[B++],Nr=s[B++];if(w){if(x+(Q=S[T++])>P){var gr=P-x;i.moveTo(y,b),i.lineTo(y+Yd(gr,xt),b),(gr-=xt)>0&&i.lineTo(y+xt,b+Yd(gr,Nr)),(gr-=Nr)>0&&i.lineTo(y+qd(xt-gr,0),b+Nr),(gr-=xt)>0&&i.lineTo(y,b+qd(Nr-gr,0));break e}x+=Q}i.rect(y,b,xt,Nr);break;case Ln.Z:if(w){var Q;if(x+(Q=S[T++])>P){var te;i.lineTo(g*(1-(te=(P-x)/Q))+p*te,m*(1-te)+v*te);break e}x+=Q}i.closePath(),g=p,m=v}}},o.prototype.clone=function(){var i=new o,r=this.data;return i.data=r.slice?r.slice():Array.prototype.slice.call(r),i._len=this._len,i},o.CMD=Ln,o.initDefaultProps=((i=o.prototype)._saveData=!0,i._needsDash=!1,i._dashOffset=0,i._dashIdx=0,i._dashSum=0,i._ux=0,i._uy=0,i._pendingPtDist=0,void(i._version=0)),o;var i}();function gf(o,i,r,s,u,f,d){if(0===u)return!1;var v,p=u;if(d>i+p&&d>s+p||do+p&&f>r+p||fi+y&&m>s+y&&m>f+y&&m>p+y||mo+y&&g>r+y&&g>u+y&&g>d+y||gi+g&&v>s+g&&v>f+g||vo+g&&p>r+g&&p>u+g||pr||m+gu&&(u+=qp);var b=Math.atan2(v,p);return b<0&&(b+=qp),b>=s&&b<=u||b+qp>=s&&b+qp<=u}function Zu(o,i,r,s,u,f){if(f>i&&f>s||fu?p:0}var mf=$s.CMD,Zd=2*Math.PI,lo=[-1,-1,-1],ga=[-1,-1];function ls(){var o=ga[0];ga[0]=ga[1],ga[1]=o}function fM(o,i,r,s,u,f,d,p,v,g){if(g>i&&g>s&&g>f&&g>p||g1&&ls(),w=pr(i,s,f,p,ga[0]),b>1&&(S=pr(i,s,f,p,ga[1]))),y+=2===b?xi&&p>s&&p>f||p=0&&g<=1&&(u[v++]=g);else{var m=d*d-4*f*p;if(cf(m))(g=-d/(2*f))>=0&&g<=1&&(u[v++]=g);else if(m>0){var g,y=Gd(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}(i,s,f,p,lo);if(0===v)return 0;var g=LO(i,s,f);if(g>=0&&g<=1){for(var m=0,y=Li(i,s,f,g),b=0;br||p<-r)return 0;var v=Math.sqrt(r*r-p*p);lo[0]=-v,lo[1]=v;var g=Math.abs(s-u);if(g<1e-4)return 0;if(g>=Zd-1e-4){s=0,u=Zd;var m=f?1:-1;return d>=lo[0]+o&&d<=lo[1]+o?m:0}if(s>u){var y=s;s=u,u=y}s<0&&(s+=Zd,u+=Zd);for(var b=0,w=0;w<2;w++){var S=lo[w];if(S+o>d){var M=Math.atan2(p,S);m=f?1:-1,M<0&&(M=Zd+M),(M>=s&&M<=u||M+Zd>=s&&M+Zd<=u)&&(M>Math.PI/2&&M<1.5*Math.PI&&(m=-m),b+=m)}}return b}function Wi(o,i,r,s,u){for(var b,w,f=o.data,d=o.len(),p=0,v=0,g=0,m=0,y=0,S=0;S1&&(r||(p+=Zu(v,g,m,y,s,u))),x&&(m=v=f[S],y=g=f[S+1]),M){case mf.M:v=m=f[S++],g=y=f[S++];break;case mf.L:if(r){if(gf(v,g,f[S],f[S+1],i,s,u))return!0}else p+=Zu(v,g,f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.C:if(r){if(ss(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=fM(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.Q:if(r){if(Si(v,g,f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=UO(v,g,f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.A:var T=f[S++],P=f[S++],O=f[S++],R=f[S++],V=f[S++],B=f[S++];S+=1;var z=!!(1-f[S++]);b=Math.cos(V)*O+T,w=Math.sin(V)*R+P,x?(m=b,y=w):p+=Zu(v,g,b,w,s,u);var j=(s-T)*R/O+T;if(r){if(fz(T,P,R,V,V+B,z,i,j,u))return!0}else p+=GO(T,P,R,V,V+B,z,j,u);v=Math.cos(V+B)*O+T,g=Math.sin(V+B)*R+P;break;case mf.R:if(m=v=f[S++],y=g=f[S++],b=m+f[S++],w=y+f[S++],r){if(gf(m,y,b,y,i,s,u)||gf(b,y,b,w,i,s,u)||gf(b,w,m,w,i,s,u)||gf(m,w,m,y,i,s,u))return!0}else p+=Zu(b,y,b,w,s,u),p+=Zu(m,w,m,y,s,u);break;case mf.Z:if(r){if(gf(v,g,m,y,i,s,u))return!0}else p+=Zu(v,g,m,y,s,u);v=m,g=y}}return!r&&!function(o,i){return Math.abs(o-i)<1e-4}(g,y)&&(p+=Zu(v,g,m,y,s,u)||0),0!==p}var jO=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xl),hz={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bm.style)},x0=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Nt=function(o){function i(r){return o.call(this,r)||this}return Rn(i,o),i.prototype.update=function(){var r=this;o.prototype.update.call(this);var s=this.style;if(s.decal){var u=this._decalEl=this._decalEl||new i;u.buildPath===i.prototype.buildPath&&(u.buildPath=function(v){r.buildPath(v,r.shape)}),u.silent=!0;var f=u.style;for(var d in s)f[d]!==s[d]&&(f[d]=s[d]);f.fill=s.fill?s.decal:null,f.decal=null,f.shadowColor=null,s.strokeFirst&&(f.stroke=null);for(var p=0;p.5?En:s>.2?"#eee":pe}if(r)return pe}return En},i.prototype.getInsideTextStroke=function(r){var s=this.style.fill;if(yt(s)){var u=this.__zr;if(!(!u||!u.isDarkMode())==qb(r,0)<.4)return s}},i.prototype.buildPath=function(r,s,u){},i.prototype.pathUpdated=function(){this.__dirty&=-5},i.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},i.prototype.createPathProxy=function(){this.path=new $s(!1)},i.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return!(null==s||"none"===s||!(r.lineWidth>0))},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.getBoundingRect=function(){var r=this._rect,s=this.style,u=!r;if(u){var f=!1;this.path||(f=!0,this.createPathProxy());var d=this.path;(f||4&this.__dirty)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),r=d.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var p=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||u){p.copy(r);var v=s.strokeNoScale?this.getLineScale():1,g=s.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}v>1e-10&&(p.width+=g/v,p.height+=g/v,p.x-=g/v/2,p.y-=g/v/2)}return p}return r},i.prototype.contain=function(r,s){var u=this.transformCoordToLocal(r,s),f=this.getBoundingRect(),d=this.style;if(f.contain(r=u[0],s=u[1])){var p=this.path;if(this.hasStroke()){var v=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(v=Math.max(v,this.strokeContainThreshold)),function(o,i,r,s){return Wi(o,i,!0,r,s)}(p,v/g,r,s)))return!0}if(this.hasFill())return function(o,i,r){return Wi(o,0,!1,i,r)}(p,r,s)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(r){return this.animate("shape",r)},i.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(r,s){"shape"===r?this.setShape(s):o.prototype.attrKV.call(this,r,s)},i.prototype.setShape=function(r,s){var u=this.shape;return u||(u=this.shape={}),"string"==typeof r?u[r]=s:Se(u,r),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(4&this.__dirty)},i.prototype.createStyle=function(r){return Mp(jO,r)},i.prototype._innerSaveToNormal=function(r){o.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;r.shape&&!s.shape&&(s.shape=Se({},this.shape))},i.prototype._applyStateObj=function(r,s,u,f,d,p){o.prototype._applyStateObj.call(this,r,s,u,f,d,p);var g,v=!(s&&f);if(s&&s.shape?d?f?g=s.shape:(g=Se({},u.shape),Se(g,s.shape)):(g=Se({},f?this.shape:u.shape),Se(g,s.shape)):v&&(g=u.shape),g)if(d){this.shape=Se({},this.shape);for(var m={},y=_n(g),b=0;b0},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.createStyle=function(r){return Mp(vz,r)},i.prototype.setBoundingRect=function(r){this._rect=r},i.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var s=r.text;null!=s?s+="":s="";var u=um(s,r.font,r.textAlign,r.textBaseline);if(u.x+=r.x||0,u.y+=r.y||0,this.hasStroke()){var f=r.lineWidth;u.x-=f/2,u.y-=f/2,u.width+=f,u.height+=f}this._rect=u}return this._rect},i.initDefaultProps=void(i.prototype.dirtyRectTolerance=10),i}(as);hM.prototype.type="tspan";var Xp=hM,gz=tt({x:0,y:0},Xl),mz={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bm.style)},T0=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Rn(i,o),i.prototype.createStyle=function(r){return Mp(gz,r)},i.prototype._getSize=function(r){var s=this.style,u=s[r];if(null!=u)return u;var f=function(o){return!!(o&&"string"!=typeof o&&o.width&&o.height)}(s.image)?s.image:this.__image;if(!f)return 0;var d="width"===r?"height":"width",p=s[d];return null==p?f[r]:f[r]/f[d]*p},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return mz},i.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ft(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},i}(as);T0.prototype.type="image";var si=T0,Tm=Math.round;function pM(o,i,r){if(i){var s=i.x1,u=i.x2,f=i.y1,d=i.y2;o.x1=s,o.x2=u,o.y1=f,o.y2=d;var p=r&&r.lineWidth;return p&&(Tm(2*s)===Tm(2*u)&&(o.x1=o.x2=Kd(s,p,!0)),Tm(2*f)===Tm(2*d)&&(o.y1=o.y2=Kd(f,p,!0))),o}}function Dm(o,i,r){if(i){var s=i.x,u=i.y,f=i.width,d=i.height;o.x=s,o.y=u,o.width=f,o.height=d;var p=r&&r.lineWidth;return p&&(o.x=Kd(s,p,!0),o.y=Kd(u,p,!0),o.width=Math.max(Kd(s+f,p,!1)-o.x,0===f?0:1),o.height=Math.max(Kd(u+d,p,!1)-o.y,0===d?0:1)),o}}function Kd(o,i,r){if(!i)return o;var s=Tm(2*o);return(s+Tm(i))%2==0?s/2:(s+(r?1:-1))/2}var yz=function(){this.x=0,this.y=0,this.width=0,this.height=0},Qd={},YO=function(o){function i(r){return o.call(this,r)||this}return Rn(i,o),i.prototype.getDefaultShape=function(){return new yz},i.prototype.buildPath=function(r,s){var u,f,d,p;if(this.subPixelOptimize){var v=Dm(Qd,s,this.style);u=v.x,f=v.y,d=v.width,p=v.height,v.r=s.r,s=v}else u=s.x,f=s.y,d=s.width,p=s.height;s.r?function(o,i){var p,v,g,m,y,r=i.x,s=i.y,u=i.width,f=i.height,d=i.r;u<0&&(r+=u,u=-u),f<0&&(s+=f,f=-f),"number"==typeof d?p=v=g=m=d:d instanceof Array?1===d.length?p=v=g=m=d[0]:2===d.length?(p=g=d[0],v=m=d[1]):3===d.length?(p=d[0],v=m=d[1],g=d[2]):(p=d[0],v=d[1],g=d[2],m=d[3]):p=v=g=m=0,p+v>u&&(p*=u/(y=p+v),v*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),v+g>f&&(v*=f/(y=v+g),g*=f/y),p+m>f&&(p*=f/(y=p+m),m*=f/y),o.moveTo(r+p,s),o.lineTo(r+u-v,s),0!==v&&o.arc(r+u-v,s+v,v,-Math.PI/2,0),o.lineTo(r+u,s+f-g),0!==g&&o.arc(r+u-g,s+f-g,g,0,Math.PI/2),o.lineTo(r+m,s+f),0!==m&&o.arc(r+m,s+f-m,m,Math.PI/2,Math.PI),o.lineTo(r,s+p),0!==p&&o.arc(r+p,s+p,p,Math.PI,1.5*Math.PI)}(r,s):r.rect(u,f,d,p)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(Nt);YO.prototype.type="rect";var sn=YO,qO={fill:"#000"},bz={style:tt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},bm.style)},D0=function(o){function i(r){var s=o.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=qO,s.attr(r),s}return Rn(i,o),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){o.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;rb&&v){var w=Math.floor(b/p);m=m.slice(0,w)}var S=b,M=g;if(s&&(S+=s[0]+s[2],null!=M&&(M+=s[1]+s[3])),o&&f&&null!=M)for(var x=tM(g,u,i.ellipsis,{minChar:i.truncateMinChar,placeholder:i.placeholder}),T=0;T0,Q=null!=r.width&&("truncate"===r.overflow||"break"===r.overflow||"breakAll"===r.overflow),te=d.calculatedLineHeight,ee=0;eep&&oi(r,o.substring(p,g),i,d),oi(r,v[2],i,d,v[1]),p=ce.lastIndex}pu){V>0?(P.tokens=P.tokens.slice(0,V),x(P,R,O),r.lines=r.lines.slice(0,T+1)):r.lines=r.lines.slice(0,T);break e}var te=z.width,ee=null==te||"auto"===te;if("string"==typeof te&&"%"===te.charAt(te.length-1))B.percentWidth=te,m.push(B),B.contentWidth=Io(B.text,Z);else{if(ee){var le=z.backgroundColor,oe=le&&le.image;oe&&g0(oe=Jk(oe))&&(B.width=Math.max(B.width,oe.width*Q/oe.height))}var de=S&&null!=s?s-R:null;null!=de&&de=0&&"right"===(le=B[ee]).align;)this._placeToken(le,r,j,T,te,"right",O),X-=le.width,te-=le.width,ee--;for(Q+=(f-(Q-x)-(P-te)-X)/2;Z<=ee;)this._placeToken(le=B[Z],r,j,T,Q+le.width/2,"center",O),Q+=le.width,Z++;T+=j}},i.prototype._placeToken=function(r,s,u,f,d,p,v){var g=s.rich[r.styleName]||{};g.text=r.text;var m=r.verticalAlign,y=f+u/2;"top"===m?y=f+r.height/2:"bottom"===m&&(y=f+u-r.height/2),!r.isLineHolder&&E0(g)&&this._renderBackground(g,s,"right"===p?d-r.width:"center"===p?d-r.width/2:d,y-r.height/2,r.width,r.height);var w=!!g.backgroundColor,S=r.textPadding;S&&(d=gM(d,p,S),y-=r.height/2-S[0]-r.innerHeight/2);var M=this._getOrCreateChild(Xp),x=M.createStyle();M.useStyle(x);var T=this._defaultStyle,P=!1,O=0,R=QO("fill"in g?g.fill:"fill"in s?s.fill:(P=!0,T.fill)),V=vM("stroke"in g?g.stroke:"stroke"in s?s.stroke:w||v||T.autoStroke&&!P?null:(O=2,T.stroke)),B=g.textShadowBlur>0||s.textShadowBlur>0;x.text=r.text,x.x=d,x.y=y,B&&(x.shadowBlur=g.textShadowBlur||s.textShadowBlur||0,x.shadowColor=g.textShadowColor||s.textShadowColor||"transparent",x.shadowOffsetX=g.textShadowOffsetX||s.textShadowOffsetX||0,x.shadowOffsetY=g.textShadowOffsetY||s.textShadowOffsetY||0),x.textAlign=p,x.textBaseline="middle",x.font=r.font||ri,x.opacity=$o(g.opacity,s.opacity,1),V&&(x.lineWidth=$o(g.lineWidth,s.lineWidth,O),x.lineDash=ot(g.lineDash,s.lineDash),x.lineDashOffset=s.lineDashOffset||0,x.stroke=V),R&&(x.fill=R);var z=r.contentWidth,j=r.contentHeight;M.setBoundingRect(new Ft(rf(x.x,z,x.textAlign),Wu(x.y,j,x.textBaseline),z,j))},i.prototype._renderBackground=function(r,s,u,f,d,p){var M,x,P,v=r.backgroundColor,g=r.borderWidth,m=r.borderColor,y=v&&v.image,b=v&&!y,w=r.borderRadius,S=this;if(b||r.lineHeight||g&&m){(M=this._getOrCreateChild(sn)).useStyle(M.createStyle()),M.style.fill=null;var T=M.shape;T.x=u,T.y=f,T.width=d,T.height=p,T.r=w,M.dirtyShape()}if(b)(P=M.style).fill=v||null,P.fillOpacity=ot(r.fillOpacity,1);else if(y){(x=this._getOrCreateChild(si)).onload=function(){S.dirtyStyle()};var O=x.style;O.image=v.image,O.x=u,O.y=f,O.width=d,O.height=p}g&&m&&((P=M.style).lineWidth=g,P.stroke=m,P.strokeOpacity=ot(r.strokeOpacity,1),P.lineDash=r.borderDash,P.lineDashOffset=r.borderDashOffset||0,M.strokeContainThreshold=0,M.hasFill()&&M.hasStroke()&&(P.strokeFirst=!0,P.lineWidth*=2));var R=(M||x).style;R.shadowBlur=r.shadowBlur||0,R.shadowColor=r.shadowColor||"transparent",R.shadowOffsetX=r.shadowOffsetX||0,R.shadowOffsetY=r.shadowOffsetY||0,R.opacity=$o(r.opacity,s.opacity,1)},i.makeFont=function(r){var s="";if(r.fontSize||r.fontFamily||r.fontWeight){var u="";u="string"!=typeof r.fontSize||-1===r.fontSize.indexOf("px")&&-1===r.fontSize.indexOf("rem")&&-1===r.fontSize.indexOf("em")?isNaN(+r.fontSize)?"12px":r.fontSize+"px":r.fontSize,s=[r.fontStyle,r.fontWeight,u,r.fontFamily||"sans-serif"].join(" ")}return s&&jc(s)||r.textFont||r.font},i}(as),us={left:!0,right:1,center:1},ZO={top:1,bottom:1,middle:1};function KO(o){if(o){o.font=D0.makeFont(o);var i=o.align;"middle"===i&&(i="center"),o.align=null==i||us[i]?i:"left";var r=o.verticalAlign;"center"===r&&(r="middle"),o.verticalAlign=null==r||ZO[r]?r:"top",o.padding&&(o.padding=Nb(o.padding))}}function vM(o,i){return null==o||i<=0||"transparent"===o||"none"===o?null:o.image||o.colorStops?"#000":o}function QO(o){return null==o||"none"===o?null:o.image||o.colorStops?"#000":o}function gM(o,i,r){return"right"===i?o-r[1]:"center"===i?o+r[3]/2-r[1]/2:o+r[3]}function A0(o){var i=o.text;return null!=i&&(i+=""),i}function E0(o){return!!(o.backgroundColor||o.lineHeight||o.borderWidth&&o.borderColor)}var fn=D0,ht=pn(),cs=function(i,r,s,u){if(u){var f=ht(u);f.dataIndex=s,f.dataType=r,f.seriesIndex=i,"group"===u.type&&u.traverse(function(d){var p=ht(d);p.seriesIndex=i,p.dataIndex=s,p.dataType=r})}},wz=1,Sz={},mM=pn(),Yi=["emphasis","blur","select"],Am=["normal","emphasis","blur","select"],_f="highlight",Pm="downplay",Jd="select",Kp="unselect",Qp="toggleSelect";function Om(o){return null!=o&&"none"!==o}var eh=new Td(100);function P0(o){if("string"!=typeof o)return o;var i=eh.get(o);return i||(i=lO(o,-.1),eh.put(o,i)),i}function Im(o,i,r){o.onHoverStateChange&&(o.hoverState||0)!==r&&o.onHoverStateChange(i),o.hoverState=r}function JO(o){Im(o,"emphasis",2)}function O0(o){2===o.hoverState&&Im(o,"normal",0)}function _M(o){Im(o,"blur",1)}function eI(o){1===o.hoverState&&Im(o,"normal",0)}function kz(o){o.selected=!0}function Mz(o){o.selected=!1}function tI(o,i,r){i(o,r)}function Ku(o,i,r){tI(o,i,r),o.isGroup&&o.traverse(function(s){tI(s,i,r)})}function Rm(o,i){switch(i){case"emphasis":o.hoverState=2;break;case"normal":o.hoverState=0;break;case"blur":o.hoverState=1;break;case"select":o.selected=!0}}function I0(o,i){var r=this.states[o];if(this.style){if("emphasis"===o)return function(o,i,r,s){var u=r&&Rt(r,"select")>=0,f=!1;if(o instanceof Nt){var d=mM(o),p=u&&d.selectFill||d.normalFill,v=u&&d.selectStroke||d.normalStroke;if(Om(p)||Om(v)){var g=(s=s||{}).style||{};"inherit"===g.fill?(f=!0,s=Se({},s),(g=Se({},g)).fill=p):!Om(g.fill)&&Om(p)?(f=!0,s=Se({},s),(g=Se({},g)).fill=P0(p)):!Om(g.stroke)&&Om(v)&&(f||(s=Se({},s),g=Se({},g)),g.stroke=P0(v)),s.style=g}}if(s&&null==s.z2){f||(s=Se({},s));var m=o.z2EmphasisLift;s.z2=o.z2+(null!=m?m:10)}return s}(this,0,i,r);if("blur"===o)return function(o,i,r){var s=Rt(o.currentStates,i)>=0,u=o.style.opacity,f=s?null:function(o,i,r,s){for(var u=o.style,f={},d=0;d0){var v={dataIndex:p,seriesIndex:r.seriesIndex};null!=d&&(v.dataType=d),i.push(v)}})}),i}function qn(o,i,r){th(o,!0),Ku(o,yf),xM(o,i,r)}function xM(o,i,r){var s=ht(o);null!=i?(s.focus=i,s.blurScope=r):s.focus&&(s.focus=null)}var oI=["emphasis","blur","select"],sI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ki(o,i,r,s){r=r||"itemStyle";for(var u=0;u0){var S={duration:m.duration,delay:m.delay||0,easing:m.easing,done:f,force:!!f||!!d,setToFinal:!g,scope:o,during:d};p?i.animateFrom(r,S):i.animateTo(r,S)}else i.stopAnimation(),!p&&i.attr(r),d&&d(1),f&&f()}function ln(o,i,r,s,u,f){H0("update",o,i,r,s,u,f)}function mr(o,i,r,s,u,f){H0("init",o,i,r,s,u,f)}function ev(o){if(!o.__zr)return!0;for(var i=0;i-1?"ZH":"EN";function LM(o,i){o=o.toUpperCase(),nu[o]=new Fn(i),RM[o]=i}LM("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),LM("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var ds=36e5,No=24*ds,vI=365*No,zm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tv="{yyyy}-{MM}-{dd}",gI={year:"{yyyy}",month:"{yyyy}-{MM}",day:tv,hour:tv+" "+zm.hour,minute:tv+" "+zm.minute,second:tv+" "+zm.second,millisecond:zm.none},K0=["year","month","day","hour","minute","second","millisecond"],mI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vo(o,i){return"0000".substr(0,i-(o+="").length)+o}function ru(o){switch(o){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return o}}function nv(o){return o===ru(o)}function iu(o,i,r,s){var u=ao(o),f=u[Q0(r)](),d=u[ah(r)]()+1,p=Math.floor((d-1)/4)+1,v=u[rv(r)](),g=u["get"+(r?"UTC":"")+"Day"](),m=u[oh(r)](),y=(m-1)%12+1,b=u[Gm(r)](),w=u[sh(r)](),S=u[$0(r)](),x=(s instanceof Fn?s:function(o){return nu[o]}(s||Z0)||nu.EN).getModel("time"),T=x.get("month"),P=x.get("monthAbbr"),O=x.get("dayOfWeek"),R=x.get("dayOfWeekAbbr");return(i||"").replace(/{yyyy}/g,f+"").replace(/{yy}/g,f%100+"").replace(/{Q}/g,p+"").replace(/{MMMM}/g,T[d-1]).replace(/{MMM}/g,P[d-1]).replace(/{MM}/g,Vo(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,Vo(v,2)).replace(/{d}/g,v+"").replace(/{eeee}/g,O[g]).replace(/{ee}/g,R[g]).replace(/{e}/g,g+"").replace(/{HH}/g,Vo(m,2)).replace(/{H}/g,m+"").replace(/{hh}/g,Vo(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Vo(b,2)).replace(/{m}/g,b+"").replace(/{ss}/g,Vo(w,2)).replace(/{s}/g,w+"").replace(/{SSS}/g,Vo(S,3)).replace(/{S}/g,S+"")}function ih(o,i){var r=ao(o),s=r[ah(i)]()+1,u=r[rv(i)](),f=r[oh(i)](),d=r[Gm(i)](),p=r[sh(i)](),g=0===r[$0(i)](),m=g&&0===p,y=m&&0===d,b=y&&0===f,w=b&&1===u;return w&&1===s?"year":w?"month":b?"day":y?"hour":m?"minute":g?"second":"millisecond"}function _I(o,i,r){var s="number"==typeof o?ao(o):o;switch(i=i||ih(o,r)){case"year":return s[Q0(r)]();case"half-year":return s[ah(r)]()>=6?1:0;case"quarter":return Math.floor((s[ah(r)]()+1)/4);case"month":return s[ah(r)]();case"day":return s[rv(r)]();case"half-day":return s[oh(r)]()/24;case"hour":return s[oh(r)]();case"minute":return s[Gm(r)]();case"second":return s[sh(r)]();case"millisecond":return s[$0(r)]()}}function Q0(o){return o?"getUTCFullYear":"getFullYear"}function ah(o){return o?"getUTCMonth":"getMonth"}function rv(o){return o?"getUTCDate":"getDate"}function oh(o){return o?"getUTCHours":"getHours"}function Gm(o){return o?"getUTCMinutes":"getMinutes"}function sh(o){return o?"getUTCSeconds":"getSeconds"}function $0(o){return o?"getUTCMilliseconds":"getMilliseconds"}function yI(o){return o?"setUTCFullYear":"setFullYear"}function Lz(o){return o?"setUTCMonth":"setMonth"}function BM(o){return o?"setUTCDate":"setDate"}function HM(o){return o?"setUTCHours":"setHours"}function bI(o){return o?"setUTCMinutes":"setMinutes"}function zM(o){return o?"setUTCSeconds":"setSeconds"}function CI(o){return o?"setUTCMilliseconds":"setMilliseconds"}function UM(o){if(!of(o))return yt(o)?o:"-";var i=(o+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")}function Na(o,i){return o=(o||"").toLowerCase().replace(/-(.)/g,function(r,s){return s.toUpperCase()}),i&&o&&(o=o.charAt(0).toUpperCase()+o.slice(1)),o}var lh=Nb,Fz=/([&<>"'])/g,rZ={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bo(o){return null==o?"":(o+"").replace(Fz,function(i,r){return rZ[r]})}function jm(o,i,r){function u(m){return m&&jc(m)?m:"-"}function f(m){return!(null==m||isNaN(m)||!isFinite(m))}var d="time"===i,p=o instanceof Date;if(d||p){var v=d?ao(o):o;if(!isNaN(+v))return iu(v,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",r);if(p)return"-"}if("ordinal"===i)return Gc(o)?u(o):yk(o)&&f(o)?o+"":"-";var g=Fa(o);return f(g)?UM(g):Gc(o)?u(o):"-"}var Nz=["a","b","c","d","e","f","g"],GM=function(i,r){return"{"+i+(null==r?"":r)+"}"};function Wm(o,i,r){we(i)||(i=[i]);var s=i.length;if(!s)return"";for(var u=i[0].$vars||[],f=0;f':'':{renderMode:f,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===u?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}:""}function Vz(o,i,r){("week"===o||"month"===o||"quarter"===o||"half-year"===o||"year"===o)&&(o="MM-dd\nyyyy");var s=ao(i),u=r?"UTC":"",f=s["get"+u+"FullYear"](),d=s["get"+u+"Month"]()+1,p=s["get"+u+"Date"](),v=s["get"+u+"Hours"](),g=s["get"+u+"Minutes"](),m=s["get"+u+"Seconds"](),y=s["get"+u+"Milliseconds"]();return o.replace("MM",Vo(d,2)).replace("M",d).replace("yyyy",f).replace("yy",f%100+"").replace("dd",Vo(p,2)).replace("d",p).replace("hh",Vo(v,2)).replace("h",v).replace("mm",Vo(g,2)).replace("m",g).replace("ss",Vo(m,2)).replace("s",m).replace("SSS",Vo(y,3))}function Bz(o){return o&&o.charAt(0).toUpperCase()+o.substr(1)}function wf(o,i){return i=i||"transparent",yt(o)?o:at(o)&&o.colorStops&&(o.colorStops[0]||{}).color||i}function J0(o,i){if("_blank"===i||"blank"===i){var r=window.open();r.opener=null,r.location.href=o}else window.open(o,i)}var Ym=q,kI=["left","right","top","bottom","width","height"],uh=[["width","left","right"],["height","top","bottom"]];function eC(o,i,r,s,u){var f=0,d=0;null==s&&(s=1/0),null==u&&(u=1/0);var p=0;i.eachChild(function(v,g){var w,S,m=v.getBoundingRect(),y=i.childAt(g+1),b=y&&y.getBoundingRect();if("horizontal"===o){var M=m.width+(b?-b.x+m.x:0);(w=f+M)>s||v.newline?(f=0,w=M,d+=p+r,p=m.height):p=Math.max(p,m.height)}else{var x=m.height+(b?-b.y+m.y:0);(S=d+x)>u||v.newline?(f+=p+r,d=0,S=x,p=m.width):p=Math.max(p,m.width)}v.newline||(v.x=f,v.y=d,v.markRedraw(),"horizontal"===o?f=w+r:d=S+r)})}var Sf=eC;function li(o,i,r){r=lh(r||0);var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u),g=Fe(o.width,s),m=Fe(o.height,u),y=r[2]+r[0],b=r[1]+r[3],w=o.aspect;switch(isNaN(g)&&(g=s-p-b-f),isNaN(m)&&(m=u-v-y-d),null!=w&&(isNaN(g)&&isNaN(m)&&(w>s/u?g=.8*s:m=.8*u),isNaN(g)&&(g=w*m),isNaN(m)&&(m=g/w)),isNaN(f)&&(f=s-p-g-b),isNaN(d)&&(d=u-v-m-y),o.left||o.right){case"center":f=s/2-g/2-r[3];break;case"right":f=s-g-b}switch(o.top||o.bottom){case"middle":case"center":d=u/2-m/2-r[0];break;case"bottom":d=u-m-y}f=f||0,d=d||0,isNaN(g)&&(g=s-b-f-(p||0)),isNaN(m)&&(m=u-y-d-(v||0));var S=new Ft(f+r[3],d+r[0],g,m);return S.margin=r,S}function tC(o,i,r,s,u){var f=!u||!u.hv||u.hv[0],d=!u||!u.hv||u.hv[1],p=u&&u.boundingMode||"all";if(f||d){var v;if("raw"===p)v="group"===o.type?new Ft(0,0,+i.width||0,+i.height||0):o.getBoundingRect();else if(v=o.getBoundingRect(),o.needLocalTransform()){var g=o.getLocalTransform();(v=v.clone()).applyTransform(g)}var m=li(tt({width:v.width,height:v.height},i),r,s),y=f?m.x-v.x:0,b=d?m.y-v.y:0;"raw"===p?(o.x=y,o.y=b):(o.x+=y,o.y+=b),o.markRedraw()}}function iv(o){var i=o.layoutMode||o.constructor.layoutMode;return at(i)?i:i?{type:i}:null}function kf(o,i,r){var s=r&&r.ignoreSize;!we(s)&&(s=[s,s]);var u=d(uh[0],0),f=d(uh[1],1);function d(m,y){var b={},w=0,S={},M=0;if(Ym(m,function(O){S[O]=o[O]}),Ym(m,function(O){p(i,O)&&(b[O]=S[O]=i[O]),v(b,O)&&w++,v(S,O)&&M++}),s[y])return v(i,m[1])?S[m[2]]=null:v(i,m[2])&&(S[m[1]]=null),S;if(2===M||!w)return S;if(w>=2)return b;for(var T=0;T=0;v--)p=Be(p,u[v],!0);s.defaultOption=p}return s.defaultOption},i.prototype.getReferringComponents=function(r,s){var f=r+"Id";return d0(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(f,!0)},s)},i.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},i.protoInitialize=function(){var r=i.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),i}(Fn);h0(ov,Fn),Yu(ov),function(o){var i={};o.registerSubTypeDefaulter=function(r,s){var u=ql(r);i[u.main]=s},o.determineSubType=function(r,s){var u=s.type;if(!u){var f=ql(r).main;o.hasSubTypes(r)&&i[f]&&(u=i[f](s))}return u}}(ov),function(o,i){function s(f,d){return f[d]||(f[d]={predecessor:[],successor:[]}),f[d]}o.topologicalTravel=function(f,d,p,v){if(f.length){var g=function(f){var d={},p=[];return q(f,function(v){var g=s(d,v),y=function(f,d){var p=[];return q(f,function(v){Rt(d,v)>=0&&p.push(v)}),p}(g.originalDeps=function(o){var i=[];return q(ov.getClassesByMainType(o),function(r){i=i.concat(r.dependencies||r.prototype.dependencies||[])}),i=Te(i,function(r){return ql(r).main}),"dataset"!==o&&Rt(i,"dataset")<=0&&i.unshift("dataset"),i}(v),f);g.entryCount=y.length,0===g.entryCount&&p.push(v),q(y,function(b){Rt(g.predecessor,b)<0&&g.predecessor.push(b);var w=s(d,b);Rt(w.successor,b)<0&&w.successor.push(v)})}),{graph:d,noEntryList:p}}(d),m=g.graph,y=g.noEntryList,b={};for(q(f,function(P){b[P]=!0});y.length;){var w=y.pop(),S=m[w],M=!!b[w];M&&(p.call(v,w,S.originalDeps.slice()),delete b[w]),q(S.successor,M?T:x)}q(b,function(){throw new Error("")})}function x(P){m[P].entryCount--,0===m[P].entryCount&&y.push(P)}function T(P){b[P]=!0,x(P)}}}(ov);var qt=ov,nC="";"undefined"!=typeof navigator&&(nC=navigator.platform||"");var sv="rgba(0, 0, 0, 0.2)",YM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nC.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},rC=et(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ho="original",ma="arrayRows",hs="objectRows",ps="keyedColumns",Mf="typedArray",xI="unknown",tl="column",ch="row",qM=pn();function au(o,i,r){var s={},u=XM(i);if(!u||!o)return s;var m,y,f=[],d=[],v=qM(i.ecModel).datasetMap,g=u.uid+"_"+r.seriesLayoutBy;q(o=o.slice(),function(M,x){var T=at(M)?M:o[x]={name:M};"ordinal"===T.type&&null==m&&(m=x,y=S(T)),s[T.name]=[]});var b=v.get(g)||v.set(g,{categoryWayDim:y,valueWayDim:0});function w(M,x,T){for(var P=0;Pi)return o[s];return o[r-1]}(s,d):r;if((m=m||r)&&m.length){var y=m[v];return u&&(g[u]=y),p.paletteIdx=(v+1)%m.length,y}}var oC,Zm,$M,fh="\0_ec_inner",OI=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r,s,u,f,d,p){f=f||{},this.option=null,this._theme=new Fn(f),this._locale=new Fn(d),this._optionManager=p},i.prototype.setOption=function(r,s,u){var f=JM(s);this._optionManager.setOption(r,u,f),this._resetOption(null,f)},i.prototype.resetOption=function(r,s){return this._resetOption(r,JM(s))},i.prototype._resetOption=function(r,s){var u=!1,f=this._optionManager;if(!r||"recreate"===r){var d=f.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(d,s)):$M(this,d),u=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var p=f.getTimelineOption(this);p&&(u=!0,this._mergeOption(p,s))}if(!r||"recreate"===r||"media"===r){var v=f.getMediaOption(this);v.length&&q(v,function(g){u=!0,this._mergeOption(g,s)},this)}return u},i.prototype.mergeOption=function(r){this._mergeOption(r,null)},i.prototype._mergeOption=function(r,s){var u=this.option,f=this._componentsMap,d=this._componentsCount,p=[],v=et(),g=s&&s.replaceMergeMainTypeMap;(function(o){qM(o).datasetMap=et()})(this),q(r,function(y,b){null!=y&&(qt.hasClass(b)?b&&(p.push(b),v.set(b,!0)):u[b]=null==u[b]?rt(y):Be(u[b],y,!0))}),g&&g.each(function(y,b){qt.hasClass(b)&&!v.get(b)&&(p.push(b),v.set(b,!0))}),qt.topologicalTravel(p,qt.getAllClassMainTypes(),function(y){var b=function(o,i,r){var s=iC.get(i);if(!s)return r;var u=s(o);return u?r.concat(u):r}(this,y,jn(r[y])),w=f.get(y),M=Xk(w,b,w?g&&g.get(y)?"replaceMerge":"normalMerge":"replaceAll");(function(o,i,r){q(o,function(s){var u=s.newOption;at(u)&&(s.keyInfo.mainType=i,s.keyInfo.subType=function(o,i,r,s){return i.type?i.type:r?r.subType:s.determineSubType(o,i)}(i,u,s.existing,r))})})(M,y,qt),u[y]=null,f.set(y,null),d.set(y,0);var x=[],T=[],P=0;q(M,function(O,R){var V=O.existing,B=O.newOption;if(B){var j=qt.getClass(y,O.keyInfo.subType,!("series"===y));if(!j)return;if(V&&V.constructor===j)V.name=O.keyInfo.name,V.mergeOption(B,this),V.optionUpdated(B,!1);else{var Q=Se({componentIndex:R},O.keyInfo);Se(V=new j(B,this,this,Q),Q),O.brandNew&&(V.__requireNewView=!0),V.init(B,this,this),V.optionUpdated(null,!0)}}else V&&(V.mergeOption({},this),V.optionUpdated({},!1));V?(x.push(V.option),T.push(V),P++):(x.push(void 0),T.push(void 0))},this),u[y]=x,f.set(y,T),d.set(y,P),"series"===y&&oC(this)},this),this._seriesIndices||oC(this)},i.prototype.getOption=function(){var r=rt(this.option);return q(r,function(s,u){if(qt.hasClass(u)){for(var f=jn(s),d=f.length,p=!1,v=d-1;v>=0;v--)f[v]&&!Yl(f[v])?p=!0:(f[v]=null,!p&&d--);f.length=d,r[u]=f}}),delete r[fh],r},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(r){this._payload=r},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(r,s){var u=this._componentsMap.get(r);if(u){var f=u[s||0];if(f)return f;if(null==s)for(var d=0;d=i:"max"===r?o<=i:o===i})(s[g],f,v)||(u=!1)}}),u}var Jz=function(){function o(i){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=i}return o.prototype.setOption=function(i,r,s){i&&(q(jn(i.series),function(d){d&&d.data&&Oi(d.data)&&Vb(d.data)}),q(jn(i.dataset),function(d){d&&d.source&&Oi(d.source)&&Vb(d.source)})),i=rt(i);var u=this._optionBackup,f=function(o,i,r){var u,f,s=[],d=o.baseOption,p=o.timeline,v=o.options,g=o.media,m=!!o.media,y=!!(v||p||d&&d.timeline);function b(w){q(i,function(S){S(w,r)})}return d?(f=d).timeline||(f.timeline=p):((y||m)&&(o.options=o.media=null),f=o),m&&we(g)&&q(g,function(w){w&&w.option&&(w.query?s.push(w):u||(u=w))}),b(f),q(v,function(w){return b(w)}),q(s,function(w){return b(w.option)}),{baseOption:f,timelineOptions:v||[],mediaDefault:u,mediaList:s}}(i,r,!u);this._newBaseOption=f.baseOption,u?(f.timelineOptions.length&&(u.timelineOptions=f.timelineOptions),f.mediaList.length&&(u.mediaList=f.mediaList),f.mediaDefault&&(u.mediaDefault=f.mediaDefault)):this._optionBackup=f},o.prototype.mountOption=function(i){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(i?r.baseOption:this._newBaseOption)},o.prototype.getTimelineOption=function(i){var r,s=this._timelineOptions;if(s.length){var u=i.getComponent("timeline");u&&(r=rt(s[u.getCurrentIndex()]))}return r},o.prototype.getMediaOption=function(i){var r=this._api.getWidth(),s=this._api.getHeight(),u=this._mediaList,f=this._mediaDefault,d=[],p=[];if(!u.length&&!f)return p;for(var v=0,g=u.length;v=0;M--){var x=o[M];if(p||(w=x.data.rawIndexOf(x.stackedByDimension,b)),w>=0){var T=x.data.getByRawIndex(x.stackResultDimension,w);if(y>=0&&T>0||y<=0&&T<0){y=GH(y,T),S=T;break}}}return s[0]=y,s[1]=S,s})})}var rx=function(i){this.data=i.data||(i.sourceFormat===ps?{}:[]),this.sourceFormat=i.sourceFormat||xI,this.seriesLayoutBy=i.seriesLayoutBy||tl,this.startIndex=i.startIndex||0,this.dimensionsDetectedCount=i.dimensionsDetectedCount,this.metaRawOption=i.metaRawOption;var r=this.dimensionsDefine=i.dimensionsDefine;if(r)for(var s=0;sx&&(x=R)}S[0]=M,S[1]=x}},u=function(){return this._data?this._data.length/this._dimSize:0};function f(d){for(var p=0;p=0&&(M=d.interpolatedValue[x])}return null!=M?M+"":""}):void 0},o.prototype.getRawValue=function(i,r){return zo(this.getData(r),i)},o.prototype.formatTooltip=function(i,r,s){},o}();function yh(o){var i,r;return at(o)?o.type&&(r=o):i=o,{markupText:i,markupFragment:r}}function su(o){return new hv(o)}var hv=function(){function o(i){this._reset=(i=i||{}).reset,this._plan=i.plan,this._count=i.count,this._onDirty=i.onDirty,this._dirty=!0}return o.prototype.perform=function(i){var f,r=this._upstream,s=i&&i.skip;if(this._dirty&&r){var u=this.context;u.data=u.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!s&&(f=this._plan(this.context));var y,d=m(this._modBy),p=this._modDataCount||0,v=m(i&&i.modBy),g=i&&i.modDataCount||0;function m(P){return!(P>=1)&&(P=1),P}(d!==v||p!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(s)),this._modBy=v,this._modDataCount=g;var b=i&&i.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,S=Math.min(null!=b?this._dueIndex+b:1/0,this._dueEnd);if(!s&&(y||w1&&s>0?p:d}};return f;function d(){return i=o?null:vr},gte:function(i,r){return i>=r}},re=function(){function o(i,r){"number"!=typeof r&&Mn(""),this._opFn=ZI[i],this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){return this._opFn("number"==typeof i?i:Fa(i),this._rvalFloat)},o}(),KI=function(){function o(i,r){var s="desc"===i;this._resultLT=s?1:-1,null==r&&(r=s?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return o.prototype.evaluate=function(i,r){var s=typeof i,u=typeof r,f="number"===s?i:Fa(i),d="number"===u?r:Fa(r),p=isNaN(f),v=isNaN(d);if(p&&(f=this._incomparable),v&&(d=this._incomparable),p&&v){var g="string"===s,m="string"===u;g&&(f=m?i:0),m&&(d=g?r:0)}return fd?-this._resultLT:0},o}(),Nn=function(){function o(i,r){this._rval=r,this._isEQ=i,this._rvalTypeof=typeof r,this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){var r=i===this._rval;if(!r){var s=typeof i;s!==this._rvalTypeof&&("number"===s||"number"===this._rvalTypeof)&&(r=Fa(i)===this._rvalFloat)}return this._isEQ?r:!r},o}();function QI(o,i){return"eq"===o||"ne"===o?new Nn("eq"===o,i):Ae(ZI,o)?new re(o,i):null}var h4=function(){function o(){}return o.prototype.getRawData=function(){throw new Error("not supported")},o.prototype.getRawDataItem=function(i){throw new Error("not supported")},o.prototype.cloneRawData=function(){},o.prototype.getDimensionInfo=function(i){},o.prototype.cloneAllDimensionInfo=function(){},o.prototype.count=function(){},o.prototype.retrieveValue=function(i,r){},o.prototype.retrieveValueFromItem=function(i,r){},o.prototype.convertValue=function(i,r){return n_(i,r)},o}();function v4(o){return fC(o.sourceFormat)||Mn(""),o.data}function $I(o){var i=o.sourceFormat,r=o.data;if(fC(i)||Mn(""),i===ma){for(var u=[],f=0,d=r.length;f65535?dZ:hZ}function C4(o){var i=o.constructor;return i===Array?o.slice():new i(o)}function w4(o,i,r,s,u){var f=nR[r||"float"];if(u){var d=o[i],p=d&&d.length;if(p!==s){for(var v=new f(s),g=0;gx[1]&&(x[1]=M)}return this._rawCount=this._count=v,{start:p,end:v}},o.prototype._initDataFromProvider=function(i,r,s){for(var u=this._provider,f=this._chunks,d=this._dimensions,p=d.length,v=this._rawExtent,g=Te(d,function(P){return P.property}),m=0;mT[1]&&(T[1]=x)}}!u.persistent&&u.clean&&u.clean(),this._rawCount=this._count=r,this._extent=[]},o.prototype.count=function(){return this._count},o.prototype.get=function(i,r){if(!(r>=0&&r=0&&r=this._rawCount||i<0)return-1;if(!this._indices)return i;var r=this._indices,s=r[i];if(null!=s&&si))return d;f=d-1}}return-1},o.prototype.indicesOfNearest=function(i,r,s){var f=this._chunks[i],d=[];if(!f)return d;null==s&&(s=1/0);for(var p=1/0,v=-1,g=0,m=0,y=this.count();m=0&&v<0)&&(p=S,v=w,g=0),w===v&&(d[g++]=m))}return d.length=g,d},o.prototype.getIndices=function(){var i,r=this._indices;if(r){var u=this._count;if((s=r.constructor)===Array){i=new s(u);for(var f=0;f=y&&P<=b||isNaN(P))&&(v[g++]=M),M++;S=!0}else if(2===f){x=w[u[0]];var O=w[u[1]],R=i[u[1]][0],V=i[u[1]][1];for(T=0;T=y&&P<=b||isNaN(P))&&(B>=R&&B<=V||isNaN(B))&&(v[g++]=M),M++}S=!0}}if(!S)if(1===f)for(T=0;T=y&&P<=b||isNaN(P))&&(v[g++]=z)}else for(T=0;Ti[Z][1])&&(j=!1)}j&&(v[g++]=r.getRawIndex(T))}return gT[1]&&(T[1]=x)}}},o.prototype.lttbDownSample=function(i,r){var m,y,b,s=this.clone([i],!0),f=s._chunks[i],d=this.count(),p=0,v=Math.floor(1/r),g=this.getRawIndex(0),w=new(Ch(this._rawCount))(Math.ceil(d/v)+2);w[p++]=g;for(var S=1;Sm&&(m=y,b=R)}w[p++]=b,g=b}return w[p++]=this.getRawIndex(d-1),s._count=p,s._indices=w,s.getRawIndex=this._getRawIdx,s},o.prototype.downSample=function(i,r,s,u){for(var f=this.clone([i],!0),d=f._chunks,p=[],v=Math.floor(1/r),g=d[i],m=this.count(),y=f._rawExtent[i]=[1/0,-1/0],b=new(Ch(this._rawCount))(Math.ceil(m/v)),w=0,S=0;Sm-S&&(p.length=v=m-S);for(var M=0;My[1]&&(y[1]=T),b[w++]=P}return f._count=w,f._indices=b,f._updateGetRawIdx(),f},o.prototype.each=function(i,r){if(this._count)for(var s=i.length,u=this._chunks,f=0,d=this.count();fv&&(v=y)}return this._extent[i]=d=[p,v],d},o.prototype.getRawDataItem=function(i){var r=this.getRawIndex(i);if(this._provider.persistent)return this._provider.getItem(r);for(var s=[],u=this._chunks,f=0;f=0?this._indices[i]:-1},o.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},o.internalField=function(){function i(r,s,u,f){return n_(r[f],this._dimensions[f])}sx={arrayRows:i,objectRows:function(s,u,f,d){return n_(s[u],this._dimensions[d])},keyedColumns:i,original:function(s,u,f,d){var p=s&&(null==s.value?s:s.value);return n_(p instanceof Array?p[d]:p,this._dimensions[d])},typedArray:function(s,u,f,d){return s[d]}}}(),o}(),iR=function(){function o(i){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=i}return o.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},o.prototype._setLocalSource=function(i,r){this._sourceList=i,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},o.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},o.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},o.prototype._createSource=function(){this._setLocalSource([],[]);var u,f,i=this._sourceHost,r=this._getUpstreamSourceManagers(),s=!!r.length;if(ux(i)){var d=i,p=void 0,v=void 0,g=void 0;if(s){var m=r[0];m.prepareSource(),p=(g=m.getSource()).data,v=g.sourceFormat,f=[m._getVersionSign()]}else v=Oi(p=d.get("data",!0))?Mf:Ho,f=[];var y=this._getSourceMetaRawOption()||{},b=g&&g.metaRawOption||{},w=ot(y.seriesLayoutBy,b.seriesLayoutBy)||null,S=ot(y.sourceHeader,b.sourceHeader)||null,M=ot(y.dimensions,b.dimensions);u=w!==b.seriesLayoutBy||!!S!=!!b.sourceHeader||M?[lC(p,{seriesLayoutBy:w,sourceHeader:S,dimensions:M},v)]:[]}else{var T=i;if(s){var P=this._applyTransform(r);u=P.sourceList,f=P.upstreamSignList}else u=[lC(T.get("source",!0),this._getSourceMetaRawOption(),null)],f=[]}this._setLocalSource(u,f)},o.prototype._applyTransform=function(i){var r=this._sourceHost,s=r.get("transform",!0),u=r.get("fromTransformResult",!0);null!=u&&1!==i.length&&aR("");var d,p=[],v=[];return q(i,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&aR(""),p.push(m),v.push(g._getVersionSign())}),s?d=function(o,i,r){var s=jn(o),u=s.length;u||Mn("");for(var d=0,p=u;d1||r>0&&!i.noHeader,u=0;q(i.blocks,function(f){hC(f).planLayout(f);var d=f.__gapLevelBetweenSubBlocks;d>=u&&(u=d+(!s||d&&("section"!==f.type||f.noHeader)?0:1))}),i.__gapLevelBetweenSubBlocks=u},build:function(i,r,s,u){var f=r.noHeader,d=fR(r),p=function(o,i,r,s){var u=[],f=i.blocks||[];Oa(!f||we(f)),f=f||[];var d=o.orderMode;if(i.sortBlocks&&d){f=f.slice();var p={valueAsc:"asc",valueDesc:"desc"};if(Ae(p,d)){var v=new KI(p[d],null);f.sort(function(m,y){return v.evaluate(m.sortParam,y.sortParam)})}else"seriesDesc"===d&&f.reverse()}var g=fR(i);if(q(f,function(m,y){var b=hC(m).build(o,m,y>0?g.html:0,s);null!=b&&u.push(b)}),u.length)return"richText"===o.renderMode?u.join(g.richText):cx(u.join(""),r)}(i,r,f?s:d.html,u);if(f)return p;var v=jm(r.header,"ordinal",i.useUTC),g=oR(u,i.renderMode).nameStyle;return"richText"===i.renderMode?fx(i,v,g)+d.richText+p:cx('
'+Bo(v)+"
"+p,s)}},nameValue:{planLayout:function(i){i.__gapLevelBetweenSubBlocks=0},build:function(i,r,s,u){var f=i.renderMode,d=r.noName,p=r.noValue,v=!r.markerType,g=r.name,m=r.value,y=i.useUTC;if(!d||!p){var b=v?"":i.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",f),w=d?"":jm(g,"ordinal",y),S=r.valueType,M=p?[]:we(m)?Te(m,function(V,B){return jm(V,we(S)?S[B]:S,y)}):[jm(m,we(S)?S[0]:S,y)],x=!v||!d,T=!v&&d,P=oR(u,f),O=P.nameStyle,R=P.valueStyle;return"richText"===f?(v?"":b)+(d?"":fx(i,w,O))+(p?"":function(o,i,r,s,u){var f=[u];return r&&f.push({padding:[0,0,0,s?10:20],align:"right"}),o.markupStyleCreator.wrapRichTextStyle(i.join(" "),f)}(i,M,x,T,R)):cx((v?"":b)+(d?"":function(o,i,r){return''+Bo(o)+""}(w,!v,O))+(p?"":function(o,i,r,s){return''+Te(o,function(d){return Bo(d)}).join("  ")+""}(M,x,T,R)),s)}}}};function cR(o,i,r,s,u,f){if(o){var d=hC(o);return d.planLayout(o),d.build({useUTC:u,renderMode:r,orderMode:s,markupStyleCreator:i},o,0,f)}}function fR(o){var i=o.__gapLevelBetweenSubBlocks;return{html:sR[i],richText:S4[i]}}function cx(o,i){return'
'+o+'
'}function fx(o,i,r){return o.markupStyleCreator.wrapRichTextStyle(i,r)}function dx(o,i){return wf(o.getData().getItemVisual(i,"style")[o.visualDrawType])}function hx(o,i){var r=o.get("padding");return null!=r?r:"richText"===i?[8,10]:10}var r_=function(){function o(){this.richTextStyles={},this._nextStyleNameId=Gp()}return o.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},o.prototype.makeTooltipMarker=function(i,r,s){var u="richText"===s?this._generateStyleName():null,f=SI({color:r,type:i,renderMode:s,markerId:u});return yt(f)?f:(this.richTextStyles[u]=f.style,f.content)},o.prototype.wrapRichTextStyle=function(i,r){var s={};we(r)?q(r,function(f){return Se(s,f)}):Se(s,r);var u=this._generateStyleName();return this.richTextStyles[u]=s,"{"+u+"|"+i+"}"},o}();function x4(o){var m,y,b,w,i=o.series,r=o.dataIndex,s=o.multipleSeries,u=i.getData(),f=u.mapDimensionsAll("defaultedTooltip"),d=f.length,p=i.getRawValue(r),v=we(p),g=dx(i,r);if(d>1||v&&!d){var S=function(o,i,r,s,u){var f=i.getData(),d=Hu(o,function(y,b,w){var S=f.getDimensionInfo(w);return y||S&&!1!==S.tooltip&&null!=S.displayName},!1),p=[],v=[],g=[];function m(y,b){var w=f.getDimensionInfo(b);!w||!1===w.otherDims.tooltip||(d?g.push(pi("nameValue",{markerType:"subItem",markerColor:u,name:w.displayName,value:y,valueType:w.type})):(p.push(y),v.push(w.type)))}return s.length?q(s,function(y){m(zo(f,r,y),y)}):q(o,m),{inlineValues:p,inlineValueTypes:v,blocks:g}}(p,i,r,f,g);m=S.inlineValues,y=S.inlineValueTypes,b=S.blocks,w=S.inlineValues[0]}else if(d){var M=u.getDimensionInfo(f[0]);w=m=zo(u,r,f[0]),y=M.type}else w=m=v?p[0]:p;var x=ii(i),T=x&&i.name||"",P=u.getName(r),O=s?T:P;return pi("section",{header:T,noHeader:s||!x,sortParam:w,blocks:[pi("nameValue",{markerType:"item",markerColor:g,name:O,noName:!jc(O),value:m,valueType:y})].concat(b||[])})}var Sh=pn();function px(o,i){return o.getName(i)||o.getId(i)}var N="__universalTransitionEnabled",pC=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return he(i,o),i.prototype.init=function(r,s,u){this.seriesIndex=this.componentIndex,this.dataTask=su({count:T4,reset:A}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,u),(Sh(this).sourceManager=new iR(this)).prepareSource();var d=this.getInitialData(r,u);me(d,this),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,U(this),this._initSelectedMapFromData(d)},i.prototype.mergeDefaultAndTheme=function(r,s){var u=iv(this),f=u?av(r):{},d=this.subType;qt.hasClass(d)&&(d+="Series"),Be(r,s.getTheme().get(this.subType)),Be(r,this.getDefaultOption()),Nd(r,"label",["show"]),this.fillDataTextStyle(r.data),u&&kf(r,f,u)},i.prototype.mergeOption=function(r,s){r=Be(this.option,r,!0),this.fillDataTextStyle(r.data);var u=iv(this);u&&kf(this.option,r,u);var f=Sh(this).sourceManager;f.dirty(),f.prepareSource();var d=this.getInitialData(r,s);me(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,U(this),this._initSelectedMapFromData(d)},i.prototype.fillDataTextStyle=function(r){if(r&&!Oi(r))for(var s=["show"],u=0;uthis.getShallow("animationThreshold")&&(r=!1),!!r},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(r,s,u){var f=this.ecModel,d=aC.prototype.getColorFromPalette.call(this,r,s,u);return d||(d=f.getColorFromPalette(r,s,u)),d},i.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(r,s){this._innerSelect(this.getData(s),r)},i.prototype.unselect=function(r,s){var u=this.option.selectedMap;if(u)for(var f=this.getData(s),d=0;d=0&&u.push(d)}return u},i.prototype.isSelected=function(r,s){var u=this.option.selectedMap;return u&&u[px(this.getData(s),r)]||!1},i.prototype.isUniversalTransitionEnabled=function(){if(this[N])return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},i.prototype._innerSelect=function(r,s){var u,f,d=this.option.selectedMode,p=s.length;if(d&&p)if("multiple"===d)for(var v=this.option.selectedMap||(this.option.selectedMap={}),g=0;g0&&this._innerSelect(r,s)}},i.registerClass=function(r){return qt.registerClass(r)},i.protoInitialize=function(){var r=i.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),i}(qt);function U(o){var i=o.name;ii(o)||(o.name=function(o){var i=o.getRawData(),r=i.mapDimensionsAll("seriesName"),s=[];return q(r,function(u){var f=i.getDimensionInfo(u);f.displayName&&s.push(f.displayName)}),s.join(" ")}(o)||i)}function T4(o){return o.model.getRawData().count()}function A(o){var i=o.model;return i.setData(i.getRawData().cloneShallow()),E}function E(o,i){i.outputData&&o.end>i.outputData.count()&&i.model.getRawData().cloneShallow(i.outputData)}function me(o,i){q(Bb(o.CHANGABLE_METHODS,o.DOWNSAMPLE_METHODS),function(r){o.wrapMethod(r,St(mZ,i))})}function mZ(o,i){var r=gx(o);return r&&r.setOutputEnd((i||this).count()),i}function gx(o){var i=(o.ecModel||{}).scheduler,r=i&&i.getPipeline(o.uid);if(r){var s=r.currentTask;if(s){var u=s.agentStubMap;u&&(s=u.get(o.uid))}return s}}qr(pC,Ke),qr(pC,aC),h0(pC,qt);var vt=pC,xn=function(){function o(){this.group=new ct,this.uid=Bm("viewComponent")}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){},o.prototype.updateLayout=function(i,r,s,u){},o.prototype.updateVisual=function(i,r,s,u){},o.prototype.blurSeries=function(i,r){},o}();Zk(xn),Yu(xn);var un=xn;function De(){var o=pn();return function(i){var r=o(i),s=i.pipelineContext,u=!!r.large,f=!!r.progressiveRender,d=r.large=!(!s||!s.large),p=r.progressiveRender=!(!s||!s.progressiveRender);return(u!==d||f!==p)&&"reset"}}var vv=pn(),dR=De(),gv=function(){function o(){this.group=new ct,this.uid=Bm("viewChart"),this.renderTask=su({plan:D4,reset:hR}),this.renderTask.context={view:this}}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.highlight=function(i,r,s,u){mv(i.getData(),u,"emphasis")},o.prototype.downplay=function(i,r,s,u){mv(i.getData(),u,"normal")},o.prototype.remove=function(i,r){this.group.removeAll()},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateLayout=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateVisual=function(i,r,s,u){this.render(i,r,s,u)},o.markUpdateMethod=function(i,r){vv(i).updateMethod=r},o.protoInitialize=void(o.prototype.type="chart"),o}();function ne(o,i,r){o&&("emphasis"===i?Js:eu)(o,r)}function mv(o,i,r){var s=va(o,i),u=i&&null!=i.highlightKey?function(o){var i=Sz[o];return null==i&&wz<=32&&(i=Sz[o]=wz++),i}(i.highlightKey):null;null!=s?q(jn(s),function(f){ne(o.getItemGraphicEl(f),r,u)}):o.eachItemGraphicEl(function(f){ne(f,r,u)})}function D4(o){return dR(o.model)}function hR(o){var i=o.model,r=o.ecModel,s=o.api,u=o.payload,f=i.pipelineContext.progressiveRender,d=o.view,p=u&&vv(u).updateMethod,v=f?"incrementalPrepareRender":p&&d[p]?p:"render";return"render"!==v&&d[v](i,r,s,u),pR[v]}Zk(gv),Yu(gv);var pR={incrementalPrepareRender:{progress:function(i,r){r.view.incrementalRender(i,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(i,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}},Vn=gv,J="\0__throttleOriginMethod",vR="\0__throttleRate",nr="\0__throttleType";function Wt(o,i,r){var s,p,v,g,m,u=0,f=0,d=null;function y(){f=(new Date).getTime(),d=null,o.apply(v,g||[])}i=i||0;var b=function(){for(var S=[],M=0;M=0?y():d=setTimeout(y,-p),u=s};return b.clear=function(){d&&(clearTimeout(d),d=null)},b.debounceNextCall=function(w){m=w},b}function il(o,i,r,s){var u=o[i];if(u){var f=u[J]||u;if(u[vR]!==r||u[nr]!==s){if(null==r||!s)return o[i]=f;(u=o[i]=Wt(f,r,"debounce"===s))[J]=f,u[nr]=s,u[vR]=r}return u}}var _x=pn(),yx={itemStyle:Hd(uI,!0),lineStyle:Hd(q0,!0)},gR={lineStyle:"stroke",itemStyle:"fill"};function bx(o,i){return o.visualStyleMapper||yx[i]||(console.warn("Unkown style type '"+i+"'."),yx.itemStyle)}function Cx(o,i){return o.visualDrawType||gR[i]||(console.warn("Unkown style type '"+i+"'."),"fill")}var mR={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=i.getModel(u),p=bx(i,u)(f),v=f.getShallow("decal");v&&(s.setVisual("decal",v),v.dirty=!0);var g=Cx(i,u),m=p[g],y=An(m)?m:null;if(!p[g]||y||"auto"===p.fill||"auto"===p.stroke){var w=i.getColorFromPalette(i.name,null,r.getSeriesCount());p[g]||(p[g]=w,s.setVisual("colorFromPalette",!0)),p.fill="auto"===p.fill||"function"==typeof p.fill?w:p.fill,p.stroke="auto"===p.stroke||"function"==typeof p.stroke?w:p.stroke}if(s.setVisual("style",p),s.setVisual("drawType",g),!r.isSeriesFiltered(i)&&y)return s.setVisual("colorFromPalette",!1),{dataEach:function(M,x){var T=i.getDataParams(x),P=Se({},p);P[g]=y(T),M.setItemVisual(x,"style",P)}}}},_v=new Fn,_R={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(!i.ignoreStyleOnData&&!r.isSeriesFiltered(i)){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=bx(i,u),d=s.getVisual("drawType");return{dataEach:s.hasItemOption?function(p,v){var g=p.getRawDataItem(v);if(g&&g[u]){_v.option=g[u];var m=f(_v);Se(p.ensureUniqueItemVisual(v,"style"),m),_v.option.decal&&(p.setItemVisual(v,"decal",_v.option.decal),_v.option.decal.dirty=!0),d in m&&p.setItemVisual(v,"colorFromPalette",!1)}}:null}}}},_Z={performRawSeries:!0,overallReset:function(i){var r=et();i.eachSeries(function(s){var u=s.getColorBy();if(!s.isColorBySeries()){var f=s.type+"-"+u,d=r.get(f);d||r.set(f,d={}),_x(s).scope=d}}),i.eachSeries(function(s){if(!s.isColorBySeries()&&!i.isSeriesFiltered(s)){var u=s.getRawData(),f={},d=s.getData(),p=_x(s).scope,g=Cx(s,s.visualStyleAccessPath||"itemStyle");d.each(function(m){var y=d.getRawIndex(m);f[y]=m}),u.each(function(m){var y=f[m];if(d.getItemVisual(y,"colorFromPalette")){var w=d.ensureUniqueItemVisual(y,"style"),S=u.getName(m)||m+"",M=u.count();w[g]=s.getColorFromPalette(S,p,M)}})}})}},A4=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},yR=function(o){function i(r){return o.call(this,r)||this}return Rn(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new A4},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r,0),p=s.startAngle,v=s.endAngle,g=s.clockwise,m=Math.cos(p),y=Math.sin(p);r.moveTo(m*d+u,y*d+f),r.arc(u,f,d,p,v,!g)},i}(Nt);yR.prototype.type="arc";var i_=yR,vC=Math.PI,bR=function(){function o(i,r,s,u){this._stageTaskMap=et(),this.ecInstance=i,this.api=r,s=this._dataProcessorHandlers=s.slice(),u=this._visualHandlers=u.slice(),this._allHandlers=s.concat(u)}return o.prototype.restoreData=function(i,r){i.restoreData(r),this._stageTaskMap.each(function(s){var u=s.overallTask;u&&u.dirty()})},o.prototype.getPerformArgs=function(i,r){if(i.__pipeline){var s=this._pipelineMap.get(i.__pipeline.id),u=s.context,d=!r&&s.progressiveEnabled&&(!u||u.progressiveRender)&&i.__idxInPipeline>s.blockIndex?s.step:null,p=u&&u.modDataCount;return{step:d,modBy:null!=p?Math.ceil(p/d):null,modDataCount:p}}},o.prototype.getPipeline=function(i){return this._pipelineMap.get(i)},o.prototype.updateStreamModes=function(i,r){var s=this._pipelineMap.get(i.uid),f=i.getData().count(),d=s.progressiveEnabled&&r.incrementalPrepareRender&&f>=s.threshold,p=i.get("large")&&f>=i.get("largeThreshold"),v="mod"===i.get("progressiveChunkMode")?f:null;i.pipelineContext=s.context={progressiveRender:d,modDataCount:v,large:p}},o.prototype.restorePipelines=function(i){var r=this,s=r._pipelineMap=et();i.eachSeries(function(u){var f=u.getProgressive(),d=u.uid;s.set(d,{id:d,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),r._pipe(u,u.dataTask)})},o.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,r=this.api.getModel(),s=this.api;q(this._allHandlers,function(u){var f=i.get(u.uid)||i.set(u.uid,{});Oa(!(u.reset&&u.overallReset),""),u.reset&&this._createSeriesStageTask(u,f,r,s),u.overallReset&&this._createOverallStageTask(u,f,r,s)},this)},o.prototype.prepareView=function(i,r,s,u){var f=i.renderTask,d=f.context;d.model=r,d.ecModel=s,d.api=u,f.__block=!i.incrementalPrepareRender,this._pipe(r,f)},o.prototype.performDataProcessorTasks=function(i,r){this._performStageTasks(this._dataProcessorHandlers,i,r,{block:!0})},o.prototype.performVisualTasks=function(i,r,s){this._performStageTasks(this._visualHandlers,i,r,s)},o.prototype._performStageTasks=function(i,r,s,u){u=u||{};var f=!1,d=this;function p(v,g){return v.setDirty&&(!v.dirtyMap||v.dirtyMap.get(g.__pipeline.id))}q(i,function(v,g){if(!u.visualType||u.visualType===v.visualType){var m=d._stageTaskMap.get(v.uid),y=m.seriesTaskMap,b=m.overallTask;if(b){var w,S=b.agentStubMap;S.each(function(x){p(u,x)&&(x.dirty(),w=!0)}),w&&b.dirty(),d.updatePayload(b,s);var M=d.getPerformArgs(b,u.block);S.each(function(x){x.perform(M)}),b.perform(M)&&(f=!0)}else y&&y.each(function(x,T){p(u,x)&&x.dirty();var P=d.getPerformArgs(x,u.block);P.skip=!v.performRawSeries&&r.isSeriesFiltered(x.context.model),d.updatePayload(x,s),x.perform(P)&&(f=!0)})}}),this.unfinished=f||this.unfinished},o.prototype.performSeriesTasks=function(i){var r;i.eachSeries(function(s){r=s.dataTask.perform()||r}),this.unfinished=r||this.unfinished},o.prototype.plan=function(){this._pipelineMap.each(function(i){var r=i.tail;do{if(r.__block){i.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},o.prototype.updatePayload=function(i,r){"remain"!==r&&(i.context.payload=r)},o.prototype._createSeriesStageTask=function(i,r,s,u){var f=this,d=r.seriesTaskMap,p=r.seriesTaskMap=et(),v=i.seriesType,g=i.getTargetSeries;function m(y){var b=y.uid,w=p.set(b,d&&d.get(b)||su({plan:wR,reset:SR,count:I4}));w.context={model:y,ecModel:s,api:u,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:f},f._pipe(y,w)}i.createOnAllSeries?s.eachRawSeries(m):v?s.eachRawSeriesByType(v,m):g&&g(s,u).each(m)},o.prototype._createOverallStageTask=function(i,r,s,u){var f=this,d=r.overallTask=r.overallTask||su({reset:E4});d.context={ecModel:s,api:u,overallReset:i.overallReset,scheduler:f};var p=d.agentStubMap,v=d.agentStubMap=et(),g=i.seriesType,m=i.getTargetSeries,y=!0,b=!1;function S(M){var x=M.uid,T=v.set(x,p&&p.get(x)||(b=!0,su({reset:P4,onDirty:O4})));T.context={model:M,overallProgress:y},T.agent=d,T.__block=y,f._pipe(M,T)}Oa(!i.createOnAllSeries,""),g?s.eachRawSeriesByType(g,S):m?m(s,u).each(S):(y=!1,q(s.getSeries(),S)),b&&d.dirty()},o.prototype._pipe=function(i,r){var u=this._pipelineMap.get(i.uid);!u.head&&(u.head=r),u.tail&&u.tail.pipe(r),u.tail=r,r.__idxInPipeline=u.count++,r.__pipeline=u},o.wrapStageHandler=function(i,r){return An(i)&&(i={overallReset:i,seriesType:MR(i)}),i.uid=Bm("stageHandler"),r&&(i.visualType=r),i},o}();function E4(o){o.overallReset(o.ecModel,o.api,o.payload)}function P4(o){return o.overallProgress&&CR}function CR(){this.agent.dirty(),this.getDownstream().dirty()}function O4(){this.agent&&this.agent.dirty()}function wR(o){return o.plan?o.plan(o.model,o.ecModel,o.api,o.payload):null}function SR(o){o.useClearVisual&&o.data.clearAllVisual();var i=o.resetDefines=jn(o.reset(o.model,o.ecModel,o.api,o.payload));return i.length>1?Te(i,function(r,s){return kR(s)}):yv}var yv=kR(0);function kR(o){return function(i,r){var s=r.data,u=r.resetDefines[o];if(u&&u.dataEach)for(var f=i.start;f0&&w===g.length-b.length){var S=g.slice(0,w);"data"!==S&&(r.mainType=S,r[b.toLowerCase()]=v,m=!0)}}p.hasOwnProperty(g)&&(s[g]=v,m=!0),m||(u[g]=v)})}return{cptQuery:r,dataQuery:s,otherQuery:u}},o.prototype.filter=function(i,r){var s=this.eventInfo;if(!s)return!0;var u=s.targetEl,f=s.packedEvent,d=s.model,p=s.view;if(!d||!p)return!0;var v=r.cptQuery,g=r.dataQuery;return m(v,d,"mainType")&&m(v,d,"subType")&&m(v,d,"index","componentIndex")&&m(v,d,"name")&&m(v,d,"id")&&m(g,f,"name")&&m(g,f,"dataIndex")&&m(g,f,"dataType")&&(!p.filterForExposedEvent||p.filterForExposedEvent(i,r.otherQuery,u,f));function m(y,b,w,S){return null==y[w]||b[S||w]===y[w]}},o.prototype.afterTrigger=function(){this.eventInfo=null},o}(),F4={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData();if(i.legendIcon&&s.setVisual("legendIcon",i.legendIcon),i.hasSymbolVisual){var u=i.get("symbol"),f=i.get("symbolSize"),d=i.get("symbolKeepAspect"),p=i.get("symbolRotate"),v=i.get("symbolOffset"),g=An(u),m=An(f),y=An(p),b=An(v),w=g||m||y||b,S=!g&&u?u:i.defaultSymbol;if(s.setVisual({legendIcon:i.legendIcon||S,symbol:S,symbolSize:m?null:f,symbolKeepAspect:d,symbolRotate:y?null:p,symbolOffset:b?null:v}),!r.isSeriesFiltered(i))return{dataEach:w?function(O,R){var V=i.getRawValue(R),B=i.getDataParams(R);g&&O.setItemVisual(R,"symbol",u(V,B)),m&&O.setItemVisual(R,"symbolSize",f(V,B)),y&&O.setItemVisual(R,"symbolRotate",p(V,B)),b&&O.setItemVisual(R,"symbolOffset",v(V,B))}:null}}}};function xx(o,i,r){switch(r){case"color":return o.getItemVisual(i,"style")[o.getVisual("drawType")];case"opacity":return o.getItemVisual(i,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getItemVisual(i,r)}}function kh(o,i){switch(i){case"color":return o.getVisual("style")[o.getVisual("drawType")];case"opacity":return o.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getVisual(i)}}function bv(o,i,r,s){switch(r){case"color":o.ensureUniqueItemVisual(i,"style")[o.getVisual("drawType")]=s,o.setItemVisual(i,"colorFromPalette",!1);break;case"opacity":o.ensureUniqueItemVisual(i,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":o.setItemVisual(i,r,s)}}function TR(o,i){function r(s,u){var f=[];return s.eachComponent({mainType:"series",subType:o,query:u},function(d){f.push(d.seriesIndex)}),f}q([[o+"ToggleSelect","toggleSelect"],[o+"Select","select"],[o+"UnSelect","unselect"]],function(s){i(s[0],function(u,f,d){u=Se({},u),d.dispatchAction(Se(u,{type:s[1],seriesIndex:r(f,u)}))})})}function Mh(o,i,r,s,u){var f=o+i;r.isSilent(f)||s.eachComponent({mainType:"series",subType:"pie"},function(d){for(var p=d.seriesIndex,v=u.selected,g=0;g1&&(d*=mC(S),p*=mC(S));var M=(u===f?-1:1)*mC((d*d*(p*p)-d*d*(w*w)-p*p*(b*b))/(d*d*(w*w)+p*p*(b*b)))||0,x=M*d*w/p,T=M*-p*b/d,P=(o+r)/2+s_(y)*x-o_(y)*T,O=(i+s)/2+o_(y)*x+s_(y)*T,R=Ex([1,0],[(b-x)/d,(w-T)/p]),V=[(b-x)/d,(w-T)/p],B=[(-1*b-x)/d,(-1*w-T)/p],z=Ex(V,B);if(_C(V,B)<=-1&&(z=wv),_C(V,B)>=1&&(z=0),z<0){var j=Math.round(z/wv*1e6)/1e6;z=2*wv+j%2*wv}m.addData(g,P,O,d,p,R,z,y,f)}var H4=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,z4=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ER=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Rn(i,o),i.prototype.applyTransform=function(r){},i}(Nt);function PR(o){return null!=o.setData}function OR(o,i){var r=function(o){var i=new $s;if(!o)return i;var d,r=0,s=0,u=r,f=s,p=$s.CMD,v=o.match(H4);if(!v)return i;for(var g=0;gle*le+oe*oe&&(j=Z,X=Q),{cx:j,cy:X,x01:-m,y01:-y,x11:j*(u/V-1),y11:X*(u/V-1)}}var kv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},X4=function(o){function i(r){return o.call(this,r)||this}return Rn(i,o),i.prototype.getDefaultShape=function(){return new kv},i.prototype.buildPath=function(r,s){!function(o,i){var r=bC(i.r,0),s=bC(i.r0||0,0),u=r>0;if(u||s>0){if(u||(r=s,s=0),s>r){var d=r;r=s,s=d}var m,p=!!i.clockwise,v=i.startAngle,g=i.endAngle;if(v===g)m=0;else{var y=[v,g];Mm(y,!p),m=Ix(y[0]-y[1])}var b=i.cx,w=i.cy,S=i.cornerRadius||0,M=i.innerCornerRadius||0;if(r>Ba)if(m>FR-Ba)o.moveTo(b+r*Th(v),w+r*Ef(v)),o.arc(b,w,r,v,g,!p),s>Ba&&(o.moveTo(b+s*Th(g),w+s*Ef(g)),o.arc(b,w,s,g,v,p));else{var x=Ix(r-s)/2,T=Xi(x,S),P=Xi(x,M),O=P,R=T,V=r*Th(v),B=r*Ef(v),z=s*Th(g),j=s*Ef(g),X=void 0,Z=void 0,Q=void 0,te=void 0;if((T>Ba||P>Ba)&&(X=r*Th(g),Z=r*Ef(g),Q=s*Th(v),te=s*Ef(v),mBa)if(R>Ba){var Me=CC(Q,te,V,B,r,R,p),He=CC(X,Z,z,j,r,R,p);o.moveTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),RBa&&m>Ba?O>Ba?(Me=CC(z,j,X,Z,s,-O,p),He=CC(V,B,Q,te,s,-O,p),o.lineTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),O=2){if(s&&"spline"!==s){var f=function(o,i,r,s){var v,g,m,y,u=[],f=[],d=[],p=[];if(s){m=[1/0,1/0],y=[-1/0,-1/0];for(var b=0,w=o.length;br-2?r-1:v+1],w=o[v>r-3?r-1:v+2]);var S=g*g,M=g*S;s.push([Z4(m[0],y[0],b[0],w[0],g,S,M),Z4(m[1],y[1],b[1],w[1],g,S,M)])}return s}(u,r)),o.moveTo(u[0][0],u[0][1]),p=1;for(var y=u.length;pOf[1]){if(p=!1,f)return p;var m=Math.abs(Of[0]-Pf[1]),y=Math.abs(Pf[0]-Of[1]);Math.min(m,y)>u.len()&&Tt.scale(u,g,mMath.abs(f[1])?f[0]>0?"right":"left":f[1]>0?"bottom":"top"}function WR(o){return!o.isGroup}function Dv(o,i,r){if(o&&i){var p,f=(p={},o.traverse(function(v){WR(v)&&v.anid&&(p[v.anid]=v)}),p);i.traverse(function(d){if(WR(d)&&d.anid){var p=f[d.anid];if(p){var v=u(d);d.attr(u(p)),ln(d,v,r,ht(d).dataIndex)}}})}function u(d){var p={x:d.x,y:d.y,rotation:d.rotation};return function(o){return null!=o.shape}(d)&&(p.shape=Se({},d.shape)),p}}function Gx(o,i){return Te(o,function(r){var s=r[0];s=h_(s,i.x),s=p_(s,i.x+i.width);var u=r[1];return u=h_(u,i.y),[s,u=p_(u,i.y+i.height)]})}function YR(o,i){var r=h_(o.x,i.x),s=p_(o.x+o.width,i.x+i.width),u=h_(o.y,i.y),f=p_(o.y+o.height,i.y+i.height);if(s>=r&&f>=u)return{x:r,y:u,width:s-r,height:f-u}}function cl(o,i,r){var s=Se({rectHover:!0},i),u=s.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},o)return 0===o.indexOf("image://")?(u.image=o.slice(8),tt(u,r),new si(s)):DC(o.replace("path://",""),s,r,"center")}function v_(o,i,r,s,u){for(var f=0,d=u[u.length-1];f=-1e-6}(b))return!1;var w=o-u,S=i-f,M=Wx(w,S,v,g)/b;if(M<0||M>1)return!1;var x=Wx(w,S,m,y)/b;return!(x<0||x>1)}function Wx(o,i,r,s){return o*s-r*i}function Av(o){var i=o.itemTooltipOption,r=o.componentModel,s=o.itemName,u=yt(i)?{formatter:i}:i,f=r.mainType,d=r.componentIndex,p={componentType:f,name:s,$vars:["name"]};p[f+"Index"]=d;var v=o.formatterParamsExtra;v&&q(_n(v),function(m){Ae(p,m)||(p[m]=v[m],p.$vars.push(m))});var g=ht(o.el);g.componentMainType=f,g.componentIndex=d,g.tooltipConfig={name:s,option:tt({content:s,formatterParams:p},u)}}ll("circle",sl),ll("ellipse",yC),ll("sector",rr),ll("ring",Mv),ll("polygon",ya),ll("polyline",_r),ll("rect",sn),ll("line",Ti),ll("bezierCurve",c_),ll("arc",i_);var XR=Nt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u+d),i.lineTo(s-f,u+d),i.closePath()}}),a8=Nt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u),i.lineTo(s,u+d),i.lineTo(s-f,u),i.closePath()}}),Yx=Nt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.x,u=r.y,f=r.width/5*3,d=Math.max(f,r.height),p=f/2,v=p*p/(d-p),g=u-d+p+v,m=Math.asin(v/p),y=Math.cos(m)*p,b=Math.sin(m),w=Math.cos(m),S=.6*p,M=.7*p;i.moveTo(s-y,g+v),i.arc(s,g,p,Math.PI-m,2*Math.PI+m),i.bezierCurveTo(s+y-b*S,g+v+w*S,s,u-M,s,u),i.bezierCurveTo(s,u-M,s-y+b*S,g+v+w*S,s-y,g+v),i.closePath()}}),o8=Nt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.height,f=r.x,d=r.y,p=r.width/3*2;i.moveTo(f,d),i.lineTo(f+p,d+s),i.lineTo(f,d+s/4*3),i.lineTo(f-p,d+s),i.lineTo(f,d),i.closePath()}}),KR={line:function(i,r,s,u,f){f.x1=i,f.y1=r+u/2,f.x2=i+s,f.y2=r+u/2},rect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u},roundRect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u,f.r=Math.min(s,u)/4},square:function(i,r,s,u,f){var d=Math.min(s,u);f.x=i,f.y=r,f.width=d,f.height=d},circle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.r=Math.min(s,u)/2},diamond:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u},pin:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},arrow:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},triangle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u}},EC={};q({line:Ti,rect:sn,roundRect:sn,square:sn,circle:sl,diamond:a8,pin:Yx,arrow:o8,triangle:XR},function(o,i){EC[i]=new o});var s8=Nt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(i,r,s){var u=n0(i,r,s),f=this.shape;return f&&"pin"===f.symbolType&&"inside"===r.position&&(u.y=s.y+.4*s.height),u},buildPath:function(i,r,s){var u=r.symbolType;if("none"!==u){var f=EC[u];f||(f=EC[u="rect"]),KR[u](r.x,r.y,r.width,r.height,f.shape),f.buildPath(i,f.shape,s)}}});function l8(o,i){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=o,r.fill=i||"#fff",r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=o:r.fill=o,this.markRedraw()}}function Ir(o,i,r,s,u,f,d){var v,p=0===o.indexOf("empty");return p&&(o=o.substr(5,1).toLowerCase()+o.substr(6)),(v=0===o.indexOf("image://")?GR(o.slice(8),new Ft(i,r,s,u),d?"center":"cover"):0===o.indexOf("path://")?DC(o.slice(7),{},new Ft(i,r,s,u),d?"center":"cover"):new s8({shape:{symbolType:o,x:i,y:r,width:s,height:u}})).__isEmptyBrush=p,v.setColor=l8,f&&v.setColor(f),v}function g_(o){return we(o)||(o=[+o,+o]),[o[0]||0,o[1]||0]}function Ah(o,i){if(null!=o)return we(o)||(o=[o,o]),[Fe(o[0],i[0])||0,Fe(ot(o[1],o[0]),i[1])||0]}function qx(o,i,r){for(var s="radial"===i.type?function(o,i,r){var s=r.width,u=r.height,f=Math.min(s,u),d=null==i.x?.5:i.x,p=null==i.y?.5:i.y,v=null==i.r?.5:i.r;return i.global||(d=d*s+r.x,p=p*u+r.y,v*=f),o.createRadialGradient(d,p,0,d,p,v)}(o,i,r):function(o,i,r){var s=null==i.x?0:i.x,u=null==i.x2?1:i.x2,f=null==i.y?0:i.y,d=null==i.y2?0:i.y2;return i.global||(s=s*r.width+r.x,u=u*r.width+r.x,f=f*r.height+r.y,d=d*r.height+r.y),s=isNaN(s)?0:s,u=isNaN(u)?1:u,f=isNaN(f)?0:f,d=isNaN(d)?0:d,o.createLinearGradient(s,f,u,d)}(o,i,r),u=i.colorStops,f=0;f0?(i=i||1,"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:yk(o)?[o]:we(o)?o:null):null}var f8=new $s(!0);function PC(o){var i=o.stroke;return!(null==i||"none"===i||!(o.lineWidth>0))}function $R(o){return"string"==typeof o&&"none"!==o}function m_(o){var i=o.fill;return null!=i&&"none"!==i}function Zx(o,i){if(null!=i.fillOpacity&&1!==i.fillOpacity){var r=o.globalAlpha;o.globalAlpha=i.fillOpacity*i.opacity,o.fill(),o.globalAlpha=r}else o.fill()}function JR(o,i){if(null!=i.strokeOpacity&&1!==i.strokeOpacity){var r=o.globalAlpha;o.globalAlpha=i.strokeOpacity*i.opacity,o.stroke(),o.globalAlpha=r}else o.stroke()}function Kx(o,i,r){var s=zd(i.image,i.__image,r);if(g0(s)){var u=o.createPattern(s,i.repeat||"repeat");if("function"==typeof DOMMatrix&&u.setTransform){var f=new DOMMatrix;f.rotateSelf(0,0,(i.rotation||0)/Math.PI*180),f.scaleSelf(i.scaleX||1,i.scaleY||1),f.translateSelf(i.x||0,i.y||0),u.setTransform(f)}return u}}var t2=["shadowBlur","shadowOffsetX","shadowOffsetY"],OC=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IC(o,i,r,s,u){var f=!1;if(!s&&i===(r=r||{}))return!1;if(s||i.opacity!==r.opacity){f||(za(o,u),f=!0);var d=Math.max(Math.min(i.opacity,1),0);o.globalAlpha=isNaN(d)?Xl.opacity:d}(s||i.blend!==r.blend)&&(f||(za(o,u),f=!0),o.globalCompositeOperation=i.blend||Xl.blend);for(var p=0;p0&&Xx(r.lineDash,r.lineWidth),B=r.lineDashOffset,z=!!o.setLineDash,j=i.getGlobalScale();if(g.setScale(j[0],j[1],i.segmentIgnoreThreshold),V){var X=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;X&&1!==X&&(V=Te(V,function(Q){return Q/X}),B/=X)}var Z=!0;(v||4&i.__dirty||V&&!z&&u)&&(g.setDPR(o.dpr),p?g.setContext(null):(g.setContext(o),Z=!1),g.reset(),V&&!z&&(g.setLineDash(V),g.setLineDashOffset(B)),i.buildPath(g,i.shape,s),g.toStatic(),i.pathUpdated()),Z&&g.rebuildPath(o,p?d:1),V&&z&&(o.setLineDash(V),o.lineDashOffset=B),s||(r.strokeFirst?(u&&JR(o,r),f&&Zx(o,r)):(f&&Zx(o,r),u&&JR(o,r))),V&&z&&o.setLineDash([])}(o,i,y,m),m&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):i instanceof Xp?(3!==r.lastDrawType&&(v=!0,r.lastDrawType=3),Qx(o,i,g,v,r),function(o,i,r){var s=r.text;if(null!=s&&(s+=""),s){o.font=r.font||ri,o.textAlign=r.textAlign,o.textBaseline=r.textBaseline;var u=void 0;if(o.setLineDash){var f=r.lineDash&&r.lineWidth>0&&Xx(r.lineDash,r.lineWidth),d=r.lineDashOffset;if(f){var p=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;p&&1!==p&&(f=Te(f,function(v){return v/p}),d/=p),o.setLineDash(f),o.lineDashOffset=d,u=!0}}r.strokeFirst?(PC(r)&&o.strokeText(s,r.x,r.y),m_(r)&&o.fillText(s,r.x,r.y)):(m_(r)&&o.fillText(s,r.x,r.y),PC(r)&&o.strokeText(s,r.x,r.y)),u&&o.setLineDash([])}}(o,i,y)):i instanceof si?(2!==r.lastDrawType&&(v=!0,r.lastDrawType=2),function(o,i,r,s,u){IC(o,RC(i,u.inHover),r&&RC(r,u.inHover),s,u)}(o,i,g,v,r),function(o,i,r){var s=i.__image=zd(r.image,i.__image,i,i.onload);if(s&&g0(s)){var u=r.x||0,f=r.y||0,d=i.getWidth(),p=i.getHeight(),v=s.width/s.height;if(null==d&&null!=p?d=p*v:null==p&&null!=d?p=d/v:null==d&&null==p&&(d=s.width,p=s.height),r.sWidth&&r.sHeight)o.drawImage(s,g=r.sx||0,m=r.sy||0,r.sWidth,r.sHeight,u,f,d,p);else if(r.sx&&r.sy){var g,m;o.drawImage(s,g=r.sx,m=r.sy,d-g,p-m,u,f,d,p)}else o.drawImage(s,u,f,d,p)}}(o,i,y)):i instanceof Tv&&(4!==r.lastDrawType&&(v=!0,r.lastDrawType=4),function(o,i,r){var s=i.getDisplayables(),u=i.getTemporalDisplayables();o.save();var d,p,f={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(d=i.getCursor(),p=s.length;d=4&&(m={x:parseFloat(b[0]||0),y:parseFloat(b[1]||0),width:parseFloat(b[2]),height:parseFloat(b[3])})}if(m&&null!=p&&null!=v&&(y=Eh(m,{x:0,y:0,width:p,height:v}),!r.ignoreViewBox)){var w=u;(u=new ct).add(w),w.scaleX=w.scaleY=y.scale,w.x=y.x,w.y=y.y}return!r.ignoreRootClip&&null!=p&&null!=v&&u.setClipPath(new sn({shape:{x:0,y:0,width:p,height:v}})),{root:u,width:p,height:v,viewBoxRect:m,viewBoxTransform:y,named:f}},o.prototype._parseNode=function(i,r,s,u,f,d){var v,p=i.nodeName.toLowerCase(),g=u;if("defs"===p&&(f=!0),"text"===p&&(d=!0),"defs"===p||"switch"===p)v=r;else{if(!f){var m=fl[p];if(m&&Ae(fl,p)){v=m.call(this,i,r);var y=i.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:p,el:v};s.push(b),"g"===p&&(g=b)}else u&&s.push({name:u.name,namedFrom:u,svgNodeTagLower:p,el:v});r.add(v)}}var w=NC[p];if(w&&Ae(NC,p)){var S=w.call(this,i),M=i.getAttribute("id");M&&(this._defs[M]=S)}}if(v&&v.isGroup)for(var x=i.firstChild;x;)1===x.nodeType?this._parseNode(x,v,s,g,f,d):3===x.nodeType&&d&&this._parseText(x,v),x=x.nextSibling},o.prototype._parseText=function(i,r){var s=new Xp({style:{text:i.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Uo(r,s),_s(i,s,this._defsUsePending,!1,!1),function(o,i){var r=i.__selfStyle;if(r){var s=r.textBaseline,u=s;s&&"auto"!==s&&"baseline"!==s?"before-edge"===s||"text-before-edge"===s?u="top":"after-edge"===s||"text-after-edge"===s?u="bottom":("central"===s||"mathematical"===s)&&(u="middle"):u="alphabetic",o.style.textBaseline=u}var f=i.__inheritedStyle;if(f){var d=f.textAlign,p=d;d&&("middle"===d&&(p="center"),o.style.textAlign=p)}}(s,r);var u=s.style,f=u.fontSize;f&&f<9&&(u.fontSize=9,s.scaleX*=f/9,s.scaleY*=f/9);var d=(u.fontSize||u.fontFamily)&&[u.fontStyle,u.fontWeight,(u.fontSize||12)+"px",u.fontFamily||"sans-serif"].join(" ");u.font=d;var p=s.getBoundingRect();return this._textX+=p.width,r.add(s),s},o.internalField=void(fl={g:function(r,s){var u=new ct;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u},rect:function(r,s){var u=new sn;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x:parseFloat(r.getAttribute("x")||"0"),y:parseFloat(r.getAttribute("y")||"0"),width:parseFloat(r.getAttribute("width")||"0"),height:parseFloat(r.getAttribute("height")||"0")}),u.silent=!0,u},circle:function(r,s){var u=new sl;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),r:parseFloat(r.getAttribute("r")||"0")}),u.silent=!0,u},line:function(r,s){var u=new Ti;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x1:parseFloat(r.getAttribute("x1")||"0"),y1:parseFloat(r.getAttribute("y1")||"0"),x2:parseFloat(r.getAttribute("x2")||"0"),y2:parseFloat(r.getAttribute("y2")||"0")}),u.silent=!0,u},ellipse:function(r,s){var u=new yC;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),rx:parseFloat(r.getAttribute("rx")||"0"),ry:parseFloat(r.getAttribute("ry")||"0")}),u.silent=!0,u},polygon:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new ya({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},polyline:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new _r({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},image:function(r,s){var u=new si;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setStyle({image:r.getAttribute("xlink:href"),x:+r.getAttribute("x"),y:+r.getAttribute("y"),width:+r.getAttribute("width"),height:+r.getAttribute("height")}),u.silent=!0,u},text:function(r,s){var u=r.getAttribute("x")||"0",f=r.getAttribute("y")||"0",d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0";this._textX=parseFloat(u)+parseFloat(d),this._textY=parseFloat(f)+parseFloat(p);var v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),v},tspan:function(r,s){var u=r.getAttribute("x"),f=r.getAttribute("y");null!=u&&(this._textX=parseFloat(u)),null!=f&&(this._textY=parseFloat(f));var d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0",v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(p),v},path:function(r,s){var f=IR(r.getAttribute("d")||"");return Uo(s,f),_s(r,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),o}(),NC={lineargradient:function(i){var r=parseInt(i.getAttribute("x1")||"0",10),s=parseInt(i.getAttribute("y1")||"0",10),u=parseInt(i.getAttribute("x2")||"10",10),f=parseInt(i.getAttribute("y2")||"0",10),d=new xv(r,s,u,f);return tc(i,d),u2(i,d),d},radialgradient:function(i){var r=parseInt(i.getAttribute("cx")||"0",10),s=parseInt(i.getAttribute("cy")||"0",10),u=parseInt(i.getAttribute("r")||"0",10),f=new MC(r,s,u);return tc(i,f),u2(i,f),f}};function tc(o,i){"userSpaceOnUse"===o.getAttribute("gradientUnits")&&(i.global=!0)}function u2(o,i){for(var r=o.firstChild;r;){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var u,s=r.getAttribute("offset");u=s&&s.indexOf("%")>0?parseInt(s,10)/100:s?parseFloat(s):0;var f={};v2(r,f,f);var d=f.stopColor||r.getAttribute("stop-color")||"#000000";i.colorStops.push({offset:u,color:d})}r=r.nextSibling}}function Uo(o,i){o&&o.__inheritedStyle&&(i.__inheritedStyle||(i.__inheritedStyle={}),tt(i.__inheritedStyle,o.__inheritedStyle))}function c2(o){for(var i=y_(o),r=[],s=0;s0;f-=2){var p=s[f-1],v=y_(s[f]);switch(u=u||[1,0,0,1,0,0],p){case"translate":Oo(u,u,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":Qb(u,u,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":Od(u,u,-parseFloat(v[0])*iT);break;case"skewX":Jo(u,[1,0,Math.tan(parseFloat(v[0])*iT),1,0,0],u);break;case"skewY":Jo(u,[1,Math.tan(parseFloat(v[0])*iT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(v[0]),u[1]=parseFloat(v[1]),u[2]=parseFloat(v[2]),u[3]=parseFloat(v[3]),u[4]=parseFloat(v[4]),u[5]=parseFloat(v[5])}}i.setLocalTransform(u)}}(o,i),v2(o,d,p),s||function(o,i,r){for(var s=0;s<_8.length;s++)null!=(f=o.getAttribute(u=_8[s]))&&(i[LC[u]]=f);for(s=0;s>1^-(1&p),v=v>>1^-(1&v),u=p+=u,f=v+=f,s.push([p/r,v/r])}return s}function b2(o,i){return Te(Yn((o=function(o){if(!o.UTF8Encoding)return o;var i=o,r=i.UTF8Scale;null==r&&(r=1024);for(var s=i.features,u=0;u0}),function(r){var d,s=r.properties,u=r.geometry,f=[];"Polygon"===u.type&&f.push({type:"polygon",exterior:(d=u.coordinates)[0],interiors:d.slice(1)}),"MultiPolygon"===u.type&&q(d=u.coordinates,function(g){g[0]&&f.push({type:"polygon",exterior:g[0],interiors:g.slice(1)})});var p=new Vt(s[i||"name"],f,s.cp);return p.properties=s,p})}for(var aT=[126,25],Oh=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Ih=0;Ih0&&r.unfinished);r.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.setOption=function(r,s,u){if(!this._disposed){var f,d,p;if(at(s)&&(u=s.lazyUpdate,f=s.silent,d=s.replaceMerge,p=s.transition,s=s.notMerge),this[rc]=!0,!this._model||s){var v=new Jz(this._api),g=this._theme,m=this._model=new kn;m.scheduler=this._scheduler,m.init(null,null,null,g,this._locale,v)}this._model.setOption(r,{replaceMerge:d},E2);var y={seriesTransition:p,optionChanged:!0};u?(this[bs]={silent:f,updateParams:y},this[rc]=!1,this.getZr().wakeUp()):(ws(this),cu.update.call(this,null,y),this._zr.flush(),this[bs]=null,this[rc]=!1,Vf.call(this,f),WC.call(this,f))}},i.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||I8&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(r){if(Ze.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},i.prototype.getSvgDataURL=function(){if(Ze.svgSupported){var r=this._zr;return q(r.storage.getDisplayList(),function(u){u.stopAnimation(null,!0)}),r.painter.toDataURL()}},i.prototype.getDataURL=function(r){if(!this._disposed){var u=this._model,f=[],d=this;q((r=r||{}).excludeComponents,function(v){u.eachComponent({mainType:v},function(g){var m=d._componentsMap[g.__viewId];m.group.ignore||(f.push(m),m.group.ignore=!0)})});var p="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return q(f,function(v){v.group.ignore=!1}),p}},i.prototype.getConnectedDataURL=function(r){if(!this._disposed&&Ze.canvasSupported){var s="svg"===r.type,u=this.group,f=Math.min,d=Math.max,p=1/0;if(Iv[u]){var v=p,g=p,m=-p,y=-p,b=[],w=r&&r.pixelRatio||this.getDevicePixelRatio();q(Nh,function(O,R){if(O.group===u){var V=s?O.getZr().painter.getSvgDom().innerHTML:O.getRenderedCanvas(rt(r)),B=O.getDom().getBoundingClientRect();v=f(B.left,v),g=f(B.top,g),m=d(B.right,m),y=d(B.bottom,y),b.push({dom:V,left:B.left,top:B.top})}});var S=(m*=w)-(v*=w),M=(y*=w)-(g*=w),x=md(),T=Hp(x,{renderer:s?"svg":"canvas"});if(T.resize({width:S,height:M}),s){var P="";return q(b,function(O){P+=''+O.dom+""}),T.painter.getSvgRoot().innerHTML=P,r.connectedBackgroundColor&&T.painter.setBackgroundColor(r.connectedBackgroundColor),T.refreshImmediately(),T.painter.toDataURL()}return r.connectedBackgroundColor&&T.add(new sn({shape:{x:0,y:0,width:S,height:M},style:{fill:r.connectedBackgroundColor}})),q(b,function(O){var R=new si({style:{x:O.left*w-v,y:O.top*w-g,image:O.dom}});T.add(R)}),T.refreshImmediately(),x.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},i.prototype.convertToPixel=function(r,s){return Fh(this,"convertToPixel",r,s)},i.prototype.convertFromPixel=function(r,s){return Fh(this,"convertFromPixel",r,s)},i.prototype.containPixel=function(r,s){var f;if(!this._disposed)return q(is(this._model,r),function(p,v){v.indexOf("Models")>=0&&q(p,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(s);else if("seriesModels"===v){var y=this._chartsMap[g.__viewId];y&&y.containPoint&&(f=f||y.containPoint(s,g))}},this)},this),!!f},i.prototype.getVisual=function(r,s){var f=is(this._model,r,{defaultMainType:"series"}),p=f.seriesModel.getData(),v=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?p.indexOfRawIndex(f.dataIndex):null;return null!=v?xx(p,v,s):kh(p,s)},i.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},i.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},i.prototype._initEvents=function(){var r=this;q(D_,function(s){var u=function(d){var g,p=r.getModel(),v=d.target;if("globalout"===s?g={}:v&&xh(v,function(M){var x=ht(M);if(x&&null!=x.dataIndex){var T=x.dataModel||p.getSeriesByIndex(x.seriesIndex);return g=T&&T.getDataParams(x.dataIndex,x.dataType)||{},!0}if(x.eventData)return g=Se({},x.eventData),!0},!0),g){var y=g.componentType,b=g.componentIndex;("markLine"===y||"markPoint"===y||"markArea"===y)&&(y="series",b=g.seriesIndex);var w=y&&null!=b&&p.getComponent(y,b),S=w&&r["series"===w.mainType?"_chartsMap":"_componentsMap"][w.__viewId];g.event=d,g.type=s,r._$eventProcessor.eventInfo={targetEl:v,packedEvent:g,model:w,view:S},r.trigger(s,g)}};u.zrEventfulCallAtLast=!0,r._zr.on(s,u,r)}),q(A_,function(s,u){r._messageCenter.on(u,function(f){this.trigger(u,f)},r)}),q(["selectchanged"],function(s){r._messageCenter.on(s,function(u){this.trigger(s,u)},r)}),function(o,i,r){o.on("selectchanged",function(s){var u=r.getModel();s.isFromClick?(Mh("map","selectchanged",i,u,s),Mh("pie","selectchanged",i,u,s)):"select"===s.fromAction?(Mh("map","selected",i,u,s),Mh("pie","selected",i,u,s)):"unselect"===s.fromAction&&(Mh("map","unselected",i,u,s),Mh("pie","unselected",i,u,s))})}(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,KH(this.getDom(),P2,"");var r=this,s=r._api,u=r._model;q(r._componentsViews,function(f){f.dispose(u,s)}),q(r._chartsViews,function(f){f.dispose(u,s)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Nh[r.id]}},i.prototype.resize=function(r){if(!this._disposed){this._zr.resize(r);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),s){var u=s.resetOption("media"),f=r&&r.silent;this[bs]&&(null==f&&(f=this[bs].silent),u=!0,this[bs]=null),this[rc]=!0,u&&ws(this),cu.update.call(this,{type:"resize",animation:Se({duration:0},r&&r.animation)}),this[rc]=!1,Vf.call(this,f),WC.call(this,f)}}},i.prototype.showLoading=function(r,s){if(!this._disposed&&(at(r)&&(s=r,r=""),r=r||"default",this.hideLoading(),pT[r])){var u=pT[r](this._api,s),f=this._zr;this._loadingFX=u,f.add(u)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(r){var s=Se({},r);return s.type=A_[r.type],s},i.prototype.dispatchAction=function(r,s){if(!this._disposed&&(at(s)||(s={silent:!!s}),KC[r.type]&&this._model)){if(this[rc])return void this._pendingActions.push(r);var u=s.silent;jC.call(this,r,u);var f=s.flush;f?this._zr.flush():!1!==f&&Ze.browser.weChat&&this._throttledZrFlush(),Vf.call(this,u),WC.call(this,u)}},i.prototype.updateLabelLayout=function(){dl.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(r){if(!this._disposed){var s=r.seriesIndex;this.getModel().getSeriesByIndex(s).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function r(g){for(var m=[],y=g.currentStates,b=0;b0?{duration:w,delay:y.get("delay"),easing:y.get("easing")}:null;m.group.traverse(function(M){if(M.states&&M.states.emphasis){if(ev(M))return;if(M instanceof Nt&&function(o){var i=mM(o);i.normalFill=o.style.fill,i.normalStroke=o.style.stroke;var r=o.states.select||{};i.selectFill=r.style&&r.style.fill||null,i.selectStroke=r.style&&r.style.stroke||null}(M),M.__dirty){var x=M.prevStates;x&&M.useStates(x)}if(b){M.stateTransition=S;var T=M.getTextContent(),P=M.getTextGuideLine();T&&(T.stateTransition=S),P&&(P.stateTransition=S)}M.__dirty&&r(M)}})}ws=function(m){var y=m._scheduler;y.restorePipelines(m._model),y.prepareStageTasks(),fT(m,!0),fT(m,!1),y.plan()},fT=function(m,y){for(var b=m._model,w=m._scheduler,S=y?m._componentsViews:m._chartsViews,M=y?m._componentsMap:m._chartsMap,x=m._zr,T=m._api,P=0;Pm.get("hoverLayerThreshold")&&!Ze.node&&!Ze.worker&&m.eachSeries(function(S){if(!S.preventUsingHoverLayer){var M=g._chartsMap[S.__viewId];M.__alive&&M.group.traverse(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}(m,y),dl.trigger("series:afterupdate",y,b,S)},hl=function(m){m[uT]=!0,m.getZr().wakeUp()},V8=function(m){!m[uT]||(m.getZr().storage.traverse(function(y){ev(y)||r(y)}),m[uT]=!1)},XC=function(m){return new(function(y){function b(){return null!==y&&y.apply(this,arguments)||this}return he(b,y),b.prototype.getCoordinateSystems=function(){return m._coordSysMgr.getCoordinateSystems()},b.prototype.getComponentByElement=function(w){for(;w;){var S=w.__ecComponentInfo;if(null!=S)return m._model.getComponent(S.mainType,S.index);w=w.parent}},b.prototype.enterEmphasis=function(w,S){Js(w,S),hl(m)},b.prototype.leaveEmphasis=function(w,S){eu(w,S),hl(m)},b.prototype.enterBlur=function(w){Lm(w),hl(m)},b.prototype.leaveBlur=function(w){iI(w),hl(m)},b.prototype.enterSelect=function(w){CM(w),hl(m)},b.prototype.leaveSelect=function(w){wM(w),hl(m)},b.prototype.getModel=function(){return m.getModel()},b.prototype.getViewOfComponentModel=function(w){return m.getViewOfComponentModel(w)},b.prototype.getViewOfSeriesModel=function(w){return m.getViewOfSeriesModel(w)},b}(hh))(m)},ZC=function(m){function y(b,w){for(var S=0;S=0)){z2.push(r);var f=dt.wrapStageHandler(r,u);f.__prio=i,f.__raw=r,o.push(f)}}function mT(o,i){pT[o]=i}function AZ(o){mk("createCanvas",o)}function _T(o,i,r){!function(i,r,s){if(r.svg){var u=new M8(i,r.svg);Rh.set(i,u)}else{var f=r.geoJson||r.geoJSON;f&&!r.features?s=r.specialAreas:f=r,u=new O8(i,f,s),Rh.set(i,u)}}(o,i,r)}function j8(o){return function(i){var r=Rh.get(i);return r&&"geoJSON"===r.type&&r.getMapForUser()}(o)}var U2=function(o){var i=(o=rt(o)).type;i||Mn("");var s=i.split(":");2!==s.length&&Mn("");var u=!1;"echarts"===s[0]&&(i=s[1],u=!0),o.__isBuiltIn=u,eR.set(i,o)};Bf(2e3,mR),Bf(4500,_R),Bf(4500,_Z),Bf(2e3,F4),Bf(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(i.hasSymbolVisual&&!r.isSeriesFiltered(i))return{dataEach:i.getData().hasItemOption?function(f,d){var p=f.getItemModel(d),v=p.getShallow("symbol",!0),g=p.getShallow("symbolSize",!0),m=p.getShallow("symbolRotate",!0),y=p.getShallow("symbolOffset",!0),b=p.getShallow("symbolKeepAspect",!0);null!=v&&f.setItemVisual(d,"symbol",v),null!=g&&f.setItemVisual(d,"symbolSize",g),null!=m&&f.setItemVisual(d,"symbolRotate",m),null!=y&&f.setItemVisual(d,"symbolOffset",y),null!=b&&f.setItemVisual(d,"symbolKeepAspect",b)}:null}}}),Bf(7e3,function(o,i){o.eachRawSeries(function(r){if(!o.isSeriesFiltered(r)){var s=r.getData();s.hasItemVisual()&&s.each(function(d){var p=s.getItemVisual(d,"decal");p&&(s.ensureUniqueItemVisual(d,"style").decal=lu(p,i))});var u=s.getVisual("decal");u&&(s.getVisual("style").decal=lu(u,i))}})}),L2(vs),F2(900,function(o){var i=et();o.eachSeries(function(r){var s=r.get("stack");if(s){var u=i.get(s)||i.set(s,[]),f=r.getData(),d={stackResultDimension:f.getCalculationInfo("stackResultDimension"),stackedOverDimension:f.getCalculationInfo("stackedOverDimension"),stackedDimension:f.getCalculationInfo("stackedDimension"),stackedByDimension:f.getCalculationInfo("stackedByDimension"),isStackedByIndex:f.getCalculationInfo("isStackedByIndex"),data:f,seriesModel:r};if(!d.stackedDimension||!d.isStackedByIndex&&!d.stackedByDimension)return;u.length&&f.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(d)}}),i.each(fZ)}),mT("default",function(o,i){tt(i=i||{},{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 r=new ct,s=new sn({style:{fill:i.maskColor},zlevel:i.zlevel,z:1e4});r.add(s);var d,u=new fn({style:{text:i.text,fill:i.textColor,fontSize:i.fontSize,fontWeight:i.fontWeight,fontStyle:i.fontStyle,fontFamily:i.fontFamily},zlevel:i.zlevel,z:10001}),f=new sn({style:{fill:"none"},textContent:u,textConfig:{position:"right",distance:10},zlevel:i.zlevel,z:10001});return r.add(f),i.showSpinner&&((d=new i_({shape:{startAngle:-vC/2,endAngle:-vC/2+.1,r:i.spinnerRadius},style:{stroke:i.color,lineCap:"round",lineWidth:i.lineWidth},zlevel:i.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*vC/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:3*vC/2}).delay(300).start("circularInOut"),r.add(d)),r.resize=function(){var p=u.getBoundingRect().width,v=i.showSpinner?i.spinnerRadius:0,g=(o.getWidth()-2*v-(i.showSpinner&&p?10:0)-p)/2-(i.showSpinner&&p?0:5+p/2)+(i.showSpinner?0:p/2)+(p?0:v),m=o.getHeight()/2;i.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-v,y:m-v,width:2*v,height:2*v}),s.setShape({x:0,y:0,width:o.getWidth(),height:o.getHeight()})},r.resize(),r}),pl({type:_f,event:_f,update:_f},Mo),pl({type:Pm,event:Pm,update:Pm},Mo),pl({type:Jd,event:Jd,update:Jd},Mo),pl({type:Kp,event:Kp,update:Kp},Mo),pl({type:Qp,event:Qp,update:Qp},Mo),QC("light",R4),QC("dark",xR);var W8={},G2=[],Y8={registerPreprocessor:L2,registerProcessor:F2,registerPostInit:N2,registerPostUpdate:V2,registerUpdateLifecycle:vT,registerAction:pl,registerCoordinateSystem:B2,registerLayout:H2,registerVisual:Bf,registerTransform:U2,registerLoading:mT,registerMap:_T,PRIORITY:lT,ComponentModel:qt,ComponentView:un,SeriesModel:vt,ChartView:Vn,registerComponentModel:function(i){qt.registerClass(i)},registerComponentView:function(i){un.registerClass(i)},registerSeriesModel:function(i){vt.registerClass(i)},registerChartView:function(i){Vn.registerClass(i)},registerSubTypeDefaulter:function(i,r){qt.registerSubTypeDefaulter(i,r)},registerPainter:function(i,r){xO(i,r)}};function Ot(o){we(o)?q(o,function(i){Ot(i)}):Rt(G2,o)>=0||(G2.push(o),An(o)&&(o={install:o}),o.install(Y8))}function E_(o){return null==o?0:o.length||1}function j2(o){return o}var Hf=function(){function o(i,r,s,u,f,d){this._old=i,this._new=r,this._oldKeyGetter=s||j2,this._newKeyGetter=u||j2,this.context=f,this._diffModeMultiple="multiple"===d}return o.prototype.add=function(i){return this._add=i,this},o.prototype.update=function(i){return this._update=i,this},o.prototype.updateManyToOne=function(i){return this._updateManyToOne=i,this},o.prototype.updateOneToMany=function(i){return this._updateOneToMany=i,this},o.prototype.updateManyToMany=function(i){return this._updateManyToMany=i,this},o.prototype.remove=function(i){return this._remove=i,this},o.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},o.prototype._executeOneToOne=function(){var i=this._old,r=this._new,s={},u=new Array(i.length),f=new Array(r.length);this._initIndexMap(i,null,u,"_oldKeyGetter"),this._initIndexMap(r,s,f,"_newKeyGetter");for(var d=0;d1){var m=v.shift();1===v.length&&(s[p]=v[0]),this._update&&this._update(m,d)}else 1===g?(s[p]=null,this._update&&this._update(v,d)):this._remove&&this._remove(d)}this._performRestAdd(f,s)},o.prototype._executeMultiple=function(){var r=this._new,s={},u={},f=[],d=[];this._initIndexMap(this._old,s,f,"_oldKeyGetter"),this._initIndexMap(r,u,d,"_newKeyGetter");for(var p=0;p1&&1===b)this._updateManyToOne&&this._updateManyToOne(m,g),u[v]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[v]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[v]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[v]=null;else if(y>1)for(var w=0;w1)for(var p=0;p30}var Z2,tw,Rv,P_,K2,nw,ST,Ua=at,fu=Te,K8="undefined"==typeof Int32Array?Array:Int32Array,X2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Q8=["_approximateExtent"],Ga=function(){function o(i,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var s,u=!1;Y2(i)?(s=i.dimensions,this._dimOmitted=i.isDimensionOmitted(),this._schema=i):(u=!0,s=i),s=s||["x","y"];for(var f={},d=[],p={},v=!1,g={},m=0;m=r)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===Ho&&!u.pure)for(var g=[],m=i;m0},o.prototype.ensureUniqueItemVisual=function(i,r){var s=this._itemVisuals,u=s[i];u||(u=s[i]={});var f=u[r];return null==f&&(we(f=this.getVisual(r))?f=f.slice():Ua(f)&&(f=Se({},f)),u[r]=f),f},o.prototype.setItemVisual=function(i,r,s){var u=this._itemVisuals[i]||{};this._itemVisuals[i]=u,Ua(r)?Se(u,r):u[r]=s},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(i,r){if(Ua(i))for(var s in i)i.hasOwnProperty(s)&&this.setLayout(s,i[s]);else this._layout[i]=r},o.prototype.getLayout=function(i){return this._layout[i]},o.prototype.getItemLayout=function(i){return this._itemLayouts[i]},o.prototype.setItemLayout=function(i,r,s){this._itemLayouts[i]=s?Se(this._itemLayouts[i]||{},r):r},o.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},o.prototype.setItemGraphicEl=function(i,r){cs(this.hostModel&&this.hostModel.seriesIndex,this.dataType,i,r),this._graphicEls[i]=r},o.prototype.getItemGraphicEl=function(i){return this._graphicEls[i]},o.prototype.eachItemGraphicEl=function(i,r){q(this._graphicEls,function(s,u){s&&i&&i.call(r,s,u)})},o.prototype.cloneShallow=function(i){return i||(i=new o(this._schema?this._schema:fu(this.dimensions,this._getDimInfo,this),this.hostModel)),K2(i,this),i._store=this._store,i},o.prototype.wrapMethod=function(i,r){var s=this[i];"function"==typeof s&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(i),this[i]=function(){var u=s.apply(this,arguments);return r.apply(this,[u].concat(Fb(arguments)))})},o.internalField=(Z2=function(r){var s=r._invertedIndicesMap;q(s,function(u,f){var d=r._dimInfos[f],p=d.ordinalMeta,v=r._store;if(p){u=s[f]=new K8(p.categories.length);for(var g=0;g1&&(g+="__ec__"+y),f[s]=g}})),o}();function Q2(o,i){return Fv(o,i).dimensions}function Fv(o,i){sC(o)||(o=uC(o));var r=(i=i||{}).coordDimensions||[],s=i.dimensionsDefine||o.dimensionsDefine||[],u=et(),f=[],d=function(o,i,r,s){var u=Math.max(o.dimensionsDetectedCount||1,i.length,r.length,s||0);return q(i,function(f){var d;at(f)&&(d=f.dimsDef)&&(u=Math.max(u,d.length))}),u}(o,r,s,i.dimensionsCount),p=i.canOmitUnusedDimensions&&CT(d),v=s===o.dimensionsDefine,g=v?Ki(o):Vh(s),m=i.encodeDefine;!m&&i.encodeDefaulter&&(m=i.encodeDefaulter(o,d));for(var y=et(m),b=new tR(d),w=0;w0&&(s.name=u+(f-1)),f++,i.set(u,f)}}(f),new ew({source:o,dimensions:f,fullDimensionCount:d,dimensionOmitted:p})}function $8(o,i,r){var s=i.data;if(r||s.hasOwnProperty(o)){for(var u=0;s.hasOwnProperty(o+u);)u++;o+=u}return i.set(o,!0),o}var kT=function(i){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=i},vl={cartesian2d:function(i,r,s,u){var f=i.getReferringComponents("xAxis",ai).models[0],d=i.getReferringComponents("yAxis",ai).models[0];r.coordSysDims=["x","y"],s.set("x",f),s.set("y",d),zf(f)&&(u.set("x",f),r.firstCategoryDimIndex=0),zf(d)&&(u.set("y",d),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},singleAxis:function(i,r,s,u){var f=i.getReferringComponents("singleAxis",ai).models[0];r.coordSysDims=["single"],s.set("single",f),zf(f)&&(u.set("single",f),r.firstCategoryDimIndex=0)},polar:function(i,r,s,u){var f=i.getReferringComponents("polar",ai).models[0],d=f.findAxisModel("radiusAxis"),p=f.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],s.set("radius",d),s.set("angle",p),zf(d)&&(u.set("radius",d),r.firstCategoryDimIndex=0),zf(p)&&(u.set("angle",p),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},geo:function(i,r,s,u){r.coordSysDims=["lng","lat"]},parallel:function(i,r,s,u){var f=i.ecModel,d=f.getComponent("parallel",i.get("parallelIndex")),p=r.coordSysDims=d.dimensions.slice();q(d.parallelAxisIndex,function(v,g){var m=f.getComponent("parallelAxis",v),y=p[g];s.set(y,m),zf(m)&&(u.set(y,m),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=g))})}};function zf(o){return"category"===o.get("type")}function J2(o,i,r){var f,d,p,s=(r=r||{}).byIndex,u=r.stackedCoordDimension;!function(o){return!Y2(o.schema)}(i)?(f=(d=i.schema).dimensions,p=i.store):f=i;var g,m,y,b,v=!(!o||!o.get("stack"));if(q(f,function(P,O){yt(P)&&(f[O]=P={name:P}),v&&!P.isExtraCoord&&(!s&&!g&&P.ordinalMeta&&(g=P),!m&&"ordinal"!==P.type&&"time"!==P.type&&(!u||u===P.coordDim)&&(m=P))}),m&&!s&&!g&&(s=!0),m){y="__\0ecstackresult_"+o.id,b="__\0ecstackedover_"+o.id,g&&(g.createInvertedIndices=!0);var w=m.coordDim,S=m.type,M=0;q(f,function(P){P.coordDim===w&&M++});var x={name:y,coordDim:w,coordDimIndex:M,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length},T={name:b,coordDim:b,coordDimIndex:M+1,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length+1};d?(p&&(x.storeDimIndex=p.ensureCalculationDimension(b,S),T.storeDimIndex=p.ensureCalculationDimension(y,S)),d.appendCalculationDimension(x),d.appendCalculationDimension(T)):(f.push(x),f.push(T))}return{stackedDimension:m&&m.name,stackedByDimension:g&&g.name,isStackedByIndex:s,stackedOverDimension:b,stackResultDimension:y}}function ic(o,i){return!!i&&i===o.getCalculationInfo("stackedDimension")}function MT(o,i){return ic(o,i)?o.getCalculationInfo("stackResultDimension"):i}var gl=function(o,i,r){r=r||{};var u,s=i.getSourceManager(),f=!1;o?(f=!0,u=uC(o)):f=(u=s.getSource()).sourceFormat===Ho;var d=function(o){var i=o.get("coordinateSystem"),r=new kT(i),s=vl[i];if(s)return s(o,r,r.axisMap,r.categoryAxisMap),r}(i),p=function(o,i){var u,r=o.get("coordinateSystem"),s=Qm.get(r);return i&&i.coordSysDims&&(u=Te(i.coordSysDims,function(f){var d={name:f},p=i.axisMap.get(f);if(p){var v=p.get("type");d.type=$C(v)}return d})),u||(u=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"]),u}(i,d),v=r.useEncodeDefaulter,g=An(v)?v:v?St(au,p,i):null,y=Fv(u,{coordDimensions:p,generateCoord:r.generateCoord,encodeDefine:i.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!f}),b=function(o,i,r){var s,u;return r&&q(o,function(f,d){var v=r.categoryAxisMap.get(f.coordDim);v&&(null==s&&(s=d),f.ordinalMeta=v.getOrdinalMeta(),i&&(f.createInvertedIndices=!0)),null!=f.otherDims.itemName&&(u=!0)}),!u&&null!=s&&(o[s].otherDims.itemName=0),s}(y.dimensions,r.createInvertedIndices,d),w=f?null:s.getSharedDataStore(y),S=J2(i,{schema:y,store:w}),M=new Ga(y,i);M.setCalculationInfo(S);var x=null!=b&&function(o){if(o.sourceFormat===Ho){var i=function(o){for(var i=0;ir[1]&&(r[1]=i[1])},o.prototype.unionExtentFromData=function(i,r){this.unionExtent(i.getApproximateExtent(r))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(i,r){var s=this._extent;isNaN(i)||(s[0]=i),isNaN(r)||(s[1]=r)},o.prototype.isInExtentRange=function(i){return this._extent[0]<=i&&this._extent[1]>=i},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(i){this._isBlank=i},o}();Yu(xT);var du=xT,tL=0;function rU(o){return at(o)&&null!=o.value?o.value:o+""}var Gf=function(){function o(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this.uid=++tL}return o.createByAxisModel=function(i){var r=i.option,s=r.data,u=s&&Te(s,rU);return new o({categories:u,needCollect:!u,deduplication:!1!==r.dedplication})},o.prototype.getOrdinal=function(i){return this._getOrCreateMap().get(i)},o.prototype.parseAndCollect=function(i){var r,s=this._needCollect;if("string"!=typeof i&&!s)return i;if(s&&!this._deduplication)return this.categories[r=this.categories.length]=i,r;var u=this._getOrCreateMap();return null==(r=u.get(i))&&(s?(this.categories[r=this.categories.length]=i,u.set(i,r)):r=NaN),r},o.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},o}(),iw=hi;function nL(o){return ns(o)+2}function rL(o,i,r){o[i]=Math.max(Math.min(o[i],r[1]),r[0])}function jf(o,i){return o>=i[0]&&o<=i[1]}function aw(o,i){return i[1]===i[0]?.5:(o-i[0])/(i[1]-i[0])}function Nv(o,i){return o*(i[1]-i[0])+i[0]}var ye=function(o){function i(r){var s=o.call(this,r)||this;s.type="ordinal";var u=s.getSetting("ordinalMeta");return u||(u=new Gf({})),we(u)&&(u=new Gf({categories:Te(u,function(f){return at(f)?f.value:f})})),s._ordinalMeta=u,s._extent=s.getSetting("extent")||[0,u.categories.length-1],s}return he(i,o),i.prototype.parse=function(r){return"string"==typeof r?this._ordinalMeta.getOrdinal(r):Math.round(r)},i.prototype.contain=function(r){return jf(r=this.parse(r),this._extent)&&null!=this._ordinalMeta.categories[r]},i.prototype.normalize=function(r){return aw(r=this._getTickNumber(this.parse(r)),this._extent)},i.prototype.scale=function(r){return r=Math.round(Nv(r,this._extent)),this.getRawOrdinalNumber(r)},i.prototype.getTicks=function(){for(var r=[],s=this._extent,u=s[0];u<=s[1];)r.push({value:u}),u++;return r},i.prototype.getMinorTicks=function(r){},i.prototype.setSortInfo=function(r){if(null!=r){for(var s=r.ordinalNumbers,u=this._ordinalNumbersByTick=[],f=this._ticksByOrdinalNumber=[],d=0,p=this._ordinalMeta.categories.length,v=Math.min(p,s.length);d=0&&r=0&&r=r},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.niceTicks=function(){},i.prototype.niceExtent=function(){},i.type="ordinal",i}(du);du.registerClass(ye);var TT=ye,Wo=hi,iL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return he(i,o),i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r,this._extent)},i.prototype.normalize=function(r){return aw(r,this._extent)},i.prototype.scale=function(r){return Nv(r,this._extent)},i.prototype.setExtent=function(r,s){var u=this._extent;isNaN(r)||(u[0]=parseFloat(r)),isNaN(s)||(u[1]=parseFloat(s))},i.prototype.unionExtent=function(r){var s=this._extent;r[0]s[1]&&(s[1]=r[1]),this.setExtent(s[0],s[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=nL(r)},i.prototype.getTicks=function(r){var s=this._interval,u=this._extent,f=this._niceExtent,d=this._intervalPrecision,p=[];if(!s)return p;u[0]1e4)return[];var m=p.length?p[p.length-1].value:f[1];return u[1]>m&&p.push(r?{value:Wo(m+s,d)}:{value:u[1]}),p},i.prototype.getMinorTicks=function(r){for(var s=this.getTicks(!0),u=[],f=this.getExtent(),d=1;df[0]&&ws&&(d=u.interval=s);var p=u.intervalPrecision=nL(d);return function(o,i){!isFinite(o[0])&&(o[0]=i[0]),!isFinite(o[1])&&(o[1]=i[1]),rL(o,0,i),rL(o,1,i),o[0]>o[1]&&(o[0]=o[1])}(u.niceTickExtent=[iw(Math.ceil(o[0]/d)*d,p),iw(Math.floor(o[1]/d)*d,p)],o),u}(f,r,s,u);this._intervalPrecision=p.intervalPrecision,this._interval=p.interval,this._niceExtent=p.niceTickExtent}},i.prototype.niceExtent=function(r){var s=this._extent;if(s[0]===s[1])if(0!==s[0]){var u=s[0];r.fixMax||(s[1]+=u/2),s[0]-=u/2}else s[1]=1;isFinite(s[1]-s[0])||(s[0]=0,s[1]=1),this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval);var d=this._interval;r.fixMin||(s[0]=Wo(Math.floor(s[0]/d)*d)),r.fixMax||(s[1]=Wo(Math.ceil(s[1]/d)*d))},i.type="interval",i}(du);du.registerClass(iL);var Vv=iL,aL="__ec_stack_",DT="undefined"!=typeof Float32Array?Float32Array:Array;function ow(o){return o.get("stack")||aL+o.seriesIndex}function AT(o){return o.dim+o.index}function sL(o,i){var r=[];return i.eachSeriesByType(o,function(s){wt(s)&&!Zt(s)&&r.push(s)}),r}function ET(o){var i=function(o){var i={};q(o,function(v){var m=v.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=v.getData(),b=m.dim+"_"+m.index,w=y.getDimensionIndex(y.mapDimension(m.dim)),S=y.getStore(),M=0,x=S.count();M0&&(f=null===f?p:Math.min(f,p))}r[s]=f}}return r}(o),r=[];return q(o,function(s){var p,f=s.coordinateSystem.getBaseAxis(),d=f.getExtent();if("category"===f.type)p=f.getBandWidth();else if("value"===f.type||"time"===f.type){var g=i[f.dim+"_"+f.index],m=Math.abs(d[1]-d[0]),y=f.scale.getExtent(),b=Math.abs(y[1]-y[0]);p=g?m/b*g:m}else{var w=s.getData();p=Math.abs(d[1]-d[0])/w.count()}var S=Fe(s.get("barWidth"),p),M=Fe(s.get("barMaxWidth"),p),x=Fe(s.get("barMinWidth")||1,p),T=s.get("barGap"),P=s.get("barCategoryGap");r.push({bandWidth:p,barWidth:S,barMaxWidth:M,barMinWidth:x,barGap:T,barCategoryGap:P,axisKey:AT(f),stackId:ow(s)})}),lL(r)}function lL(o){var i={};q(o,function(s,u){var f=s.axisKey,d=s.bandWidth,p=i[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},v=p.stacks;i[f]=p;var g=s.stackId;v[g]||p.autoWidthCount++,v[g]=v[g]||{width:0,maxWidth:0};var m=s.barWidth;m&&!v[g].width&&(v[g].width=m,m=Math.min(p.remainedWidth,m),p.remainedWidth-=m);var y=s.barMaxWidth;y&&(v[g].maxWidth=y);var b=s.barMinWidth;b&&(v[g].minWidth=b);var w=s.barGap;null!=w&&(p.gap=w);var S=s.barCategoryGap;null!=S&&(p.categoryGap=S)});var r={};return q(i,function(s,u){r[u]={};var f=s.stacks,d=s.bandWidth,p=s.categoryGap;if(null==p){var v=_n(f).length;p=Math.max(35-4*v,15)+"%"}var g=Fe(p,d),m=Fe(s.gap,1),y=s.remainedWidth,b=s.autoWidthCount,w=(y-g)/(b+(b-1)*m);w=Math.max(w,0),q(f,function(T){var P=T.maxWidth,O=T.minWidth;if(T.width){var R=T.width;P&&(R=Math.min(R,P)),O&&(R=Math.max(R,O)),T.width=R,y-=R+m*R,b--}else R=w,P&&PR&&(R=O),R!==w&&(T.width=R,y-=R+m*R,b--)}),w=(y-g)/(b+(b-1)*m),w=Math.max(w,0);var M,S=0;q(f,function(T,P){T.width||(T.width=w),M=T,S+=T.width*(1+m)}),M&&(S-=M.width*m);var x=-S/2;q(f,function(T,P){r[u][P]=r[u][P]||{bandWidth:d,offset:x,width:T.width},x+=T.width*(1+m)})}),r}function PT(o,i,r){if(o&&i){var s=o[AT(i)];return null!=s&&null!=r?s[ow(r)]:s}}function sw(o,i){var r=sL(o,i),s=ET(r),u={};q(r,function(f){var d=f.getData(),p=f.coordinateSystem,v=p.getBaseAxis(),g=ow(f),m=s[AT(v)][g],y=m.offset,b=m.width,w=p.getOtherAxis(v),S=f.get("barMinHeight")||0;u[g]=u[g]||[],d.setLayout({bandWidth:m.bandWidth,offset:y,size:b});for(var M=d.mapDimension(w.dim),x=d.mapDimension(v.dim),T=ic(d,M),P=w.isHorizontal(),O=Le(0,w),R=d.getStore(),V=d.getDimensionIndex(M),B=d.getDimensionIndex(x),z=0,j=R.count();z=0?"p":"n",te=O;T&&(u[g][Z]||(u[g][Z]={p:O,n:O}),te=u[g][Z][Q]);var ge,ee=void 0,le=void 0,oe=void 0,de=void 0;P?(ee=te,le=(ge=p.dataToPoint([X,Z]))[1]+y,oe=ge[0]-O,de=b,Math.abs(oe).5||(y=.5),{progress:function(w,S){for(var O,M=w.count,x=new DT(2*M),T=new DT(2*M),P=new DT(M),R=[],V=[],B=0,z=0,j=S.getStore();null!=(O=w.next());)V[m]=j.get(p,O),V[1-m]=j.get(v,O),R=s.dataToPoint(V,null),T[B]=g?u.x+u.width:R[0],x[B++]=R[0],T[B]=g?R[1]:u.y+u.height,x[B++]=R[1],P[z++]=O;S.setLayout({largePoints:x,largeDataIndices:P,largeBackgroundPoints:T,barWidth:y,valueAxisStart:Le(0,d),backgroundStart:g?u.x:u.y,valueAxisHorizontal:g})}}}}};function wt(o){return o.coordinateSystem&&"cartesian2d"===o.coordinateSystem.type}function Zt(o){return o.pipelineContext&&o.pipelineContext.large}function Le(o,i,r){return i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0))}var OT=function(o){function i(r){var s=o.call(this,r)||this;return s.type="time",s}return he(i,o),i.prototype.getLabel=function(r){var s=this.getSetting("useUTC");return iu(r.value,gI[function(o){switch(o){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ru(this._minLevelUnit))]||gI.second,s,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(r,s,u){var f=this.getSetting("useUTC");return function(o,i,r,s,u){var f=null;if("string"==typeof r)f=r;else if("function"==typeof r)f=r(o.value,i,{level:o.level});else{var d=Se({},zm);if(o.level>0)for(var p=0;p=0;--p)if(v[g]){f=v[g];break}f=f||d.none}if(we(f)){var y=null==o.level?0:o.level>=0?o.level:f.length+o.level;f=f[y=Math.min(y,f.length-1)]}}return iu(new Date(o.value),f,u,s)}(r,s,u,this.getSetting("locale"),f)},i.prototype.getTicks=function(r){var u=this._extent,f=[];if(!this._interval)return f;f.push({value:u[0],level:0});var d=this.getSetting("useUTC"),p=function(o,i,r,s){var f=mI,d=0;function p(Z,Q,te,ee,le,oe,de){for(var ge=new Date(Q),_e=Q,xe=ge[ee]();_e1&&0===oe&&te.unshift({value:te[0].value-_e})}}for(oe=0;oe=s[0]&&P<=s[1]&&y++)}var O=(s[1]-s[0])/i;if(y>1.5*O&&b>O/1.5||(g.push(x),y>O||o===f[w]))break}m=[]}}var R=Yn(Te(g,function(Z){return Yn(Z,function(Q){return Q.value>=s[0]&&Q.value<=s[1]&&!Q.notAdd})}),function(Z){return Z.length>0}),V=[],B=R.length-1;for(w=0;wu&&(this._approxInterval=u);var p=R_.length,v=Math.min(function(i,r,s,u){for(;s>>1;i[f][1]16?16:o>7.5?7:o>3.5?4:o>1.5?2:1}function ml(o){return(o/=2592e6)>6?6:o>3?3:o>2?2:1}function uU(o){return(o/=ds)>12?12:o>6?6:o>3.5?4:o>2?2:1}function wa(o,i){return(o/=i?6e4:1e3)>30?30:o>20?20:o>15?15:o>10?10:o>5?5:o>2?2:1}function Bv(o){return pm(o,!0)}function cU(o,i,r){var s=new Date(o);switch(ru(i)){case"year":case"month":s[Lz(r)](0);case"day":s[BM(r)](1);case"hour":s[HM(r)](0);case"minute":s[bI(r)](0);case"second":s[zM(r)](0),s[CI(r)](0)}return s.getTime()}du.registerClass(OT);var dU=OT,Hv=du.prototype,L_=Vv.prototype,IT=hi,hU=Math.floor,cL=Math.ceil,lw=Math.pow,Ss=Math.log,F_=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Vv,r._interval=0,r}return he(i,o),i.prototype.getTicks=function(r){var u=this._extent,f=this._originalScale.getExtent();return Te(L_.getTicks.call(this,r),function(p){var v=p.value,g=hi(lw(this.base,v));return g=v===u[0]&&this._fixMin?N_(g,f[0]):g,{value:g=v===u[1]&&this._fixMax?N_(g,f[1]):g}},this)},i.prototype.setExtent=function(r,s){var u=this.base;r=Ss(r)/Ss(u),s=Ss(s)/Ss(u),L_.setExtent.call(this,r,s)},i.prototype.getExtent=function(){var r=this.base,s=Hv.getExtent.call(this);s[0]=lw(r,s[0]),s[1]=lw(r,s[1]);var f=this._originalScale.getExtent();return this._fixMin&&(s[0]=N_(s[0],f[0])),this._fixMax&&(s[1]=N_(s[1],f[1])),s},i.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var s=this.base;r[0]=Ss(r[0])/Ss(s),r[1]=Ss(r[1])/Ss(s),Hv.unionExtent.call(this,r)},i.prototype.unionExtentFromData=function(r,s){this.unionExtent(r.getApproximateExtent(s))},i.prototype.niceTicks=function(r){r=r||10;var s=this._extent,u=s[1]-s[0];if(!(u===1/0||u<=0)){var f=Fd(u);for(r/u*f<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var p=[hi(cL(s[0]/f)*f),hi(hU(s[1]/f)*f)];this._interval=f,this._niceExtent=p}},i.prototype.niceExtent=function(r){L_.niceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.normalize=function(r){return aw(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.scale=function(r){return r=Nv(r,this._extent),lw(this.base,r)},i.type="log",i}(du),RT=F_.prototype;function N_(o,i){return IT(o,ns(i))}RT.getMinorTicks=L_.getMinorTicks,RT.getLabel=L_.getLabel,du.registerClass(F_);var uw=F_,LT=function(){function o(i,r,s){this._prepareParams(i,r,s)}return o.prototype._prepareParams=function(i,r,s){s[1]v&&(p=NaN,v=NaN);var y=zu(p)||zu(v)||i&&!u;this._needCrossZero&&(p>0&&v>0&&!g&&(p=0),p<0&&v<0&&!m&&(v=0));var b=this._determinedMin,w=this._determinedMax;return null!=b&&(p=b,g=!0),null!=w&&(v=w,m=!0),{min:p,max:v,minFixed:g,maxFixed:m,isBlank:y}},o.prototype.modifyDataMinMax=function(i,r){this[fL[i]]=r},o.prototype.setDeterminedMinMax=function(i,r){this[IZ[i]]=r},o.prototype.freeze=function(){this.frozen=!0},o}(),IZ={min:"_determinedMin",max:"_determinedMax"},fL={min:"_dataMin",max:"_dataMax"};function dL(o,i,r){var s=o.rawExtentInfo;return s||(s=new LT(o,i,r),o.rawExtentInfo=s,s)}function Bh(o,i){return null==i?null:zu(i)?NaN:o.parse(i)}function V_(o,i){var r=o.type,s=dL(o,i,o.getExtent()).calculate();o.setBlank(s.isBlank);var u=s.min,f=s.max,d=i.ecModel;if(d&&"time"===r){var p=sL("bar",d),v=!1;if(q(p,function(y){v=v||y.getBaseAxis()===i.axis}),v){var g=ET(p),m=function(o,i,r,s){var u=r.axis.getExtent(),f=u[1]-u[0],d=PT(s,r.axis);if(void 0===d)return{min:o,max:i};var p=1/0;q(d,function(w){p=Math.min(w.offset,p)});var v=-1/0;q(d,function(w){v=Math.max(w.offset+w.width,v)}),p=Math.abs(p),v=Math.abs(v);var g=p+v,m=i-o,b=m/(1-(p+v)/f)-m;return{min:o-=b*(p/g),max:i+=b*(v/g)}}(u,f,i,g);u=m.min,f=m.max}}return{extent:[u,f],fixMin:s.minFixed,fixMax:s.maxFixed}}function Wf(o,i){var r=V_(o,i),s=r.extent,u=i.get("splitNumber");o instanceof uw&&(o.base=i.get("logBase"));var f=o.type;o.setExtent(s[0],s[1]),o.niceExtent({splitNumber:u,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:"interval"===f||"time"===f?i.get("minInterval"):null,maxInterval:"interval"===f||"time"===f?i.get("maxInterval"):null});var d=i.get("interval");null!=d&&o.setInterval&&o.setInterval(d)}function Hh(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getOrdinalMeta?o.getOrdinalMeta():o.getCategories(),extent:[1/0,-1/0]});case"time":return new dU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new(du.getClass(i)||Vv)}}function B_(o){var s,i=o.getLabelModel().get("formatter"),r="category"===o.type?o.scale.getExtent()[0]:null;return"time"===o.scale.type?(s=i,function(u,f){return o.scale.getFormattedLabel(u,f,s)}):"string"==typeof i?function(s){return function(u){var f=o.scale.getLabel(u);return s.replace("{value}",null!=f?f:"")}}(i):"function"==typeof i?function(s){return function(u,f){return null!=r&&(f=u.value-r),s(NT(o,u),f,null!=u.level?{level:u.level}:null)}}(i):function(s){return o.scale.getLabel(s)}}function NT(o,i){return"category"===o.type?o.scale.getLabel(i):i.value}function vL(o,i){var r=i*Math.PI/180,s=o.width,u=o.height,f=s*Math.abs(Math.cos(r))+Math.abs(u*Math.sin(r)),d=s*Math.abs(Math.sin(r))+Math.abs(u*Math.cos(r));return new Ft(o.x,o.y,f,d)}function cw(o){var i=o.get("interval");return null==i?"auto":i}function gL(o){return"category"===o.type&&0===cw(o.getLabelModel())}function H_(o,i){var r={};return q(o.mapDimensionsAll(i),function(s){r[MT(o,s)]=!0}),_n(r)}var zv=function(){function o(){}return o.prototype.getNeedCrossZero=function(){return!this.option.scale},o.prototype.getCoordSysModel=function(){},o}();function pU(o){return gl(null,o)}var _L={isDimensionStacked:ic,enableDataStack:J2,getStackedDimension:MT};function vU(o,i){var r=i;i instanceof Fn||(r=new Fn(i));var s=Hh(r);return s.setExtent(o[0],o[1]),Wf(s,r),s}function yL(o){qr(o,zv)}function bL(o,i){return Or(o,null,null,"normal"!==(i=i||{}).state)}function CL(o,i,r,s,u,f,d,p){return new fn({style:{text:o,font:i,align:r,verticalAlign:s,padding:u,rich:f,overflow:d?"truncate":null,lineHeight:p}}).getBoundingRect()}var Uv=pn();function VT(o,i){var f,d,r=wL(o,"labels"),s=cw(i);return SL(r,s)||(An(s)?f=kU(o,s):(d="auto"===s?function(o){var i=Uv(o).autoInterval;return null!=i?i:Uv(o).autoInterval=o.calculateCategoryInterval()}(o):s,f=SU(o,d)),kL(r,s,{labels:f,labelCategoryInterval:d}))}function wL(o,i){return Uv(o)[i]||(Uv(o)[i]=[])}function SL(o,i){for(var r=0;r1&&m/v>2&&(g=Math.round(Math.ceil(g/v)*v));var y=gL(o),b=d.get("showMinLabel")||y,w=d.get("showMaxLabel")||y;b&&g!==f[0]&&M(f[0]);for(var S=g;S<=f[1];S+=v)M(S);function M(x){var T={value:x};p.push(r?x:{formattedLabel:s(T),rawLabel:u.getLabel(T),tickValue:x})}return w&&S-v!==f[1]&&M(f[1]),p}function kU(o,i,r){var s=o.scale,u=B_(o),f=[];return q(s.getTicks(),function(d){var p=s.getLabel(d),v=d.value;i(d.value,p)&&f.push(r?v:{formattedLabel:u(d),rawLabel:p,tickValue:v})}),f}var MU=[0,1];function xU(o,i){var u=(o[1]-o[0])/i/2;o[0]+=u,o[1]-=u}var _l=function(){function o(i,r,s){this.onBand=!1,this.inverse=!1,this.dim=i,this.scale=r,this._extent=s||[0,0]}return o.prototype.contain=function(i){var r=this._extent,s=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]);return i>=s&&i<=u},o.prototype.containData=function(i){return this.scale.contain(i)},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.getPixelPrecision=function(i){return o0(i||this.scale.getExtent(),this._extent)},o.prototype.setExtent=function(i,r){var s=this._extent;s[0]=i,s[1]=r},o.prototype.dataToCoord=function(i,r){var s=this._extent,u=this.scale;return i=u.normalize(i),this.onBand&&"ordinal"===u.type&&xU(s=s.slice(),u.count()),bn(i,MU,s,r)},o.prototype.coordToData=function(i,r){var s=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&xU(s=s.slice(),u.count());var f=bn(i,s,MU,r);return this.scale.scale(f)},o.prototype.pointToData=function(i,r){},o.prototype.getTicksCoords=function(i){var r=(i=i||{}).tickModel||this.getTickModel(),f=Te(function(o,i){return"category"===o.type?function(o,i){var f,d,r=wL(o,"ticks"),s=cw(i),u=SL(r,s);if(u)return u;if((!i.get("show")||o.scale.isBlank())&&(f=[]),An(s))f=kU(o,s,!0);else if("auto"===s){var p=VT(o,o.getLabelModel());d=p.labelCategoryInterval,f=Te(p.labels,function(v){return v.tickValue})}else f=SU(o,d=s,!0);return kL(r,s,{ticks:f,tickCategoryInterval:d})}(o,i):{ticks:Te(o.scale.getTicks(),function(r){return r.value})}}(this,r).ticks,function(p){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(p):p),tickValue:p}},this);return function(o,i,r,s){var u=i.length;if(o.onBand&&!r&&u){var d,f=o.getExtent();if(1===u)i[0].coord=f[0],d=i[1]={coord:f[0]};else{var g=(i[u-1].coord-i[0].coord)/(i[u-1].tickValue-i[0].tickValue);q(i,function(w){w.coord-=g/2});var m=o.scale.getExtent();i.push(d={coord:i[u-1].coord+g*(1+m[1]-i[u-1].tickValue)})}var y=f[0]>f[1];b(i[0].coord,f[0])&&(s?i[0].coord=f[0]:i.shift()),s&&b(f[0],i[0].coord)&&i.unshift({coord:f[0]}),b(f[1],d.coord)&&(s?d.coord=f[1]:i.pop()),s&&b(d.coord,f[1])&&i.push({coord:f[1]})}function b(w,S){return w=hi(w),S=hi(S),y?w>S:w0&&r<100||(r=5),Te(this.scale.getMinorTicks(r),function(f){return Te(f,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this)},o.prototype.getViewLabels=function(){return function(o){return"category"===o.type?function(o){var i=o.getLabelModel(),r=VT(o,i);return!i.get("show")||o.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}(o):function(o){var i=o.scale.getTicks(),r=B_(o);return{labels:Te(i,function(s,u){return{formattedLabel:r(s,u),rawLabel:o.scale.getLabel(s),tickValue:s.value}})}}(o)}(this).labels},o.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},o.prototype.getTickModel=function(){return this.model.getModel("axisTick")},o.prototype.getBandWidth=function(){var i=this._extent,r=this.scale.getExtent(),s=r[1]-r[0]+(this.onBand?1:0);0===s&&(s=1);var u=Math.abs(i[1]-i[0]);return Math.abs(u)/s},o.prototype.calculateCategoryInterval=function(){return function(o){var i=function(o){var i=o.getLabelModel();return{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}}(o),r=B_(o),s=(i.axisRotate-i.labelRotate)/180*Math.PI,u=o.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=1;d>40&&(p=Math.max(1,Math.floor(d/40)));for(var v=f[0],g=o.dataToCoord(v+1)-o.dataToCoord(v),m=Math.abs(g*Math.cos(s)),y=Math.abs(g*Math.sin(s)),b=0,w=0;v<=f[1];v+=p){var M,x=um(r({value:v}),i.font,"center","top");M=1.3*x.height,b=Math.max(b,1.3*x.width,7),w=Math.max(w,M,7)}var T=b/m,P=w/y;isNaN(T)&&(T=1/0),isNaN(P)&&(P=1/0);var O=Math.max(0,Math.floor(Math.min(T,P))),R=Uv(o.model),V=o.getExtent(),B=R.lastAutoInterval,z=R.lastTickCount;return null!=B&&null!=z&&Math.abs(B-O)<=1&&Math.abs(z-d)<=1&&B>O&&R.axisExtent0===V[0]&&R.axisExtent1===V[1]?O=B:(R.lastTickCount=d,R.lastAutoInterval=O,R.axisExtent0=V[0],R.axisExtent1=V[1]),O}(this)},o}();function NZ(o){var i=qt.extend(o);return qt.registerClass(i),i}function VZ(o){var i=un.extend(o);return un.registerClass(i),i}function TU(o){var i=vt.extend(o);return vt.registerClass(i),i}function DU(o){var i=Vn.extend(o);return Vn.registerClass(i),i}var z_=2*Math.PI,Gv=$s.CMD,BZ=["top","right","bottom","left"];function HZ(o,i,r,s,u){var f=r.width,d=r.height;switch(o){case"top":s.set(r.x+f/2,r.y-i),u.set(0,-1);break;case"bottom":s.set(r.x+f/2,r.y+d+i),u.set(0,1);break;case"left":s.set(r.x-i,r.y+d/2),u.set(-1,0);break;case"right":s.set(r.x+f+i,r.y+d/2),u.set(1,0)}}function AU(o,i,r,s,u,f,d,p,v){d-=o,p-=i;var g=Math.sqrt(d*d+p*p),m=(d/=g)*r+o,y=(p/=g)*r+i;if(Math.abs(s-u)%z_<1e-4)return v[0]=m,v[1]=y,g-r;if(f){var b=s;s=Gt(u),u=Gt(b)}else s=Gt(s),u=Gt(u);s>u&&(u+=z_);var w=Math.atan2(p,d);if(w<0&&(w+=z_),w>=s&&w<=u||w+z_>=s&&w+z_<=u)return v[0]=m,v[1]=y,g-r;var S=r*Math.cos(s)+o,M=r*Math.sin(s)+i,x=r*Math.cos(u)+o,T=r*Math.sin(u)+i,P=(S-d)*(S-d)+(M-p)*(M-p),O=(x-d)*(x-d)+(T-p)*(T-p);return P0){i=i/180*Math.PI,hu.fromArray(o[0]),ir.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,hu,ir),Tt.sub(fo,ci,ir);var r=pu.len(),s=fo.len();if(!(r<.001||s<.001)){pu.scale(1/r),fo.scale(1/s);var u=pu.dot(fo);if(Math.cos(i)1&&Tt.copy(ja,ci),ja.toArray(o[1])}}}}function BT(o,i,r){if(r<=180&&r>0){r=r/180*Math.PI,hu.fromArray(o[0]),ir.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,ir,hu),Tt.sub(fo,ci,ir);var s=pu.len(),u=fo.len();if(!(s<.001||u<.001)&&(pu.scale(1/s),fo.scale(1/u),pu.dot(i)=v)Tt.copy(ja,ci);else{ja.scaleAndAdd(fo,p/Math.tan(Math.PI/2-m));var y=ci.x!==ir.x?(ja.x-ir.x)/(ci.x-ir.x):(ja.y-ir.y)/(ci.y-ir.y);if(isNaN(y))return;y<0?Tt.copy(ja,ir):y>1&&Tt.copy(ja,ci)}ja.toArray(o[1])}}}function HT(o,i,r,s){var u="normal"===r,f=u?o:o.ensureState(r);f.ignore=i;var d=s.get("smooth");d&&!0===d&&(d=.3),f.shape=f.shape||{},d>0&&(f.shape.smooth=d);var p=s.getModel("lineStyle").getLineStyle();u?o.useStyle(p):f.style=p}function jv(o,i){var r=i.smooth,s=i.points;if(s)if(o.moveTo(s[0][0],s[0][1]),r>0&&s.length>=3){var u=Vs(s[0],s[1]),f=Vs(s[1],s[2]);if(!u||!f)return o.lineTo(s[1][0],s[1][1]),void o.lineTo(s[2][0],s[2][1]);var d=Math.min(u,f)*r,p=Cd([],s[1],s[0],d/u),v=Cd([],s[1],s[2],d/f),g=Cd([],p,v,.5);o.bezierCurveTo(p[0],p[1],p[0],p[1],g[0],g[1]),o.bezierCurveTo(v[0],v[1],v[0],v[1],s[2][0],s[2][1])}else for(var m=1;m0&&f&&B(-y/d,0,d);var P,O,x=o[0],T=o[d-1];return R(),P<0&&z(-P,.8),O<0&&z(O,.8),R(),V(P,O,1),V(O,P,-1),R(),P<0&&j(-P),O<0&&j(O),g}function R(){P=x.rect[i]-s,O=u-T.rect[i]-T.rect[r]}function V(X,Z,Q){if(X<0){var te=Math.min(Z,-X);if(te>0){B(te*Q,0,d);var ee=te+X;ee<0&&z(-ee*Q,1)}else z(-X*Q,1)}}function B(X,Z,Q){0!==X&&(g=!0);for(var te=Z;te0)for(ee=0;ee0;ee--)B(-Q[ee-1]*de,ee,d)}}function j(X){var Z=X<0?-1:1;X=Math.abs(X);for(var Q=Math.ceil(X/(d-1)),te=0;te0?B(Q,0,te+1):B(-Q,d-te-1,d),(X-=Q)<=0)return}}function PU(o,i,r,s){return vu(o,"y","height",i,r,s)}function GZ(o){if(o){for(var i=[],r=0;r=0&&s.attr(f.oldLayoutSelect),Rt(b,"emphasis")>=0&&s.attr(f.oldLayoutEmphasis)),ln(s,g,r,v)}else if(s.attr(g),!W0(s).valueAnimation){var y=ot(s.style.opacity,1);s.style.opacity=0,mr(s,{style:{opacity:y}},r,v)}if(f.oldLayout=g,s.states.select){var w=f.oldLayoutSelect={};UT(w,g,Wv),UT(w,s.states.select,Wv)}if(s.states.emphasis){var S=f.oldLayoutEmphasis={};UT(S,g,Wv),UT(S,s.states.emphasis,Wv)}Nm(s,v,m,r,r)}if(u&&!u.ignore&&!u.invisible){var f=jZ(u),M={points:u.shape.points};(d=f.oldLayout)?(u.attr({shape:d}),ln(u,{shape:M},r)):(u.setShape(M),u.style.strokePercent=0,mr(u,{style:{strokePercent:1}},r)),f.oldLayout=M}},o}(),GT=pn();function AL(o){o.registerUpdateLifecycle("series:beforeupdate",function(i,r,s){var u=GT(r).labelManager;u||(u=GT(r).labelManager=new WZ),u.clearLabels()}),o.registerUpdateLifecycle("series:layoutlabels",function(i,r,s){var u=GT(r).labelManager;s.updatedSeries.forEach(function(f){u.addLabelsOfSeries(r.getViewOfSeriesModel(f))}),u.updateLayoutConfig(r),u.layout(r),u.processLabelsOverall()})}function YZ(){return!1}function jT(o,i,r){var s=md(),u=i.getWidth(),f=i.getHeight(),d=s.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=u+"px",d.height=f+"px",s.setAttribute("data-zr-dom-id",o)),s.width=u*r,s.height=f*r,s}Ot(AL);var EL=function(o){function i(r,s,u){var d,f=o.call(this)||this;f.motionBlur=!1,f.lastFrameAlpha=.7,f.dpr=1,f.virtual=!1,f.config={},f.incremental=!1,f.zlevel=0,f.maxRepaintRectCount=5,f.__dirty=!0,f.__firstTimePaint=!0,f.__used=!1,f.__drawIndex=0,f.__startIndex=0,f.__endIndex=0,f.__prevStartIndex=null,f.__prevEndIndex=null,u=u||Kb,"string"==typeof r?d=jT(r,s,u):at(r)&&(r=(d=r).id),f.id=r,f.dom=d;var p=d.style;return p&&(d.onselectstart=YZ,p.webkitUserSelect="none",p.userSelect="none",p.webkitTapHighlightColor="rgba(0,0,0,0)",p["-webkit-touch-callout"]="none",p.padding="0",p.margin="0",p.borderWidth="0"),f.domBack=null,f.ctxBack=null,f.painter=s,f.config=null,f.dpr=u,f}return Rn(i,o),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=jT("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},i.prototype.createRepaintRects=function(r,s,u,f){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var x,d=[],p=this.maxRepaintRectCount,v=!1,g=new Ft(0,0,0,0);function m(P){if(P.isFinite()&&!P.isZero())if(0===d.length)(O=new Ft(0,0,0,0)).copy(P),d.push(O);else{for(var R=!1,V=1/0,B=0,z=0;z=p)}}for(var y=this.__startIndex;y15)break}de.prevElClipPaths&&P.restore()};if(O)if(0===O.length)X=T.__endIndex;else for(var Q=w.dpr,te=0;te0&&i>u[0]){for(v=0;vi);v++);p=s[u[v]]}if(u.splice(v+1,0,i),s[i]=r,!r.virtual)if(p){var g=p.dom;g.nextSibling?d.insertBefore(r.dom,g.nextSibling):d.appendChild(r.dom)}else d.firstChild?d.insertBefore(r.dom,d.firstChild):d.appendChild(r.dom);r.__painter=this}else Ns("Layer of zlevel "+i+" is not valid")},o.prototype.eachLayer=function(i,r){for(var s=this._zlevelList,u=0;u0?.01:0),this._needsManuallyCompositing),m.__builtin__||Ns("ZLevel "+g+" has been used by unkown layer "+m.id),m!==f&&(m.__used=!0,m.__startIndex!==v&&(m.__dirty=!0),m.__startIndex=v,m.__drawIndex=m.incremental?-1:v,r(v),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=v))}r(v),this.eachBuiltinLayer(function(y,b){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},o.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},o.prototype._clearLayer=function(i){i.clear()},o.prototype.setBackgroundColor=function(i){this._backgroundColor=i,q(this._layers,function(r){r.setUnpainted()})},o.prototype.configLayer=function(i,r){if(r){var s=this._layerConfig;s[i]?Be(s[i],r,!0):s[i]=r;for(var u=0;u-1){var r=La(o);r&&(o="rgb("+r[0]+","+r[1]+","+r[2]+")",i=r[3])}}else o="none";return{color:o,opacity:null==i?1:i}}function gw(o,i,r,s,u){for(var f=i.length,d=r.length,p=o.newPos,v=p-s,g=0;p+1-1e-4}function ZT(o,i){i&&Rr(o,"transform","matrix("+ho(i[0])+","+ho(i[1])+","+ho(i[2])+","+ho(i[3])+","+oc(i[4])+","+oc(i[5])+")")}function Rr(o,i,r){(!r||"linear"!==r.type&&"radial"!==r.type)&&o.setAttribute(i,r)}function KT(o,i,r){var s=null==i.opacity?1:i.opacity;if(r instanceof si)o.style.opacity=s+"";else{if(function(o){var i=o.fill;return null!=i&&i!==U_}(i)){var u=vw(i.fill);Rr(o,"fill",u.color),Rr(o,"fill-opacity",(null!=i.fillOpacity?i.fillOpacity*u.opacity*s:u.opacity*s)+"")}else Rr(o,"fill",U_);if(function(o){var i=o.stroke;return null!=i&&i!==U_}(i)){var f=vw(i.stroke);Rr(o,"stroke",f.color);var d=i.lineWidth,p=i.strokeNoScale?r.getLineScale():1;Rr(o,"stroke-width",(p?d/p:0)+""),Rr(o,"paint-order",i.strokeFirst?"stroke":"fill"),Rr(o,"stroke-opacity",(null!=i.strokeOpacity?i.strokeOpacity*f.opacity*s:f.opacity*s)+"");var v=i.lineDash&&d>0&&Xx(i.lineDash,d);if(v){var g=i.lineDashOffset;p&&1!==p&&(v=Te(v,function(m){return m/p}),g&&(g=mw(g/=p))),Rr(o,"stroke-dasharray",v.join(",")),Rr(o,"stroke-dashoffset",(g||0)+"")}else Rr(o,"stroke-dasharray","");i.lineCap&&Rr(o,"stroke-linecap",i.lineCap),i.lineJoin&&Rr(o,"stroke-linejoin",i.lineJoin),i.miterLimit&&Rr(o,"stroke-miterlimit",i.miterLimit+"")}else Rr(o,"stroke",U_)}}var LL=function(){function o(){}return o.prototype.reset=function(){this._d=[],this._str=""},o.prototype.moveTo=function(i,r){this._add("M",i,r)},o.prototype.lineTo=function(i,r){this._add("L",i,r)},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){this._add("C",i,r,s,u,f,d)},o.prototype.quadraticCurveTo=function(i,r,s,u){this._add("Q",i,r,s,u)},o.prototype.arc=function(i,r,s,u,f,d){this.ellipse(i,r,s,s,0,u,f,d)},o.prototype.ellipse=function(i,r,s,u,f,d,p,v){var g=0===this._d.length,m=p-d,y=!v,b=Math.abs(m),w=UU(b-ac)||(y?m>=ac:-m>=ac),S=m>0?m%ac:m%ac+ac,M=!1;M=!!w||!UU(b)&&S>=XT==!!y;var x=oc(i+s*_w(d)),T=oc(r+u*IL(d));w&&(m=y?ac-1e-4:1e-4-ac,M=!0,g&&this._d.push("M",x,T));var P=oc(i+s*_w(d+m)),O=oc(r+u*IL(d+m));if(isNaN(x)||isNaN(T)||isNaN(s)||isNaN(u)||isNaN(f)||isNaN(yw)||isNaN(P)||isNaN(O))return"";this._d.push("A",oc(s),oc(u),mw(f*yw),+M,+y,P,O)},o.prototype.rect=function(i,r,s,u){this._add("M",i,r),this._add("L",i+s,r),this._add("L",i+s,r+u),this._add("L",i,r+u),this._add("L",i,r),this._add("Z")},o.prototype.closePath=function(){this._d.length>0&&this._add("Z")},o.prototype._add=function(i,r,s,u,f,d,p,v,g){this._d.push(i);for(var m=1;m=0;--p)if(d[p]===f)return!0;return!1}),u}return null}return s[0]},o.prototype.doUpdate=function(i,r){if(i){var s=this.getDefs(!1);if(i[this._domName]&&s.contains(i[this._domName]))"function"==typeof r&&r(i);else{var u=this.add(i);u&&(i[this._domName]=u)}}},o.prototype.add=function(i){return null},o.prototype.addDom=function(i){var r=this.getDefs(!0);i.parentNode!==r&&r.appendChild(i)},o.prototype.removeDom=function(i){var r=this.getDefs(!1);r&&i[this._domName]&&(r.removeChild(i[this._domName]),i[this._domName]=null)},o.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var r=[];return q(this._tagNames,function(s){for(var u=i.getElementsByTagName(s),f=0;f-1){var g=La(v)[3],m=uO(v);p.setAttribute("stop-color","#"+m),p.setAttribute("stop-opacity",g+"")}else p.setAttribute("stop-color",u[f].color);s.appendChild(p)}r.__dom=s},i.prototype.markUsed=function(r){if(r.style){var s=r.style.fill;s&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom),(s=r.style.stroke)&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom)}},i}(bw);function qf(o){return o&&(!!o.image||!!o.svgElement)}var ww=new Tx,KZ=function(o){function i(r,s){return o.call(this,r,s,["pattern"],"__pattern_in_use__")||this}return Rn(i,o),i.prototype.addWithoutUpdate=function(r,s){if(s&&s.style){var u=this;q(["fill","stroke"],function(f){var d=s.style[f];if(qf(d)){var p=u.getDefs(!0),v=ww.get(d);v?p.contains(v)||u.addDom(v):v=u.add(d),u.markUsed(s);var g=v.getAttribute("id");r.setAttribute(f,"url(#"+g+")")}})}},i.prototype.add=function(r){if(qf(r)){var s=this.createElement("pattern");return r.id=null==r.id?this.nextId++:r.id,s.setAttribute("id","zr"+this._zrId+"-pattern-"+r.id),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(r,s),this.addDom(s),s}},i.prototype.update=function(r){if(qf(r)){var s=this;this.doUpdate(r,function(){var u=ww.get(r);s.updateDom(r,u)})}},i.prototype.updateDom=function(r,s){var u=r.svgElement;if(u instanceof SVGElement)u.parentNode!==s&&(s.innerHTML="",s.appendChild(u),s.setAttribute("width",r.svgWidth+""),s.setAttribute("height",r.svgHeight+""));else{var f=void 0,d=s.getElementsByTagName("image");if(d.length){if(!r.image)return void s.removeChild(d[0]);f=d[0]}else r.image&&(f=this.createElement("image"));if(f){var p=void 0,v=r.image;if("string"==typeof v?p=v:v instanceof HTMLImageElement?p=v.src:v instanceof HTMLCanvasElement&&(p=v.toDataURL()),p){f.setAttribute("href",p),f.setAttribute("x","0"),f.setAttribute("y","0");var m=zd(p,f,{dirty:function(){}},function(T){s.setAttribute("width",T.width+""),s.setAttribute("height",T.height+"")});m&&m.width&&m.height&&(s.setAttribute("width",m.width+""),s.setAttribute("height",m.height+"")),s.appendChild(f)}}}var w=(r.rotation||0)/Math.PI*180;s.setAttribute("patternTransform","translate("+(r.x||0)+", "+(r.y||0)+") rotate("+w+") scale("+(r.scaleX||1)+", "+(r.scaleY||1)+")"),ww.set(r,s)},i.prototype.markUsed=function(r){r.style&&(qf(r.style.fill)&&o.prototype.markDomUsed.call(this,ww.get(r.style.fill)),qf(r.style.stroke)&&o.prototype.markDomUsed.call(this,ww.get(r.style.stroke)))},i}(bw);function eD(o){var i=o.__clipPaths;return i&&i.length>0}var KU=function(o){function i(r,s){var u=o.call(this,r,s,"clipPath","__clippath_in_use__")||this;return u._refGroups={},u._keyDuplicateCount={},u}return Rn(i,o),i.prototype.markAllUnused=function(){o.prototype.markAllUnused.call(this);var r=this._refGroups;for(var s in r)r.hasOwnProperty(s)&&this.markDomUnused(r[s]);this._keyDuplicateCount={}},i.prototype._getClipPathGroup=function(r,s){if(eD(r)){var u=r.__clipPaths,f=this._keyDuplicateCount,d=function(o){var i=[];if(o)for(var r=0;r0){var u=this.getDefs(!0),f=s[0],d=void 0,p=void 0;f._dom?(p=f._dom.getAttribute("id"),u.contains(d=f._dom)||u.appendChild(d)):(p="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(d=this.createElement("clipPath")).setAttribute("id",p),u.appendChild(d),f._dom=d),this.getSvgProxy(f).brush(f);var g=this.getSvgElement(f);d.innerHTML="",d.appendChild(g),r.setAttribute("clip-path","url(#"+p+")"),s.length>1&&this.updateDom(d,s.slice(1))}else r&&r.setAttribute("clip-path","none")},i.prototype.markUsed=function(r){var s=this;r.__clipPaths&&q(r.__clipPaths,function(u){u._dom&&o.prototype.markDomUsed.call(s,u._dom)})},i.prototype.removeUnused=function(){o.prototype.removeUnused.call(this);var r={},s=this._refGroups;for(var u in s)if(s.hasOwnProperty(u)){var f=s[u];this.isDomUnused(f)?f.parentNode&&f.parentNode.removeChild(f):r[u]=f}this._refGroups=r},i}(bw),$U=function(o){function i(r,s){var u=o.call(this,r,s,["filter"],"__filter_in_use__","_shadowDom")||this;return u._shadowDomMap={},u._shadowDomPool=[],u}return Rn(i,o),i.prototype._getFromPool=function(){var r=this._shadowDomPool.pop();if(!r){(r=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var s=this.createElement("feDropShadow");r.appendChild(s),this.addDom(r)}return r},i.prototype.update=function(r,s){if(function(o){return o&&(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)}(s.style)){var f=function(o){var i=o.style,r=o.getGlobalScale();return[i.shadowColor,(i.shadowBlur||0).toFixed(2),(i.shadowOffsetX||0).toFixed(2),(i.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}(s),d=s._shadowDom=this._shadowDomMap[f];d||(d=this._getFromPool(),this._shadowDomMap[f]=d),this.updateDom(r,s,d)}else this.remove(r,s)},i.prototype.remove=function(r,s){null!=s._shadowDom&&(s._shadowDom=null,r.style.filter="")},i.prototype.updateDom=function(r,s,u){var f=u.children[0],d=s.style,p=s.getGlobalScale(),v=p[0],g=p[1];if(v&&g){var m=d.shadowOffsetX||0,y=d.shadowOffsetY||0,b=d.shadowBlur,w=vw(d.shadowColor);f.setAttribute("dx",m/v+""),f.setAttribute("dy",y/g+""),f.setAttribute("flood-color",w.color),f.setAttribute("flood-opacity",w.opacity+""),f.setAttribute("stdDeviation",b/2/v+" "+b/2/g),u.setAttribute("x","-100%"),u.setAttribute("y","-100%"),u.setAttribute("width","300%"),u.setAttribute("height","300%"),s._shadowDom=u;var T=u.getAttribute("id");r.style.filter="url(#"+T+")"}},i.prototype.removeUnused=function(){if(this.getDefs(!1)){var s=this._shadowDomPool,u=this._shadowDomMap;for(var f in u)u.hasOwnProperty(f)&&s.push(u[f]);this._shadowDomMap={}}},i}(bw);function Sw(o){return parseInt(o,10)}function eG(o){return o instanceof Nt?Yv:o instanceof si?FL:o instanceof Xp?YU:Yv}function tG(o,i){return i&&o&&i.parentNode!==o}function kw(o,i,r){if(tG(o,i)&&r){var s=r.nextSibling;s?o.insertBefore(i,s):o.appendChild(i)}}function nG(o,i){if(tG(o,i)){var r=o.firstChild;r?o.insertBefore(i,r):o.appendChild(i)}}function rG(o,i){i&&o&&i.parentNode===o&&o.removeChild(i)}function iG(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function G_(o){return o.__svgEl}function zL(o){return function(){Ns('In SVG mode painter not support method "'+o+'"')}}var aG=function(){function o(i,r,s,u){this.type="svg",this.refreshHover=zL("refreshHover"),this.pathToImage=zL("pathToImage"),this.configLayer=zL("configLayer"),this.root=i,this.storage=r,this._opts=s=Se({},s||{});var f=bl("svg");f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),f.setAttribute("version","1.1"),f.setAttribute("baseProfile","full"),f.style.cssText="user-select:none;position:absolute;left:0;top:0;";var d=bl("g");f.appendChild(d);var p=bl("g");f.appendChild(p),this._gradientManager=new XU(u,p),this._patternManager=new KZ(u,p),this._clipPathManager=new KU(u,p),this._shadowManager=new $U(u,p);var v=document.createElement("div");v.style.cssText="overflow:hidden;position:relative",this._svgDom=f,this._svgRoot=p,this._backgroundRoot=d,this._viewport=v,i.appendChild(v),v.appendChild(f),this.resize(s.width,s.height),this._visibleList=[]}return o.prototype.getType=function(){return"svg"},o.prototype.getViewportRoot=function(){return this._viewport},o.prototype.getSvgDom=function(){return this._svgDom},o.prototype.getSvgRoot=function(){return this._svgRoot},o.prototype.getViewportRootOffset=function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},o.prototype.refresh=function(){var i=this.storage.getDisplayList(!0);this._paintList(i)},o.prototype.setBackgroundColor=function(i){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var r=bl("rect");r.setAttribute("width",this.getWidth()),r.setAttribute("height",this.getHeight()),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("id",0);var s=vw(i),f=s.opacity;r.setAttribute("fill",s.color),r.setAttribute("fill-opacity",f),this._backgroundRoot.appendChild(r),this._backgroundNode=r},o.prototype.createSVGElement=function(i){return bl(i)},o.prototype.paintOne=function(i){var r=eG(i);return r&&r.brush(i),G_(i)},o.prototype._paintList=function(i){var r=this._gradientManager,s=this._patternManager,u=this._clipPathManager,f=this._shadowManager;r.markAllUnused(),s.markAllUnused(),u.markAllUnused(),f.markAllUnused();for(var d=this._svgRoot,p=this._visibleList,v=i.length,g=[],m=0;m=s&&v+1>=u){for(var g=[],m=0;m=s&&T+1>=u)return OL(S.components);p[w]=S}else p[w]=void 0}f++}for(;f<=d;){var b=y();if(b)return b}}(o,i,r)}(p,g);for(m=0;m\n\r<"))},o}(),UL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(r){var s=new ct,u=Ir("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);s.add(u),u.setStyle(r.lineStyle);var f=this.getData().getVisual("symbol"),d=this.getData().getVisual("symbolRotate"),p="none"===f?"circle":f,v=.8*r.itemHeight,g=Ir(p,(r.itemWidth-v)/2,(r.itemHeight-v)/2,v,v,r.itemStyle.fill);return s.add(g),g.setStyle(r.itemStyle),g.rotation=("inherit"===r.iconRotate?d:r.iconRotate||0)*Math.PI/180,g.setOrigin([r.itemWidth/2,r.itemHeight/2]),p.indexOf("empty")>-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),s},i.type="series.line",i.dependencies=["grid","polar"],i.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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"}},i}(vt);function Xf(o,i){var r=o.mapDimensionsAll("defaultedLabel"),s=r.length;if(1===s){var u=zo(o,i,r[0]);return null!=u?u+"":null}if(s){for(var f=[],d=0;d=0&&s.push(i[f])}return s.join(" ")}function xw(o,i){this.parent.drift(o,i)}var j_=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d.updateData(r,s,u,f),d}return he(i,o),i.prototype._createSymbol=function(r,s,u,f,d){this.removeAll();var p=Ir(r,-1,-1,2,2,null,d);p.attr({z2:100,culling:!0,scaleX:f[0]/2,scaleY:f[1]/2}),p.drift=xw,this._symbolType=r,this.add(p)},i.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){Js(this.childAt(0))},i.prototype.downplay=function(){eu(this.childAt(0))},i.prototype.setZ=function(r,s){var u=this.childAt(0);u.zlevel=r,u.z=s},i.prototype.setDraggable=function(r){var s=this.childAt(0);s.draggable=r,s.cursor=r?"move":s.cursor},i.prototype.updateData=function(r,s,u,f){this.silent=!1;var d=r.getItemVisual(s,"symbol")||"circle",p=r.hostModel,v=i.getSymbolSize(r,s),g=d!==this._symbolType,m=f&&f.disableAnimation;if(g){var y=r.getItemVisual(s,"symbolKeepAspect");this._createSymbol(d,r,s,v,y)}else{(b=this.childAt(0)).silent=!1;var w={scaleX:v[0]/2,scaleY:v[1]/2};m?b.attr(w):ln(b,w,p,s),el(b)}if(this._updateCommon(r,s,v,u,f),g){var b=this.childAt(0);m||(w={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:b.style.opacity}},b.scaleX=b.scaleY=0,b.style.opacity=0,mr(b,w,p,s))}m&&this.childAt(0).stopAnimation("remove"),this._seriesModel=p},i.prototype._updateCommon=function(r,s,u,f,d){var g,m,y,b,w,S,M,x,p=this.childAt(0),v=r.hostModel;if(f&&(g=f.emphasisItemStyle,m=f.blurItemStyle,y=f.selectItemStyle,b=f.focus,w=f.blurScope,S=f.labelStatesModels,M=f.hoverScale,x=f.cursorStyle),!f||r.hasItemOption){var T=f&&f.itemModel?f.itemModel:r.getItemModel(s),P=T.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),b=P.get("focus"),w=P.get("blurScope"),S=lr(T),M=P.getShallow("scale"),x=T.getShallow("cursor")}var O=r.getItemVisual(s,"symbolRotate");p.attr("rotation",(O||0)*Math.PI/180||0);var R=Ah(r.getItemVisual(s,"symbolOffset"),u);R&&(p.x=R[0],p.y=R[1]),x&&p.attr("cursor",x);var V=r.getItemVisual(s,"style"),B=V.fill;if(p instanceof si){var z=p.style;p.useStyle(Se({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},V))}else p.useStyle(p.__isEmptyBrush?Se({},V):V),p.style.decal=null,p.setColor(B,d&&d.symbolInnerColor),p.style.strokeNoScale=!0;var j=r.getItemVisual(s,"liftZ"),X=this._z2;null!=j?null==X&&(this._z2=p.z2,p.z2+=j):null!=X&&(p.z2=X,this._z2=null);var Z=d&&d.useNameLabel;Mi(p,S,{labelFetcher:v,labelDataIndex:s,defaultText:function(le){return Z?r.getName(le):Xf(r,le)},inheritColor:B,defaultOpacity:V.opacity}),this._sizeX=u[0]/2,this._sizeY=u[1]/2;var te=p.ensureState("emphasis");if(te.style=g,p.ensureState("select").style=y,p.ensureState("blur").style=m,M){var ee=Math.max(1.1,3/this._sizeY);te.scaleX=this._sizeX*ee,te.scaleY=this._sizeY*ee}this.setSymbolScale(1),qn(this,b,w)},i.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},i.prototype.fadeOut=function(r,s){var u=this.childAt(0),f=this._seriesModel,d=ht(this).dataIndex,p=s&&s.animation;if(this.silent=u.silent=!0,s&&s.fadeLabel){var v=u.getTextContent();v&&Cf(v,{style:{opacity:0}},f,{dataIndex:d,removeOpt:p,cb:function(){u.removeTextContent()}})}else u.removeTextContent();Cf(u,{style:{opacity:0},scaleX:0,scaleY:0},f,{dataIndex:d,cb:r,removeOpt:p})},i.getSymbolSize=function(r,s){return g_(r.getItemVisual(s,"symbolSize"))},i}(ct);function W_(o,i,r,s){return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(s.isIgnore&&s.isIgnore(r))&&!(s.clipShape&&!s.clipShape.contain(i[0],i[1]))&&"none"!==o.getItemVisual(r,"symbol")}function oG(o){return null!=o&&!at(o)&&(o={isIgnore:o}),o||{}}function nD(o){var i=o.hostModel,r=i.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:i.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:i.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),hoverScale:r.get("scale"),labelStatesModels:lr(i),cursorStyle:i.get("cursor")}}var Y_=function(){function o(i){this.group=new ct,this._SymbolCtor=i||j_}return o.prototype.updateData=function(i,r){r=oG(r);var s=this.group,u=i.hostModel,f=this._data,d=this._SymbolCtor,p=r.disableAnimation,v=nD(i),g={disableAnimation:p},m=r.getSymbolPoint||function(y){return i.getItemLayout(y)};f||s.removeAll(),i.diff(f).add(function(y){var b=m(y);if(W_(i,b,y,r)){var w=new d(i,y,v,g);w.setPosition(b),i.setItemGraphicEl(y,w),s.add(w)}}).update(function(y,b){var w=f.getItemGraphicEl(b),S=m(y);if(W_(i,S,y,r)){var M=i.getItemVisual(y,"symbol")||"circle",x=w&&w.getSymbolType&&w.getSymbolType();if(!w||x&&x!==M)s.remove(w),(w=new d(i,y,v,g)).setPosition(S);else{w.updateData(i,y,v,g);var T={x:S[0],y:S[1]};p?w.attr(T):ln(w,T,u)}s.add(w),i.setItemGraphicEl(y,w)}else s.remove(w)}).remove(function(y){var b=f.getItemGraphicEl(y);b&&b.fadeOut(function(){s.remove(b)})}).execute(),this._getSymbolPoint=m,this._data=i},o.prototype.isPersistent=function(){return!0},o.prototype.updateLayout=function(){var i=this,r=this._data;r&&r.eachItemGraphicEl(function(s,u){var f=i._getSymbolPoint(u);s.setPosition(f),s.markRedraw()})},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=nD(i),this._data=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r,s){function u(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}s=oG(s);for(var f=i.start;f0?r=s[0]:s[1]<0&&(r=s[1]),r}(u,r),d=s.dim,p=u.dim,v=i.mapDimension(p),g=i.mapDimension(d),m="x"===p||"radius"===p?1:0,y=Te(o.dimensions,function(S){return i.mapDimension(S)}),b=!1,w=i.getCalculationInfo("stackResultDimension");return ic(i,y[0])&&(b=!0,y[0]=w),ic(i,y[1])&&(b=!0,y[1]=w),{dataDimsForPoint:y,valueStart:f,valueAxisDim:p,baseAxisDim:d,stacked:!!b,valueDim:v,baseDim:g,baseDataOffset:m,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function sG(o,i,r,s){var u=NaN;o.stacked&&(u=r.get(r.getCalculationInfo("stackedOverDimension"),s)),isNaN(u)&&(u=o.valueStart);var f=o.baseDataOffset,d=[];return d[f]=r.get(o.baseDim,s),d[1-f]=u,i.dataToPoint(d)}var lG="undefined"!=typeof Float32Array,tK=lG?Float32Array:Array;function q_(o){return we(o)?lG?new Float32Array(o):o:new tK(o)}var Zf=Math.min,Kf=Math.max;function jh(o,i){return isNaN(o)||isNaN(i)}function rD(o,i,r,s,u,f,d,p,v){for(var g,m,y,b,w,S,M=r,x=0;x=u||M<0)break;if(jh(T,P)){if(v){M+=f;continue}break}if(M===r)o[f>0?"moveTo":"lineTo"](T,P),y=T,b=P;else{var O=T-g,R=P-m;if(O*O+R*R<.5){M+=f;continue}if(d>0){var V=M+f,B=i[2*V],z=i[2*V+1],j=x+1;if(v)for(;jh(B,z)&&j=s||jh(B,z))w=T,S=P;else{Z=B-g,Q=z-m;var le=T-g,oe=B-T,de=P-m,ge=z-P,_e=void 0,xe=void 0;"x"===p?(_e=Math.abs(le),xe=Math.abs(oe),w=T-_e*d,S=P,te=T+_e*d,ee=P):"y"===p?(_e=Math.abs(de),xe=Math.abs(ge),w=T,S=P-_e*d,te=T,ee=P+_e*d):(_e=Math.sqrt(le*le+de*de),w=T-Z*d*(1-(X=(xe=Math.sqrt(oe*oe+ge*ge))/(xe+_e))),S=P-Q*d*(1-X),ee=P+Q*d*X,te=Zf(te=T+Z*d*X,Kf(B,T)),ee=Zf(ee,Kf(z,P)),te=Kf(te,Zf(B,T)),S=P-(Q=(ee=Kf(ee,Zf(z,P)))-P)*_e/xe,w=Zf(w=T-(Z=te-T)*_e/xe,Kf(g,T)),S=Zf(S,Kf(m,P)),te=T+(Z=T-(w=Kf(w,Zf(g,T))))*xe/_e,ee=P+(Q=P-(S=Kf(S,Zf(m,P))))*xe/_e)}o.bezierCurveTo(y,b,w,S,T,P),y=te,b=ee}else o.lineTo(T,P)}g=T,m=P,M+=f}return x}var jL=function(){this.smooth=0,this.smoothConstraint=!0},fG=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polyline",s}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new jL},i.prototype.buildPath=function(r,s){var u=s.points,f=0,d=u.length/2;if(s.connectNulls){for(;d>0&&jh(u[2*d-2],u[2*d-1]);d--);for(;f=0){var R=g?(S-v)*O+v:(w-p)*O+p;return g?[r,R]:[R,r]}p=w,v=S;break;case d.C:w=f[y++],S=f[y++],M=f[y++],x=f[y++],T=f[y++],P=f[y++];var V=g?C0(p,w,M,T,r,m):C0(v,S,x,P,r,m);if(V>0)for(var B=0;B=0)return R=g?pr(v,S,x,P,z):pr(p,w,M,T,z),g?[r,R]:[R,r]}p=T,v=P}}},i}(Nt),dG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i}(jL),WL=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polygon",s}return he(i,o),i.prototype.getDefaultShape=function(){return new dG},i.prototype.buildPath=function(r,s){var u=s.points,f=s.stackedOnPoints,d=0,p=u.length/2,v=s.smoothMonotone;if(s.connectNulls){for(;p>0&&jh(u[2*p-2],u[2*p-1]);p--);for(;ds)return!1;return!0}(f,i))){var d=i.mapDimension(f.dim),p={};return q(f.getViewLabels(),function(v){var g=f.scale.getRawOrdinalNumber(v.tickValue);p[g]=1}),function(v){return!p.hasOwnProperty(i.get(d,v))}}}}(r,v,d),X=this._data;X&&X.eachItemGraphicEl(function(Je,mt){Je.__temp&&(p.remove(Je),X.setItemGraphicEl(mt,null))}),z||S.remove(),p.add(T);var Q,Z=!b&&r.get("step");d&&d.getArea&&r.get("clip",!0)&&(null!=(Q=d.getArea()).width?(Q.x-=.1,Q.y-=.1,Q.width+=.2,Q.height+=.2):Q.r0&&(Q.r0-=.5,Q.r+=.5)),this._clipShapeForSymbol=Q;var te=function(o,i){var r=o.getVisual("visualMeta");if(r&&r.length&&o.count()&&"cartesian2d"===i.type){for(var s,u,f=r.length-1;f>=0;f--){var d=o.getDimensionInfo(r[f].dimension);if("x"===(s=d&&d.coordDim)||"y"===s){u=r[f];break}}if(u){var p=i.getAxis(s),v=p.scale.getExtent(),g=Te(u.stops,function(T){var P=p.toGlobalCoord(p.dataToCoord(T.value));return isNaN(P)||isFinite(P)||(P=p.toGlobalCoord(p.dataToCoord(v[+(P<0)]))),{offset:0,coord:P,color:T.color}}),m=g.length,y=u.outerColors.slice();m&&g[0].coord>g[m-1].coord&&(g.reverse(),y.reverse());var w=g[0].coord-10,S=g[m-1].coord+10,M=S-w;if(M<.001)return"transparent";q(g,function(T){T.offset=(T.coord-w)/M}),g.push({offset:m?g[m-1].offset:.5,color:y[1]||"transparent"}),g.unshift({offset:m?g[0].offset:.5,color:y[0]||"transparent"});var x=new xv(0,0,0,0,g,!0);return x[s]=w,x[s+"2"]=S,x}}}(v,d)||v.getVisual("style")[v.getVisual("drawType")];M&&w.type===d.type&&Z===this._step?(O&&!x?x=this._newPolygon(y,B):x&&!O&&(T.remove(x),x=this._polygon=null),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(bG(this,d,!1,r)),z&&S.updateData(v,{isIgnore:j,clipShape:Q,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),(!YL(this._stackedOnPoints,B)||!YL(this._points,y))&&(P?this._doUpdateAnimation(v,B,d,u,Z,R):(Z&&(y=Qf(y,d,Z),B&&(B=Qf(B,d,Z))),M.setShape({points:y}),x&&x.setShape({points:y,stackedOnPoints:B})))):(z&&S.updateData(v,{isIgnore:j,clipShape:Q,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),P&&this._initSymbolLabelAnimation(v,d,Q),Z&&(y=Qf(y,d,Z),B&&(B=Qf(B,d,Z))),M=this._newPolyline(y),O&&(x=this._newPolygon(y,B)),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(bG(this,d,!0,r)));var ee=r.get(["emphasis","focus"]),le=r.get(["emphasis","blurScope"]);M.useStyle(tt(g.getLineStyle(),{fill:"none",stroke:te,lineJoin:"bevel"})),ki(M,r,"lineStyle"),M.style.lineWidth>0&&"bolder"===r.get(["emphasis","lineStyle","width"])&&(M.getState("emphasis").style.lineWidth=+M.style.lineWidth+1),ht(M).seriesIndex=r.seriesIndex,qn(M,ee,le);var de=ks(r.get("smooth")),ge=r.get("smoothMonotone"),_e=r.get("connectNulls");if(M.setShape({smooth:de,smoothMonotone:ge,connectNulls:_e}),x){var xe=v.getCalculationInfo("stackedOnSeries"),Me=0;x.useStyle(tt(m.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:v.getVisual("style").decal})),xe&&(Me=ks(xe.get("smooth"))),x.setShape({smooth:de,stackedOnSmooth:Me,smoothMonotone:ge,connectNulls:_e}),ki(x,r,"areaStyle"),ht(x).seriesIndex=r.seriesIndex,qn(x,ee,le)}var He=function(mt){f._changePolyState(mt)};v.eachItemGraphicEl(function(Je){Je&&(Je.onHoverStateChange=He)}),this._polyline.onHoverStateChange=He,this._data=v,this._coordSys=d,this._stackedOnPoints=B,this._points=y,this._step=Z,this._valueOrigin=R},i.prototype.dispose=function(){},i.prototype.highlight=function(r,s,u,f){var d=r.getData(),p=va(d,f);if(this._changePolyState("emphasis"),!(p instanceof Array)&&null!=p&&p>=0){var v=d.getLayout("points"),g=d.getItemGraphicEl(p);if(!g){var m=v[2*p],y=v[2*p+1];if(isNaN(m)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(m,y))return;var b=r.get("zlevel"),w=r.get("z");(g=new j_(d,p)).x=m,g.y=y,g.setZ(b,w);var S=g.getSymbolPath().getTextContent();S&&(S.zlevel=b,S.z=w,S.z2=this._polyline.z2+1),g.__temp=!0,d.setItemGraphicEl(p,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else Vn.prototype.highlight.call(this,r,s,u,f)},i.prototype.downplay=function(r,s,u,f){var d=r.getData(),p=va(d,f);if(this._changePolyState("normal"),null!=p&&p>=0){var v=d.getItemGraphicEl(p);v&&(v.__temp?(d.setItemGraphicEl(p,null),this.group.remove(v)):v.downplay())}else Vn.prototype.downplay.call(this,r,s,u,f)},i.prototype._changePolyState=function(r){var s=this._polygon;Rm(this._polyline,r),s&&Rm(s,r)},i.prototype._newPolyline=function(r){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new fG({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},i.prototype._newPolygon=function(r,s){var u=this._polygon;return u&&this._lineGroup.remove(u),u=new WL({shape:{points:r,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(u),this._polygon=u,u},i.prototype._initSymbolLabelAnimation=function(r,s,u){var f,d,p=s.getBaseAxis(),v=p.inverse;"cartesian2d"===s.type?(f=p.isHorizontal(),d=!1):"polar"===s.type&&(f="angle"===p.dim,d=!0);var g=r.hostModel,m=g.get("animationDuration");"function"==typeof m&&(m=m(null));var y=g.get("animationDelay")||0,b="function"==typeof y?y(null):y;r.eachItemGraphicEl(function(w,S){var M=w;if(M){var T=void 0,P=void 0,O=void 0;if(u)if(d){var R=u,V=s.pointToCoord([w.x,w.y]);f?(T=R.startAngle,P=R.endAngle,O=-V[1]/180*Math.PI):(T=R.r0,P=R.r,O=V[0])}else f?(T=u.x,P=u.x+u.width,O=w.x):(T=u.y+u.height,P=u.y,O=w.y);var z=P===T?0:(O-T)/(P-T);v&&(z=1-z);var j="function"==typeof y?y(S):m*z+b,X=M.getSymbolPath(),Z=X.getTextContent();M.attr({scaleX:0,scaleY:0}),M.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:j}),Z&&Z.animateFrom({style:{opacity:0}},{duration:300,delay:j}),X.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(r,s,u){var f=r.getModel("endLabel");if(iD(r)){var d=r.getData(),p=this._polyline,v=this._endLabel;v||((v=this._endLabel=new fn({z2:200})).ignoreClip=!0,p.setTextContent(this._endLabel),p.disableLabelAnimation=!0);var g=function(o){for(var i=o.length/2;i>0&&_G(o[2*i-2],o[2*i-1]);i--);return i-1}(d.getLayout("points"));g>=0&&(Mi(p,lr(r,"endLabel"),{inheritColor:u,labelFetcher:r,labelDataIndex:g,defaultText:function(y,b,w){return null!=w?Mw(d,w):Xf(d,y)},enableTextSetter:!0},function(o,i){var r=i.getBaseAxis(),s=r.isHorizontal(),u=r.inverse,f=s?u?"right":"left":"center",d=s?"middle":u?"top":"bottom";return{normal:{align:o.get("align")||f,verticalAlign:o.get("verticalAlign")||d}}}(f,s)),p.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(r,s,u,f,d,p,v){var g=this._endLabel,m=this._polyline;if(g){r<1&&null==f.originalX&&(f.originalX=g.x,f.originalY=g.y);var y=u.getLayout("points"),b=u.hostModel,w=b.get("connectNulls"),S=p.get("precision"),M=p.get("distance")||0,x=v.getBaseAxis(),T=x.isHorizontal(),P=x.inverse,O=s.shape,R=P?T?O.x:O.y+O.height:T?O.x+O.width:O.y,V=(T?M:0)*(P?-1:1),B=(T?0:-M)*(P?-1:1),z=T?"x":"y",j=function(o,i,r){for(var f,d,s=o.length/2,u="x"===r?0:1,p=0,v=-1,g=0;g=i||f>=i&&d<=i){v=g;break}p=g,f=d}return{range:[p,v],t:(i-f)/(d-f)}}(y,R,z),X=j.range,Z=X[1]-X[0],Q=void 0;if(Z>=1){if(Z>1&&!w){var te=ZL(y,X[0]);g.attr({x:te[0]+V,y:te[1]+B}),d&&(Q=b.getRawValue(X[0]))}else{(te=m.getPointOn(R,z))&&g.attr({x:te[0]+V,y:te[1]+B});var ee=b.getRawValue(X[0]),le=b.getRawValue(X[1]);d&&(Q=Bd(u,S,ee,le,j.t))}f.lastFrameIndex=X[0]}else{var oe=1===r||f.lastFrameIndex>0?X[0]:0;te=ZL(y,oe),d&&(Q=b.getRawValue(oe)),g.attr({x:te[0]+V,y:te[1]+B})}d&&W0(g).setLabelText(Q)}},i.prototype._doUpdateAnimation=function(r,s,u,f,d,p){var v=this._polyline,g=this._polygon,m=r.hostModel,y=function(o,i,r,s,u,f,d,p){for(var v=function(o,i){var r=[];return i.diff(o).add(function(s){r.push({cmd:"+",idx:s})}).update(function(s,u){r.push({cmd:"=",idx:u,idx1:s})}).remove(function(s){r.push({cmd:"-",idx:s})}).execute(),r}(o,i),g=[],m=[],y=[],b=[],w=[],S=[],M=[],x=GL(u,i,d),T=o.getLayout("points")||[],P=i.getLayout("points")||[],O=0;O3e3||g&&XL(w,M)>3e3)return v.setShape({points:S}),void(g&&g.setShape({points:S,stackedOnPoints:M}));v.shape.__points=y.current,v.shape.points=b;var x={shape:{points:S}};y.current!==b&&(x.shape.__points=y.next),v.stopAnimation(),ln(v,x,m),g&&(g.setShape({points:b,stackedOnPoints:w}),g.stopAnimation(),ln(g,{shape:{stackedOnPoints:M}},m),v.shape.points!==g.shape.points&&(g.shape.points=v.shape.points));for(var T=[],P=y.status,O=0;Or&&(r=i[s]);return isFinite(r)?r:NaN},min:function(i){for(var r=1/0,s=0;s10&&"cartesian2d"===p.type&&d){var g=p.getBaseAxis(),m=p.getOtherAxis(g),y=g.getExtent(),b=u.getDevicePixelRatio(),w=Math.abs(y[1]-y[0])*(b||1),S=Math.round(v/w);if(S>1){"lttb"===d&&r.setData(f.lttbDownSample(f.mapDimension(m.dim),1/S));var M=void 0;"string"==typeof d?M=aD[d]:"function"==typeof d&&(M=d),M&&r.setData(f.downSample(f.mapDimension(m.dim),1/S,M,wG))}}}}}var kG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getMarkerPosition=function(r){var s=this.coordinateSystem;if(s&&s.clampData){var u=s.dataToPoint(s.clampData(r)),f=this.getData(),d=f.getLayout("offset"),p=f.getLayout("size");return u[s.getBaseAxis().isHorizontal()?0:1]+=d+p/2,u}return[NaN,NaN]},i.type="series.__base_bar__",i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},i}(vt);vt.registerClass(kG);var Aw=kG,xG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(){return gl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},i.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},i.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>r&&(r=s),r},i.prototype.brushSelector=function(r,s,u){return u.rect(s.getItemLayout(r))},i.type="series.bar",i.dependencies=["grid","polar"],i.defaultOption=rh(Aw.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}),i}(Aw),Cl=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=function(o){function i(r){var s=o.call(this,r)||this;return s.type="sausage",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Cl},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r0||0,0),p=Math.max(s.r,0),v=.5*(p-d),g=d+v,m=s.startAngle,y=s.endAngle,b=s.clockwise,w=Math.cos(m),S=Math.sin(m),M=Math.cos(y),x=Math.sin(y);(b?y-m<2*Math.PI:m-y<2*Math.PI)&&(r.moveTo(w*d+u,S*d+f),r.arc(w*g+u,S*g+f,v,-Math.PI+m,m,!b)),r.arc(u,f,p,m,y,!b),r.moveTo(M*p+u,x*p+f),r.arc(M*g+u,x*g+f,v,y-2*Math.PI,y-Math.PI,!b),0!==d&&(r.arc(u,f,d,y,m,b),r.moveTo(w*d+u,x*d+f)),r.closePath()},i}(Nt);function K_(o,i,r){return i*Math.sin(o)*(r?-1:1)}function Q_(o,i,r){return i*Math.cos(o)*(r?1:-1)}var qv=[0,0],$_=Math.max,J_=Math.min,Pw=function(o){function i(){var r=o.call(this)||this;return r.type=i.type,r._isFirstFrame=!0,r}return he(i,o),i.prototype.render=function(r,s,u,f){this._model=r,this._removeOnRenderedListener(u),this._updateDrawMode(r);var d=r.get("coordinateSystem");("cartesian2d"===d||"polar"===d)&&(this._isLargeDraw?this._renderLarge(r,s,u):this._renderNormal(r,s,u,f))},i.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},i.prototype.incrementalRender=function(r,s){this._incrementalRenderLarge(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r,s,u,f){var y,d=this.group,p=r.getData(),v=this._data,g=r.coordinateSystem,m=g.getBaseAxis();"cartesian2d"===g.type?y=m.isHorizontal():"polar"===g.type&&(y="angle"===m.dim);var b=r.isAnimationEnabled()?r:null,w=function(o,i){var r=o.get("realtimeSort",!0),s=i.getBaseAxis();if(r&&"category"===s.type&&"cartesian2d"===i.type)return{baseAxis:s,otherAxis:i.getOtherAxis(s)}}(r,g);w&&this._enableRealtimeSort(w,p,u);var S=r.get("clip",!0)||w,M=function(o,i){var r=o.getArea&&o.getArea();if(lc(o,"cartesian2d")){var s=o.getBaseAxis();if("category"!==s.type||!s.onBand){var u=i.getLayout("bandWidth");s.isHorizontal()?(r.x-=u,r.width+=2*u):(r.y-=u,r.height+=2*u)}}return r}(g,p);d.removeClipPath();var x=r.get("roundCap",!0),T=r.get("showBackground",!0),P=r.getModel("backgroundStyle"),O=P.get("borderRadius")||0,R=[],V=this._backgroundEls,B=f&&f.isInitSort,z=f&&"changeAxisOrder"===f.type;function j(Q){var te=Xv[g.type](p,Q),ee=function(o,i,r){return new("polar"===o.type?rr:sn)({shape:tF(i,r,o),silent:!0,z2:0})}(g,y,te);return ee.useStyle(P.getItemStyle()),"cartesian2d"===g.type&&ee.setShape("r",O),R[Q]=ee,ee}p.diff(v).add(function(Q){var te=p.getItemModel(Q),ee=Xv[g.type](p,Q,te);if(T&&j(Q),p.hasValue(Q)&&JL[g.type](ee)){var le=!1;S&&(le=oD[g.type](M,ee));var oe=sD[g.type](r,p,Q,ee,y,b,m.model,!1,x);Zv(oe,p,Q,te,ee,r,y,"polar"===g.type),B?oe.attr({shape:ee}):w?$L(w,b,oe,ee,Q,y,!1,!1):mr(oe,{shape:ee},r,Q),p.setItemGraphicEl(Q,oe),d.add(oe),oe.ignore=le}}).update(function(Q,te){var ee=p.getItemModel(Q),le=Xv[g.type](p,Q,ee);if(T){var oe=void 0;0===V.length?oe=j(te):((oe=V[te]).useStyle(P.getItemStyle()),"cartesian2d"===g.type&&oe.setShape("r",O),R[Q]=oe);var de=Xv[g.type](p,Q);ln(oe,{shape:tF(y,de,g)},b,Q)}var _e=v.getItemGraphicEl(te);if(p.hasValue(Q)&&JL[g.type](le)){var xe=!1;S&&(xe=oD[g.type](M,le))&&d.remove(_e),_e?el(_e):_e=sD[g.type](r,p,Q,le,y,b,m.model,!!_e,x),z||Zv(_e,p,Q,ee,le,r,y,"polar"===g.type),B?_e.attr({shape:le}):w?$L(w,b,_e,le,Q,y,!0,z):ln(_e,{shape:le},r,Q,null),p.setItemGraphicEl(Q,_e),_e.ignore=xe,d.add(_e)}else d.remove(_e)}).remove(function(Q){var te=v.getItemGraphicEl(Q);te&&Fm(te,r,Q)}).execute();var X=this._backgroundGroup||(this._backgroundGroup=new ct);X.removeAll();for(var Z=0;Zp)return!0;p=y}return!1},i.prototype._isOrderDifferentInView=function(r,s){for(var u=s.scale,f=u.getExtent(),d=Math.max(0,f[0]),p=Math.min(f[1],u.getOrdinalMeta().categories.length-1);d<=p;++d)if(r.ordinalNumbers[d]!==u.getRawOrdinalNumber(d))return!0},i.prototype._updateSortWithinSameData=function(r,s,u,f){if(this._isOrderChangedWithinSameData(r,s,u)){var d=this._dataSort(r,u,s);this._isOrderDifferentInView(d,u)&&(this._removeOnRenderedListener(f),f.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",axisId:u.index,sortInfo:d}))}},i.prototype._dispatchInitSort=function(r,s,u){var f=s.baseAxis,d=this._dataSort(r,f,function(p){return r.get(r.mapDimension(s.otherAxis.dim),p)});u.dispatchAction({type:"changeAxisOrder",componentType:f.dim+"Axis",isInitSort:!0,axisId:f.index,sortInfo:d})},i.prototype.remove=function(r,s){this._clear(this._model),this._removeOnRenderedListener(s)},i.prototype.dispose=function(r,s){this._removeOnRenderedListener(s)},i.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},i.prototype._clear=function(r){var s=this.group,u=this._data;r&&r.isAnimationEnabled()&&u&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],u.eachItemGraphicEl(function(f){Fm(f,r,ht(f).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},i.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},i.type="bar",i}(Vn),oD={cartesian2d:function(i,r){var s=r.width<0?-1:1,u=r.height<0?-1:1;s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height);var f=i.x+i.width,d=i.y+i.height,p=$_(r.x,i.x),v=J_(r.x+r.width,f),g=$_(r.y,i.y),m=J_(r.y+r.height,d),y=vf?v:p,r.y=b&&g>d?m:g,r.width=y?0:v-p,r.height=b?0:m-g,s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height),y||b},polar:function(i,r){var s=r.r0<=r.r?1:-1;if(s<0){var u=r.r;r.r=r.r0,r.r0=u}var f=J_(r.r,i.r),d=$_(r.r0,i.r0);r.r=f,r.r0=d;var p=f-d<0;return s<0&&(u=r.r,r.r=r.r0,r.r0=u),p}},sD={cartesian2d:function(i,r,s,u,f,d,p,v,g){var m=new sn({shape:Se({},u),z2:1});return m.__dataIndex=s,m.name="item",d&&(m.shape[f?"height":"width"]=0),m},polar:function(i,r,s,u,f,d,p,v,g){var y=!f&&g?Z_:rr,b=new y({shape:tt({clockwise:u.startAngle0?1:-1,p=u.height>0?1:-1;return{x:u.x+d*f/2,y:u.y+p*f/2,width:u.width-d*f,height:u.height-p*f}},polar:function(i,r,s){var u=i.getItemLayout(r);return{cx:u.cx,cy:u.cy,r0:u.r0,r:u.r,startAngle:u.startAngle,endAngle:u.endAngle}}};function ka(o){return function(i){var r=i?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+r;default:return s}}}(o)}function Zv(o,i,r,s,u,f,d,p){var v=i.getItemVisual(r,"style");p||o.setShape("r",s.get(["itemStyle","borderRadius"])||0),o.useStyle(v);var g=s.getShallow("cursor");g&&o.attr("cursor",g);var m=p?d?u.r>=u.r0?"endArc":"startArc":u.endAngle>=u.startAngle?"endAngle":"startAngle":d?u.height>=0?"bottom":"top":u.width>=0?"right":"left",y=lr(s);Mi(o,y,{labelFetcher:f,labelDataIndex:r,defaultText:Xf(f.getData(),r),inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:m});var b=o.getTextContent();if(p&&b){var w=s.get(["label","position"]);o.textConfig.inside="middle"===w||null,function(o,i,r,s){if("number"!=typeof s)if(we(i))o.setTextConfig({rotation:0});else{var v,u=o.shape,f=u.clockwise?u.startAngle:u.endAngle,d=u.clockwise?u.endAngle:u.startAngle,p=(f+d)/2,g=r(i);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":v=p;break;case"startAngle":case"insideStartAngle":v=f;break;case"endAngle":case"insideEndAngle":v=d;break;default:return void o.setTextConfig({rotation:0})}var m=1.5*Math.PI-v;"middle"===g&&m>Math.PI/2&&m<1.5*Math.PI&&(m-=Math.PI),o.setTextConfig({rotation:m})}else o.setTextConfig({rotation:s})}(o,"outside"===w?m:w,ka(d),s.get(["label","rotate"]))}tu(b,y,f.getRawValue(r),function(M){return Mw(i,M)});var S=s.getModel(["emphasis"]);qn(o,S.get("focus"),S.get("blurScope")),ki(o,s),function(o){return null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle}(u)&&(o.style.fill="none",o.style.stroke="none",q(o.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}var eF=function(){},ey=function(o){function i(r){var s=o.call(this,r)||this;return s.type="largeBar",s}return he(i,o),i.prototype.getDefaultShape=function(){return new eF},i.prototype.buildPath=function(r,s){for(var u=s.points,f=this.__startPoint,d=this.__baseDimIdx,p=0;p=y&&x<=b&&(v<=T?m>=v&&m<=T:m>=T&&m<=v))return d[w]}return-1}(this,o.offsetX,o.offsetY);ht(this).dataIndex=r>=0?r:null},30,!1);function tF(o,i,r){if(lc(r,"cartesian2d")){var s=i,u=r.getArea();return{x:o?s.x:u.x,y:o?u.y:s.y,width:o?s.width:u.width,height:o?u.height:s.height}}return{cx:(u=r.getArea()).cx,cy:u.cy,r0:o?u.r0:i.r0,r:o?u.r:i.r,startAngle:o?i.startAngle:0,endAngle:o?i.endAngle:2*Math.PI}}var nF=Pw,Rw=2*Math.PI,rF=Math.PI/180;function uc(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function Kv(o,i){var r=uc(o,i),s=o.get("center"),u=o.get("radius");we(u)||(u=[0,u]),we(s)||(s=[s,s]);var f=Fe(r.width,i.getWidth()),d=Fe(r.height,i.getHeight()),p=Math.min(f,d);return{cx:Fe(s[0],f)+r.x,cy:Fe(s[1],d)+r.y,r0:Fe(u[0],p/2),r:Fe(u[1],p/2)}}function fD(o,i,r){i.eachSeriesByType(o,function(s){var u=s.getData(),f=u.mapDimension("value"),d=uc(s,r),p=Kv(s,r),v=p.cx,g=p.cy,m=p.r,y=p.r0,b=-s.get("startAngle")*rF,w=s.get("minAngle")*rF,S=0;u.each(f,function(Z){!isNaN(Z)&&S++});var M=u.getSum(f),x=Math.PI/(M||S)*2,T=s.get("clockwise"),P=s.get("roseType"),O=s.get("stillShowZeroSum"),R=u.getDataExtent(f);R[0]=0;var V=Rw,B=0,z=b,j=T?1:-1;if(u.setLayout({viewRect:d,r:m}),u.each(f,function(Z,Q){var te;if(isNaN(Z))u.setItemLayout(Q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:v,cy:g,r0:y,r:P?NaN:m});else{(te="area"!==P?0===M&&O?x:Z*x:Rw/S)r?T:x,V=Math.abs(O.label.y-r);if(V>R.maxY){var B=O.label.x-i-O.len2*u,z=s+O.len,j=Math.abs(B)0){for(var m=d.getItemLayout(0),y=1;isNaN(m&&m.startAngle)&&y0?"right":"left":Je>0?"left":"right"}var Vr,Ol=te.get("rotate");if("number"==typeof Ol)Vr=Ol*(Math.PI/180);else if("center"===ee)Vr=0;else{var _p=Je<0?-He+Math.PI:-He;"radial"===Ol||!0===Ol?Vr=_p:"tangential"===Ol&&"outside"!==ee&&"outer"!==ee?(Vr=_p+Math.PI/2)>Math.PI/2&&(Vr-=Math.PI):Vr=0}if(f=!!Vr,X.x=$t,X.y=zt,X.rotation=Vr,X.setStyle({verticalAlign:"middle"}),Ut){X.setStyle({align:Yt});var x5=X.states.select;x5&&(x5.x+=X.x,x5.y+=X.y)}else{var ZS=X.getBoundingRect().clone();ZS.applyTransform(X.getComputedTransform());var yq=(X.style.margin||0)+2.1;ZS.y-=yq/2,ZS.height+=yq,r.push({label:X,labelLine:Z,position:ee,len:xe,len2:Me,minTurnAngle:_e.get("minTurnAngle"),maxSurfaceAngle:_e.get("maxSurfaceAngle"),surfaceNormal:new Tt(Je,mt),linePoints:Mt,textAlign:Yt,labelDistance:le,labelAlignTo:oe,edgeDistance:de,bleedMargin:ge,rect:ZS})}z.setTextConfig({inside:Ut})}}),!f&&o.get("avoidLabelOverlap")&&function(o,i,r,s,u,f,d,p){for(var v=[],g=[],m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=0;b=f.r0}},i.type="pie",i}(Vn);function po(o,i,r){i=we(i)&&{coordDimensions:i}||Se({encodeDefine:o.getEncode()},i);var s=o.getSource(),u=Fv(s,i).dimensions,f=new Ga(u,o);return f.initData(s,r),f}var mu=function(){function o(i,r){this._getDataWithEncodedVisual=i,this._getRawData=r}return o.prototype.getAllNames=function(){var i=this._getRawData();return i.mapArray(i.getName)},o.prototype.containName=function(i){return this._getRawData().indexOfName(i)>=0},o.prototype.indexOfName=function(i){return this._getDataWithEncodedVisual().indexOfName(i)},o.prototype.getItemVisual=function(i,r){return this._getDataWithEncodedVisual().getItemVisual(i,r)},o}(),Qv=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.mergeOption=function(){o.prototype.mergeOption.apply(this,arguments)},i.prototype.getInitialData=function(){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=[];return s.each(s.mapDimension("value"),function(d){f.push(d)}),u.percent=TO(f,r,s.hostModel.get("percentPrecision")),u.$vars.push("percent"),u},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.type="series.pie",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},i}(vt),sF=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?5e3:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?1e4:this.get("progressiveThreshold"):r},i.prototype.brushSelector=function(r,s,u){return u.point(s.getItemLayout(r))},i.type="series.scatter",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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"}},i}(vt),lF=function(){},Fw=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultShape=function(){return new lF},i.prototype.buildPath=function(r,s){var u=s.points,f=s.size,d=this.symbolProxy,p=d.shape,v=r.getContext?r.getContext():r;if(v&&f[0]<4)this._ctx=v;else{this._ctx=null;for(var m=0;m=0;g--){var m=2*g,y=f[m]-p/2,b=f[m+1]-v/2;if(r>=y&&s>=b&&r<=y+p&&s<=b+v)return g}return-1},i}(Nt),oK=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i,r){this.group.removeAll();var s=new Fw({rectHover:!0,cursor:"default"});s.setShape({points:i.getLayout("points")}),this._setCommon(s,i,!1,r),this.group.add(s),this._incremental=null},o.prototype.updateLayout=function(i){if(!this._incremental){var r=i.getLayout("points");this.group.eachChild(function(s){null!=s.startIndex&&(r=new Float32Array(r.buffer,4*s.startIndex*2,2*(s.endIndex-s.startIndex))),s.setShape("points",r)})}},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r,s){var u;this._incremental?(u=new Fw,this._incremental.addDisplayable(u,!0)):((u=new Fw({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end})).incremental=!0,this.group.add(u)),u.setShape({points:r.getLayout("points")}),this._setCommon(u,r,!!this._incremental,s)},o.prototype._setCommon=function(i,r,s,u){var f=r.hostModel;u=u||{};var d=r.getVisual("symbolSize");i.setShape("size",d instanceof Array?d:[d,d]),i.softClipShape=u.clipShape||null,i.symbolProxy=Ir(r.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var p=i.shape.size[0]<4;i.useStyle(f.getModel("itemStyle").getItemStyle(p?["color","shadowBlur","shadowColor"]:["color"]));var v=r.getVisual("style"),g=v&&v.fill;if(g&&i.setColor(g),!s){var m=ht(i);m.seriesIndex=f.seriesIndex,i.on("mousemove",function(y){m.dataIndex=null;var b=i.findDataIndex(y.offsetX,y.offsetY);b>=0&&(m.dataIndex=b+(i.startIndex||0))})}},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),lK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).updateData(f,{clipShape:this._getClipShape(r)}),this._finished=!0},i.prototype.incrementalPrepareRender=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).incrementalPrepareUpdate(f),this._finished=!1},i.prototype.incrementalRender=function(r,s,u){this._symbolDraw.incrementalUpdate(r,s.getData(),{clipShape:this._getClipShape(s)}),this._finished=r.end===s.getData().count()},i.prototype.updateTransform=function(r,s,u){var f=r.getData();if(this.group.dirty(),!this._finished||f.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var d=Dw("").reset(r,s,u);d.progress&&d.progress({start:0,end:f.count(),count:f.count()},f),this._symbolDraw.updateLayout(f)},i.prototype._getClipShape=function(r){var s=r.coordinateSystem,u=s&&s.getArea&&s.getArea();return r.get("clip",!0)?u:null},i.prototype._updateSymbolDraw=function(r,s){var u=this._symbolDraw,d=s.pipelineContext.large;return(!u||d!==this._isLargeDraw)&&(u&&u.remove(),u=this._symbolDraw=d?new oK:new Y_,this._isLargeDraw=d,this.group.removeAll()),this.group.add(u.group),u},i.prototype.remove=function(r,s){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},i.prototype.dispose=function(){},i.type="scatter",i}(Vn),GG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},i}(qt),vD=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ai).models[0]},i.type="cartesian2dAxis",i}(qt);qr(vD,zv);var jG={show:!0,zlevel: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)"]}}},uK=Be({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},jG),uF=Be({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}}},jG),cF={category:uK,value:uF,time:Be({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},uF),log:tt({scale:!0,logBase:10},uF)},dK={value:1,category:1,time:1,log:1};function ry(o,i,r,s){q(dK,function(u,f){var d=Be(Be({},cF[f],!0),s,!0),p=function(v){function g(){var m=null!==v&&v.apply(this,arguments)||this;return m.type=i+"Axis."+f,m}return he(g,v),g.prototype.mergeDefaultAndTheme=function(m,y){var b=iv(this),w=b?av(m):{};Be(m,y.getTheme().get(f+"Axis")),Be(m,this.getDefaultOption()),m.type=WG(m),b&&kf(m,w,b)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Gf.createByAxisModel(this))},g.prototype.getCategories=function(m){var y=this.option;if("category"===y.type)return m?y.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=i+"Axis."+f,g.defaultOption=d,g}(r);o.registerComponentModel(p)}),o.registerSubTypeDefaulter(i+"Axis",WG)}function WG(o){return o.type||(o.data?"category":"value")}var hK=function(){function o(i){this.type="cartesian",this._dimList=[],this._axes={},this.name=i||""}return o.prototype.getAxis=function(i){return this._axes[i]},o.prototype.getAxes=function(){return Te(this._dimList,function(i){return this._axes[i]},this)},o.prototype.getAxesByScale=function(i){return i=i.toLowerCase(),Yn(this.getAxes(),function(r){return r.scale.type===i})},o.prototype.addAxis=function(i){var r=i.dim;this._axes[r]=i,this._dimList.push(r)},o}(),fF=["x","y"];function qG(o){return"interval"===o.type||"time"===o.type}var vK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=fF,r}return he(i,o),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,s=this.getAxis("y").scale;if(qG(r)&&qG(s)){var u=r.getExtent(),f=s.getExtent(),d=this.dataToPoint([u[0],f[0]]),p=this.dataToPoint([u[1],f[1]]),v=u[1]-u[0],g=f[1]-f[0];if(v&&g){var m=(p[0]-d[0])/v,y=(p[1]-d[1])/g,S=this._transform=[m,0,0,y,d[0]-u[0]*m,d[1]-f[0]*y];this._invTransform=Gl([],S)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(r){var s=this.getAxis("x"),u=this.getAxis("y");return s.contain(s.toLocalCoord(r[0]))&&u.contain(u.toLocalCoord(r[1]))},i.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},i.prototype.dataToPoint=function(r,s,u){u=u||[];var f=r[0],d=r[1];if(this._transform&&null!=f&&isFinite(f)&&null!=d&&isFinite(d))return _i(u,r,this._transform);var p=this.getAxis("x"),v=this.getAxis("y");return u[0]=p.toGlobalCoord(p.dataToCoord(f,s)),u[1]=v.toGlobalCoord(v.dataToCoord(d,s)),u},i.prototype.clampData=function(r,s){var u=this.getAxis("x").scale,f=this.getAxis("y").scale,d=u.getExtent(),p=f.getExtent(),v=u.parse(r[0]),g=f.parse(r[1]);return(s=s||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),v),Math.max(d[0],d[1])),s[1]=Math.min(Math.max(Math.min(p[0],p[1]),g),Math.max(p[0],p[1])),s},i.prototype.pointToData=function(r,s){var u=[];if(this._invTransform)return _i(u,r,this._invTransform);var f=this.getAxis("x"),d=this.getAxis("y");return u[0]=f.coordToData(f.toLocalCoord(r[0]),s),u[1]=d.coordToData(d.toLocalCoord(r[1]),s),u},i.prototype.getOtherAxis=function(r){return this.getAxis("x"===r.dim?"y":"x")},i.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),s=this.getAxis("y").getGlobalExtent(),u=Math.min(r[0],r[1]),f=Math.min(s[0],s[1]),d=Math.max(r[0],r[1])-u,p=Math.max(s[0],s[1])-f;return new Ft(u,f,d,p)},i}(hK),_u=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.index=0,p.type=f||"value",p.position=d||"bottom",p}return he(i,o),i.prototype.isHorizontal=function(){var r=this.position;return"top"===r||"bottom"===r},i.prototype.getGlobalExtent=function(r){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),r&&s[0]>s[1]&&s.reverse(),s},i.prototype.pointToData=function(r,s){return this.coordToData(this.toLocalCoord(r["x"===this.dim?0:1]),s)},i.prototype.setCategorySortInfo=function(r){if("category"!==this.type)return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},i}(_l);function dF(o,i,r){r=r||{};var s=o.coordinateSystem,u=i.axis,f={},d=u.getAxesOnZeroOf()[0],p=u.position,v=d?"onZero":p,g=u.dim,m=s.getRect(),y=[m.x,m.x+m.width,m.y,m.y+m.height],b={left:0,right:1,top:0,bottom:1,onZero:2},w=i.get("offset")||0,S="x"===g?[y[2]-w,y[3]+w]:[y[0]-w,y[1]+w];if(d){var M=d.toGlobalCoord(d.dataToCoord(0));S[b.onZero]=Math.max(Math.min(M,S[1]),S[0])}f.position=["y"===g?S[b[v]]:y[0],"x"===g?S[b[v]]:y[3]],f.rotation=Math.PI/2*("x"===g?0:1),f.labelDirection=f.tickDirection=f.nameDirection={top:-1,bottom:1,left:-1,right:1}[p],f.labelOffset=d?S[b[p]]-S[b.onZero]:0,i.get(["axisTick","inside"])&&(f.tickDirection=-f.tickDirection),ni(r.labelInside,i.get(["axisLabel","inside"]))&&(f.labelDirection=-f.labelDirection);var T=i.get(["axisLabel","rotate"]);return f.labelRotate="top"===v?-T:T,f.z2=1,f}function hF(o){return"cartesian2d"===o.get("coordinateSystem")}function pF(o){var i={xAxisModel:null,yAxisModel:null};return q(i,function(r,s){var u=s.replace(/Model$/,""),f=o.getReferringComponents(u,ai).models[0];i[s]=f}),i}function cc(o,i){return o.getCoordSysModel()===i}function vF(o,i,r,s){r.getAxesOnZeroOf=function(){return f?[f]:[]};var f,u=o[i],d=r.model,p=d.get(["axisLine","onZero"]),v=d.get(["axisLine","onZeroAxisIndex"]);if(p){if(null!=v)gF(u[v])&&(f=u[v]);else for(var g in u)if(u.hasOwnProperty(g)&&gF(u[g])&&!s[m(u[g])]){f=u[g];break}f&&(s[m(f)]=!0)}function m(y){return y.dim+"_"+y.index}}function gF(o){return o&&"category"!==o.type&&"time"!==o.type&&function(o){var i=o.scale.getExtent(),r=i[0],s=i[1];return!(r>0&&s>0||r<0&&s<0)}(o)}var _F=function(){function o(i,r,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fF,this._initCartesian(i,r,s),this.model=i}return o.prototype.getRect=function(){return this._rect},o.prototype.update=function(i,r){var s=this._axesMap;this._updateScale(i,this.model),q(s.x,function(f){Wf(f.scale,f.model)}),q(s.y,function(f){Wf(f.scale,f.model)});var u={};q(s.x,function(f){vF(s,"y",f,u)}),q(s.y,function(f){vF(s,"x",f,u)}),this.resize(this.model,r)},o.prototype.resize=function(i,r,s){var u=i.getBoxLayoutParams(),f=!s&&i.get("containLabel"),d=li(u,{width:r.getWidth(),height:r.getHeight()});this._rect=d;var p=this._axesList;function v(){q(p,function(g){var m=g.isHorizontal(),y=m?[0,d.width]:[0,d.height],b=g.inverse?1:0;g.setExtent(y[b],y[1-b]),function(o,i){var r=o.getExtent(),s=r[0]+r[1];o.toGlobalCoord="x"===o.dim?function(u){return u+i}:function(u){return s-u+i},o.toLocalCoord="x"===o.dim?function(u){return u-i}:function(u){return s-u+i}}(g,m?d.x:d.y)})}v(),f&&(q(p,function(g){if(!g.model.get(["axisLabel","inside"])){var m=function(o){var r=o.scale;if(o.model.get(["axisLabel","show"])&&!r.isBlank()){var s,u,f=r.getExtent();u=r instanceof TT?r.count():(s=r.getTicks()).length;var v,d=o.getLabelModel(),p=B_(o),g=1;u>40&&(g=Math.ceil(u/40));for(var m=0;m0?"top":"bottom",f="center"):hm(u-$f)?(d=s>0?"bottom":"top",f="center"):(d="middle",f=u>0&&u<$f?s>0?"right":"left":s>0?"left":"right"),{rotation:u,textAlign:f,textVerticalAlign:d}},o.makeAxisEventDataBase=function(i){var r={componentType:i.mainType,componentIndex:i.componentIndex};return r[i.mainType+"Index"]=i.componentIndex,r},o.isLabelSilent=function(i){var r=i.get("tooltip");return i.get("silent")||!(i.get("triggerEvent")||r&&r.show)},o}(),gD={axisLine:function(i,r,s,u){var f=r.get(["axisLine","show"]);if("auto"===f&&i.handleAutoShown&&(f=i.handleAutoShown("axisLine")),f){var d=r.axis.getExtent(),p=u.transform,v=[d[0],0],g=[d[1],0];p&&(_i(v,v,p),_i(g,g,p));var m=Se({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Ti({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:m,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1});y.anid="line",s.add(y);var b=r.get(["axisLine","symbol"]);if(null!=b){var w=r.get(["axisLine","symbolSize"]);"string"==typeof b&&(b=[b,b]),("string"==typeof w||"number"==typeof w)&&(w=[w,w]);var S=Ah(r.get(["axisLine","symbolOffset"])||0,w),M=w[0],x=w[1];q([{rotate:i.rotation+Math.PI/2,offset:S[0],r:0},{rotate:i.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((v[0]-g[0])*(v[0]-g[0])+(v[1]-g[1])*(v[1]-g[1]))}],function(T,P){if("none"!==b[P]&&null!=b[P]){var O=Ir(b[P],-M/2,-x/2,M,x,m.stroke,!0),R=T.r+T.offset;O.attr({rotation:T.rotate,x:v[0]+R*Math.cos(i.rotation),y:v[1]-R*Math.sin(i.rotation),silent:!0,z2:11}),s.add(O)}})}}},axisTickLabel:function(i,r,s,u){var f=function(o,i,r,s){var u=r.axis,f=r.getModel("axisTick"),d=f.get("show");if("auto"===d&&s.handleAutoShown&&(d=s.handleAutoShown("axisTick")),d&&!u.scale.isBlank()){for(var p=f.getModel("lineStyle"),v=s.tickDirection*f.get("length"),m=yF(u.getTicksCoords(),i.transform,v,tt(p.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;ym[1]?-1:1,b=["start"===d?m[0]-y*g:"end"===d?m[1]+y*g:(m[0]+m[1])/2,mD(d)?i.labelOffset+p*g:0],S=r.get("nameRotate");null!=S&&(S=S*$f/180),mD(d)?w=fc.innerTextLayout(i.rotation,null!=S?S:i.rotation,p):(w=function(o,i,r,s){var f,d,u=Ld(r-o),p=s[0]>s[1],v="start"===i&&!p||"start"!==i&&p;return hm(u-$f/2)?(d=v?"bottom":"top",f="center"):hm(u-1.5*$f)?(d=v?"top":"bottom",f="center"):(d="middle",f=u<1.5*$f&&u>$f/2?v?"left":"right":v?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:d}}(i.rotation,d,S||0,m),null!=(M=i.axisNameAvailableWidth)&&(M=Math.abs(M/Math.sin(w.rotation)),!isFinite(M)&&(M=null)));var x=v.getFont(),T=r.get("nameTruncate",!0)||{},P=T.ellipsis,O=ni(i.nameTruncateMaxWidth,T.maxWidth,M),R=new fn({x:b[0],y:b[1],rotation:w.rotation,silent:fc.isLabelSilent(r),style:Or(v,{text:f,font:x,overflow:"truncate",width:O,ellipsis:P,fill:v.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Av({el:R,componentModel:r,itemName:f}),R.__fullText=f,R.anid="name",r.get("triggerEvent")){var V=fc.makeAxisEventDataBase(r);V.targetType="axisName",V.name=f,ht(R).eventData=V}u.add(R),R.updateTransform(),s.add(R),R.decomposeTransform()}}};function Ms(o){o&&(o.ignore=!0)}function Vw(o,i){var r=o&&o.getBoundingRect().clone(),s=i&&i.getBoundingRect().clone();if(r&&s){var u=ju([]);return Od(u,u,-o.rotation),r.applyTransform(Jo([],u,o.getLocalTransform())),s.applyTransform(Jo([],u,i.getLocalTransform())),r.intersect(s)}}function mD(o){return"middle"===o||"center"===o}function yF(o,i,r,s,u){for(var f=[],d=[],p=[],v=0;v=0||o===i}function vi(o){var i=CF(o);if(i){var r=i.axisPointerModel,s=i.axis.scale,u=r.option,f=r.get("status"),d=r.get("value");null!=d&&(d=s.parse(d));var p=yD(r);null==f&&(u.status=p?"show":"hide");var v=s.getExtent().slice();v[0]>v[1]&&v.reverse(),(null==d||d>v[1])&&(d=v[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var M=v;null!=S.color&&(M=tt({color:S.color},v));var x=Be(rt(S),{boundaryGap:r,splitNumber:s,scale:u,axisLine:f,axisTick:d,axisLabel:p,name:S.text,nameLocation:"end",nameGap:y,nameTextStyle:M,triggerEvent:b},!1);if(g||(x.name=""),"string"==typeof m){var T=x.name;x.name=m.replace("{value}",null!=T?T:"")}else"function"==typeof m&&(x.name=m(x.name,x));var P=new Fn(x,null,this.ecModel);return qr(P,zv.prototype),P.mainType="radar",P.componentIndex=this.componentIndex,P},this);this._indicatorModels=w},i.prototype.getIndicatorModels=function(){return this._indicatorModels},i.type="radar",i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Be({lineStyle:{color:"#bbb"}},uy.axisLine),axisLabel:wl(uy.axisLabel,!1),axisTick:wl(uy.axisTick,!1),splitLine:wl(uy.splitLine,!0),splitArea:wl(uy.splitArea,!0),indicator:[]},i}(qt),a6=["axisLine","axisTickLabel","axisName"],hc=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},i.prototype._buildAxes=function(r){var s=r.coordinateSystem;q(Te(s.getIndicatorAxes(),function(d){return new yu(d.model,{position:[s.cx,s.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(d){q(a6,d.add,d),this.group.add(d.getGroup())},this)},i.prototype._buildSplitLineAndArea=function(r){var s=r.coordinateSystem,u=s.getIndicatorAxes();if(u.length){var f=r.get("shape"),d=r.getModel("splitLine"),p=r.getModel("splitArea"),v=d.getModel("lineStyle"),g=p.getModel("areaStyle"),m=d.get("show"),y=p.get("show"),b=v.get("color"),w=g.get("color"),S=we(b)?b:[b],M=we(w)?w:[w],x=[],T=[];if("circle"===f)for(var O=u[0].getTicksCoords(),R=s.cx,V=s.cy,B=0;Bg[0]&&isFinite(x)&&isFinite(g[0]))}else y.getTicks().length-1>f&&(S=d(S)),x=hi((M=Math.ceil(g[1]/S)*S)-S*f),y.setExtent(x,M),y.setInterval(S)})},o.prototype.convertToPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.convertFromPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.containPoint=function(i){return console.warn("Not implemented."),!1},o.create=function(i,r){var s=[];return i.eachComponent("radar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeriesByType("radar",function(u){"radar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("radarIndex")||0])}),s},o.dimensions=[],o}();function s6(o){o.registerCoordinateSystem("radar",gi),o.registerComponentModel(Jn),o.registerComponentView(hc),o.registerVisual({seriesType:"radar",reset:function(r){var s=r.getData();s.each(function(u){s.setItemVisual(u,"legendIcon","roundRect")}),s.setVisual("legendIcon","roundRect")}})}var MF="\0_ec_interaction_mutex";function cy(o,i){return!!CD(o)[i]}function CD(o){return o[MF]||(o[MF]={})}function fy(o,i,r,s,u){o.pointerChecker&&o.pointerChecker(s,u.originX,u.originY)&&(Vl(s.event),dy(o,i,r,s,u))}function dy(o,i,r,s,u){u.isAvailableBehavior=Ye(tg,null,r,s),o.trigger(i,u)}function tg(o,i,r){var s=r[o];return!o||s&&(!yt(s)||i.event[s+"Key"])}pl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var hy=function(o){function i(r){var s=o.call(this)||this;s._zr=r;var u=Ye(s._mousedownHandler,s),f=Ye(s._mousemoveHandler,s),d=Ye(s._mouseupHandler,s),p=Ye(s._mousewheelHandler,s),v=Ye(s._pinchHandler,s);return s.enable=function(g,m){this.disable(),this._opt=tt(rt(m)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==g&&(g=!0),(!0===g||"move"===g||"pan"===g)&&(r.on("mousedown",u),r.on("mousemove",f),r.on("mouseup",d)),(!0===g||"scale"===g||"zoom"===g)&&(r.on("mousewheel",p),r.on("pinch",v))},s.disable=function(){r.off("mousedown",u),r.off("mousemove",f),r.off("mouseup",d),r.off("mousewheel",p),r.off("pinch",v)},s}return he(i,o),i.prototype.isDragging=function(){return this._dragging},i.prototype.isPinching=function(){return this._pinching},i.prototype.setPointerChecker=function(r){this.pointerChecker=r},i.prototype.dispose=function(){this.disable()},i.prototype._mousedownHandler=function(r){if(!(xk(r)||r.target&&r.target.draggable)){var s=r.offsetX,u=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,u)&&(this._x=s,this._y=u,this._dragging=!0)}},i.prototype._mousemoveHandler=function(r){if(this._dragging&&tg("moveOnMouseMove",r,this._opt)&&"pinch"!==r.gestureEvent&&!cy(this._zr,"globalPan")){var s=r.offsetX,u=r.offsetY,f=this._x,d=this._y,p=s-f,v=u-d;this._x=s,this._y=u,this._opt.preventDefaultMouseMove&&Vl(r.event),dy(this,"pan","moveOnMouseMove",r,{dx:p,dy:v,oldX:f,oldY:d,newX:s,newY:u,isAvailableBehavior:null})}},i.prototype._mouseupHandler=function(r){xk(r)||(this._dragging=!1)},i.prototype._mousewheelHandler=function(r){var s=tg("zoomOnMouseWheel",r,this._opt),u=tg("moveOnMouseWheel",r,this._opt),f=r.wheelDelta,d=Math.abs(f),p=r.offsetX,v=r.offsetY;if(0!==f&&(s||u)){if(s){var g=d>3?1.4:d>1?1.2:1.1;fy(this,"zoom","zoomOnMouseWheel",r,{scale:f>0?g:1/g,originX:p,originY:v,isAvailableBehavior:null})}if(u){var y=Math.abs(f);fy(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:(f>0?1:-1)*(y>3?.4:y>1?.15:.05),originX:p,originY:v,isAvailableBehavior:null})}}},i.prototype._pinchHandler=function(r){cy(this._zr,"globalPan")||fy(this,"zoom",null,r,{scale:r.pinchScale>1?1.1:1/1.1,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})},i}(Bs);function Ww(o,i,r){var s=o.target;s.x+=i,s.y+=r,s.dirty()}function wD(o,i,r,s){var u=o.target,f=o.zoomLimit,d=o.zoom=o.zoom||1;if(d*=i,f){var p=f.min||0;d=Math.max(Math.min(f.max||1/0,d),p)}var g=d/o.zoom;o.zoom=d,u.x-=(r-u.x)*(g-1),u.y-=(s-u.y)*(g-1),u.scaleX*=g,u.scaleY*=g,u.dirty()}var u6={axisPointer:1,tooltip:1,brush:1};function Yw(o,i,r){var s=i.getComponentByElement(o.topTarget),u=s&&s.coordinateSystem;return s&&s!==r&&!u6.hasOwnProperty(s.mainType)&&u&&u.model!==r}var SD=["rect","circle","line","ellipse","polygon","polyline","path"],TF=et(SD),c6=et(SD.concat(["g"])),DF=et(SD.concat(["g"])),py=pn();function Jf(o){var i=o.getItemStyle(),r=o.get("areaColor");return null!=r&&(i.fill=r),i}function AF(o,i,r,s){var u=s.getModel("itemStyle"),f=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["blur","itemStyle"]),p=s.getModel(["select","itemStyle"]),v=Jf(u),g=Jf(f),m=Jf(p),y=Jf(d),b=o.data;if(b){var w=b.getItemVisual(r,"style"),S=b.getItemVisual(r,"decal");o.isVisualEncodedByVisualMap&&w.fill&&(v.fill=w.fill),S&&(v.decal=lu(S,o.api))}i.setStyle(v),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=g,i.ensureState("select").style=m,i.ensureState("blur").style=y,yf(i)}function qw(o,i,r,s,u,f,d){var p=o.data,v=o.isGeo,g=p&&isNaN(p.get(p.mapDimension("value"),f)),m=p&&p.getItemLayout(f);if(v||g||m&&m.showLabel){var y=v?r:f,b=void 0;(!p||f>=0)&&(b=u);var w=d?{normal:{align:"center",verticalAlign:"middle"}}:null;Mi(i,lr(s),{labelFetcher:b,labelDataIndex:y,defaultText:r},w);var S=i.getTextContent();if(S&&(py(S).ignore=S.ignore,i.textConfig&&d)){var M=i.getBoundingRect().clone();i.textConfig.layoutRect=M,i.textConfig.position=[(d[0]-M.x)/M.width*100+"%",(d[1]-M.y)/M.height*100+"%"]}i.disableLabelAnimation=!0}else i.removeTextContent(),i.removeTextConfig(),i.disableLabelAnimation=null}function kD(o,i,r,s,u,f){o.data?o.data.setItemGraphicEl(f,i):ht(i).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:r,region:s&&s.option||{}}}function EF(o,i,r,s,u){o.data||Av({el:i,componentModel:u,itemName:r,itemTooltipOption:s.get("tooltip")})}function Xw(o,i,r,s,u){i.highDownSilentOnTouch=!!u.get("selectedMode");var f=s.getModel("emphasis"),d=f.get("focus");return qn(i,d,f.get("blurScope")),o.isGeo&&function(o,i,r){var s=ht(o);s.componentMainType=i.mainType,s.componentIndex=i.componentIndex,s.componentHighDownName=r}(i,u,r),d}var PF=function(){function o(i){var r=new ct;this.uid=Bm("ec_map_draw"),this._controller=new hy(i.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new ct),r.add(this._svgGroup=new ct)}return o.prototype.draw=function(i,r,s,u,f){var d="geo"===i.mainType,p=i.getData&&i.getData();d&&r.eachComponent({mainType:"series",subType:"map"},function(T){!p&&T.getHostGeoModel()===i&&(p=T.getData())});var v=i.coordinateSystem,g=this._regionsGroup,m=this.group,y=v.getTransformInfo(),b=y.raw,w=y.roam;!g.childAt(0)||f?(m.x=w.x,m.y=w.y,m.scaleX=w.scaleX,m.scaleY=w.scaleY,m.dirty()):ln(m,w,i);var M=p&&p.getVisual("visualMeta")&&p.getVisual("visualMeta").length>0,x={api:s,geo:v,mapOrGeoModel:i,data:p,isVisualEncodedByVisualMap:M,isGeo:d,transformInfoRaw:b};"geoJSON"===v.resourceType?this._buildGeoJSON(x):"geoSVG"===v.resourceType&&this._buildSVG(x),this._updateController(i,r,s),this._updateMapSelectHandler(i,g,s,u)},o.prototype._buildGeoJSON=function(i){var r=this._regionsGroupByName=et(),s=et(),u=this._regionsGroup,f=i.transformInfoRaw,d=i.mapOrGeoModel,p=i.data,v=function(m){return[m[0]*f.scaleX+f.x,m[1]*f.scaleY+f.y]};u.removeAll(),q(i.geo.regions,function(g){var m=g.name,y=r.get(m),b=s.get(m)||{},w=b.dataIdx,S=b.regionModel;y||(y=r.set(m,new ct),u.add(y),w=p?p.indexOfName(m):null,S=i.isGeo?d.getRegionModel(m):p?p.getItemModel(w):null,s.set(m,{dataIdx:w,regionModel:S}));var M=new Nx({segmentIgnoreThreshold:1,shape:{paths:[]}});y.add(M),q(g.geometries,function(T){if("polygon"===T.type){for(var P=[],O=0;O-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),u},i.type="series.map",i.dependencies=["geo"],i.layoutMode="box",i.defaultOption={zlevel:0,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"},i}(vt);function g6(o){var i={};o.eachSeriesByType("map",function(r){var s=r.getHostGeoModel(),u=s?"o"+s.id:"i"+r.getMapType();(i[u]=i[u]||[]).push(r)}),q(i,function(r,s){for(var u=function(o,i){var r={};return q(o,function(s){s.each(s.mapDimension("value"),function(u,f){var d="ec-"+s.getName(f);r[d]=r[d]||[],isNaN(u)||r[d].push(u)})}),o[0].map(o[0].mapDimension("value"),function(s,u){for(var f="ec-"+o[0].getName(u),d=0,p=1/0,v=-1/0,g=r[f].length,m=0;m1?(S.width=w,S.height=w/m):(S.height=w,S.width=w*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var M=o.getBoxLayoutParams();M.aspect=m,S=li(M,{width:v,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(o.get("center")),this.setZoom(o.get("zoom"))}var DD=new(function(){function o(){this.dimensions=Ts}return o.prototype.create=function(i,r){var s=[];i.eachComponent("geo",function(f,d){var p=f.get("map"),v=new ar(p+d,p,{nameMap:f.get("nameMap"),nameProperty:f.get("nameProperty"),aspectScale:f.get("aspectScale")});v.zoomLimit=f.get("scaleLimit"),s.push(v),f.coordinateSystem=v,v.model=f,v.resize=TD,v.resize(f,r)}),i.eachSeries(function(f){if("geo"===f.get("coordinateSystem")){var p=f.get("geoIndex")||0;f.coordinateSystem=s[p]}});var u={};return i.eachSeriesByType("map",function(f){if(!f.getHostGeoModel()){var d=f.getMapType();u[d]=u[d]||[],u[d].push(f)}}),q(u,function(f,d){var p=Te(f,function(g){return g.get("nameMap")}),v=new ar(d,d,{nameMap:Lb(p),nameProperty:f[0].get("nameProperty"),aspectScale:f[0].get("aspectScale")});v.zoomLimit=ni.apply(null,Te(f,function(g){return g.get("scaleLimit")})),s.push(v),v.resize=TD,v.resize(f[0],r),q(f,function(g){g.coordinateSystem=v,function(o,i){q(i.get("geoCoord"),function(r,s){o.addGeoCoord(s,r)})}(v,g)})}),s},o.prototype.getFilledRegions=function(i,r,s,u){for(var f=(i||[]).slice(),d=et(),p=0;p=0;){var f=i[r];f.hierNode.prelim+=s,f.hierNode.modifier+=s,s+=f.hierNode.shift+(u+=f.hierNode.change)}}(o);var f=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;u?(o.hierNode.prelim=u.hierNode.prelim+i(o,u),o.hierNode.modifier=o.hierNode.prelim-f):o.hierNode.prelim=f}else u&&(o.hierNode.prelim=u.hierNode.prelim+i(o,u));o.parentNode.hierNode.defaultAncestor=function(o,i,r,s){if(i){for(var u=o,f=o,d=f.parentNode.children[0],p=i,v=u.hierNode.modifier,g=f.hierNode.modifier,m=d.hierNode.modifier,y=p.hierNode.modifier;p=Zw(p),f=OD(f),p&&f;){u=Zw(u),d=OD(d),u.hierNode.ancestor=o;var b=p.hierNode.prelim+y-f.hierNode.prelim-g+s(p,f);b>0&&(M6(k6(p,o,r),o,b),g+=b,v+=b),y+=p.hierNode.modifier,g+=f.hierNode.modifier,v+=u.hierNode.modifier,m+=d.hierNode.modifier}p&&!Zw(u)&&(u.hierNode.thread=p,u.hierNode.modifier+=y-v),f&&!OD(d)&&(d.hierNode.thread=f,d.hierNode.modifier+=g-m,r=o)}return r}(o,u,o.parentNode.hierNode.defaultAncestor||s[0],i)}function CK(o){o.setLayout({x:o.hierNode.prelim+o.parentNode.hierNode.modifier},!0),o.hierNode.modifier+=o.parentNode.hierNode.modifier}function Ds(o){return arguments.length?o:x6}function my(o,i){return o-=Math.PI/2,{x:i*Math.cos(o),y:i*Math.sin(o)}}function Zw(o){var i=o.children;return i.length&&o.isExpand?i[i.length-1]:o.hierNode.thread}function OD(o){var i=o.children;return i.length&&o.isExpand?i[0]:o.hierNode.thread}function k6(o,i,r){return o.hierNode.ancestor.parentNode===i.parentNode?o.hierNode.ancestor:r}function M6(o,i,r){var s=r/(i.hierNode.i-o.hierNode.i);i.hierNode.change-=s,i.hierNode.shift+=r,i.hierNode.modifier+=r,i.hierNode.prelim+=r,o.hierNode.change+=s}function x6(o,i){return o.parentNode===i.parentNode?1:2}var T6=function(){this.parentPoint=[],this.childPoints=[]},D6=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new T6},i.prototype.buildPath=function(r,s){var u=s.childPoints,f=u.length,d=s.parentPoint,p=u[0],v=u[f-1];if(1===f)return r.moveTo(d[0],d[1]),void r.lineTo(p[0],p[1]);var g=s.orient,m="TB"===g||"BT"===g?0:1,y=1-m,b=Fe(s.forkPosition,1),w=[];w[m]=d[m],w[y]=d[y]+(v[y]-d[y])*b,r.moveTo(d[0],d[1]),r.lineTo(w[0],w[1]),r.moveTo(p[0],p[1]),w[m]=p[m],r.lineTo(w[0],w[1]),w[m]=v[m],r.lineTo(w[0],w[1]),r.lineTo(v[0],v[1]);for(var S=1;SP.x)||(R-=Math.PI);var z=V?"left":"right",j=p.getModel("label"),X=j.get("rotate"),Z=X*(Math.PI/180),Q=x.getTextContent();Q&&(x.setTextConfig({position:j.get("position")||z,rotation:null==X?-R:Z,origin:"center"}),Q.setStyle("verticalAlign","middle"))}var te=p.get(["emphasis","focus"]),ee="ancestor"===te?d.getAncestorsIndices():"descendant"===te?d.getDescendantIndices():null;ee&&(ht(r).focus=ee),function(o,i,r,s,u,f,d,p){var v=i.getModel(),g=o.get("edgeShape"),m=o.get("layout"),y=o.getOrient(),b=o.get(["lineStyle","curveness"]),w=o.get("edgeForkPosition"),S=v.getModel("lineStyle").getLineStyle(),M=s.__edge;if("curve"===g)i.parentNode&&i.parentNode!==r&&(M||(M=s.__edge=new c_({shape:LD(m,y,b,u,u)})),ln(M,{shape:LD(m,y,b,f,d)},o));else if("polyline"===g&&"orthogonal"===m&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var x=i.children,T=[],P=0;Pr&&(r=u.height)}this.height=r+1},o.prototype.getNodeById=function(i){if(this.getId()===i)return this;for(var r=0,s=this.children,u=s.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,r)},o.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},o.prototype.getModel=function(i){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(i)},o.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},o.prototype.setVisual=function(i,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,r)},o.prototype.getVisual=function(i){return this.hostTree.data.getItemVisual(this.dataIndex,i)},o.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},o.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},o.prototype.getChildIndex=function(){if(this.parentNode){for(var i=this.parentNode.children,r=0;r=0){var s=r.getData().tree.root,u=o.targetNode;if("string"==typeof u&&(u=s.getNodeById(u)),u&&s.contains(u))return{node:u};var f=o.targetNodeId;if(null!=f&&(u=s.getNodeById(f)))return{node:u}}}function VD(o){for(var i=[];o;)(o=o.parentNode)&&i.push(o);return i.reverse()}function BD(o,i){return Rt(VD(o),i)>=0}function HD(o,i){for(var r=[];o;){var s=o.dataIndex;r.push({name:o.name,dataIndex:s,value:i.getRawValue(s)}),o=o.parentNode}return r.reverse(),r}var F6=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r){var s={name:r.name,children:r.data},f=new Fn(r.leaves||{},this,this.ecModel),d=Kw.createTree(s,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=d.getNodeByDataIndex(w);return S&&S.children.length&&S.isExpand||(b.parentModel=f),b})}),v=0;d.eachNode("preorder",function(y){y.depth>v&&(v=y.depth)});var m=r.expandAndCollapse&&r.initialTreeDepth>=0?r.initialTreeDepth:v;return d.root.eachNode("preorder",function(y){var b=y.hostTree.data.getRawDataItem(y.dataIndex);y.isExpand=b&&null!=b.collapsed?!b.collapsed:y.depth<=m}),d.data},i.prototype.getOrient=function(){var r=this.get("orient");return"horizontal"===r?r="LR":"vertical"===r&&(r="TB"),r},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.formatTooltip=function(r,s,u){for(var f=this.getData().tree,d=f.root.children[0],p=f.getNodeByDataIndex(r),v=p.getValue(),g=p.name;p&&p!==d;)g=p.parentNode.name+"."+g,p=p.parentNode;return pi("nameValue",{name:g,value:v,noValue:isNaN(v)||null==v})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s},i.type="series.tree",i.layoutMode="box",i.defaultOption={zlevel:0,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},i}(vt);function pc(o,i){for(var s,r=[o];s=r.pop();)if(i(s),s.isExpand){var u=s.children;if(u.length)for(var f=u.length-1;f>=0;f--)r.push(u[f])}}function V6(o,i){o.eachSeriesByType("tree",function(r){!function(o,i){var r=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(o,i);o.layoutInfo=r;var s=o.get("layout"),u=0,f=0,d=null;"radial"===s?(u=2*Math.PI,f=Math.min(r.height,r.width)/2,d=Ds(function(O,R){return(O.parentNode===R.parentNode?1:2)/O.depth})):(u=r.width,f=r.height,d=Ds());var p=o.getData().tree.root,v=p.children[0];if(v){(function(o){var i=o;i.hierNode={defaultAncestor:null,ancestor:i,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s,u,r=[i];s=r.pop();)if(u=s.children,s.isExpand&&u.length)for(var d=u.length-1;d>=0;d--){var p=u[d];p.hierNode={defaultAncestor:null,ancestor:p,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},r.push(p)}})(p),function(o,i,r){for(var f,s=[o],u=[];f=s.pop();)if(u.push(f),f.isExpand){var d=f.children;if(d.length)for(var p=0;pm.getLayout().x&&(m=O),O.depth>y.depth&&(y=O)});var b=g===m?1:d(g,m)/2,w=b-g.getLayout().x,S=0,M=0,x=0,T=0;if("radial"===s)S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),pc(v,function(O){var R=my(x=(O.getLayout().x+w)*S,T=(O.depth-1)*M);O.setLayout({x:R.x,y:R.y,rawX:x,rawY:T},!0)});else{var P=o.getOrient();"RL"===P||"LR"===P?(M=f/(m.getLayout().x+b+w),S=u/(y.depth-1||1),pc(v,function(O){T=(O.getLayout().x+w)*M,O.setLayout({x:x="LR"===P?(O.depth-1)*S:u-(O.depth-1)*S,y:T},!0)})):("TB"===P||"BT"===P)&&(S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),pc(v,function(O){x=(O.getLayout().x+w)*S,O.setLayout({x:x,y:T="TB"===P?(O.depth-1)*M:f-(O.depth-1)*M},!0)}))}}}(r,i)})}function B6(o){o.eachSeriesByType("tree",function(i){var r=i.getData();r.tree.eachNode(function(u){var d=u.getModel().getModel("itemStyle").getItemStyle();Se(r.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var z6=function(){},jF=["treemapZoomToNode","treemapRender","treemapMove"];function WF(o){var i=o.getData(),s={};i.tree.eachNode(function(u){for(var f=u;f&&f.depth>1;)f=f.parentNode;var d=KM(o.ecModel,f.name||f.dataIndex+"",s);u.setVisual("decal",d)})}function j6(o){var i=0;q(o.children,function(s){j6(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var $w=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventUsingHoverLayer=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};j6(u);var f=r.levels||[],d=this.designatedVisualItemStyle={},p=new Fn({itemStyle:d},this,s),v=Te((f=r.levels=function(o,i){var r=jn(i.get("color")),s=jn(i.get(["aria","decal","decals"]));if(r){var u,f;q(o=o||[],function(p){var v=new Fn(p),g=v.get("color"),m=v.get("decal");(v.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(v.get(["itemStyle","decal"])||m&&"none"!==m)&&(f=!0)});var d=o[0]||(o[0]={});return u||(d.color=r.slice()),!f&&s&&(d.decal=s.slice()),o}}(f,s))||[],function(y){return new Fn(y,p,s)},this),g=Kw.createTree(u,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=g.getNodeByDataIndex(w);return b.parentModel=(S?v[S.depth]:null)||p,b})});return g.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.formatTooltip=function(r,s,u){var f=this.getData(),d=this.getRawValue(r);return pi("nameValue",{name:f.getName(r),value:d})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s.treePathInfo=s.treeAncestors,s},i.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Se(this.layoutInfo,r)},i.prototype.mapIdToIndex=function(r){var s=this._idIndexMap;s||(s=this._idIndexMap=et(),this._idIndexMapCount=0);var u=s.get(r);return null==u&&s.set(r,u=this._idIndexMapCount++),u},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.treemap",i.layoutMode="box",i.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},i}(vt);function qF(o,i,r,s,u,f){var d=[[u?o:o-5,i],[o+r,i],[o+r,i+s],[u?o:o-5,i+s]];return!f&&d.splice(2,0,[o+r+5,i+s/2]),!u&&d.push([o,i+s/2]),d}function q6(o,i,r){ht(o).eventData={componentType:"series",componentSubType:"treemap",componentIndex:i.componentIndex,seriesIndex:i.componentIndex,seriesName:i.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&HD(r,i)}}var X6=function(){function o(i){this.group=new ct,i.add(this.group)}return o.prototype.render=function(i,r,s,u){var f=i.getModel("breadcrumb"),d=this.group;if(d.removeAll(),f.get("show")&&s){var p=f.getModel("itemStyle"),v=p.getModel("textStyle"),g={pos:{left:f.get("left"),right:f.get("right"),top:f.get("top"),bottom:f.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:f.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(s,g,v),this._renderContent(i,g,p,v,u),tC(d,g.pos,g.box)}},o.prototype._prepare=function(i,r,s){for(var u=i;u;u=u.parentNode){var f=wi(u.getModel().get("name"),""),d=s.getTextRect(f),p=Math.max(d.width+16,r.emptyItemWidth);r.totalWidth+=p+8,r.renderList.push({node:u,text:f,width:p})}},o.prototype._renderContent=function(i,r,s,u,f){for(var d=0,p=r.emptyItemWidth,v=i.get(["breadcrumb","height"]),g=function(o,i,r){var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u);return(isNaN(f)||isNaN(parseFloat(o.left)))&&(f=0),(isNaN(p)||isNaN(parseFloat(o.right)))&&(p=s),(isNaN(d)||isNaN(parseFloat(o.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(o.bottom)))&&(v=u),r=lh(r||0),{width:Math.max(p-f-r[1]-r[3],0),height:Math.max(v-d-r[0]-r[2],0)}}(r.pos,r.box),m=r.totalWidth,y=r.renderList,b=y.length-1;b>=0;b--){var w=y[b],S=w.node,M=w.width,x=w.text;m>g.width&&(m-=M-p,M=p,x=null);var T=new ya({shape:{points:qF(d,0,M,v,b===y.length-1,0===b)},style:tt(s.getItemStyle(),{lineJoin:"bevel"}),textContent:new fn({style:{text:x,fill:u.getTextColor(),font:u.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:St(f,S)});T.disableLabelAnimation=!0,this.group.add(T),q6(T,i,S),d+=M+8}},o.prototype.remove=function(){this.group.removeAll()},o}(),Z6=function(){function o(){this._storage=[],this._elExistsMap={}}return o.prototype.add=function(i,r,s,u,f){return!this._elExistsMap[i.id]&&(this._elExistsMap[i.id]=!0,this._storage.push({el:i,target:r,duration:s,delay:u,easing:f}),!0)},o.prototype.finished=function(i){return this._finishedCallback=i,this},o.prototype.start=function(){for(var i=this,r=this._storage.length,s=function(){--r<=0&&(i._storage.length=0,i._elExistsMap={},i._finishedCallback&&i._finishedCallback())},u=0,f=this._storage.length;u3||Math.abs(r.dy)>3)){var s=this.seriesModel.getData().tree.root;if(!s)return;var u=s.getLayout();if(!u)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x+r.dx,y:u.y+r.dy,width:u.width,height:u.height}})}},i.prototype._onZoom=function(r){var s=r.originX,u=r.originY;if("animating"!==this._state){var f=this.seriesModel.getData().tree.root;if(!f)return;var d=f.getLayout();if(!d)return;var p=new Ft(d.x,d.y,d.width,d.height),v=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];Oo(g,g,[-(s-=v.x),-(u-=v.y)]),Qb(g,g,[r.scale,r.scale]),Oo(g,g,[s,u]),p.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:p.x,y:p.y,width:p.width,height:p.height}})}},i.prototype._initEvents=function(r){var s=this;r.on("click",function(u){if("ready"===s._state){var f=s.seriesModel.get("nodeClick",!0);if(f){var d=s.findTarget(u.offsetX,u.offsetY);if(d){var p=d.node;if(p.getLayout().isLeafRoot)s._rootToNode(d);else if("zoomToNode"===f)s._zoomToNode(d);else if("link"===f){var v=p.hostTree.data.getItemModel(p.dataIndex),g=v.get("link",!0),m=v.get("target",!0)||"blank";g&&J0(g,m)}}}}},this)},i.prototype._renderBreadcrumb=function(r,s,u){var f=this;u||(u=null!=r.get("leafDepth",!0)?{node:r.getViewRoot()}:this.findTarget(s.getWidth()/2,s.getHeight()/2))||(u={node:r.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new X6(this.group))).render(r,s,u.node,function(d){"animating"!==f._state&&(BD(r.getViewRoot(),d)?f._rootToNode({node:d}):f._zoomToNode({node:d}))})},i.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},i.prototype.dispose=function(){this._clearController()},i.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype.findTarget=function(r,s){var u;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(d){var p=this._storage.background[d.getRawIndex()];if(p){var v=p.transformCoordToLocal(r,s),g=p.shape;if(!(g.x<=v[0]&&v[0]<=g.x+g.width&&g.y<=v[1]&&v[1]<=g.y+g.height))return!1;u={node:d,offsetX:v[0],offsetY:v[1]}}},this),u},i.type="treemap",i}(Vn),rg=q,DK=at,Sy=function(){function o(i){var r=i.mappingMethod,s=i.type,u=this.option=rt(i);this.type=s,this.mappingMethod=r,this._normalizeData=tj[r];var f=o.visualHandlers[s];this.applyVisual=f.applyVisual,this.getColorMapper=f.getColorMapper,this._normalizedToVisual=f._normalizedToVisual[r],"piecewise"===r?(t1(u),function(o){var i=o.pieceList;o.hasSpecialVisual=!1,q(i,function(r,s){r.originIndex=s,null!=r.visual&&(o.hasSpecialVisual=!0)})}(u)):"category"===r?u.categories?function(o){var i=o.categories,r=o.categoryMap={},s=o.visual;if(rg(i,function(d,p){r[d]=p}),!we(s)){var u=[];at(s)?rg(s,function(d,p){var v=r[p];u[null!=v?v:-1]=d}):u[-1]=s,s=KF(o,u)}for(var f=i.length-1;f>=0;f--)null==s[f]&&(delete r[i[f]],i.pop())}(u):t1(u,!0):(Oa("linear"!==r||u.dataExtent),t1(u))}return o.prototype.mapValueToVisual=function(i){var r=this._normalizeData(i);return this._normalizedToVisual(r,i)},o.prototype.getNormalizer=function(){return Ye(this._normalizeData,this)},o.listVisualTypes=function(){return _n(o.visualHandlers)},o.isValidType=function(i){return o.visualHandlers.hasOwnProperty(i)},o.eachVisual=function(i,r,s){at(i)?q(i,r,s):r.call(s,i)},o.mapVisual=function(i,r,s){var u,f=we(i)?[]:at(i)?{}:(u=!0,null);return o.eachVisual(i,function(d,p){var v=r.call(s,d,p);u?f=v:f[p]=v}),f},o.retrieveVisuals=function(i){var s,r={};return i&&rg(o.visualHandlers,function(u,f){i.hasOwnProperty(f)&&(r[f]=i[f],s=!0)}),s?r:null},o.prepareVisualTypes=function(i){if(we(i))i=i.slice();else{if(!DK(i))return[];var r=[];rg(i,function(s,u){r.push(u)}),i=r}return i.sort(function(s,u){return"color"===u&&"color"!==s&&0===s.indexOf("color")?1:-1}),i},o.dependsOn=function(i,r){return"color"===r?!(!i||0!==i.indexOf(r)):i===r},o.findPieceIndex=function(i,r,s){for(var u,f=1/0,d=0,p=r.length;dg[1]&&(g[1]=v);var m=i.get("colorMappingBy"),y={type:d.name,dataExtent:g,visual:d.range};"color"!==y.type||"index"!==m&&"id"!==m?y.mappingMethod="linear":(y.mappingMethod="category",y.loop=!0);var b=new Qi(y);return ZD(b).drColorMappingBy=m,b}}}(0,u,f,0,v,w);q(w,function(M,x){(M.depth>=r.length||M===r[M.depth])&&QF(M,function(o,i,r,s,u,f){var d=Se({},i);if(u){var p=u.type,v="color"===p&&ZD(u).drColorMappingBy,g="index"===v?s:"id"===v?f.mapIdToIndex(r.getId()):r.getValue(o.get("visualDimension"));d[p]=u.mapValueToVisual(g)}return d}(u,v,M,x,S,s),r,s)})}else b=JF(v),g.fill=b}}function JF(o){var i=KD(o,"color");if(i){var r=KD(o,"colorAlpha"),s=KD(o,"colorSaturation");return s&&(i=$c(i,null,null,s)),r&&(i=Yb(i,r)),i}}function KD(o,i){var r=o[i];if(null!=r&&"none"!==r)return r}function QD(o,i){var r=o.get(i);return we(r)&&r.length?{name:i,range:r}:null}var xy=Math.max,ed=Math.min,eN=ni,Ty=q,tN=["itemStyle","borderWidth"],oj=["itemStyle","gapWidth"],sj=["upperLabel","show"],lj=["upperLabel","height"],uj={seriesType:"treemap",reset:function(i,r,s,u){var f=s.getWidth(),d=s.getHeight(),p=i.option,v=li(i.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()}),g=p.size||[],m=Fe(eN(v.width,g[0]),f),y=Fe(eN(v.height,g[1]),d),b=u&&u.type,S=_y(u,["treemapZoomToNode","treemapRootToNode"],i),M="treemapRender"===b||"treemapMove"===b?u.rootRect:null,x=i.getViewRoot(),T=VD(x);if("treemapMove"!==b){var P="treemapZoomToNode"===b?function(o,i,r,s,u){var f=(i||{}).node,d=[s,u];if(!f||f===r)return d;for(var p,v=s*u,g=v*o.option.zoomToNodeRatio;p=f.parentNode;){for(var m=0,y=p.children,b=0,w=y.length;bUp&&(g=Up),f=p}gp[1]&&(p[1]=g)})):p=[NaN,NaN],{sum:s,dataExtent:p}}(i,d,p);if(0===g.sum)return o.viewChildren=[];if(g.sum=function(o,i,r,s,u){if(!s)return r;for(var f=o.get("visibleMin"),d=u.length,p=d,v=d-1;v>=0;v--){var g=u["asc"===s?d-v-1:v].getValue();g/r*is&&(s=d));var v=o.area*o.area,g=i*i*r;return v?xy(g*s/v,v/(g*u)):1/0}function vj(o,i,r,s,u){var f=i===r.width?0:1,d=1-f,p=["x","y"],v=["width","height"],g=r[p[f]],m=i?o.area/i:0;(u||m>r[v[d]])&&(m=r[v[d]]);for(var y=0,b=o.length;yu&&(u=r);var d=u%2?u+2:u+3;f=[];for(var p=0;p0&&(V[0]=-V[0],V[1]=-V[1]);var z=R[0]<0?-1:1;if("start"!==f.__position&&"end"!==f.__position){var j=-Math.atan2(R[1],R[0]);y[0].8?"left":b[0]<-.8?"right":"center",M=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":f.x=-b[0]*T+m[0],f.y=-b[1]*P+m[1],S=b[0]>.8?"right":b[0]<-.8?"left":"center",M=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f.x=T*z+m[0],f.y=m[1]+X,S=R[0]<0?"right":"left",f.originX=-T*z,f.originY=-X;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f.x=B[0],f.y=B[1]+X,S="center",f.originY=-X;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f.x=-T*z+y[0],f.y=y[1]+X,S=R[0]>=0?"right":"left",f.originX=T*z,f.originY=-X}f.scaleX=f.scaleY=d,f.setStyle({verticalAlign:f.__verticalAlign||M,align:f.__align||S})}}}function w(Z,Q){var te=Z.__specifiedRotation;if(null==te){var ee=v.tangentAt(Q);Z.attr("rotation",(1===Q?-1:1)*Math.PI/2-Math.atan2(ee[1],ee[0]))}else Z.attr("rotation",te)}},i}(ct);function iA(o){var i=o.hostModel;return{lineStyle:i.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:i.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:i.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:lr(i)}}function pN(o){return isNaN(o[0])||isNaN(o[1])}function vN(o){return!pN(o[0])&&!pN(o[1])}var gN=function(){function o(i){this.group=new ct,this._LineCtor=i||Oy}return o.prototype.isPersistent=function(){return!0},o.prototype.updateData=function(i){var r=this,s=this,u=s.group,f=s._lineData;s._lineData=i,f||u.removeAll();var d=iA(i);i.diff(f).add(function(p){r._doAdd(i,p,d)}).update(function(p,v){r._doUpdate(f,i,v,p,d)}).remove(function(p){u.remove(f.getItemGraphicEl(p))}).execute()},o.prototype.updateLayout=function(){var i=this._lineData;!i||i.eachItemGraphicEl(function(r,s){r.updateLayout(i,s)},this)},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=iA(i),this._lineData=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r){function s(p){!p.isGroup&&!function(o){return o.animators&&o.animators.length>0}(p)&&(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var u=i.start;u=0?p+=g:p-=g:S>=0?p-=g:p+=g}return p}function l1(o,i){var r=[],s=ji,u=[[],[],[]],f=[[],[]],d=[];i/=2,o.eachEdge(function(p,v){var g=p.getLayout(),m=p.getVisual("fromSymbol"),y=p.getVisual("toSymbol");g.__original||(g.__original=[Uu(g[0]),Uu(g[1])],g[2]&&g.__original.push(Uu(g[2])));var b=g.__original;if(null!=g[2]){if(ua(u[0],b[0]),ua(u[1],b[2]),ua(u[2],b[1]),m&&"none"!==m){var w=Ey(p.node1),S=wN(u,b[0],w*i);s(u[0][0],u[1][0],u[2][0],S,r),u[0][0]=r[3],u[1][0]=r[4],s(u[0][1],u[1][1],u[2][1],S,r),u[0][1]=r[3],u[1][1]=r[4]}y&&"none"!==y&&(w=Ey(p.node2),S=wN(u,b[1],w*i),s(u[0][0],u[1][0],u[2][0],S,r),u[1][0]=r[1],u[2][0]=r[2],s(u[0][1],u[1][1],u[2][1],S,r),u[1][1]=r[1],u[2][1]=r[2]),ua(g[0],u[0]),ua(g[1],u[2]),ua(g[2],u[1])}else ua(f[0],b[0]),ua(f[1],b[1]),yd(d,f[1],f[0]),bd(d,d),m&&"none"!==m&&(w=Ey(p.node1),Ck(f[0],f[0],d,w*i)),y&&"none"!==y&&(w=Ey(p.node2),Ck(f[1],f[1],d,-w*i)),ua(g[0],f[0]),ua(g[1],f[1])})}function u1(o){return"view"===o.type}var SN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){var u=new Y_,f=new gN,d=this.group;this._controller=new hy(s.getZr()),this._controllerHost={target:d},d.add(u.group),d.add(f.group),this._symbolDraw=u,this._lineDraw=f,this._firstRender=!0},i.prototype.render=function(r,s,u){var f=this,d=r.coordinateSystem;this._model=r;var p=this._symbolDraw,v=this._lineDraw,g=this.group;if(u1(d)){var m={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?g.attr(m):ln(g,m,r)}l1(r.getGraph(),Ay(r));var y=r.getData();p.updateData(y);var b=r.getEdgeData();v.updateData(b),this._updateNodeAndLinkScale(),this._updateController(r,s,u),clearTimeout(this._layoutTimeout);var w=r.forceLayout,S=r.get(["force","layoutAnimation"]);w&&this._startForceLayoutIteration(w,S),y.graph.eachNode(function(P){var O=P.dataIndex,R=P.getGraphicEl(),V=P.getModel();R.off("drag").off("dragend");var B=V.get("draggable");B&&R.on("drag",function(){w&&(w.warmUp(),!f._layouting&&f._startForceLayoutIteration(w,S),w.setFixed(O),y.setItemLayout(O,[R.x,R.y]))}).on("dragend",function(){w&&w.setUnfixed(O)}),R.setDraggable(B&&!!w),"adjacency"===V.get(["emphasis","focus"])&&(ht(R).focus=P.getAdjacentDataIndices())}),y.graph.eachEdge(function(P){var O=P.getGraphicEl();"adjacency"===P.getModel().get(["emphasis","focus"])&&(ht(O).focus={edge:[P.dataIndex],node:[P.node1.dataIndex,P.node2.dataIndex]})});var M="circular"===r.get("layout")&&r.get(["circular","rotateLabel"]),x=y.getLayout("cx"),T=y.getLayout("cy");y.eachItemGraphicEl(function(P,O){var V=y.getItemModel(O).get(["label","rotate"])||0,B=P.getSymbolPath();if(M){var z=y.getItemLayout(O),j=Math.atan2(z[1]-T,z[0]-x);j<0&&(j=2*Math.PI+j);var X=z[0]=0&&i.call(r,s[f],f)},o.prototype.eachEdge=function(i,r){for(var s=this.edges,u=s.length,f=0;f=0&&s[f].node1.dataIndex>=0&&s[f].node2.dataIndex>=0&&i.call(r,s[f],f)},o.prototype.breadthFirstTraverse=function(i,r,s,u){if(r instanceof Kh||(r=this._nodesMap[sg(r)]),r){for(var f="out"===s?"outEdges":"in"===s?"inEdges":"edges",d=0;d=0&&v.node2.dataIndex>=0}),f=0,d=u.length;f=0&&this[o][i].setItemVisual(this.dataIndex,s,u)},getVisual:function(s){return this[o][i].getItemVisual(this.dataIndex,s)},setLayout:function(s,u){this.dataIndex>=0&&this[o][i].setItemLayout(this.dataIndex,s,u)},getLayout:function(){return this[o][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[o][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[o][i].getRawIndex(this.dataIndex)}}}qr(Kh,Ej("hostGraph","data")),qr(Aj,Ej("hostGraph","edgeData"));var Pj=oA;function kN(o,i,r,s,u){for(var f=new Pj(s),d=0;d "+b)),g++)}var S,w=r.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)S=gl(o,r);else{var M=Qm.get(w),x=M&&M.dimensions||[];Rt(x,"value")<0&&x.concat(["value"]);var T=Fv(o,{coordDimensions:x,encodeDefine:r.getEncode()}).dimensions;(S=new Ga(T,r)).initData(o)}var P=new Ga(["value"],r);return P.initData(v,p),u&&u(S,P),L6({mainData:S,struct:f,structAttr:"graph",datas:{node:S,edge:P},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}var FK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments);var s=this;function u(){return s._categoriesData}this.legendVisualProvider=new mu(u,u),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeDefaultAndTheme=function(r){o.prototype.mergeDefaultAndTheme.apply(this,arguments),Nd(r,"edgeLabel",["show"])},i.prototype.getInitialData=function(r,s){var u=r.edges||r.links||[],f=r.data||r.nodes||[],d=this;if(f&&u){!function(o){!tA(o)||(o.__curvenessList=[],o.__edgeMap={},yj(o))}(this);var p=kN(f,u,this,!0,function(g,m){g.wrapMethod("getItemModel",function(S){var T=d._categoriesModels[S.getShallow("category")];return T&&(T.parentModel=S.parentModel,S.parentModel=T),S});var y=Fn.prototype.getModel;function b(S,M){var x=y.call(this,S,M);return x.resolveParentPath=w,x}function w(S){if(S&&("label"===S[0]||"label"===S[1])){var M=S.slice();return"label"===S[0]?M[0]="edgeLabel":"label"===S[1]&&(M[1]="edgeLabel"),M}return S}m.wrapMethod("getItemModel",function(S){return S.resolveParentPath=w,S.getModel=b,S})});return q(p.edges,function(g){!function(o,i,r,s){if(tA(r)){var u=Dy(o,i,r),f=r.__edgeMap,d=f[bj(u)];f[u]&&!d?f[u].isForward=!0:d&&f[u]&&(d.isForward=!0,f[u].isForward=!1),f[u]=f[u]||[],f[u].push(s)}}(g.node1,g.node2,this,g.dataIndex)},this),p.data}},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.getCategoriesData=function(){return this._categoriesData},i.prototype.formatTooltip=function(r,s,u){if("edge"===u){var f=this.getData(),d=this.getDataParams(r,u),p=f.graph.getEdgeByIndex(r),v=f.getName(p.node1.dataIndex),g=f.getName(p.node2.dataIndex),m=[];return null!=v&&m.push(v),null!=g&&m.push(g),pi("nameValue",{name:m.join(" > "),value:d.value,noValue:null==d.value})}return x4({series:this,dataIndex:r,multipleSeries:s})},i.prototype._updateCategoriesData=function(){var r=Te(this.option.categories||[],function(u){return null!=u.value?u:Se({value:0},u)}),s=new Ga(["value"],this);s.initData(r),this._categoriesData=s,this._categoriesModels=s.mapArray(function(u){return s.getItemModel(u)})},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.isAnimationEnabled=function(){return o.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},i.type="series.graph",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={zlevel:0,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"}}},i}(vt),Ma={type:"graphRoam",event:"graphRoam",update:"none"},Ij=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},MN=function(o){function i(r){var s=o.call(this,r)||this;return s.type="pointer",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Ij},i.prototype.buildPath=function(r,s){var u=Math.cos,f=Math.sin,d=s.r,p=s.width,v=s.angle,g=s.x-u(v)*p*(p>=d/3?1:2),m=s.y-f(v)*p*(p>=d/3?1:2);v=s.angle-Math.PI/2,r.moveTo(g,m),r.lineTo(s.x+u(v)*p,s.y+f(v)*p),r.lineTo(s.x+u(s.angle)*d,s.y+f(s.angle)*d),r.lineTo(s.x-u(v)*p,s.y-f(v)*p),r.lineTo(g,m)},i}(Nt);function c1(o,i){var r=null==o?"":o+"";return i&&("string"==typeof i?r=i.replace("{value}",r):"function"==typeof i&&(r=i(o))),r}var sA=2*Math.PI,f1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll();var f=r.get(["axisLine","lineStyle","color"]),d=function(o,i){var r=o.get("center"),s=i.getWidth(),u=i.getHeight(),f=Math.min(s,u);return{cx:Fe(r[0],i.getWidth()),cy:Fe(r[1],i.getHeight()),r:Fe(o.get("radius"),f/2)}}(r,u);this._renderMain(r,s,u,f,d),this._data=r.getData()},i.prototype.dispose=function(){},i.prototype._renderMain=function(r,s,u,f,d){for(var p=this.group,v=r.get("clockwise"),g=-r.get("startAngle")/180*Math.PI,m=-r.get("endAngle")/180*Math.PI,y=r.getModel("axisLine"),w=y.get("roundCap")?Z_:rr,S=y.get("show"),M=y.getModel("lineStyle"),x=M.get("width"),T=(m-g)%sA||m===g?(m-g)%sA:sA,P=g,O=0;S&&O=X&&(0===Z?0:f[Z-1][0]).8?"bottom":"middle",align:le<-.4?"left":le>.4?"right":"center"},{inheritColor:Me}),silent:!0}))}if(P.get("show")&&de!==R){ge=(ge=P.get("distance"))?ge+m:m;for(var He=0;He<=V;He++){le=Math.cos(j),oe=Math.sin(j);var Je=new Ti({shape:{x1:le*(S-ge)+b,y1:oe*(S-ge)+w,x2:le*(S-z-ge)+b,y2:oe*(S-z-ge)+w},silent:!0,style:te});"auto"===te.stroke&&Je.setStyle({stroke:f((de+He/V)/R)}),y.add(Je),j+=Z}j-=Z}else j+=X}},i.prototype._renderPointer=function(r,s,u,f,d,p,v,g,m){var y=this.group,b=this._data,w=this._progressEls,S=[],M=r.get(["pointer","show"]),x=r.getModel("progress"),T=x.get("show"),P=r.getData(),O=P.mapDimension("value"),R=+r.get("min"),V=+r.get("max"),B=[R,V],z=[p,v];function j(Z,Q){var He,ee=P.getItemModel(Z).getModel("pointer"),le=Fe(ee.get("width"),d.r),oe=Fe(ee.get("length"),d.r),de=r.get(["pointer","icon"]),ge=ee.get("offsetCenter"),_e=Fe(ge[0],d.r),xe=Fe(ge[1],d.r),Me=ee.get("keepAspect");return(He=de?Ir(de,_e-le/2,xe-oe,le,oe,null,Me):new MN({shape:{angle:-Math.PI/2,width:le,r:oe,x:_e,y:xe}})).rotation=-(Q+Math.PI/2),He.x=d.cx,He.y=d.cy,He}function X(Z,Q){var ee=x.get("roundCap")?Z_:rr,le=x.get("overlap"),oe=le?x.get("width"):m/P.count(),_e=new ee({shape:{startAngle:p,endAngle:Q,cx:d.cx,cy:d.cy,clockwise:g,r0:le?d.r-oe:d.r-(Z+1)*oe,r:le?d.r:d.r-Z*oe}});return le&&(_e.z2=V-P.get(O,Z)%V),_e}(T||M)&&(P.diff(b).add(function(Z){if(M){var Q=j(Z,p);mr(Q,{rotation:-(bn(P.get(O,Z),B,z,!0)+Math.PI/2)},r),y.add(Q),P.setItemGraphicEl(Z,Q)}if(T){var te=X(Z,p),ee=x.get("clip");mr(te,{shape:{endAngle:bn(P.get(O,Z),B,z,ee)}},r),y.add(te),cs(r.seriesIndex,P.dataType,Z,te),S[Z]=te}}).update(function(Z,Q){if(M){var te=b.getItemGraphicEl(Q),ee=te?te.rotation:p,le=j(Z,ee);le.rotation=ee,ln(le,{rotation:-(bn(P.get(O,Z),B,z,!0)+Math.PI/2)},r),y.add(le),P.setItemGraphicEl(Z,le)}if(T){var oe=w[Q],ge=X(Z,oe?oe.shape.endAngle:p),_e=x.get("clip");ln(ge,{shape:{endAngle:bn(P.get(O,Z),B,z,_e)}},r),y.add(ge),cs(r.seriesIndex,P.dataType,Z,ge),S[Z]=ge}}).execute(),P.each(function(Z){var Q=P.getItemModel(Z),te=Q.getModel("emphasis");if(M){var ee=P.getItemGraphicEl(Z),le=P.getItemVisual(Z,"style"),oe=le.fill;if(ee instanceof si){var de=ee.style;ee.useStyle(Se({image:de.image,x:de.x,y:de.y,width:de.width,height:de.height},le))}else ee.useStyle(le),"pointer"!==ee.type&&ee.setColor(oe);ee.setStyle(Q.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ee.style.fill&&ee.setStyle("fill",f(bn(P.get(O,Z),B,[0,1],!0))),ee.z2EmphasisLift=0,ki(ee,Q),qn(ee,te.get("focus"),te.get("blurScope"))}if(T){var ge=S[Z];ge.useStyle(P.getItemVisual(Z,"style")),ge.setStyle(Q.getModel(["progress","itemStyle"]).getItemStyle()),ge.z2EmphasisLift=0,ki(ge,Q),qn(ge,te.get("focus"),te.get("blurScope"))}}),this._progressEls=S)},i.prototype._renderAnchor=function(r,s){var u=r.getModel("anchor");if(u.get("show")){var d=u.get("size"),p=u.get("icon"),v=u.get("offsetCenter"),g=u.get("keepAspect"),m=Ir(p,s.cx-d/2+Fe(v[0],s.r),s.cy-d/2+Fe(v[1],s.r),d,d,null,g);m.z2=u.get("showAbove")?1:0,m.setStyle(u.getModel("itemStyle").getItemStyle()),this.group.add(m)}},i.prototype._renderTitleAndDetail=function(r,s,u,f,d){var p=this,v=r.getData(),g=v.mapDimension("value"),m=+r.get("min"),y=+r.get("max"),b=new ct,w=[],S=[],M=r.isAnimationEnabled(),x=r.get(["pointer","showAbove"]);v.diff(this._data).add(function(T){w[T]=new fn({silent:!0}),S[T]=new fn({silent:!0})}).update(function(T,P){w[T]=p._titleEls[P],S[T]=p._detailEls[P]}).execute(),v.each(function(T){var P=v.getItemModel(T),O=v.get(g,T),R=new ct,V=f(bn(O,[m,y],[0,1],!0)),B=P.getModel("title");if(B.get("show")){var z=B.get("offsetCenter"),j=d.cx+Fe(z[0],d.r),X=d.cy+Fe(z[1],d.r);(Z=w[T]).attr({z2:x?0:2,style:Or(B,{x:j,y:X,text:v.getName(T),align:"center",verticalAlign:"middle"},{inheritColor:V})}),R.add(Z)}var Q=P.getModel("detail");if(Q.get("show")){var te=Q.get("offsetCenter"),ee=d.cx+Fe(te[0],d.r),le=d.cy+Fe(te[1],d.r),oe=Fe(Q.get("width"),d.r),de=Fe(Q.get("height"),d.r),ge=r.get(["progress","show"])?v.getItemVisual(T,"style").fill:V,Z=S[T],_e=Q.get("formatter");Z.attr({z2:x?0:2,style:Or(Q,{x:ee,y:le,text:c1(O,_e),width:isNaN(oe)?null:oe,height:isNaN(de)?null:de,align:"center",verticalAlign:"middle"},{inheritColor:ge})}),tu(Z,{normal:Q},O,function(Me){return c1(Me,_e)}),M&&Nm(Z,T,v,r,{getFormattedLabel:function(He,Je,mt,$t,zt,Mt){return c1(Mt?Mt.interpolatedValue:O,_e)}}),R.add(Z)}b.add(R)}),this.group.add(b),this._titleEls=w,this._detailEls=S},i.type="gauge",i}(Vn),d1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.visualStyleAccessPath="itemStyle",r}return he(i,o),i.prototype.getInitialData=function(r,s){return po(this,["value"])},i.type="series.gauge",i.defaultOption={zlevel:0,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},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}},i}(vt),h1=["itemStyle","opacity"],Nj=function(o){function i(r,s){var u=o.call(this)||this,f=u,d=new _r,p=new fn;return f.setTextContent(p),u.setTextGuideLine(d),u.updateData(r,s,!0),u}return he(i,o),i.prototype.updateData=function(r,s,u){var f=this,d=r.hostModel,p=r.getItemModel(s),v=r.getItemLayout(s),g=p.getModel("emphasis"),m=p.get(h1);m=null==m?1:m,u||el(f),f.useStyle(r.getItemVisual(s,"style")),f.style.lineJoin="round",u?(f.setShape({points:v.points}),f.style.opacity=0,mr(f,{style:{opacity:m}},d,s)):ln(f,{style:{opacity:m},shape:{points:v.points}},d,s),ki(f,p),this._updateLabel(r,s),qn(this,g.get("focus"),g.get("blurScope"))},i.prototype._updateLabel=function(r,s){var u=this,f=this.getTextGuideLine(),d=u.getTextContent(),p=r.hostModel,v=r.getItemModel(s),m=r.getItemLayout(s).label,y=r.getItemVisual(s,"style"),b=y.fill;Mi(d,lr(v),{labelFetcher:r.hostModel,labelDataIndex:s,defaultOpacity:y.opacity,defaultText:r.getName(s)},{normal:{align:m.textAlign,verticalAlign:m.verticalAlign}}),u.setTextConfig({local:!0,inside:!!m.inside,insideStroke:b,outsideFill:b});var w=m.linePoints;f.setShape({points:w}),u.textGuideLineConfig={anchor:w?new Tt(w[0][0],w[0][1]):null},ln(d,{style:{x:m.x,y:m.y}},p,s),d.attr({rotation:m.rotation,originX:m.x,originY:m.y,z2:10}),dw(u,TL(v),{stroke:b})},i}(ya),xa=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreLabelLineUpdate=!0,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this._data,p=this.group;f.diff(d).add(function(v){var g=new Nj(f,v);f.setItemGraphicEl(v,g),p.add(g)}).update(function(v,g){var m=d.getItemGraphicEl(g);m.updateData(f,v),p.add(m),f.setItemGraphicEl(v,m)}).remove(function(v){Fm(d.getItemGraphicEl(v),r,v)}).execute(),this._data=f},i.prototype.remove=function(){this.group.removeAll(),this._data=null},i.prototype.dispose=function(){},i.type="funnel",i}(Vn),Bj=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.getInitialData=function(r,s){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=s.mapDimension("value"),d=s.getSum(f);return u.percent=d?+(s.get(f,r)/d*100).toFixed(2):0,u.$vars.push("percent"),u},i.type="series.funnel",i.defaultOption={zlevel:0,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"}}},i}(vt);function zj(o,i){o.eachSeriesByType("funnel",function(r){var s=r.getData(),u=s.mapDimension("value"),f=r.get("sort"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i),p=r.get("orient"),v=d.width,g=d.height,m=function(o,i){for(var r=o.mapDimension("value"),s=o.mapArray(r,function(v){return v}),u=[],f="ascending"===i,d=0,p=o.count();d5)return;var f=this._model.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]);"none"!==f.behavior&&this._dispatchExpand({axisExpandWindow:f.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(i){if(!this._mouseDownPoint&&cA(this,"mousemove")){var r=this._model,s=r.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]),u=s.behavior;"jump"===u&&this._throttledDispatchExpand.debounceNextCall(r.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===u?null:{axisExpandWindow:s.axisExpandWindow,animation:"jump"===u?null:{duration:0}})}}};function cA(o,i){var r=o._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===i}var Jj=Ya,t7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},i.prototype.mergeOption=function(r){r&&Be(this.option,r,!0),this._initDimensions()},i.prototype.contains=function(r,s){var u=r.get("parallelIndex");return null!=u&&s.getComponent("parallel",u)===this},i.prototype.setAxisExpand=function(r){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(s){r.hasOwnProperty(s)&&(this.option[s]=r[s])},this)},i.prototype._initDimensions=function(){var r=this.dimensions=[],s=this.parallelAxisIndex=[];q(Yn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this),function(f){r.push("dim"+f.get("dim")),s.push(f.componentIndex)})},i.type="parallel",i.dependencies=["parallelAxis"],i.layoutMode="box",i.defaultOption={zlevel:0,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},i}(qt),fA=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.type=f||"value",p.axisIndex=d,p}return he(i,o),i.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},i}(_l);function kl(o,i,r,s,u,f){o=o||0;var d=r[1]-r[0];if(null!=u&&(u=ug(u,[0,d])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===s){var p=Math.abs(i[1]-i[0]);p=ug(p,[0,d]),u=f=ug(p,[u,f]),s=0}i[0]=ug(i[0],r),i[1]=ug(i[1],r);var v=p1(i,s);i[s]+=o;var y,g=u||0,m=r.slice();return v.sign<0?m[0]+=g:m[1]-=g,i[s]=ug(i[s],m),y=p1(i,s),null!=u&&(y.sign!==v.sign||y.spanf&&(i[1-s]=i[s]+y.sign*f),i}function p1(o,i){var r=o[i]-o[1-i];return{span:Math.abs(r),sign:r>0?-1:r<0?1:i?-1:1}}function ug(o,i){return Math.min(null!=i[1]?i[1]:1/0,Math.max(null!=i[0]?i[0]:-1/0,o))}var dA=q,ON=Math.min,IN=Math.max,RN=Math.floor,n7=Math.ceil,hA=hi,LN=Math.PI;function v1(o,i){return ON(IN(o,i[0]),i[1])}function i7(o,i){var r=i.layoutLength/(i.axisCount-1);return{position:r*o,axisNameAvailableWidth:r,axisLabelShow:!0}}function a7(o,i){var p,m,s=i.axisExpandWidth,f=i.axisCollapseWidth,d=i.winInnerIndices,v=f,g=!1;return o=s&&d<=s+r.axisLength&&p>=u&&p<=u+r.layoutLength},o.prototype.getModel=function(){return this._model},o.prototype._updateAxesFromSeries=function(i,r){r.eachSeries(function(s){if(i.contains(s,r)){var u=s.getData();dA(this.dimensions,function(f){var d=this._axesMap.get(f);d.scale.unionExtentFromData(u,u.mapDimension(f)),Wf(d.scale,d.model)},this)}},this)},o.prototype.resize=function(i,r){this._rect=li(i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},o.prototype.getRect=function(){return this._rect},o.prototype._makeLayoutInfo=function(){var S,i=this._model,r=this._rect,s=["x","y"],u=["width","height"],f=i.get("layout"),d="horizontal"===f?0:1,p=r[u[d]],v=[0,p],g=this.dimensions.length,m=v1(i.get("axisExpandWidth"),v),y=v1(i.get("axisExpandCount")||0,[0,g]),b=i.get("axisExpandable")&&g>3&&g>y&&y>1&&m>0&&p>0,w=i.get("axisExpandWindow");w?(S=v1(w[1]-w[0],v),w[1]=w[0]+S):(S=v1(m*(y-1),v),(w=[m*(i.get("axisExpandCenter")||RN(g/2))-S/2])[1]=w[0]+S);var x=(p-S)/(g-y);x<3&&(x=0);var T=[RN(hA(w[0]/m,1))+1,n7(hA(w[1]/m,1))-1];return{layout:f,pixelDimIndex:d,layoutBase:r[s[d]],layoutLength:p,axisBase:r[s[1-d]],axisLength:r[u[1-d]],axisExpandable:b,axisExpandWidth:m,axisCollapseWidth:x,axisExpandWindow:w,axisCount:g,winInnerIndices:T,axisExpandWindow0Pos:x/m*w[0]}},o.prototype._layoutAxes=function(){var i=this._rect,r=this._axesMap,s=this.dimensions,u=this._makeLayoutInfo(),f=u.layout;r.each(function(d){var p=[0,u.axisLength],v=d.inverse?1:0;d.setExtent(p[v],p[1-v])}),dA(s,function(d,p){var v=(u.axisExpandable?a7:i7)(p,u),g={horizontal:{x:v.position,y:u.axisLength},vertical:{x:0,y:v.position}},y=[g[f].x+i.x,g[f].y+i.y],b={horizontal:LN/2,vertical:0}[f],w=[1,0,0,1,0,0];Od(w,w,b),Oo(w,w,y),this._axesLayout[d]={position:y,rotation:b,transform:w,axisNameAvailableWidth:v.axisNameAvailableWidth,axisLabelShow:v.axisLabelShow,nameTruncateMaxWidth:v.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},o.prototype.getAxis=function(i){return this._axesMap.get(i)},o.prototype.dataToPoint=function(i,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(i),r)},o.prototype.eachActiveState=function(i,r,s,u){null==s&&(s=0),null==u&&(u=i.count());var f=this._axesMap,d=this.dimensions,p=[],v=[];q(d,function(x){p.push(i.mapDimension(x)),v.push(f.get(x).model)});for(var g=this.hasAxisBrushed(),m=s;mf*(1-y[0])?(g="jump",v=p-f*(1-y[2])):(v=p-f*y[1])>=0&&(v=p-f*(1-y[1]))<=0&&(v=0),(v*=r.axisExpandWidth/m)?kl(v,u,d,"all"):g="none";else{var w=u[1]-u[0];(u=[IN(0,d[1]*p/w-w/2)])[1]=ON(d[1],u[0]+w),u[0]=u[1]-w}return{axisExpandWindow:u,behavior:g}},o}(),cg={create:function(o,i){var r=[];return o.eachComponent("parallel",function(s,u){var f=new FN(s,o,i);f.name="parallel_"+u,f.resize(s,i),s.coordinateSystem=f,f.model=s,r.push(f)}),o.eachSeries(function(s){if("parallel"===s.get("coordinateSystem")){var u=s.getReferringComponents("parallel",ai).models[0];s.coordinateSystem=u.coordinateSystem}}),r}},pA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.activeIntervals=[],r}return he(i,o),i.prototype.getAreaSelectStyle=function(){return Hd([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},i.prototype.setActiveIntervals=function(r){var s=this.activeIntervals=rt(r);if(s)for(var u=s.length-1;u>=0;u--)io(s[u])},i.prototype.getActiveState=function(r){var s=this.activeIntervals;if(!s.length)return"normal";if(null==r||isNaN(+r))return"inactive";if(1===s.length){var u=s[0];if(u[0]<=r&&r<=u[1])return"active"}else for(var f=0,d=s.length;f6}(o)||u){if(f&&!u){"single"===d.brushMode&&wn(o);var v=rt(d);v.brushType=qN(v.brushType,f),v.panelId=f===Qh?null:f.panelId,u=o._creatingCover=vA(o,v),o._covers.push(u)}if(u){var g=Ny[qN(o._brushType,f)];u.__brushOption.range=g.getCreatingRange(S1(o,u,o._track)),s&&(UN(o,u),g.updateCommon(o,u)),gA(o,u),p={isEnd:s}}}else s&&"single"===d.brushMode&&d.removeOnClick&&dg(o,i,r)&&wn(o)&&(p={isEnd:s,removeOnClick:!0});return p}function qN(o,i){return"auto"===o?i.defaultBrushType:o}var h7={mousedown:function(i){if(this._dragging)XN(this,i);else if(!i.target||!i.target.draggable){_A(i);var r=this.group.transformCoordToLocal(i.offsetX,i.offsetY);this._creatingCover=null,(this._creatingPanel=dg(this,i,r))&&(this._dragging=!0,this._track=[r.slice()])}},mousemove:function(i){var u=this.group.transformCoordToLocal(i.offsetX,i.offsetY);if(function(o,i,r){if(o._brushType&&!function(o,i,r){var s=o._zr;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}(o,i.offsetX,i.offsetY)){var s=o._zr,u=o._covers,f=dg(o,i,r);if(!o._dragging)for(var d=0;d=0&&(p[d[v].depth]=new Fn(d[v],this,s));if(f&&u)return kN(f,u,this,!0,function(y,b){y.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,x=M.getData().getItemLayout(S);if(x){var P=M.levelModels[x.depth];P&&(w.parentModel=P)}return w}),b.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,T=M.getGraph().getEdgeByIndex(S).node1.getLayout();if(T){var O=M.levelModels[T.depth];O&&(w.parentModel=O)}return w})}).data},i.prototype.setNodePosition=function(r,s){var f=(this.option.data||this.option.nodes)[r];f.localX=s[0],f.localY=s[1]},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.formatTooltip=function(r,s,u){function f(w){return isNaN(w)||null==w}if("edge"===u){var d=this.getDataParams(r,u),p=d.data,v=d.value;return pi("nameValue",{name:p.source+" -- "+p.target,value:v,noValue:f(v)})}var y=this.getGraph().getNodeByIndex(r).getLayout().value,b=this.getDataParams(r,u).data.name;return pi("nameValue",{name:null!=b?b+"":null,value:y,noValue:f(y)})},i.prototype.optionUpdated=function(){},i.prototype.getDataParams=function(r,s){var u=o.prototype.getDataParams.call(this,r,s);if(null==u.value&&"node"===s){var d=this.getGraph().getNodeByIndex(r).getLayout().value;u.value=d}return u},i.type="series.sankey",i.defaultOption={zlevel:0,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},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},i}(vt);function wA(o,i){o.eachSeriesByType("sankey",function(r){var s=r.get("nodeWidth"),u=r.get("nodeGap"),f=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i);r.layoutInfo=f;var d=f.width,p=f.height,v=r.getGraph(),g=v.nodes,m=v.edges;!function(o){q(o,function(i){var r=qa(i.outEdges,_g),s=qa(i.inEdges,_g),u=i.getValue()||0,f=Math.max(r,s,u);i.setLayout({value:f},!0)})}(g),function(o,i,r,s,u,f,d,p,v){(function(o,i,r,s,u,f,d){for(var p=[],v=[],g=[],m=[],y=0,b=0;b=0;T&&x.depth>w&&(w=x.depth),M.setLayout({depth:T?x.depth:y},!0),M.setLayout("vertical"===f?{dy:r}:{dx:r},!0);for(var P=0;Py-1?w:y-1;d&&"left"!==d&&function(o,i,r,s){if("right"===i){for(var u=[],f=o,d=0;f.length;){for(var p=0;p0;f--)r3(p,v*=.99,d),MA(p,u,r,s,d),T7(p,v,d),MA(p,u,r,s,d)}(o,i,f,u,s,d,p),function(o,i){var r="vertical"===i?"x":"y";q(o,function(s){s.outEdges.sort(function(u,f){return u.node2.getLayout()[r]-f.node2.getLayout()[r]}),s.inEdges.sort(function(u,f){return u.node1.getLayout()[r]-f.node1.getLayout()[r]})}),q(o,function(s){var u=0,f=0;q(s.outEdges,function(d){d.setLayout({sy:u},!0),u+=d.getLayout().dy}),q(s.inEdges,function(d){d.setLayout({ty:f},!0),f+=d.getLayout().dy})})}(o,p)}(g,m,s,u,d,p,0!==Yn(g,function(M){return 0===M.getLayout().value}).length?0:r.get("layoutIterations"),r.get("orient"),r.get("nodeAlign"))})}function t3(o){var i=o.hostGraph.data.getRawDataItem(o.dataIndex);return null!=i.depth&&i.depth>=0}function MA(o,i,r,s,u){var f="vertical"===u?"x":"y";q(o,function(d){d.sort(function(M,x){return M.getLayout()[f]-x.getLayout()[f]});for(var p,v,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",w=0;w0&&(p=v.getLayout()[f]+g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]+v.getLayout()[b]+i;if((g=m-i-("vertical"===u?s:r))>0)for(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0),m=p,w=y-2;w>=0;--w)(g=(v=d[w]).getLayout()[f]+v.getLayout()[b]+i-m)>0&&(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]})}function r3(o,i,r){q(o.slice().reverse(),function(s){q(s,function(u){if(u.outEdges.length){var f=qa(u.outEdges,i3,r)/qa(u.outEdges,_g);if(isNaN(f)){var d=u.outEdges.length;f=d?qa(u.outEdges,M7,r)/d:0}if("vertical"===r){var p=u.getLayout().x+(f-id(u,r))*i;u.setLayout({x:p},!0)}else{var v=u.getLayout().y+(f-id(u,r))*i;u.setLayout({y:v},!0)}}})})}function i3(o,i){return id(o.node2,i)*o.getValue()}function M7(o,i){return id(o.node2,i)}function x7(o,i){return id(o.node1,i)*o.getValue()}function a3(o,i){return id(o.node1,i)}function id(o,i){return"vertical"===i?o.getLayout().x+o.getLayout().dx/2:o.getLayout().y+o.getLayout().dy/2}function _g(o){return o.getValue()}function qa(o,i,r){for(var s=0,u=o.length,f=-1;++ff&&(f=p)}),q(s,function(d){var v=new Qi({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:i.get("color")}).mapValueToVisual(d.getLayout().value),g=d.getModel().get(["itemStyle","color"]);null!=g?(d.setVisual("color",g),d.setVisual("style",{fill:g})):(d.setVisual("color",v),d.setVisual("style",{fill:v}))})}})}var o3=function(){function o(){}return o.prototype.getInitialData=function(i,r){var s,v,u=r.getComponent("xAxis",this.get("xAxisIndex")),f=r.getComponent("yAxis",this.get("yAxisIndex")),d=u.get("type"),p=f.get("type");"category"===d?(i.layout="horizontal",s=u.getOrdinalMeta(),v=!0):"category"===p?(i.layout="vertical",s=f.getOrdinalMeta(),v=!0):i.layout=i.layout||"horizontal";var g=["x","y"],m="horizontal"===i.layout?0:1,y=this._baseAxisDim=g[m],b=g[1-m],w=[u,f],S=w[m].get("type"),M=w[1-m].get("type"),x=i.data;if(x&&v){var T=[];q(x,function(R,V){var B;we(R)?(B=R.slice(),R.unshift(V)):we(R.value)?((B=Se({},R)).value=B.value.slice(),R.value.unshift(V)):B=R,T.push(B)}),i.data=T}var P=this.defaultValueDimensions,O=[{name:y,type:$C(S),ordinalMeta:s,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:b,type:$C(M),dimsDef:P.slice()}];return po(this,{coordDimensions:O,dimensionsCount:P.length+1,encodeDefaulter:St(au,O,this)})},o.prototype.getBaseAxis=function(){var i=this._baseAxisDim;return this.ecModel.getComponent(i+"Axis",this.get(i+"AxisIndex")).axis},o}(),s3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return he(i,o),i.type="series.boxplot",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,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},i}(vt);qr(s3,o3,!0);var Hy=s3,zy=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this.group,p=this._data;this._data||d.removeAll();var v="horizontal"===r.get("layout")?1:0;f.diff(p).add(function(g){if(f.hasValue(g)){var y=c3(f.getItemLayout(g),f,g,v,!0);f.setItemGraphicEl(g,y),d.add(y)}}).update(function(g,m){var y=p.getItemGraphicEl(m);if(f.hasValue(g)){var b=f.getItemLayout(g);y?(el(y),f3(b,y,f,g)):y=c3(b,f,g,v),d.add(y),f.setItemGraphicEl(g,y)}else d.remove(y)}).remove(function(g){var m=p.getItemGraphicEl(g);m&&d.remove(m)}).execute(),this._data=f},i.prototype.remove=function(r){var s=this.group,u=this._data;this._data=null,u&&u.eachItemGraphicEl(function(f){f&&s.remove(f)})},i.type="boxplot",i}(Vn),l3=function(){},u3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="boxplotBoxPath",s}return he(i,o),i.prototype.getDefaultShape=function(){return new l3},i.prototype.buildPath=function(r,s){var u=s.points,f=0;for(r.moveTo(u[f][0],u[f][1]),f++;f<4;f++)r.lineTo(u[f][0],u[f][1]);for(r.closePath();fM)&&s.push([T,O])}}return{boxData:r,outliers:s}}(r.getRawData(),i.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:u.boxData},{data:u.outliers}]}},h3=["color","borderColor"],p3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeClipPath(),this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},i.prototype.incrementalPrepareRender=function(r,s,u){this._clear(),this._updateDrawMode(r)},i.prototype.incrementalRender=function(r,s,u,f){this._isLargeDraw?this._incrementalRenderLarge(r,s):this._incrementalRenderNormal(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r){var s=r.getData(),u=this._data,f=this.group,d=s.getLayout("isSimpleBox"),p=r.get("clip",!0),v=r.coordinateSystem,g=v.getArea&&v.getArea();this._data||f.removeAll(),s.diff(u).add(function(m){if(s.hasValue(m)){var y=s.getItemLayout(m);if(p&&TA(g,y))return;var b=bg(y,0,!0);mr(b,{shape:{points:y.ends}},r,m),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b)}}).update(function(m,y){var b=u.getItemGraphicEl(y);if(s.hasValue(m)){var w=s.getItemLayout(m);p&&TA(g,w)?f.remove(b):(b?(ln(b,{shape:{points:w.ends}},r,m),el(b)):b=bg(w),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b))}else f.remove(b)}).remove(function(m){var y=u.getItemGraphicEl(m);y&&f.remove(y)}).execute(),this._data=s},i.prototype._renderLarge=function(r){this._clear(),m3(r,this.group);var s=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;s?this.group.setClipPath(s):this.group.removeClipPath()},i.prototype._incrementalRenderNormal=function(r,s){for(var d,u=s.getData(),f=u.getLayout("isSimpleBox");null!=(d=r.next());){var v=bg(u.getItemLayout(d));DA(v,u,d,f),v.incremental=!0,this.group.add(v)}},i.prototype._incrementalRenderLarge=function(r,s){m3(s,this.group,!0)},i.prototype.remove=function(r){this._clear()},i.prototype._clear=function(){this.group.removeAll(),this._data=null},i.type="candlestick",i}(Vn),Uy=function(){},v3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="normalCandlestickBox",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Uy},i.prototype.buildPath=function(r,s){var u=s.points;this.__simpleBox?(r.moveTo(u[4][0],u[4][1]),r.lineTo(u[6][0],u[6][1])):(r.moveTo(u[0][0],u[0][1]),r.lineTo(u[1][0],u[1][1]),r.lineTo(u[2][0],u[2][1]),r.lineTo(u[3][0],u[3][1]),r.closePath(),r.moveTo(u[4][0],u[4][1]),r.lineTo(u[5][0],u[5][1]),r.moveTo(u[6][0],u[6][1]),r.lineTo(u[7][0],u[7][1]))},i}(Nt);function bg(o,i,r){var s=o.ends;return new v3({shape:{points:r?R7(s,o):s},z2:100})}function TA(o,i){for(var r=!0,s=0;s0?"borderColor":"borderColor0"])||r.get(["itemStyle",o>0?"color":"color0"]),f=r.getModel("itemStyle").getItemStyle(h3);i.useStyle(f),i.style.fill=null,i.style.stroke=u}var F7=p3,AA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return he(i,o),i.prototype.getShadowDim=function(){return"open"},i.prototype.brushSelector=function(r,s,u){var f=s.getItemLayout(r);return f&&u.rect(f.brushRect)},i.type="series.candlestick",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",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},i}(vt);qr(AA,o3,!0);var L1=AA;function N7(o){!o||!we(o.series)||q(o.series,function(i){at(i)&&"k"===i.type&&(i.type="candlestick")})}var V7=["itemStyle","borderColor"],F1=["itemStyle","borderColor0"],B7=["itemStyle","color"],Gy=["itemStyle","color0"],z7={seriesType:"candlestick",plan:De(),performRawSeries:!0,reset:function(i,r){function s(d,p){return p.get(d>0?B7:Gy)}function u(d,p){return p.get(d>0?V7:F1)}if(!r.isSeriesFiltered(i))return!i.pipelineContext.large&&{progress:function(p,v){for(var g;null!=(g=p.next());){var m=v.getItemModel(g),y=v.getItemLayout(g).sign,b=m.getItemStyle();b.fill=s(y,m),b.stroke=u(y,m)||b.fill,Se(v.ensureUniqueItemVisual(g,"style"),b)}}}}},jy="undefined"!=typeof Float32Array?Float32Array:Array;function _3(o,i,r,s,u){return r>s?-1:r0?o.get(u,i-1)<=s?1:-1:1}var j7={seriesType:"candlestick",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.getData(),u=function(o,i){var s,r=o.getBaseAxis(),u="category"===r.type?r.getBandWidth():(s=r.getExtent(),Math.abs(s[1]-s[0])/i.count()),f=Fe(ot(o.get("barMaxWidth"),u),u),d=Fe(ot(o.get("barMinWidth"),1),u),p=o.get("barWidth");return null!=p?Fe(p,u):Math.max(Math.min(u/2,f),d)}(i,s),p=["x","y"],v=s.getDimensionIndex(s.mapDimension(p[0])),g=Te(s.mapDimensionsAll(p[1]),s.getDimensionIndex,s),m=g[0],y=g[1],b=g[2],w=g[3];if(s.setLayout({candleWidth:u,isSimpleBox:u<=1.3}),!(v<0||g.length<4))return{progress:i.pipelineContext.large?function(x,T){for(var R,z,P=new jy(4*x.count),O=0,V=[],B=[],j=T.getStore();null!=(z=x.next());){var X=j.get(v,z),Z=j.get(m,z),Q=j.get(y,z),te=j.get(b,z),ee=j.get(w,z);isNaN(X)||isNaN(te)||isNaN(ee)?(P[O++]=NaN,O+=3):(P[O++]=_3(j,z,Z,Q,y),V[0]=X,V[1]=te,R=r.dataToPoint(V,null,B),P[O++]=R?R[0]:NaN,P[O++]=R?R[1]:NaN,V[1]=ee,R=r.dataToPoint(V,null,B),P[O++]=R?R[1]:NaN)}T.setLayout("largePoints",P)}:function(x,T){for(var P,O=T.getStore();null!=(P=x.next());){var R=O.get(v,P),V=O.get(m,P),B=O.get(y,P),z=O.get(b,P),j=O.get(w,P),X=Math.min(V,B),Z=Math.max(V,B),Q=de(X,R),te=de(Z,R),ee=de(z,R),le=de(j,R),oe=[];ge(oe,te,0),ge(oe,Q,1),oe.push(xe(le),xe(te),xe(ee),xe(Q)),T.setItemLayout(P,{sign:_3(O,P,V,B,y),initBaseline:V>B?te[1]:Q[1],ends:oe,brushRect:(Me=z,He=j,Je=R,mt=void 0,$t=void 0,mt=de(Me,Je),$t=de(He,Je),mt[0]-=u/2,$t[0]-=u/2,{x:mt[0],y:mt[1],width:u,height:$t[1]-mt[1]})})}var Me,He,Je,mt,$t;function de(Me,He){var Je=[];return Je[0]=He,Je[1]=Me,isNaN(He)||isNaN(Me)?[NaN,NaN]:r.dataToPoint(Je)}function ge(Me,He,Je){var mt=He.slice(),$t=He.slice();mt[0]=Rf(mt[0]+u/2,1,!1),$t[0]=Rf($t[0]-u/2,1,!0),Je?Me.push(mt,$t):Me.push($t,mt)}function xe(Me){return Me[0]=Rf(Me[0],1),Me}}}}};function y3(o,i){var r=i.rippleEffectColor||i.color;o.eachChild(function(s){s.attr({z:i.z,zlevel:i.zlevel,style:{stroke:"stroke"===i.brushType?r:null,fill:"fill"===i.brushType?r:null}})})}var q7=function(o){function i(r,s){var u=o.call(this)||this,f=new j_(r,s),d=new ct;return u.add(f),u.add(d),u.updateData(r,s),u}return he(i,o),i.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},i.prototype.startEffectAnimation=function(r){for(var s=r.symbolType,u=r.color,f=r.rippleNumber,d=this.childAt(1),p=0;p0&&(v=this._getLineLength(f)/m*1e3),(v!==this._period||g!==this._loop)&&(f.stopAnimation(),v>0)){var b=void 0;b="function"==typeof y?y(u):y,f.__t>0&&(b=-v*f.__t),f.__t=0;var w=f.animate("",g).when(v,{__t:1}).delay(b).during(function(){d._updateSymbolPosition(f)});g||w.done(function(){d.remove(f)}),w.start()}this._period=v,this._loop=g}},i.prototype._getLineLength=function(r){return Vs(r.__p1,r.__cp1)+Vs(r.__cp1,r.__p2)},i.prototype._updateAnimationPoints=function(r,s){r.__p1=s[0],r.__p2=s[1],r.__cp1=s[2]||[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]},i.prototype.updateData=function(r,s,u){this.childAt(0).updateData(r,s,u),this._updateEffectSymbol(r,s)},i.prototype._updateSymbolPosition=function(r){var s=r.__p1,u=r.__p2,f=r.__cp1,d=r.__t,p=[r.x,r.y],v=p.slice(),g=Li,m=oM;p[0]=g(s[0],f[0],u[0],d),p[1]=g(s[1],f[1],u[1],d);var y=m(s[0],f[0],u[0],d),b=m(s[1],f[1],u[1],d);r.rotation=-Math.atan2(b,y)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==r.__lastT&&r.__lastT=0&&!(f[v]<=s);v--);v=Math.min(v,d-2)}else{for(v=p;vs);v++);v=Math.min(v-1,d-2)}var m=(s-f[v])/(f[v+1]-f[v]),y=u[v],b=u[v+1];r.x=y[0]*(1-m)+m*b[0],r.y=y[1]*(1-m)+m*b[1],r.rotation=-Math.atan2(b[1]-y[1],b[0]-y[0])-Math.PI/2,this._lastFrame=v,this._lastFramePercent=s,r.ignore=!1}},i}(C3),M3=function(){this.polyline=!1,this.curveness=0,this.segs=[]},EA=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new M3},i.prototype.buildPath=function(r,s){var u=s.segs,f=s.curveness;if(s.polyline)for(var d=0;d0){r.moveTo(u[d++],u[d++]);for(var v=1;v0?r.quadraticCurveTo((g+y)/2-(m-b)*f,(m+b)/2-(y-g)*f,y,b):r.lineTo(y,b)}},i.prototype.findDataIndex=function(r,s){var u=this.shape,f=u.segs,d=u.curveness,p=this.style.lineWidth;if(u.polyline)for(var v=0,g=0;g0)for(var y=f[g++],b=f[g++],w=1;w0){if(Si(y,b,(y+S)/2-(b-M)*d,(b+M)/2-(S-y)*d,S,M,p,r,s))return v}else if(gf(y,b,S,M,p,r,s))return v;v++}return-1},i}(Nt),tW=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i){this.group.removeAll();var r=new EA({rectHover:!0,cursor:"default"});r.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(r,i),this.group.add(r),this._incremental=null},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>5e5?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r){var s=new EA;s.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(s,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(s,!0):(s.rectHover=!0,s.cursor="default",s.__startIndex=i.start,this.group.add(s))},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._setCommon=function(i,r,s){var u=r.hostModel;i.setShape({polyline:u.get("polyline"),curveness:u.get(["lineStyle","curveness"])}),i.useStyle(u.getModel("lineStyle").getLineStyle()),i.style.strokeNoScale=!0;var f=r.getVisual("style");if(f&&f.stroke&&i.setStyle("stroke",f.stroke),i.setStyle("fill",null),!s){var d=ht(i);d.seriesIndex=u.seriesIndex,i.on("mousemove",function(p){d.dataIndex=null;var v=i.findDataIndex(p.offsetX,p.offsetY);v>0&&(d.dataIndex=v+i.__startIndex)})}},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),x3={seriesType:"lines",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.get("polyline"),u=i.pipelineContext.large;return{progress:function(d,p){var v=[];if(u){var g=void 0,m=d.end-d.start;if(s){for(var y=0,b=d.start;b ")})},i.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?1e4:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?2e4:this.get("progressiveThreshold"):r},i.type="series.lines",i.dependencies=["grid","polar","geo","calendar"],i.defaultOption={coordinateSystem:"geo",zlevel:0,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}},i}(vt);function N1(o){return o instanceof Array||(o=[o,o]),o}var oW={seriesType:"lines",reset:function(i){var r=N1(i.get("symbol")),s=N1(i.get("symbolSize")),u=i.getData();return u.setVisual("fromSymbol",r&&r[0]),u.setVisual("toSymbol",r&&r[1]),u.setVisual("fromSymbolSize",s&&s[0]),u.setVisual("toSymbolSize",s&&s[1]),{dataEach:u.hasItemOption?function(d,p){var v=d.getItemModel(p),g=N1(v.getShallow("symbol",!0)),m=N1(v.getShallow("symbolSize",!0));g[0]&&d.setItemVisual(p,"fromSymbol",g[0]),g[1]&&d.setItemVisual(p,"toSymbol",g[1]),m[0]&&d.setItemVisual(p,"fromSymbolSize",m[0]),m[1]&&d.setItemVisual(p,"toSymbolSize",m[1])}:null}}},A3=function(){function o(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var i=md();this.canvas=i}return o.prototype.update=function(i,r,s,u,f,d){var p=this._getBrush(),v=this._getGradient(f,"inRange"),g=this._getGradient(f,"outOfRange"),m=this.pointSize+this.blurSize,y=this.canvas,b=y.getContext("2d"),w=i.length;y.width=r,y.height=s;for(var S=0;S0){var te=d(O)?v:g;O>0&&(O=O*Z+j),V[B++]=te[Q],V[B++]=te[Q+1],V[B++]=te[Q+2],V[B++]=te[Q+3]*O*256}else B+=4}return b.putImageData(R,0,0),y},o.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=md()),r=this.pointSize+this.blurSize,s=2*r;i.width=s,i.height=s;var u=i.getContext("2d");return u.clearRect(0,0,s,s),u.shadowOffsetX=s,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-r,r,this.pointSize,0,2*Math.PI,!0),u.closePath(),u.fill(),i},o.prototype._getGradient=function(i,r){for(var s=this._gradientPixels,u=s[r]||(s[r]=new Uint8ClampedArray(1024)),f=[0,0,0,0],d=0,p=0;p<256;p++)i[r](p/255,!0,f),u[d++]=f[0],u[d++]=f[1],u[d++]=f[2],u[d++]=f[3];return u},o}();function Ta(o){var i=o.dimensions;return"lng"===i[0]&&"lat"===i[1]}var V1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f;s.eachComponent("visualMap",function(p){p.eachTargetSeries(function(v){v===r&&(f=p)})}),this.group.removeAll(),this._incrementalDisplayable=null;var d=r.coordinateSystem;"cartesian2d"===d.type||"calendar"===d.type?this._renderOnCartesianAndCalendar(r,u,0,r.getData().count()):Ta(d)&&this._renderOnGeo(d,r,f,u)},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll()},i.prototype.incrementalRender=function(r,s,u,f){var d=s.coordinateSystem;d&&(Ta(d)?this.render(s,u,f):this._renderOnCartesianAndCalendar(s,f,r.start,r.end,!0))},i.prototype._renderOnCartesianAndCalendar=function(r,s,u,f,d){var v,g,m,y,p=r.coordinateSystem;if(lc(p,"cartesian2d")){var b=p.getAxis("x"),w=p.getAxis("y");v=b.getBandWidth(),g=w.getBandWidth(),m=b.scale.getExtent(),y=w.scale.getExtent()}for(var S=this.group,M=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),T=r.getModel(["blur","itemStyle"]).getItemStyle(),P=r.getModel(["select","itemStyle"]).getItemStyle(),O=lr(r),R=r.get(["emphasis","focus"]),V=r.get(["emphasis","blurScope"]),B=lc(p,"cartesian2d")?[M.mapDimension("x"),M.mapDimension("y"),M.mapDimension("value")]:[M.mapDimension("time"),M.mapDimension("value")],z=u;zm[1]||Qy[1])continue;var te=p.dataToPoint([Z,Q]);j=new sn({shape:{x:Math.floor(Math.round(te[0])-v/2),y:Math.floor(Math.round(te[1])-g/2),width:Math.ceil(v),height:Math.ceil(g)},style:X})}else{if(isNaN(M.get(B[1],z)))continue;j=new sn({z2:1,shape:p.dataToRect([M.get(B[0],z)]).contentShape,style:X})}var ee=M.getItemModel(z);if(M.hasItemOption){var le=ee.getModel("emphasis");x=le.getModel("itemStyle").getItemStyle(),T=ee.getModel(["blur","itemStyle"]).getItemStyle(),P=ee.getModel(["select","itemStyle"]).getItemStyle(),R=le.get("focus"),V=le.get("blurScope"),O=lr(ee)}var oe=r.getRawValue(z),de="-";oe&&null!=oe[2]&&(de=oe[2]+""),Mi(j,O,{labelFetcher:r,labelDataIndex:z,defaultOpacity:X.opacity,defaultText:de}),j.ensureState("emphasis").style=x,j.ensureState("blur").style=T,j.ensureState("select").style=P,qn(j,R,V),j.incremental=d,d&&(j.states.emphasis.hoverLayer=!0),S.add(j),M.setItemGraphicEl(z,j)}},i.prototype._renderOnGeo=function(r,s,u,f){var d=u.targetVisuals.inRange,p=u.targetVisuals.outOfRange,v=s.getData(),g=this._hmLayer||this._hmLayer||new A3;g.blurSize=s.get("blurSize"),g.pointSize=s.get("pointSize"),g.minOpacity=s.get("minOpacity"),g.maxOpacity=s.get("maxOpacity");var m=r.getViewRect().clone(),y=r.getRoamTransform();m.applyTransform(y);var b=Math.max(m.x,0),w=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),M=Math.min(m.height+m.y,f.getHeight()),x=S-b,T=M-w,P=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],O=v.mapArray(P,function(z,j,X){var Z=r.dataToPoint([z,j]);return Z[0]-=b,Z[1]-=w,Z.push(X),Z}),R=u.getExtent(),V="visualMap.continuous"===u.type?function(o,i){var r=o[1]-o[0];return i=[(i[0]-o[0])/r,(i[1]-o[0])/r],function(s){return s>=i[0]&&s<=i[1]}}(R,u.option.range):function(o,i,r){var s=o[1]-o[0],u=(i=Te(i,function(d){return{interval:[(d.interval[0]-o[0])/s,(d.interval[1]-o[0])/s]}})).length,f=0;return function(d){var p;for(p=f;p=0;p--){var v;if((v=i[p].interval)[0]<=d&&d<=v[1]){f=p;break}}return p>=0&&p0?1:m<0?-1:0})(r,f,u,s,b),function(o,i,r,s,u,f,d,p,v,g){var S,m=v.valueDim,y=v.categoryDim,b=Math.abs(r[y.wh]),w=o.getItemVisual(i,"symbolSize");(S=we(w)?w.slice():null==w?["100%","100%"]:[w,w])[y.index]=Fe(S[y.index],b),S[m.index]=Fe(S[m.index],s?b:Math.abs(f)),g.symbolSize=S,(g.symbolScale=[S[0]/p,S[1]/p])[m.index]*=(v.isHorizontal?-1:1)*d}(o,i,u,f,0,b.boundingLength,b.pxSign,m,s,b),function(o,i,r,s,u){var f=o.get(hW)||0;f&&(Wy.attr({scaleX:i[0],scaleY:i[1],rotation:r}),Wy.updateTransform(),f/=Wy.getLineScale(),f*=i[s.valueDim.index]),u.valueLineWidth=f}(r,b.symbolScale,g,s,b);var w=b.symbolSize,S=Ah(r.get("symbolOffset"),w);return function(o,i,r,s,u,f,d,p,v,g,m,y){var b=m.categoryDim,w=m.valueDim,S=y.pxSign,M=Math.max(i[w.index]+p,0),x=M;if(s){var T=Math.abs(v),P=ni(o.get("symbolMargin"),"15%")+"",O=!1;P.lastIndexOf("!")===P.length-1&&(O=!0,P=P.slice(0,P.length-1));var R=Fe(P,i[w.index]),V=Math.max(M+2*R,0),B=O?0:2*R,z=of(s),j=z?s:H3((T+B)/V);V=M+2*(R=(T-j*M)/2/(O?j:Math.max(j-1,1))),B=O?0:2*R,!z&&"fixed"!==s&&(j=g?H3((Math.abs(g)+B)/V):0),x=j*V-B,y.repeatTimes=j,y.symbolMargin=R}var Z=S*(x/2),Q=y.pathPosition=[];Q[b.index]=r[b.wh]/2,Q[w.index]="start"===d?Z:"end"===d?v-Z:v/2,f&&(Q[0]+=f[0],Q[1]+=f[1]);var te=y.bundlePosition=[];te[b.index]=r[b.xy],te[w.index]=r[w.xy];var ee=y.barRectShape=Se({},r);ee[w.wh]=S*Math.max(Math.abs(r[w.wh]),Math.abs(Q[w.index]+Z)),ee[b.wh]=r[b.wh];var le=y.clipShape={};le[b.xy]=-r[b.xy],le[b.wh]=m.ecSize[b.wh],le[w.xy]=0,le[w.wh]=r[w.wh]}(r,w,u,f,0,S,p,b.valueLineWidth,b.boundingLength,b.repeatCutLength,s,b),b}function H1(o,i){return o.toGlobalCoord(o.dataToCoord(o.scale.parse(i)))}function ad(o){var i=o.symbolPatternSize,r=Ir(o.symbolType,-i/2,-i/2,i,i);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function LA(o,i,r,s){var u=o.__pictorialBundle,p=r.pathPosition,v=i.valueDim,g=r.repeatTimes||0,m=0,y=r.symbolSize[i.valueDim.index]+r.valueLineWidth+2*r.symbolMargin;for(NA(o,function(M){M.__pictorialAnimationIndex=m,M.__pictorialRepeatTimes=g,m0:T<0)&&(P=g-1-M),x[v.index]=y*(P-g/2+.5)+p[v.index],{x:x[0],y:x[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function O3(o,i,r,s){var u=o.__pictorialBundle,f=o.__pictorialMainPath;f?od(f,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,s):(f=o.__pictorialMainPath=ad(r),u.add(f),od(f,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,s))}function I3(o,i,r){var s=Se({},i.barRectShape),u=o.__pictorialBarRect;u?od(u,null,{shape:s},i,r):((u=o.__pictorialBarRect=new sn({z2:2,shape:s,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,o.add(u))}function R3(o,i,r,s){if(r.symbolClip){var u=o.__pictorialClipPath,f=Se({},r.clipShape),d=i.valueDim,p=r.animationModel,v=r.dataIndex;if(u)ln(u,{shape:f},p,v);else{f[d.wh]=0,u=new sn({shape:f}),o.__pictorialBundle.setClipPath(u),o.__pictorialClipPath=u;var g={};g[d.wh]=r.clipShape[d.wh],F[s?"updateProps":"initProps"](u,{shape:g},p,v)}}}function FA(o,i){var r=o.getItemModel(i);return r.getAnimationDelayParams=gW,r.isAnimationEnabled=mW,r}function gW(o){return{index:o.__pictorialAnimationIndex,count:o.__pictorialRepeatTimes}}function mW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function L3(o,i,r,s){var u=new ct,f=new ct;return u.add(f),u.__pictorialBundle=f,f.x=r.bundlePosition[0],f.y=r.bundlePosition[1],r.symbolRepeat?LA(u,i,r):O3(u,0,r),I3(u,r,s),R3(u,i,r,s),u.__pictorialShapeStr=V3(o,r),u.__pictorialSymbolMeta=r,u}function N3(o,i,r,s){var u=s.__pictorialBarRect;u&&u.removeTextContent();var f=[];NA(s,function(d){f.push(d)}),s.__pictorialMainPath&&f.push(s.__pictorialMainPath),s.__pictorialClipPath&&(r=null),q(f,function(d){Cf(d,{scaleX:0,scaleY:0},r,i,function(){s.parent&&s.parent.remove(s)})}),o.setItemGraphicEl(i,null)}function V3(o,i){return[o.getItemVisual(i.dataIndex,"symbol")||"none",!!i.symbolRepeat,!!i.symbolClip].join(":")}function NA(o,i,r){q(o.__pictorialBundle.children(),function(s){s!==o.__pictorialBarRect&&i.call(r,s)})}function od(o,i,r,s,u,f){i&&o.attr(i),s.symbolClip&&!u?r&&o.attr(r):r&&F[u?"updateProps":"initProps"](o,r,s.animationModel,s.dataIndex,f)}function B3(o,i,r){var s=r.dataIndex,u=r.itemModel,f=u.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle(),p=u.getModel(["blur","itemStyle"]).getItemStyle(),v=u.getModel(["select","itemStyle"]).getItemStyle(),g=u.getShallow("cursor"),m=f.get("focus"),y=f.get("blurScope"),b=f.get("scale");NA(o,function(M){if(M instanceof si){var x=M.style;M.useStyle(Se({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},r.style))}else M.useStyle(r.style);var T=M.ensureState("emphasis");T.style=d,b&&(T.scaleX=1.1*M.scaleX,T.scaleY=1.1*M.scaleY),M.ensureState("blur").style=p,M.ensureState("select").style=v,g&&(M.cursor=g),M.z2=r.z2});var w=i.valueDim.posDesc[+(r.boundingLength>0)];Mi(o.__pictorialBarRect,lr(u),{labelFetcher:i.seriesModel,labelDataIndex:s,defaultText:Xf(i.seriesModel.getData(),s),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:w}),qn(o,m,y)}function H3(o){var i=Math.round(o);return Math.abs(o-i)<1e-4?i:Math.ceil(o)}var z3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group,d=r.getData(),p=this._data,v=r.coordinateSystem,m=v.getBaseAxis().isHorizontal(),y=v.master.getRect(),b={ecSize:{width:u.getWidth(),height:u.getHeight()},seriesModel:r,coordSys:v,coordSysExtent:[[y.x,y.x+y.width],[y.y,y.y+y.height]],isHorizontal:m,valueDim:E3[+m],categoryDim:E3[1-+m]};return d.diff(p).add(function(w){if(d.hasValue(w)){var S=FA(d,w),M=IA(d,w,S,b),x=L3(d,b,M);d.setItemGraphicEl(w,x),f.add(x),B3(x,b,M)}}).update(function(w,S){var M=p.getItemGraphicEl(S);if(d.hasValue(w)){var x=FA(d,w),T=IA(d,w,x,b),P=V3(d,T);M&&P!==M.__pictorialShapeStr&&(f.remove(M),d.setItemGraphicEl(w,null),M=null),M?function(o,i,r){ln(o.__pictorialBundle,{x:r.bundlePosition[0],y:r.bundlePosition[1]},r.animationModel,r.dataIndex),r.symbolRepeat?LA(o,i,r,!0):O3(o,0,r,!0),I3(o,r,!0),R3(o,i,r,!0)}(M,b,T):M=L3(d,b,T,!0),d.setItemGraphicEl(w,M),M.__pictorialSymbolMeta=T,f.add(M),B3(M,b,T)}else f.remove(M)}).remove(function(w){var S=p.getItemGraphicEl(w);S&&N3(p,w,S.__pictorialSymbolMeta.animationModel,S)}).execute(),this._data=d,this.group},i.prototype.remove=function(r,s){var u=this.group,f=this._data;r.get("animation")?f&&f.eachItemGraphicEl(function(d){N3(f,ht(d).dataIndex,r,d)}):u.removeAll()},i.type="pictorialBar",i}(Vn),VK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return he(i,o),i.prototype.getInitialData=function(r){return r.stack=null,o.prototype.getInitialData.apply(this,arguments)},i.type="series.pictorialBar",i.dependencies=["grid"],i.defaultOption=rh(Aw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),i}(Aw),U3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._layers=[],r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this,p=this.group,v=r.getLayerSeries(),g=f.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;function b(x){return x.name}p.x=0,p.y=m.y+y[0];var w=new Hf(this._layersSeries||[],v,b,b),S=[];function M(x,T,P){var O=d._layers;if("remove"!==x){for(var B,R=[],V=[],z=v[T].indices,j=0;jf&&(f=p),s.push(p)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(p),g=v.y0,m=r/v.max,y=u.length,b=u[0].indices.length,S=0;SMath.PI/2?"right":"left"):te&&"center"!==te?"left"===te?(Z=d.r0+Q,v>Math.PI/2&&(te="right")):"right"===te&&(Z=d.r-Q,v>Math.PI/2&&(te="left")):(Z=(d.r+d.r0)/2,te="center"),R.style.align=te,R.style.verticalAlign=x(P,"verticalAlign")||"middle",R.x=Z*g+d.cx,R.y=Z*m+d.cy;var ee=x(P,"rotate"),le=0;"radial"===ee?(le=-v)<-Math.PI/2&&(le+=Math.PI):"tangential"===ee?(le=Math.PI/2-v)>Math.PI/2?le-=Math.PI:le<-Math.PI/2&&(le+=Math.PI):"number"==typeof ee&&(le=ee*Math.PI/180),R.rotation=le}),b.dirtyStyle()},i}(rr),kg="sunburstRootToNode",Y3="sunburstHighlight",MW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this;this.seriesModel=r,this.api=u,this.ecModel=s;var P,O,p=r.getData(),v=p.tree.root,g=r.getViewRoot(),m=this.group,y=r.get("renderLabelForZeroData"),b=[];g.eachNode(function(P){b.push(P)}),function(P,O){function R(B){return B.getId()}function V(B,z){!function(P,O){if(!y&&P&&!P.getValue()&&(P=null),P!==v&&O!==v)if(O&&O.piece)P?(O.piece.updateData(!1,P,r,s,u),p.setItemGraphicEl(P.dataIndex,O.piece)):function(P){!P||P.piece&&(m.remove(P.piece),P.piece=null)}(O);else if(P){var R=new W3(P,r,s,u);m.add(R),p.setItemGraphicEl(P.dataIndex,R)}}(null==B?null:P[B],null==z?null:O[z])}0===P.length&&0===O.length||new Hf(O,P,R,R).add(V).update(V).remove(St(V,null)).execute()}(b,this._oldChildren||[]),P=v,(O=g).depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,P,r,s,u):(d.virtualPiece=new W3(P,r,s,u),m.add(d.virtualPiece)),O.piece.off("click"),d.virtualPiece.on("click",function(R){d._rootToNode(O.parentNode)})):d.virtualPiece&&(m.remove(d.virtualPiece),d.virtualPiece=null),this._initEvents(),this._oldChildren=b},i.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(s){var u=!1;r.seriesModel.getViewRoot().eachNode(function(d){if(!u&&d.piece&&d.piece===s.target){var p=d.getModel().get("nodeClick");if("rootToNode"===p)r._rootToNode(d);else if("link"===p){var v=d.getModel(),g=v.get("link");g&&J0(g,v.get("target",!0)||"_blank")}u=!0}})})},i.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kg,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},i.prototype.containPoint=function(r,s){var f=s.getData().getItemLayout(0);if(f){var d=r[0]-f.cx,p=r[1]-f.cy,v=Math.sqrt(d*d+p*p);return v<=f.r&&v>=f.r0}},i.type="sunburst",i}(Vn);function X3(o){var i=0;q(o.children,function(s){X3(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var xW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};X3(u);var f=Te(r.levels||[],function(v){return new Fn(v,this,s)},this),d=Kw.createTree(u,this,function(v){v.wrapMethod("getItemModel",function(g,m){var y=d.getNodeByDataIndex(m),b=f[y.depth];return b&&(g.parentModel=b),g})});return d.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treePathInfo=HD(u,this),s},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.sunburst",i.defaultOption={zlevel:0,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"},i}(vt),Yy=Math.PI/180;function Z3(o,i,r){i.eachSeriesByType(o,function(s){var u=s.get("center"),f=s.get("radius");we(f)||(f=[0,f]),we(u)||(u=[u,u]);var d=r.getWidth(),p=r.getHeight(),v=Math.min(d,p),g=Fe(u[0],d),m=Fe(u[1],p),y=Fe(f[0],v/2),b=Fe(f[1],v/2),w=-s.get("startAngle")*Yy,S=s.get("minAngle")*Yy,M=s.getData().tree.root,x=s.getViewRoot(),T=x.depth,P=s.get("sort");null!=P&&VA(x,P);var O=0;q(x.children,function(de){!isNaN(de.getValue())&&O++});var R=x.getValue(),V=Math.PI/(R||O)*2,B=x.depth>0,j=(b-y)/(x.height-(B?-1:1)||1),X=s.get("clockwise"),Z=s.get("stillShowZeroSum"),Q=X?1:-1;if(B){var oe=2*Math.PI;M.setLayout({angle:oe,startAngle:w,endAngle:w+oe,clockwise:X,cx:g,cy:m,r0:y,r:y+j})}!function de(ge,_e){if(ge){var xe=_e;if(ge!==M){var Me=ge.getValue(),He=0===R&&Z?V:Me*V;He1;)d=d.parentNode;var p=u.getColorFromPalette(d.name||d.dataIndex+"",i);return s.depth>1&&"string"==typeof p&&(p=lO(p,(s.depth-1)/(f-1)*.5)),p}(d,s,f.root.height)),Se(u.ensureUniqueItemVisual(d.dataIndex,"style"),v)})})}var AW={color:"fill",borderColor:"stroke"},HA={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Xa=pn(),PW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},i.prototype.getInitialData=function(r,s){return gl(null,this)},i.prototype.getDataParams=function(r,s,u){var f=o.prototype.getDataParams.call(this,r,s);return u&&(f.info=Xa(u).info),f},i.type="series.custom",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},i}(vt);function OW(o,i){return i=i||[0,0],Te(["x","y"],function(r,s){var u=this.getAxis(r),f=i[s],d=o[s]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-d)-u.dataToCoord(f+d))},this)}function IW(o,i){return i=i||[0,0],Te([0,1],function(r){var s=i[r],u=o[r]/2,f=[],d=[];return f[r]=s-u,d[r]=s+u,f[1-r]=d[1-r]=i[1-r],Math.abs(this.dataToPoint(f)[r]-this.dataToPoint(d)[r])},this)}function LW(o,i){var r=this.getAxis(),s=i instanceof Array?i[0]:i,u=(o instanceof Array?o[0]:o)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(s-u)-r.dataToCoord(s+u))}function K3(o,i){return i=i||[0,0],Te(["Radius","Angle"],function(r,s){var f=this["get"+r+"Axis"](),d=i[s],p=o[s]/2,v="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-p)-f.dataToCoord(d+p));return"Angle"===r&&(v=v*Math.PI/180),v},this)}function Q3(o,i,r,s){return o&&(o.legacy||!1!==o.legacy&&!r&&!s&&"tspan"!==i&&("text"===i||Ae(o,"text")))}function $3(o,i,r){var u,f,d,s=o;if("text"===i)d=s;else{d={},Ae(s,"text")&&(d.text=s.text),Ae(s,"rich")&&(d.rich=s.rich),Ae(s,"textFill")&&(d.fill=s.textFill),Ae(s,"textStroke")&&(d.stroke=s.textStroke),Ae(s,"fontFamily")&&(d.fontFamily=s.fontFamily),Ae(s,"fontSize")&&(d.fontSize=s.fontSize),Ae(s,"fontStyle")&&(d.fontStyle=s.fontStyle),Ae(s,"fontWeight")&&(d.fontWeight=s.fontWeight),f={type:"text",style:d,silent:!0},u={};var p=Ae(s,"textPosition");r?u.position=p?s.textPosition:"inside":p&&(u.position=s.textPosition),Ae(s,"textPosition")&&(u.position=s.textPosition),Ae(s,"textOffset")&&(u.offset=s.textOffset),Ae(s,"textRotation")&&(u.rotation=s.textRotation),Ae(s,"textDistance")&&(u.distance=s.textDistance)}return J3(d,o),q(d.rich,function(v){J3(v,v)}),{textConfig:u,textContent:f}}function J3(o,i){!i||(i.font=i.textFont||i.font,Ae(i,"textStrokeWidth")&&(o.lineWidth=i.textStrokeWidth),Ae(i,"textAlign")&&(o.align=i.textAlign),Ae(i,"textVerticalAlign")&&(o.verticalAlign=i.textVerticalAlign),Ae(i,"textLineHeight")&&(o.lineHeight=i.textLineHeight),Ae(i,"textWidth")&&(o.width=i.textWidth),Ae(i,"textHeight")&&(o.height=i.textHeight),Ae(i,"textBackgroundColor")&&(o.backgroundColor=i.textBackgroundColor),Ae(i,"textPadding")&&(o.padding=i.textPadding),Ae(i,"textBorderColor")&&(o.borderColor=i.textBorderColor),Ae(i,"textBorderWidth")&&(o.borderWidth=i.textBorderWidth),Ae(i,"textBorderRadius")&&(o.borderRadius=i.textBorderRadius),Ae(i,"textBoxShadowColor")&&(o.shadowColor=i.textBoxShadowColor),Ae(i,"textBoxShadowBlur")&&(o.shadowBlur=i.textBoxShadowBlur),Ae(i,"textBoxShadowOffsetX")&&(o.shadowOffsetX=i.textBoxShadowOffsetX),Ae(i,"textBoxShadowOffsetY")&&(o.shadowOffsetY=i.textBoxShadowOffsetY))}function eV(o,i,r){var s=o;s.textPosition=s.textPosition||r.position||"inside",null!=r.offset&&(s.textOffset=r.offset),null!=r.rotation&&(s.textRotation=r.rotation),null!=r.distance&&(s.textDistance=r.distance);var u=s.textPosition.indexOf("inside")>=0,f=o.fill||"#000";tV(s,i);var d=null==s.textFill;return u?d&&(s.textFill=r.insideFill||"#fff",!s.textStroke&&r.insideStroke&&(s.textStroke=r.insideStroke),!s.textStroke&&(s.textStroke=f),null==s.textStrokeWidth&&(s.textStrokeWidth=2)):(d&&(s.textFill=o.fill||r.outsideFill||"#000"),!s.textStroke&&r.outsideStroke&&(s.textStroke=r.outsideStroke)),s.text=i.text,s.rich=i.rich,q(i.rich,function(p){tV(p,p)}),s}function tV(o,i){!i||(Ae(i,"fill")&&(o.textFill=i.fill),Ae(i,"stroke")&&(o.textStroke=i.fill),Ae(i,"lineWidth")&&(o.textStrokeWidth=i.lineWidth),Ae(i,"font")&&(o.font=i.font),Ae(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Ae(i,"fontWeight")&&(o.fontWeight=i.fontWeight),Ae(i,"fontSize")&&(o.fontSize=i.fontSize),Ae(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Ae(i,"align")&&(o.textAlign=i.align),Ae(i,"verticalAlign")&&(o.textVerticalAlign=i.verticalAlign),Ae(i,"lineHeight")&&(o.textLineHeight=i.lineHeight),Ae(i,"width")&&(o.textWidth=i.width),Ae(i,"height")&&(o.textHeight=i.height),Ae(i,"backgroundColor")&&(o.textBackgroundColor=i.backgroundColor),Ae(i,"padding")&&(o.textPadding=i.padding),Ae(i,"borderColor")&&(o.textBorderColor=i.borderColor),Ae(i,"borderWidth")&&(o.textBorderWidth=i.borderWidth),Ae(i,"borderRadius")&&(o.textBorderRadius=i.borderRadius),Ae(i,"shadowColor")&&(o.textBoxShadowColor=i.shadowColor),Ae(i,"shadowBlur")&&(o.textBoxShadowBlur=i.shadowBlur),Ae(i,"shadowOffsetX")&&(o.textBoxShadowOffsetX=i.shadowOffsetX),Ae(i,"shadowOffsetY")&&(o.textBoxShadowOffsetY=i.shadowOffsetY),Ae(i,"textShadowColor")&&(o.textShadowColor=i.textShadowColor),Ae(i,"textShadowBlur")&&(o.textShadowBlur=i.textShadowBlur),Ae(i,"textShadowOffsetX")&&(o.textShadowOffsetX=i.textShadowOffsetX),Ae(i,"textShadowOffsetY")&&(o.textShadowOffsetY=i.textShadowOffsetY))}var NW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function UA(o,i,r){var s=o[r],u=NW[r];s&&(i[u[0]]=s[0],i[u[1]]=s[1])}function Jh(o,i,r){null!=o[r]&&(i[r]=o[r])}function GA(o,i,r){r&&(o[i]=r[i])}function nV(o,i,r,s,u){var f=r[o];if(f){var p,d=i[o],v=f.enterFrom;if(u&&v){!p&&(p=s[o]={});for(var g=_n(v),m=0;m=0){!p&&(p=s[o]={});var S=_n(d);for(m=0;ms[1]&&s.reverse(),{coordSys:{type:"polar",cx:o.cx,cy:o.cy,r:s[1],r0:s[0]},api:{coord:function(f){var d=i.dataToRadius(f[0]),p=r.dataToAngle(f[1]),v=o.coordToPoint([d,p]);return v.push(d,p*Math.PI/180),v},size:Ye(K3,o)}}},calendar:function(o){var i=o.getRect(),r=o.getRangeInfo();return{coordSys:{type:"calendar",x:i.x,y:i.y,width:i.width,height:i.height,cellWidth:o.getCellWidth(),cellHeight:o.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(u,f){return o.dataToPoint(u,f)}}}}};function np(o){return o instanceof Nt}function Cc(o){return o instanceof as}var WA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this._data,p=r.getData(),v=this.group,g=XA(r,p,s,u);d||v.removeAll(),p.diff(d).add(function(y){ip(u,null,y,g(y,f),r,v,p)}).remove(function(y){$A(d.getItemGraphicEl(y),r,v)}).update(function(y,b){var w=d.getItemGraphicEl(b);ip(u,w,y,g(y,f),r,v,p)}).execute();var m=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;m?v.setClipPath(m):v.removeClipPath(),this._data=p},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll(),this._data=null},i.prototype.incrementalRender=function(r,s,u,f,d){var p=s.getData(),v=XA(s,p,u,f);function g(b){b.isGroup||(b.incremental=!0,b.ensureState("emphasis").hoverLayer=!0)}for(var m=r.start;m=0){var w=o.getAnimationStyleProps(),S=w?w.style:null;if(S){!d&&(d=s.style={});var M=_n(r);for(g=0;g=0?i.getStore().get(ge,oe):void 0}var _e=i.get(de.name,oe),xe=de&&de.ordinalMeta;return xe?xe.categories[_e]:_e},styleEmphasis:function(le,oe){null==oe&&(oe=g);var de=P(oe,bc).getItemStyle(),ge=O(oe,bc),_e=Or(ge,null,null,!0,!0);_e.text=ge.getShallow("show")?$o(o.getFormattedLabel(oe,bc),o.getFormattedLabel(oe,Mu),Xf(i,oe)):null;var xe=U0(ge,null,!0);return X(le,de),de=eV(de,_e,xe),le&&j(de,le),de.legacy=!0,de},visual:function(le,oe){if(null==oe&&(oe=g),Ae(AW,le)){var de=i.getItemVisual(oe,"style");return de?de[AW[le]]:null}if(Ae(HA,le))return i.getItemVisual(oe,le)},barLayout:function(le){if("cartesian2d"===f.type)return function(o){var i=[],r=o.axis,s="axis0";if("category"===r.type){for(var u=r.getBandWidth(),f=0;f=m;y--)$A(i.childAt(y),u,i)}}(o,m,r,s,u),p>=0?f.replaceAt(m,p):f.add(m),m}function KA(o,i,r){var s=Xa(o),u=i.type,f=i.shape,d=i.style;return r.isUniversalTransitionEnabled()||null!=u&&u!==s.customGraphicType||"path"===u&&function(o){return o&&(Ae(o,"pathData")||Ae(o,"d"))}(f)&&yo(f)!==s.customPathData||"image"===u&&Ae(d,"image")&&d.image!==s.customImagePath}function oV(o,i,r){var s=i?$y(o,i):o,u=i?QA(o,s,bc):o.style,f=o.type,d=s?s.textConfig:null,p=o.textContent,v=p?i?$y(p,i):p:null;if(u&&(r.isLegacy||Q3(u,f,!!d,!!v))){r.isLegacy=!0;var g=$3(u,f,!i);!d&&g.textConfig&&(d=g.textConfig),!v&&g.textContent&&(v=g.textContent)}!i&&v&&!v.type&&(v.type="text");var y=i?r[i]:r.normal;y.cfg=d,y.conOpt=v}function $y(o,i){return i?o?o[i]:null:o}function QA(o,i,r){var s=i&&i.style;return null==s&&r===bc&&o&&(s=o.styleEmphasis),s}function sV(o,i){var r=o&&o.name;return null!=r?r:"e\0\0"+i}function op(o,i){var r=this.context;aV(r.api,null!=i?r.oldChildren[i]:null,r.dataIndex,null!=o?r.newChildren[o]:null,r.seriesModel,r.group)}function lV(o){var i=this.context;$A(i.oldChildren[o],i.seriesModel,i.group)}function $A(o,i,r){if(o){var s=Xa(o).leaveToProps;s?ln(o,s,i,{cb:function(){r.remove(o)}}):r.remove(o)}}function yo(o){return o&&(o.pathData||o.d)}var sp=pn(),JA=rt,uV=Ye;function q1(o,i,r,s){YW(sp(r).lastProp,s)||(sp(r).lastProp=s,i?ln(r,s,o):(r.stopAnimation(),r.attr(s)))}function YW(o,i){if(at(o)&&at(i)){var r=!0;return q(i,function(s,u){r=r&&YW(o[u],s)}),!!r}return o===i}function qW(o,i){o[i.get(["label","show"])?"show":"hide"]()}function cV(o){return{x:o.x||0,y:o.y||0,rotation:o.rotation||0}}function XW(o,i,r){var s=i.get("z"),u=i.get("zlevel");o&&o.traverse(function(f){"group"!==f.type&&(null!=s&&(f.z=s),null!=u&&(f.zlevel=u),f.silent=r)})}var fV=function(){function o(){this._dragging=!1,this.animationThreshold=15}return o.prototype.render=function(i,r,s,u){var f=r.get("value"),d=r.get("status");if(this._axisModel=i,this._axisPointerModel=r,this._api=s,u||this._lastValue!==f||this._lastStatus!==d){this._lastValue=f,this._lastStatus=d;var p=this._group,v=this._handle;if(!d||"hide"===d)return p&&p.hide(),void(v&&v.hide());p&&p.show(),v&&v.show();var g={};this.makeElOption(g,f,i,r,s);var m=g.graphicKey;m!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=m;var y=this._moveAnimation=this.determineAnimation(i,r);if(p){var b=St(q1,r,y);this.updatePointerEl(p,g,b),this.updateLabelEl(p,g,b,r)}else p=this._group=new ct,this.createPointerEl(p,g,i,r),this.createLabelEl(p,g,i,r),s.getZr().add(p);XW(p,r,!0),this._renderHandle(f)}},o.prototype.remove=function(i){this.clear(i)},o.prototype.dispose=function(i){this.clear(i)},o.prototype.determineAnimation=function(i,r){var s=r.get("animation"),u=i.axis,f="category"===u.type,d=r.get("snap");if(!d&&!f)return!1;if("auto"===s||null==s){var p=this.animationThreshold;if(f&&u.getBandWidth()>p)return!0;if(d){var v=CF(i).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/v>p}return!1}return!0===s},o.prototype.makeElOption=function(i,r,s,u,f){},o.prototype.createPointerEl=function(i,r,s,u){var f=r.pointer;if(f){var d=sp(i).pointerEl=new F[f.type](JA(r.pointer));i.add(d)}},o.prototype.createLabelEl=function(i,r,s,u){if(r.label){var f=sp(i).labelEl=new fn(JA(r.label));i.add(f),qW(f,u)}},o.prototype.updatePointerEl=function(i,r,s){var u=sp(i).pointerEl;u&&r.pointer&&(u.setStyle(r.pointer.style),s(u,{shape:r.pointer.shape}))},o.prototype.updateLabelEl=function(i,r,s,u){var f=sp(i).labelEl;f&&(f.setStyle(r.label.style),s(f,{x:r.label.x,y:r.label.y}),qW(f,u))},o.prototype._renderHandle=function(i){if(!this._dragging&&this.updateHandleTransform){var p,r=this._axisPointerModel,s=this._api.getZr(),u=this._handle,f=r.getModel("handle"),d=r.get("status");if(!f.get("show")||!d||"hide"===d)return u&&s.remove(u),void(this._handle=null);this._handle||(p=!0,u=this._handle=cl(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(m){Vl(m.event)},onmousedown:uV(this._onHandleDragMove,this,0,0),drift:uV(this._onHandleDragMove,this),ondragend:uV(this._onHandleDragEnd,this)}),s.add(u)),XW(u,r,!1),u.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var v=f.get("size");we(v)||(v=[v,v]),u.scaleX=v[0]/2,u.scaleY=v[1]/2,il(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(i,p)}},o.prototype._moveHandleToValue=function(i,r){q1(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cV(this.getHandleTransform(i,this._axisModel,this._axisPointerModel)))},o.prototype._onHandleDragMove=function(i,r){var s=this._handle;if(s){this._dragging=!0;var u=this.updateHandleTransform(cV(s),[i,r],this._axisModel,this._axisPointerModel);this._payloadInfo=u,s.stopAnimation(),s.attr(cV(u)),sp(s).lastProp=null,this._doDispatchAxisPointer()}},o.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},o.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},o.prototype.clear=function(i){this._lastValue=null,this._lastStatus=null;var r=i.getZr(),s=this._group,u=this._handle;r&&s&&(this._lastGraphicKey=null,s&&r.remove(s),u&&r.remove(u),this._group=null,this._handle=null,this._payloadInfo=null)},o.prototype.doClear=function(){},o.prototype.buildLabel=function(i,r,s){return{x:i[s=s||0],y:i[1-s],width:r[s],height:r[1-s]}},o}();function dV(o){var s,i=o.get("type"),r=o.getModel(i+"Style");return"line"===i?(s=r.getLineStyle()).fill=null:"shadow"===i&&((s=r.getAreaStyle()).stroke=null),s}function X1(o,i,r,s,u){var d=Ps(r.get("value"),i.axis,i.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),p=r.getModel("label"),v=lh(p.get("padding")||0),g=p.getFont(),m=um(d,g),y=u.position,b=m.width+v[1]+v[3],w=m.height+v[0]+v[2],S=u.align;"right"===S&&(y[0]-=b),"center"===S&&(y[0]-=b/2);var M=u.verticalAlign;"bottom"===M&&(y[1]-=w),"middle"===M&&(y[1]-=w/2),function(o,i,r,s){var u=s.getWidth(),f=s.getHeight();o[0]=Math.min(o[0]+i,u)-i,o[1]=Math.min(o[1]+r,f)-r,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0)}(y,b,w,s);var x=p.get("backgroundColor");(!x||"auto"===x)&&(x=i.get(["axisLine","lineStyle","color"])),o.label={x:y[0],y:y[1],style:Or(p,{text:d,font:g,fill:p.getTextColor(),padding:v,backgroundColor:x}),z2:10}}function Ps(o,i,r,s,u){o=i.scale.parse(o);var f=i.scale.getLabel({value:o},{precision:u.precision}),d=u.formatter;if(d){var p={value:NT(i,{value:o}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]};q(s,function(v){var g=r.getSeriesByIndex(v.seriesIndex),y=g&&g.getDataParams(v.dataIndexInside);y&&p.seriesData.push(y)}),yt(d)?f=d.replace("{value}",f):An(d)&&(f=d(p))}return f}function eE(o,i,r){var s=[1,0,0,1,0,0];return Od(s,s,r.rotation),Oo(s,s,r.position),ul([o.dataToCoord(i),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],s)}function Jy(o,i,r,s,u,f){var d=yu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=u.get(["label","margin"]),X1(i,s,u,f,{position:eE(s.axis,o,r),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function hV(o,i,r){return{x1:o[r=r||0],y1:o[1-r],x2:i[r],y2:i[1-r]}}function tE(o,i,r){return{x:o[r=r||0],y:o[1-r],width:i[r],height:i[1-r]}}function ZW(o,i,r,s,u,f){return{cx:o,cy:i,r0:r,r:s,startAngle:u,endAngle:f,clockwise:!0}}var nE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.grid,g=f.get("type"),m=KW(v,p).getOtherAxis(p).getGlobalExtent(),y=p.toGlobalCoord(p.dataToCoord(s,!0));if(g&&"none"!==g){var b=dV(f),w=Os[g](p,y,m);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,dF(v.model,u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=dF(s.axis.grid.model,s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.grid,v=d.getGlobalExtent(!0),g=KW(p,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[r.x,r.y];y[m]+=s[m],y[m]=Math.min(v[1],y[m]),y[m]=Math.max(v[0],y[m]);var b=(g[1]+g[0])/2,w=[b,b];return w[m]=y[m],{x:y[0],y:y[1],rotation:r.rotation,cursorPoint:w,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][m]}},i}(fV);function KW(o,i){var r={};return r[i.dim+"AxisIndex"]=i.index,o.getCartesian(r)}var Os={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],QW(i))}},shadow:function(i,r,s){var u=Math.max(1,i.getBandWidth());return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],QW(i))}}};function QW(o){return"x"===o.dim?0:1}var xg=nE,$W=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="axisPointer",i.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},i}(qt),wc=pn(),JW=q;function eY(o,i,r){if(!Ze.node){var s=i.getZr();wc(s).records||(wc(s).records={}),function(o,i){function r(s,u){o.on(s,function(f){var d=function(o){var i={showTip:[],hideTip:[]};return{dispatchAction:function s(u){var f=i[u.type];f?f.push(u):(u.dispatchAction=s,o.dispatchAction(u))},pendings:i}}(i);JW(wc(o).records,function(p){p&&u(p,f,d.dispatchAction)}),function(o,i){var u,r=o.showTip.length,s=o.hideTip.length;r?u=o.showTip[r-1]:s&&(u=o.hideTip[s-1]),u&&(u.dispatchAction=null,i.dispatchAction(u))}(d.pendings,i)})}wc(o).initialized||(wc(o).initialized=!0,r("click",St(ea,"click")),r("mousemove",St(ea,"mousemove")),r("globalout",XK))}(s,i),(wc(s).records[o]||(wc(s).records[o]={})).handler=r}}function XK(o,i,r){o.handler("leave",null,r)}function ea(o,i,r,s){i.handler(o,r,s)}function iE(o,i){if(!Ze.node){var r=i.getZr();(wc(r).records||{})[o]&&(wc(r).records[o]=null)}}var ZK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=s.getComponent("tooltip"),d=r.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";eY("axisPointer",u,function(p,v,g){"none"!==d&&("leave"===p||d.indexOf(p)>=0)&&g({type:"updateAxisPointer",currTrigger:p,x:v&&v.offsetX,y:v&&v.offsetY})})},i.prototype.remove=function(r,s){iE("axisPointer",s)},i.prototype.dispose=function(r,s){iE("axisPointer",s)},i.type="axisPointer",i}(un);function rY(o,i){var u,r=[],s=o.seriesIndex;if(null==s||!(u=i.getSeriesByIndex(s)))return{point:[]};var f=u.getData(),d=va(f,o);if(null==d||d<0||we(d))return{point:[]};var p=f.getItemGraphicEl(d),v=u.coordinateSystem;if(u.getTooltipPosition)r=u.getTooltipPosition(d)||[];else if(v&&v.dataToPoint)if(o.isStacked){var g=v.getBaseAxis(),y=v.getOtherAxis(g).dim,w="x"===y||"radius"===y?1:0,S=f.mapDimension(g.dim),M=[];M[w]=f.get(S,d),M[1-w]=f.get(f.getCalculationInfo("stackResultDimension"),d),r=v.dataToPoint(M)||[]}else r=v.dataToPoint(f.getValues(Te(v.dimensions,function(T){return f.mapDimension(T)}),d))||[];else if(p){var x=p.getBoundingRect().clone();x.applyTransform(p.transform),r=[x.x+x.width/2,x.y+x.height/2]}return{point:r,el:p}}var Sc=pn();function Za(o,i,r){var s=o.currTrigger,u=[o.x,o.y],f=o,d=o.dispatchAction||Ye(r.dispatchAction,r),p=i.getComponent("axisPointer").coordSysAxesInfo;if(p){oE(u)&&(u=rY({seriesIndex:f.seriesIndex,dataIndex:f.dataIndex},i).point);var v=oE(u),g=f.axesInfo,m=p.axesInfo,y="leave"===s||oE(u),b={},w={},S={list:[],map:{}},M={showPointer:St(Tg,w),showTooltip:St(Dg,S)};q(p.coordSysMap,function(T,P){var O=v||T.containPoint(u);q(p.coordSysAxesInfo[P],function(R,V){var B=R.axis,z=function(o,i){for(var r=0;r<(o||[]).length;r++){var s=o[r];if(i.axis.dim===s.axisDim&&i.axis.model.componentIndex===s.axisIndex)return s}}(g,R);if(!y&&O&&(!g||z)){var j=z&&z.value;null==j&&!v&&(j=B.pointToData(u)),null!=j&&K1(R,j,M,!1,b)}})});var x={};return q(m,function(T,P){var O=T.linkGroup;O&&!w[P]&&q(O.axesInfo,function(R,V){var B=w[V];if(R!==T&&B){var z=B.value;O.mapper&&(z=T.axis.scale.parse(O.mapper(z,iY(R),iY(T)))),x[T.key]=z}})}),q(x,function(T,P){K1(m[P],T,M,!0,b)}),function(o,i,r){var s=r.axesInfo=[];q(i,function(u,f){var d=u.axisPointerModel.option,p=o[f];p?(!u.useHandle&&(d.status="show"),d.value=p.value,d.seriesDataIndices=(p.payloadBatch||[]).slice()):!u.useHandle&&(d.status="hide"),"show"===d.status&&s.push({axisDim:u.axis.dim,axisIndex:u.axis.model.componentIndex,value:d.value})})}(w,m,b),function(o,i,r,s){if(!oE(i)&&o.list.length){var u=((o.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:i[0],y:i[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:o.list})}else s({type:"hideTip"})}(S,u,o,d),function(o,i,r){var s=r.getZr(),u="axisPointerLastHighlights",f=Sc(s)[u]||{},d=Sc(s)[u]={};q(o,function(g,m){var y=g.axisPointerModel.option;"show"===y.status&&q(y.seriesDataIndices,function(b){d[b.seriesIndex+" | "+b.dataIndex]=b})});var p=[],v=[];q(f,function(g,m){!d[m]&&v.push(g)}),q(d,function(g,m){!f[m]&&p.push(g)}),v.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),p.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:p})}(m,0,r),b}}function K1(o,i,r,s,u){var f=o.axis;if(!f.scale.isBlank()&&f.containData(i)){if(!o.involveSeries)return void r.showPointer(o,i);var d=function(o,i){var r=i.axis,s=r.dim,u=o,f=[],d=Number.MAX_VALUE,p=-1;return q(i.seriesModels,function(v,g){var y,b,m=v.getData().mapDimensionsAll(s);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(m,o,r);b=w.dataIndices,y=w.nestestValue}else{if(!(b=v.getData().indicesOfNearest(m[0],o,"category"===r.type?.5:null)).length)return;y=v.getData().get(m[0],b[0])}if(null!=y&&isFinite(y)){var S=o-y,M=Math.abs(S);M<=d&&((M=0&&p<0)&&(d=M,p=S,u=y,f.length=0),q(b,function(x){f.push({seriesIndex:v.seriesIndex,dataIndexInside:x,dataIndex:v.getData().getRawIndex(x)})}))}}),{payloadBatch:f,snapToValue:u}}(i,o),p=d.payloadBatch,v=d.snapToValue;p[0]&&null==u.seriesIndex&&Se(u,p[0]),!s&&o.snap&&f.containData(v)&&null!=v&&(i=v),r.showPointer(o,i,p),r.showTooltip(o,d,v)}}function Tg(o,i,r,s){o[i.key]={value:r,payloadBatch:s}}function Dg(o,i,r,s){var u=r.payloadBatch,f=i.axis,d=f.model,p=i.axisPointerModel;if(i.triggerTooltip&&u.length){var v=i.coordSys.model,g=ay(v),m=o.map[g];m||(m=o.map[g]={coordSysId:v.id,coordSysIndex:v.componentIndex,coordSysType:v.type,coordSysMainType:v.mainType,dataByAxis:[]},o.list.push(m)),m.dataByAxis.push({axisDim:f.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:s,valueLabelOpt:{precision:p.get(["label","precision"]),formatter:p.get(["label","formatter"])},seriesDataIndices:u.slice()})}}function iY(o){var i=o.axis.model,r={},s=r.axisDim=o.axis.dim;return r.axisIndex=r[s+"AxisIndex"]=i.componentIndex,r.axisName=r[s+"AxisName"]=i.name,r.axisId=r[s+"AxisId"]=i.id,r}function oE(o){return!o||null==o[0]||isNaN(o[0])||null==o[1]||isNaN(o[1])}function Q1(o){eg.registerAxisPointerClass("CartesianAxisPointer",xg),o.registerComponentModel($W),o.registerComponentView(ZK),o.registerPreprocessor(function(i){if(i){(!i.axisPointer||0===i.axisPointer.length)&&(i.axisPointer={});var r=i.axisPointer.link;r&&!we(r)&&(i.axisPointer.link=[r])}}),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,function(i,r){i.getComponent("axisPointer").coordSysAxesInfo=function(o,i){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(o,i,r){var s=i.getComponent("tooltip"),u=i.getComponent("axisPointer"),f=u.get("link",!0)||[],d=[];q(r.getCoordinateSystems(),function(p){if(p.axisPointerEnabled){var v=ay(p.model),g=o.coordSysAxesInfo[v]={};o.coordSysMap[v]=p;var y=p.model.getModel("tooltip",s);if(q(p.getAxes(),St(M,!1,null)),p.getTooltipAxes&&s&&y.get("show")){var b="axis"===y.get("trigger"),w="cross"===y.get(["axisPointer","type"]),S=p.getTooltipAxes(y.get(["axisPointer","axis"]));(b||w)&&q(S.baseAxes,St(M,!w||"cross",b)),w&&q(S.otherAxes,St(M,"cross",!1))}}function M(x,T,P){var O=P.model.getModel("axisPointer",u),R=O.get("show");if(R&&("auto"!==R||x||yD(O))){null==T&&(T=O.get("triggerTooltip"));var V=(O=x?function(o,i,r,s,u,f){var d=i.getModel("axisPointer"),v={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){v[b]=rt(d.get(b))}),v.snap="category"!==o.type&&!!f,"cross"===d.get("type")&&(v.type="line");var g=v.label||(v.label={});if(null==g.show&&(g.show=!1),"cross"===u){var m=d.get(["label","show"]);if(g.show=null==m||m,!f){var y=v.lineStyle=d.get("crossStyle");y&&tt(g,y.textStyle)}}return o.model.getModel("axisPointer",new Fn(v,r,s))}(P,y,u,i,x,T):O).get("snap"),B=ay(P.model),z=T||V||"category"===P.type,j=o.axesInfo[B]={key:B,axis:P,coordSys:p,axisPointerModel:O,triggerTooltip:T,involveSeries:z,snap:V,useHandle:yD(O),seriesModels:[],linkGroup:null};g[B]=j,o.seriesInvolved=o.seriesInvolved||z;var X=function(o,i){for(var r=i.model,s=i.dim,u=0;ux?"left":"right",y=Math.abs(g[1]-T)/M<.3?"middle":g[1]>T?"top":"bottom"}return{position:g,align:m,verticalAlign:y}}(s,u,0,v,f.get(["label","margin"]));X1(r,u,f,d,x)},i}(fV),QK={line:function(i,r,s,u){return"angle"===i.dim?{type:"Line",shape:hV(r.coordToPoint([u[0],s]),r.coordToPoint([u[1],s]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:s}}},shadow:function(i,r,s,u){var f=Math.max(1,i.getBandWidth()),d=Math.PI/180;return"angle"===i.dim?{type:"Sector",shape:ZW(r.cx,r.cy,u[0],u[1],(-s-f/2)*d,(f/2-s)*d)}:{type:"Sector",shape:ZW(r.cx,r.cy,s-f/2,s+f/2,0,2*Math.PI)}}},$K=pV,eQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.findAxisModel=function(r){var s;return this.ecModel.eachComponent(r,function(f){f.getCoordSysModel()===this&&(s=f)},this),s},i.type="polar",i.dependencies=["radiusAxis","angleAxis"],i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},i}(qt),vV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ai).models[0]},i.type="polarAxis",i}(qt);qr(vV,zv);var tQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="angleAxis",i}(vV),nQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="radiusAxis",i}(vV),$1=function(o){function i(r,s){return o.call(this,"radius",r,s)||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i}(_l);$1.prototype.dataToRadius=_l.prototype.dataToCoord,$1.prototype.radiusToData=_l.prototype.coordToData;var rQ=$1,iQ=pn(),gV=function(o){function i(r,s){return o.call(this,"angle",r,s||[0,360])||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i.prototype.calculateCategoryInterval=function(){var r=this,s=r.getLabelModel(),u=r.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=f[0],v=r.dataToCoord(p+1)-r.dataToCoord(p),g=Math.abs(v),m=um(null==p?"":p+"",s.getFont(),"center","top"),b=Math.max(m.height,7)/g;isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(b)),S=iQ(r.model),M=S.lastAutoInterval,x=S.lastTickCount;return null!=M&&null!=x&&Math.abs(M-w)<=1&&Math.abs(x-d)<=1&&M>w?w=M:(S.lastTickCount=d,S.lastAutoInterval=w),w},i}(_l);gV.prototype.dataToAngle=_l.prototype.dataToCoord,gV.prototype.angleToData=_l.prototype.coordToData;var aQ=gV,J1=["radius","angle"];function oY(o){var i=o.seriesModel,r=o.polarModel;return r&&r.coordinateSystem||i&&i.coordinateSystem}var sQ=function(){function o(i){this.dimensions=J1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new rQ,this._angleAxis=new aQ,this.axisPointerEnabled=!0,this.name=i||"",this._radiusAxis.polar=this._angleAxis.polar=this}return o.prototype.containPoint=function(i){var r=this.pointToCoord(i);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},o.prototype.containData=function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},o.prototype.getAxis=function(i){return this["_"+i+"Axis"]},o.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},o.prototype.getAxesByScale=function(i){var r=[],s=this._angleAxis,u=this._radiusAxis;return s.scale.type===i&&r.push(s),u.scale.type===i&&r.push(u),r},o.prototype.getAngleAxis=function(){return this._angleAxis},o.prototype.getRadiusAxis=function(){return this._radiusAxis},o.prototype.getOtherAxis=function(i){var r=this._angleAxis;return i===r?this._radiusAxis:r},o.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},o.prototype.getTooltipAxes=function(i){var r=null!=i&&"auto"!==i?this.getAxis(i):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},o.prototype.dataToPoint=function(i,r){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],r),this._angleAxis.dataToAngle(i[1],r)])},o.prototype.pointToData=function(i,r){var s=this.pointToCoord(i);return[this._radiusAxis.radiusToData(s[0],r),this._angleAxis.angleToData(s[1],r)]},o.prototype.pointToCoord=function(i){var r=i[0]-this.cx,s=i[1]-this.cy,u=this.getAngleAxis(),f=u.getExtent(),d=Math.min(f[0],f[1]),p=Math.max(f[0],f[1]);u.inverse?d=p-360:p=d+360;var v=Math.sqrt(r*r+s*s);r/=v,s/=v;for(var g=Math.atan2(-s,r)/Math.PI*180,m=gp;)g+=360*m;return[v,g]},o.prototype.coordToPoint=function(i){var r=i[0],s=i[1]/180*Math.PI;return[Math.cos(s)*r+this.cx,-Math.sin(s)*r+this.cy]},o.prototype.getArea=function(){var i=this.getAngleAxis(),s=this.getRadiusAxis().getExtent().slice();s[0]>s[1]&&s.reverse();var u=i.getExtent(),f=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:s[0],r:s[1],startAngle:-u[0]*f,endAngle:-u[1]*f,clockwise:i.inverse,contain:function(p,v){var g=p-this.cx,m=v-this.cy,y=g*g+m*m,b=this.r,w=this.r0;return y<=b*b&&y>=w*w}}},o.prototype.convertToPixel=function(i,r,s){return oY(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return oY(r)===this?this.pointToData(s):null},o}();function uQ(o,i){var r=this,s=r.getAngleAxis(),u=r.getRadiusAxis();if(s.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),o.eachSeries(function(p){if(p.coordinateSystem===r){var v=p.getData();q(H_(v,"radius"),function(g){u.scale.unionExtentFromData(v,g)}),q(H_(v,"angle"),function(g){s.scale.unionExtentFromData(v,g)})}}),Wf(s.scale,s.model),Wf(u.scale,u.model),"category"===s.type&&!s.onBand){var f=s.getExtent(),d=360/s.scale.count();s.inverse?f[1]+=d:f[1]-=d,s.setExtent(f[0],f[1])}}function sY(o,i){if(o.type=i.get("type"),o.scale=Hh(i),o.onBand=i.get("boundaryGap")&&"category"===o.type,o.inverse=i.get("inverse"),function(o){return"angleAxis"===o.mainType}(i)){o.inverse=o.inverse!==i.get("clockwise");var r=i.get("startAngle");o.setExtent(r,r+(o.inverse?-360:360))}i.axis=o,o.model=i}var dQ={dimensions:J1,create:function(i,r){var s=[];return i.eachComponent("polar",function(u,f){var d=new sQ(f+"");d.update=uQ;var p=d.getRadiusAxis(),v=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");sY(p,g),sY(v,m),function(o,i,r){var s=i.get("center"),u=r.getWidth(),f=r.getHeight();o.cx=Fe(s[0],u),o.cy=Fe(s[1],f);var d=o.getRadiusAxis(),p=Math.min(u,f)/2,v=i.get("radius");null==v?v=[0,"100%"]:we(v)||(v=[0,v]);var g=[Fe(v[0],p),Fe(v[1],p)];d.inverse?d.setExtent(g[1],g[0]):d.setExtent(g[0],g[1])}(d,u,r),s.push(d),u.coordinateSystem=d,d.model=u}),i.eachSeries(function(u){if("polar"===u.get("coordinateSystem")){var f=u.getReferringComponents("polar",ai).models[0];u.coordinateSystem=f.coordinateSystem}}),s}},hQ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sE(o,i,r){i[1]>i[0]&&(i=i.slice().reverse());var s=o.coordToPoint([i[0],r]),u=o.coordToPoint([i[1],r]);return{x1:s[0],y1:s[1],x2:u[0],y2:u[1]}}function lE(o){return o.getRadiusAxis().inverse?0:1}function lY(o){var i=o[0],r=o[o.length-1];i&&r&&Math.abs(Math.abs(i.coord-r.coord)-360)<1e-4&&o.pop()}var pQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.axisPointerClass="PolarAxisPointer",r}return he(i,o),i.prototype.render=function(r,s){if(this.group.removeAll(),r.get("show")){var u=r.axis,f=u.polar,d=f.getRadiusAxis().getExtent(),p=u.getTicksCoords(),v=u.getMinorTicksCoords(),g=Te(u.getViewLabels(),function(m){m=rt(m);var y=u.scale,b="ordinal"===y.type?y.getRawOrdinalNumber(m.tickValue):m.tickValue;return m.coord=u.dataToCoord(b),m});lY(g),lY(p),q(hQ,function(m){r.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&vQ[m](this.group,r,f,p,v,d,g)},this)}},i.type="angleAxis",i}(eg),vQ={axisLine:function(i,r,s,u,f,d){var m,p=r.getModel(["axisLine","lineStyle"]),v=lE(s),g=v?0:1;(m=0===d[g]?new sl({shape:{cx:s.cx,cy:s.cy,r:d[v]},style:p.getLineStyle(),z2:1,silent:!0}):new Mv({shape:{cx:s.cx,cy:s.cy,r:d[v],r0:d[g]},style:p.getLineStyle(),z2:1,silent:!0})).style.fill=null,i.add(m)},axisTick:function(i,r,s,u,f,d){var p=r.getModel("axisTick"),v=(p.get("inside")?-1:1)*p.get("length"),g=d[lE(s)],m=Te(u,function(y){return new Ti({shape:sE(s,[g,g+v],y.coord)})});i.add(ba(m,{style:tt(p.getModel("lineStyle").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})}))},minorTick:function(i,r,s,u,f,d){if(f.length){for(var p=r.getModel("axisTick"),v=r.getModel("minorTick"),g=(p.get("inside")?-1:1)*v.get("length"),m=d[lE(s)],y=[],b=0;bP?"left":"right",V=Math.abs(T[1]-O)/x<.3?"middle":T[1]>O?"top":"bottom";if(v&&v[M]){var B=v[M];at(B)&&B.textStyle&&(S=new Fn(B.textStyle,g,g.ecModel))}var z=new fn({silent:yu.isLabelSilent(r),style:Or(S,{x:T[0],y:T[1],fill:S.getTextColor()||r.get(["axisLine","lineStyle","color"]),text:b.formattedLabel,align:R,verticalAlign:V})});if(i.add(z),y){var j=yu.makeAxisEventDataBase(r);j.targetType="axisLabel",j.value=b.rawLabel,ht(z).eventData=j}},this)},splitLine:function(i,r,s,u,f,d){var v=r.getModel("splitLine").getModel("lineStyle"),g=v.get("color"),m=0;g=g instanceof Array?g:[g];for(var y=[],b=0;b=0?"p":"n",ee=z;V&&(s[m][Q]||(s[m][Q]={p:z,n:z}),ee=s[m][Q][te]);var le=void 0,oe=void 0,de=void 0,ge=void 0;if("radius"===S.dim){var _e=S.dataToCoord(Z)-z,xe=v.dataToCoord(Q);Math.abs(_e)=r.y&&i[1]<=r.y+r.height:s.contain(s.toLocalCoord(i[1]))&&i[0]>=r.y&&i[0]<=r.y+r.height},o.prototype.pointToData=function(i){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(i["horizontal"===r.orient?0:1]))]},o.prototype.dataToPoint=function(i){var r=this.getAxis(),s=this.getRect(),u=[],f="horizontal"===r.orient?0:1;return i instanceof Array&&(i=i[0]),u[f]=r.toGlobalCoord(r.dataToCoord(+i)),u[1-f]=0===f?s.y+s.height/2:s.x+s.width/2,u},o.prototype.convertToPixel=function(i,r,s){return pY(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return pY(r)===this?this.pointToData(s):null},o}(),BQ={create:function(o,i){var r=[];return o.eachComponent("singleAxis",function(s,u){var f=new FQ(s,o,i);f.name="single_"+u,f.resize(s,i),s.coordinateSystem=f,r.push(f)}),o.eachSeries(function(s){if("singleAxis"===s.get("coordinateSystem")){var u=s.getReferringComponents("singleAxis",ai).models[0];s.coordinateSystem=u&&u.coordinateSystem}}),r},dimensions:hY},vY=["x","y"],HQ=["width","height"],zQ=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.coordinateSystem,g=bV(v,1-uE(p)),m=v.dataToPoint(s)[0],y=f.get("type");if(y&&"none"!==y){var b=dV(f),w=UQ[y](p,m,g);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,_V(u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=_V(s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.coordinateSystem,v=uE(d),g=bV(p,v),m=[r.x,r.y];m[v]+=s[v],m[v]=Math.min(g[1],m[v]),m[v]=Math.max(g[0],m[v]);var y=bV(p,1-v),b=(y[1]+y[0])/2,w=[b,b];return w[v]=m[v],{x:m[0],y:m[1],rotation:r.rotation,cursorPoint:w,tooltipOption:{verticalAlign:"middle"}}},i}(fV),UQ={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],uE(i))}},shadow:function(i,r,s){var u=i.getBandWidth();return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],uE(i))}}};function uE(o){return o.isHorizontal()?0:1}function bV(o,i){var r=o.getRect();return[r[vY[i]],r[vY[i]]+r[HQ[i]]]}var GQ=zQ,jQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="single",i}(un);function gY(o,i){var s,r=o.cellSize;1===(s=we(r)?r:o.cellSize=[r,r]).length&&(s[1]=s[0]);var u=Te([0,1],function(f){return function(o,i){return null!=o[uh[i][0]]||null!=o[uh[i][1]]&&null!=o[uh[i][2]]}(i,f)&&(s[f]="auto"),null!=s[f]&&"auto"!==s[f]});kf(o,i,{type:"box",ignoreSize:u})}var qQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s,u){var f=av(r);o.prototype.init.apply(this,arguments),gY(r,f)},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),gY(this.option,r)},i.prototype.getCellSize=function(){return this.option.cellSize},i.type="calendar",i.defaultOption={zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},i}(qt),XQ={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},ZQ={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},QQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group;f.removeAll();var d=r.coordinateSystem,p=d.getRangeInfo(),v=d.getOrient();this._renderDayRect(r,p,f),this._renderLines(r,p,v,f),this._renderYearText(r,p,v,f),this._renderMonthText(r,v,f),this._renderWeekText(r,p,v,f)},i.prototype._renderDayRect=function(r,s,u){for(var f=r.coordinateSystem,d=r.getModel("itemStyle").getItemStyle(),p=f.getCellWidth(),v=f.getCellHeight(),g=s.start.time;g<=s.end.time;g=f.getNextNDay(g,1).time){var m=f.dataToRect([g],!1).tl,y=new sn({shape:{x:m[0],y:m[1],width:p,height:v},cursor:"default",style:d});u.add(y)}},i.prototype._renderLines=function(r,s,u,f){var d=this,p=r.coordinateSystem,v=r.getModel(["splitLine","lineStyle"]).getLineStyle(),g=r.get(["splitLine","show"]),m=v.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var y=s.start,b=0;y.time<=s.end.time;b++){S(y.formatedDate),0===b&&(y=p.getDateInfo(s.start.y+"-"+s.start.m));var w=y.date;w.setMonth(w.getMonth()+1),y=p.getDateInfo(w)}function S(M){d._firstDayOfMonth.push(p.getDateInfo(M)),d._firstDayPoints.push(p.dataToRect([M],!1).tl);var x=d._getLinePointsOfOneWeek(r,M,u);d._tlpoints.push(x[0]),d._blpoints.push(x[x.length-1]),g&&d._drawSplitline(x,v,f)}S(p.getNextNDay(s.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),v,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),v,f)},i.prototype._getEdgesPoints=function(r,s,u){var f=[r[0].slice(),r[r.length-1].slice()],d="horizontal"===u?0:1;return f[0][d]=f[0][d]-s/2,f[1][d]=f[1][d]+s/2,f},i.prototype._drawSplitline=function(r,s,u){var f=new _r({z2:20,shape:{points:r},style:s});u.add(f)},i.prototype._getLinePointsOfOneWeek=function(r,s,u){for(var f=r.coordinateSystem,d=f.getDateInfo(s),p=[],v=0;v<7;v++){var g=f.getNextNDay(d.time,v),m=f.dataToRect([g.time],!1);p[2*g.day]=m.tl,p[2*g.day+1]=m["horizontal"===u?"bl":"tr"]}return p},i.prototype._formatterLabel=function(r,s){return"string"==typeof r&&r?function(o,i,r){return q(i,function(s,u){o=o.replace("{"+u+"}",s)}),o}(r,s):"function"==typeof r?r(s):s.nameMap},i.prototype._yearTextPositionControl=function(r,s,u,f,d){var p=s[0],v=s[1],g=["center","bottom"];"bottom"===f?(v+=d,g=["center","top"]):"left"===f?p-=d:"right"===f?(p+=d,g=["center","top"]):v-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:p,y:v,style:{align:g[0],verticalAlign:g[1]}}},i.prototype._renderYearText=function(r,s,u,f){var d=r.getModel("yearLabel");if(d.get("show")){var p=d.get("margin"),v=d.get("position");v||(v="horizontal"!==u?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],m=(g[0][0]+g[1][0])/2,y=(g[0][1]+g[1][1])/2,b="horizontal"===u?0:1,w={top:[m,g[b][1]],bottom:[m,g[1-b][1]],left:[g[1-b][0],y],right:[g[b][0],y]},S=s.start.y;+s.end.y>+s.start.y&&(S=S+"-"+s.end.y);var M=d.get("formatter"),T=this._formatterLabel(M,{start:s.start.y,end:s.end.y,nameMap:S}),P=new fn({z2:30,style:Or(d,{text:T})});P.attr(this._yearTextPositionControl(P,w[v],u,v,p)),f.add(P)}},i.prototype._monthTextPositionControl=function(r,s,u,f,d){var p="left",v="top",g=r[0],m=r[1];return"horizontal"===u?(m+=d,s&&(p="center"),"start"===f&&(v="bottom")):(g+=d,s&&(v="middle"),"start"===f&&(p="right")),{x:g,y:m,align:p,verticalAlign:v}},i.prototype._renderMonthText=function(r,s,u){var f=r.getModel("monthLabel");if(f.get("show")){var d=f.get("nameMap"),p=f.get("margin"),v=f.get("position"),g=f.get("align"),m=[this._tlpoints,this._blpoints];yt(d)&&(d=XQ[d.toUpperCase()]||[]);var y="start"===v?0:1,b="horizontal"===s?0:1;p="start"===v?-p:p;for(var w="center"===g,S=0;S=u.start.time&&s.timep.end.time&&r.reverse(),r},o.prototype._getRangeInfo=function(i){var s,r=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];r[0].time>r[1].time&&(s=!0,r.reverse());var u=Math.floor(r[1].time/CV)-Math.floor(r[0].time/CV)+1,f=new Date(r[0].time),d=f.getDate(),p=r[1].date.getDate();f.setDate(d+u-1);var v=f.getDate();if(v!==p)for(var g=f.getTime()-r[1].time>0?1:-1;(v=f.getDate())!==p&&(f.getTime()-r[1].time)*g>0;)u-=g,f.setDate(v-g);var m=Math.floor((u+r[0].day+6)/7),y=s?1-m:m-1;return s&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:u,weeks:m,nthWeek:y,fweek:r[0].day,lweek:r[1].day}},o.prototype._getDateByWeeksAndDay=function(i,r,s){var u=this._getRangeInfo(s);if(i>u.weeks||0===i&&ru.lweek)return null;var f=7*(i-1)-u.fweek+r,d=new Date(u.start.time);return d.setDate(+u.start.d+f),this.getDateInfo(d)},o.create=function(i,r){var s=[];return i.eachComponent("calendar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeries(function(u){"calendar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("calendarIndex")||0])}),s},o.dimensions=["time","value"],o}(),eb=pn(),_Y={path:null,compoundPath:null,group:ct,image:si,text:fn},n$=function(i){var r=i.graphic;we(r)?i.graphic=r[0]&&r[0].elements?[i.graphic[0]]:[{elements:r}]:r&&!r.elements&&(i.graphic=[{elements:[r]}])},r$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventAutoZ=!0,r}return he(i,o),i.prototype.mergeOption=function(r,s){var u=this.option.elements;this.option.elements=null,o.prototype.mergeOption.call(this,r,s),this.option.elements=u},i.prototype.optionUpdated=function(r,s){var u=this.option,f=(s?u:r).elements,d=u.elements=s?[]:u.elements,p=[];this._flatten(f,p,null);var v=Xk(d,p,"normalMerge"),g=this._elOptionsToUpdate=[];q(v,function(y,b){var w=y.newOption;!w||(g.push(w),function(o,i){var r=o.existing;if(i.id=o.keyInfo.id,!i.type&&r&&(i.type=r.type),null==i.parentId){var s=i.parentOption;s?i.parentId=s.id:r&&(i.parentId=r.parentId)}i.parentOption=null}(y,w),function(o,i,r){var s=Se({},r),u=o[i],f=r.$action||"merge";"merge"===f?u?(Be(u,s,!0),kf(u,s,{ignoreSize:!0}),MI(r,u)):o[i]=s:"replace"===f?o[i]=s:"remove"===f&&u&&(o[i]=null)}(d,b,w),function(o,i){if(o&&(o.hv=i.hv=[bY(i,["left","right"]),bY(i,["top","bottom"])],"group"===o.type)){var r=o,s=i;null==r.width&&(r.width=s.width=0),null==r.height&&(r.height=s.height=0)}}(d[b],w))},this);for(var m=d.length-1;m>=0;m--)null==d[m]?d.splice(m,1):delete d[m].$action},i.prototype._flatten=function(r,s,u){q(r,function(f){if(f){u&&(f.parentOption=u),s.push(f);var d=f.children;"group"===f.type&&d&&this._flatten(d,s,f),delete f.children}},this)},i.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},i.type="graphic",i.defaultOption={elements:[]},i}(qt),i$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this._elMap=et()},i.prototype.render=function(r,s,u){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,u)},i.prototype._updateElements=function(r){var s=r.useElOptionsToUpdate();if(s){var u=this._elMap,f=this.group;q(s,function(d){var p=wi(d.id,null),v=null!=p?u.get(p):null,g=wi(d.parentId,null),m=null!=g?u.get(g):f,y=d.type,b=d.style;"text"===y&&b&&d.hv&&d.hv[1]&&(b.textVerticalAlign=b.textBaseline=b.verticalAlign=b.align=null);var w=d.textContent,S=d.textConfig;if(b&&Q3(b,y,!!S,!!w)){var M=$3(b,y,!0);!S&&M.textConfig&&(S=d.textConfig=M.textConfig),!w&&M.textContent&&(w=M.textContent)}var x=function(o){return o=Se({},o),q(["id","parentId","$action","hv","bounding","textContent"].concat(kI),function(i){delete o[i]}),o}(d),T=d.$action||"merge";"merge"===T?v?v.attr(x):yY(p,m,x,u):"replace"===T?(cE(v,u),yY(p,m,x,u)):"remove"===T&&cE(v,u);var P=u.get(p);if(P&&w)if("merge"===T){var O=P.getTextContent();O?O.attr(w):P.setTextContent(new fn(w))}else"replace"===T&&P.setTextContent(new fn(w));if(P){var R=eb(P);R.__ecGraphicWidthOption=d.width,R.__ecGraphicHeightOption=d.height,function(o,i,r){var s=ht(o).eventData;!o.silent&&!o.ignore&&!s&&(s=ht(o).eventData={componentType:"graphic",componentIndex:i.componentIndex,name:o.name}),s&&(s.info=r.info)}(P,r,d),Av({el:P,componentModel:r,itemName:P.name,itemTooltipOption:d.tooltip})}})}},i.prototype._relocate=function(r,s){for(var u=r.option.elements,f=this.group,d=this._elMap,p=s.getWidth(),v=s.getHeight(),g=0;g=0;g--){var m,y,b,w;if(b=null!=(y=wi((m=u[g]).id,null))?d.get(y):null)x=eb(w=b.parent),tC(b,m,w===f?{width:p,height:v}:{width:x.__ecGraphicWidth,height:x.__ecGraphicHeight},null,{hv:m.hv,boundingMode:m.bounding})}},i.prototype._clear=function(){var r=this._elMap;r.each(function(s){cE(s,r)}),this._elMap=et()},i.prototype.dispose=function(){this._clear()},i.type="graphic",i}(un);function yY(o,i,r,s){var u=r.type,d=new(Ae(_Y,u)?_Y[u]:Hx(u))(r);i.add(d),s.set(o,d),eb(d).__ecGraphicId=o}function cE(o,i){var r=o&&o.parent;r&&("group"===o.type&&o.traverse(function(s){cE(s,i)}),i.removeKey(eb(o).__ecGraphicId),r.remove(o))}function bY(o,i){var r;return q(i,function(s){null!=o[s]&&"auto"!==o[s]&&(r=!0)}),r}var SV=["x","y","radius","angle","single"],kV=["cartesian2d","polar","singleAxis"];function Tc(o){return o+"Axis"}function MV(o){var i=o.ecModel,r={infoList:[],infoMap:et()};return o.eachTargetAxis(function(s,u){var f=i.getComponent(Tc(s),u);if(f){var d=f.getCoordSysModel();if(d){var p=d.uid,v=r.infoMap.get(p);v||(r.infoList.push(v={model:d,axisModels:[]}),r.infoMap.set(p,v)),v.axisModels.push(f)}}}),r}var xV=function(){function o(){this.indexList=[],this.indexMap=[]}return o.prototype.add=function(i){this.indexMap[i]||(this.indexList.push(i),this.indexMap[i]=!0)},o}();function kY(o){var i={};return q(["start","end","startValue","endValue","throttle"],function(r){o.hasOwnProperty(r)&&(i[r]=o[r])}),i}var eS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return he(i,o),i.prototype.init=function(r,s,u){var f=kY(r);this.settledOption=f,this.mergeDefaultAndTheme(r,u),this._doInit(f)},i.prototype.mergeOption=function(r){var s=kY(r);Be(this.option,r,!0),Be(this.settledOption,s,!0),this._doInit(s)},i.prototype._doInit=function(r){var s=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f,d){"value"===this._rangePropMode[d]&&(s[f[0]]=u[f[0]]=null)},this),this._resetTarget()},i.prototype._resetTarget=function(){var r=this.get("orient",!0),s=this._targetAxisInfoMap=et();this._fillSpecifiedTargetAxis(s)?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(f){f.indexList.length&&(this._noTarget=!1)},this)},i.prototype._fillSpecifiedTargetAxis=function(r){var s=!1;return q(SV,function(u){var f=this.getReferringComponents(Tc(u),ZH);if(f.specified){s=!0;var d=new xV;q(f.models,function(p){d.add(p.componentIndex)}),r.set(u,d)}},this),s},i.prototype._fillAutoTargetAxisByOrient=function(r,s){var u=this.ecModel,f=!0;if(f){var d="vertical"===s?"y":"x";v(u.findComponents({mainType:d+"Axis"}),d)}function v(g,m){var y=g[0];if(y){var b=new xV;if(b.add(y.componentIndex),r.set(m,b),f=!1,"x"===m||"y"===m){var w=y.getReferringComponents("grid",ai).models[0];w&&q(g,function(S){y.componentIndex!==S.componentIndex&&w===S.getReferringComponents("grid",ai).models[0]&&b.add(S.componentIndex)})}}}f&&v(u.findComponents({mainType:"singleAxis",filter:function(y){return y.get("orient",!0)===s}}),"single"),f&&q(SV,function(g){if(f){var m=u.findComponents({mainType:Tc(g),filter:function(w){return"category"===w.get("type",!0)}});if(m[0]){var y=new xV;y.add(m[0].componentIndex),r.set(g,y),f=!1}}},this)},i.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(s){!r&&(r=s)},this),"y"===r?"vertical":"horizontal"},i.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},i.prototype._updateRangeUse=function(r){var s=this._rangePropMode,u=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(f,d){var p=null!=r[f[0]],v=null!=r[f[1]];p&&!v?s[d]="percent":!p&&v?s[d]="value":u?s[d]=u[d]:p&&(s[d]="percent")})},i.prototype.noTarget=function(){return this._noTarget},i.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(s,u){null==r&&(r=this.ecModel.getComponent(Tc(s),u))},this),r},i.prototype.eachTargetAxis=function(r,s){this._targetAxisInfoMap.each(function(u,f){q(u.indexList,function(d){r.call(s,f,d)})})},i.prototype.getAxisProxy=function(r,s){var u=this.getAxisModel(r,s);if(u)return u.__dzAxisProxy},i.prototype.getAxisModel=function(r,s){var u=this._targetAxisInfoMap.get(r);if(u&&u.indexMap[s])return this.ecModel.getComponent(Tc(r),s)},i.prototype.setRawRange=function(r){var s=this.option,u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f){(null!=r[f[0]]||null!=r[f[1]])&&(s[f[0]]=u[f[0]]=r[f[0]],s[f[1]]=u[f[1]]=r[f[1]])},this),this._updateRangeUse(r)},i.prototype.setCalculatedRange=function(r){var s=this.option;q(["start","startValue","end","endValue"],function(u){s[u]=r[u]})},i.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},i.prototype.getValueRange=function(r,s){if(null!=r||null!=s)return this.getAxisProxy(r,s).getDataValueWindow();var u=this.findRepresentativeAxisProxy();return u?u.getDataValueWindow():void 0},i.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var s,u=this._targetAxisInfoMap.keys(),f=0;f=0}(r)){var s=Tc(this._dimName),u=r.getReferringComponents(s,ai).models[0];u&&this._axisIndex===u.componentIndex&&i.push(r)}},this),i},o.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},o.prototype.getMinMaxSpan=function(){return rt(this._minMaxSpan)},o.prototype.calculateDataWindow=function(i){var g,r=this._dataExtent,u=this.getAxisModel().axis.scale,f=this._dataZoomModel.getRangePropMode(),d=[0,100],p=[],v=[];Ag(["start","end"],function(b,w){var S=i[b],M=i[b+"Value"];"percent"===f[w]?(null==S&&(S=d[w]),M=u.parse(bn(S,d,r))):(g=!0,S=bn(M=null==M?r[w]:u.parse(M),r,d)),v[w]=M,p[w]=S}),dE(v),dE(p);var m=this._minMaxSpan;function y(b,w,S,M,x){var T=x?"Span":"ValueSpan";kl(0,b,S,"all",m["min"+T],m["max"+T]);for(var P=0;P<2;P++)w[P]=bn(b[P],S,M,!0),x&&(w[P]=u.parse(w[P]))}return g?y(v,p,r,d,!1):y(p,v,d,r,!0),{valueWindow:v,percentWindow:p}},o.prototype.reset=function(i){if(i===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=function(o,i,r){var s=[1/0,-1/0];Ag(r,function(d){!function(o,i,r){i&&q(H_(i,r),function(s){var u=i.getApproximateExtent(s);u[0]o[1]&&(o[1]=u[1])})}(s,d.getData(),i)});var u=o.getAxisModel(),f=dL(u.axis.scale,u,s).calculate();return[f.min,f.max]}(this,this._dimName,r),this._updateMinMaxSpan();var s=this.calculateDataWindow(i.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},o.prototype.filterData=function(i,r){if(i===this._dataZoomModel){var s=this._dimName,u=this.getTargetSeriesModels(),f=i.get("filterMode"),d=this._valueWindow;"none"!==f&&Ag(u,function(v){var g=v.getData(),m=g.mapDimensionsAll(s);if(m.length){if("weakFilter"===f){var y=g.getStore(),b=Te(m,function(w){return g.getDimensionIndex(w)},g);g.filterSelf(function(w){for(var S,M,x,T=0;Td[1];if(O&&!R&&!V)return!0;O&&(x=!0),R&&(S=!0),V&&(M=!0)}return x&&S&&M})}else Ag(m,function(w){if("empty"===f)v.setData(g=g.map(w,function(M){return function(v){return v>=d[0]&&v<=d[1]}(M)?M:NaN}));else{var S={};S[w]=d,g.selectRange(S)}});Ag(m,function(w){g.setApproximateExtent(d,w)})}})}},o.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},r=this._dataZoomModel,s=this._dataExtent;Ag(["min","max"],function(u){var f=r.get(u+"Span"),d=r.get(u+"ValueSpan");null!=d&&(d=this.getAxisModel().axis.scale.parse(d)),null!=d?f=bn(s[0]+d,s,[0,100],!0):null!=f&&(d=bn(f,[0,100],s,!0)-s[0]),i[u+"Span"]=f,i[u+"ValueSpan"]=d},this)},o.prototype._setAxisModel=function(){var i=this.getAxisModel(),r=this._percentWindow,s=this._valueWindow;if(r){var u=o0(s,[0,500]);u=Math.min(u,20);var f=i.axis.scale.rawExtentInfo;0!==r[0]&&f.setDeterminedMinMax("min",+s[0].toFixed(u)),100!==r[1]&&f.setDeterminedMinMax("max",+s[1].toFixed(u)),f.freeze()}},o}(),EV={getTargetSeries:function(i){function r(f){i.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(p,v){var g=i.getComponent(Tc(p),v);f(p,v,g,d)})})}r(function(f,d,p,v){p.__dzAxisProxy=null});var s=[];r(function(f,d,p,v){p.__dzAxisProxy||(p.__dzAxisProxy=new cp(f,d,v,i),s.push(p.__dzAxisProxy))});var u=et();return q(s,function(f){q(f.getTargetSeriesModels(),function(d){u.set(d.uid,d)})}),u},overallReset:function(i,r){i.eachComponent("dataZoom",function(s){s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).reset(s)}),s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).filterData(s,r)})}),i.eachComponent("dataZoom",function(s){var u=s.findRepresentativeAxisProxy();if(u){var f=u.getDataPercentWindow(),d=u.getDataValueWindow();s.setCalculatedRange({start:f[0],end:f[1],startValue:d[0],endValue:d[1]})}})}},pE=!1;function vE(o){pE||(pE=!0,o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,EV),function(o){o.registerAction("dataZoom",function(i,r){q(function(o,i){var f,r=et(),s=[],u=et();o.eachComponent({mainType:"dataZoom",query:i},function(m){u.get(m.uid)||p(m)});do{f=!1,o.eachComponent("dataZoom",d)}while(f);function d(m){!u.get(m.uid)&&function(m){var y=!1;return m.eachTargetAxis(function(b,w){var S=r.get(b);S&&S[w]&&(y=!0)}),y}(m)&&(p(m),f=!0)}function p(m){u.set(m.uid,!0),s.push(m),function(m){m.eachTargetAxis(function(y,b){(r.get(y)||r.set(y,[]))[b]=!0})}(m)}return s}(r,i),function(u){u.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})}(o),o.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function AY(o){o.registerComponentModel(MY),o.registerComponentView(tb),vE(o)}var Is=function(){},Ai={};function Eg(o,i){Ai[o]=i}function gE(o){return Ai[o]}var PV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){o.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;q(this.option.feature,function(s,u){var f=gE(u);f&&(f.getDefaultOption&&(f.defaultOption=f.getDefaultOption(r)),Be(s,f.defaultOption))})},i.type="toolbox",i.layoutMode={type:"box",ignoreSize:!0},i.defaultOption={show:!0,z:6,zlevel:0,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"}},i}(qt);function OV(o,i){var r=lh(i.get("padding")),s=i.getItemStyle(["color","opacity"]);return s.fill=i.get("backgroundColor"),new sn({shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[1]+r[3],height:o.height+r[0]+r[2],r:i.get("borderRadius")},style:s,silent:!0,z2:-1})}var mE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this.group;if(d.removeAll(),r.get("show")){var p=+r.get("itemSize"),v=r.get("feature")||{},g=this._features||(this._features={}),m=[];q(v,function(w,S){m.push(S)}),new Hf(this._featureNames||[],m).add(y).update(y).remove(St(y,null)).execute(),this._featureNames=m,function(o,i,r){var s=i.getBoxLayoutParams(),u=i.get("padding"),f={width:r.getWidth(),height:r.getHeight()},d=li(s,f,u);Sf(i.get("orient"),o,i.get("itemGap"),d.width,d.height),tC(o,s,f,u)}(d,r,u),d.add(OV(d.getBoundingRect(),r)),d.eachChild(function(w){var S=w.__title,M=w.ensureState("emphasis"),x=M.textConfig||(M.textConfig={}),T=w.getTextContent(),P=T&&T.states.emphasis;if(P&&!An(P)&&S){var O=P.style||(P.style={}),R=um(S,fn.makeFont(O)),V=w.x+d.x,z=!1;w.y+d.y+p+R.height>u.getHeight()&&(x.position="top",z=!0);var j=z?-5-R.height:p+8;V+R.width/2>u.getWidth()?(x.position=["100%",j],O.align="right"):V-R.width/2<0&&(x.position=[0,j],O.align="left")}})}function y(w,S){var O,M=m[w],x=m[S],T=v[M],P=new Fn(T,r,r.ecModel);if(f&&null!=f.newTitle&&f.featureName===M&&(T.title=f.newTitle),M&&!x){if(function(o){return 0===o.indexOf("my")}(M))O={onclick:P.option.onclick,featureName:M};else{var R=gE(M);if(!R)return;O=new R}g[M]=O}else if(!(O=g[x]))return;O.uid=Bm("toolbox-feature"),O.model=P,O.ecModel=s,O.api=u;var V=O instanceof Is;M||!x?!P.get("show")||V&&O.unusable?V&&O.remove&&O.remove(s,u):(function(w,S,M){var R,V,x=w.getModel("iconStyle"),T=w.getModel(["emphasis","iconStyle"]),P=S instanceof Is&&S.getIcons?S.getIcons():w.get("icon"),O=w.get("title")||{};"string"==typeof P?(R={})[M]=P:R=P,"string"==typeof O?(V={})[M]=O:V=O;var B=w.iconPaths={};q(R,function(z,j){var X=cl(z,{},{x:-p/2,y:-p/2,width:p,height:p});X.setStyle(x.getItemStyle()),X.ensureState("emphasis").style=T.getItemStyle();var Q=new fn({style:{text:V[j],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null},ignore:!0});X.setTextContent(Q),Av({el:X,componentModel:r,itemName:j,formatterParamsExtra:{title:V[j]}}),X.__title=V[j],X.on("mouseover",function(){var te=T.getItemStyle(),ee="vertical"===r.get("orient")?null==r.get("right")?"right":"left":null==r.get("bottom")?"bottom":"top";Q.setStyle({fill:T.get("textFill")||te.fill||te.stroke||"#000",backgroundColor:T.get("textBackgroundColor")}),X.setTextConfig({position:T.get("textPosition")||ee}),Q.ignore=!r.get("showTitle"),Js(this)}).on("mouseout",function(){"emphasis"!==w.get(["iconStatus",j])&&eu(this),Q.hide()}),("emphasis"===w.get(["iconStatus",j])?Js:eu)(X),d.add(X),X.on("click",Ye(S.onclick,S,s,u,j)),B[j]=X})}(P,O,M),P.setIconStatus=function(B,z){var j=this.option,X=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[B]=z,X[B]&&("emphasis"===z?Js:eu)(X[B])},O instanceof Is&&O.render&&O.render(P,s,u,f)):V&&O.dispose&&O.dispose(s,u)}},i.prototype.updateView=function(r,s,u,f){q(this._features,function(d){d instanceof Is&&d.updateView&&d.updateView(d.model,s,u,f)})},i.prototype.remove=function(r,s){q(this._features,function(u){u instanceof Is&&u.remove&&u.remove(r,s)}),this.group.removeAll()},i.prototype.dispose=function(r,s){q(this._features,function(u){u instanceof Is&&u.dispose&&u.dispose(r,s)})},i.type="toolbox",i}(un),IV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.onclick=function(r,s){var u=this.model,f=u.get("name")||r.get("title.0.text")||"echarts",d="svg"===s.getZr().painter.getType(),p=d?"svg":u.get("type",!0)||"png",v=s.getConnectedDataURL({type:p,backgroundColor:u.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")});if("function"!=typeof MouseEvent||!Ze.browser.newEdge&&(Ze.browser.ie||Ze.browser.edge))if(window.navigator.msSaveOrOpenBlob||d){var y=v.split(","),b=y[0].indexOf("base64")>-1,w=d?decodeURIComponent(y[1]):y[1];b&&(w=window.atob(w));var S=f+"."+p;if(window.navigator.msSaveOrOpenBlob){for(var M=w.length,x=new Uint8Array(M);M--;)x[M]=w.charCodeAt(M);var T=new Blob([x]);window.navigator.msSaveOrOpenBlob(T,S)}else{var P=document.createElement("iframe");document.body.appendChild(P);var O=P.contentWindow,R=O.document;R.open("image/svg+xml","replace"),R.write(w),R.close(),O.focus(),R.execCommand("SaveAs",!0,S),document.body.removeChild(P)}}else{var V=u.get("lang"),B='',z=window.open();z.document.write(B),z.document.title=f}else{var g=document.createElement("a");g.download=f+"."+p,g.target="_blank",g.href=v;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},i.getDefaultOption=function(r){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},i}(Is);IV.prototype.unusable=!Ze.canvasSupported;var OY=IV,RV="__ec_magicType_stack__",RY=[["line","bar"],["stack"]],_E=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getIcons=function(){var r=this.model,s=r.get("icon"),u={};return q(r.get("type"),function(f){s[f]&&(u[f]=s[f])}),u},i.getDefaultOption=function(r){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},i.prototype.onclick=function(r,s,u){var f=this.model,d=f.get(["seriesIndex",u]);if(yE[u]){var p={series:[]};q(RY,function(y){Rt(y,u)>=0&&q(y,function(b){f.setIconStatus(b,"normal")})}),f.setIconStatus(u,"emphasis"),r.eachComponent({mainType:"series",query:null==d?null:{seriesIndex:d}},function(b){var M=yE[u](b.subType,b.id,b,f);M&&(tt(M,b.option),p.series.push(M));var x=b.coordinateSystem;if(x&&"cartesian2d"===x.type&&("line"===u||"bar"===u)){var T=x.getAxesByScale("ordinal")[0];if(T){var O=T.dim+"Axis",V=b.getReferringComponents(O,ai).models[0].componentIndex;p[O]=p[O]||[];for(var B=0;B<=V;B++)p[O][V]=p[O][V]||{};p[O][V].boundaryGap="bar"===u}}});var g,m=u;"stack"===u&&(g=Be({stack:f.option.title.tiled,tiled:f.option.title.stack},f.option.title),"emphasis"!==f.get(["iconStatus",u])&&(m="tiled")),s.dispatchAction({type:"changeMagicType",currentType:m,newOption:p,newTitle:g,featureName:"magicType"})}},i}(Is),yE={line:function(i,r,s,u){if("bar"===i)return Be({id:r,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","line"])||{},!0)},bar:function(i,r,s,u){if("line"===i)return Be({id:r,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","bar"])||{},!0)},stack:function(i,r,s,u){var f=s.get("stack")===RV;if("line"===i||"bar"===i)return u.setIconStatus("stack",f?"normal":"emphasis"),Be({id:r,stack:f?"":RV},u.get(["option","stack"])||{},!0)}};pl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,i){i.mergeOption(o.newOption)});var nb=_E,ld=new Array(60).join("-");function FY(o){var i=[];return q(o,function(r,s){var u=r.categoryAxis,d=r.valueAxis.dim,p=[" "].concat(Te(r.series,function(w){return w.name})),v=[u.model.getCategories()];q(r.series,function(w){var S=w.getRawData();v.push(w.getRawData().mapArray(S.mapDimension(d),function(M){return M}))});for(var g=[p.join("\t")],m=0;m=0)return!0}(u)){var d=function(o){for(var i=o.split(/\n+/g),s=[],u=Te(rb(i.shift()).split(bE),function(v){return{name:v,data:[]}}),f=0;f=0)&&d(f,u._targetInfoList)})}return o.prototype.setOutputRanges=function(i,r){return this.matchOutputRanges(i,r,function(s,u,f){if((s.coordRanges||(s.coordRanges=[])).push(u),!s.coordRange){s.coordRange=u;var d=ME[s.brushType](0,f,u);s.__rangeOffset={offset:UV[s.brushType](d.values,s.range,[1,1]),xyMinMax:d.xyMinMax}}}),i},o.prototype.matchOutputRanges=function(i,r,s){q(i,function(u){var f=this.findTargetInfo(u,r);f&&!0!==f&&q(f.coordSyses,function(d){var p=ME[u.brushType](1,d,u.range,!0);s(u,p.values,d,r)})},this)},o.prototype.setInputRanges=function(i,r){q(i,function(s){var u=this.findTargetInfo(s,r);if(s.range=s.range||[],u&&!0!==u){s.panelId=u.panelId;var f=ME[s.brushType](0,u.coordSys,s.coordRange),d=s.__rangeOffset;s.range=d?UV[s.brushType](f.values,d.offset,function(o,i){var r=WY(o),s=WY(i),u=[r[0]/s[0],r[1]/s[1]];return isNaN(u[0])&&(u[0]=1),isNaN(u[1])&&(u[1]=1),u}(f.xyMinMax,d.xyMinMax)):f.values}},this)},o.prototype.makePanelOpts=function(i,r){return Te(this._targetInfoList,function(s){var u=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:r?r(s):null,clipPath:ku(u),isTargetByCursor:yA(u,i,s.coordSysModel),getLinearBrushOtherExtent:mg(u)}})},o.prototype.controlSeries=function(i,r,s){var u=this.findTargetInfo(i,s);return!0===u||u&&Rt(u.coordSyses,r.coordinateSystem)>=0},o.prototype.findTargetInfo=function(i,r){for(var s=this._targetInfoList,u=kE(r,i),f=0;fo[1]&&o.reverse(),o}function kE(o,i){return is(o,i,{includeMainTypes:zY})}var GY={grid:function(i,r){var s=i.xAxisModels,u=i.yAxisModels,f=i.gridModels,d=et(),p={},v={};!s&&!u&&!f||(q(s,function(g){var m=g.axis.grid.model;d.set(m.id,m),p[m.id]=!0}),q(u,function(g){var m=g.axis.grid.model;d.set(m.id,m),v[m.id]=!0}),q(f,function(g){d.set(g.id,g),p[g.id]=!0,v[g.id]=!0}),d.each(function(g){var y=[];q(g.coordinateSystem.getCartesians(),function(b,w){(Rt(s,b.getAxis("x").model)>=0||Rt(u,b.getAxis("y").model)>=0)&&y.push(b)}),r.push({panelId:"grid--"+g.id,gridModel:g,coordSysModel:g,coordSys:y[0],coordSyses:y,getPanelRect:zV.grid,xAxisDeclared:p[g.id],yAxisDeclared:v[g.id]})}))},geo:function(i,r){q(i.geoModels,function(s){var u=s.coordinateSystem;r.push({panelId:"geo--"+s.id,geoModel:s,coordSysModel:s,coordSys:u,coordSyses:[u],getPanelRect:zV.geo})})}},HV=[function(o,i){var r=o.xAxisModel,s=o.yAxisModel,u=o.gridModel;return!u&&r&&(u=r.axis.grid.model),!u&&s&&(u=s.axis.grid.model),u&&u===i.gridModel},function(o,i){var r=o.geoModel;return r&&r===i.geoModel}],zV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var i=this.coordSys,r=i.getBoundingRect().clone();return r.applyTransform(Lf(i)),r}},ME={lineX:St(xE,0),lineY:St(xE,1),rect:function(i,r,s,u){var f=i?r.pointToData([s[0][0],s[1][0]],u):r.dataToPoint([s[0][0],s[1][0]],u),d=i?r.pointToData([s[0][1],s[1][1]],u):r.dataToPoint([s[0][1],s[1][1]],u),p=[rS([f[0],d[0]]),rS([f[1],d[1]])];return{values:p,xyMinMax:p}},polygon:function(i,r,s,u){var f=[[1/0,-1/0],[1/0,-1/0]];return{values:Te(s,function(p){var v=i?r.pointToData(p,u):r.dataToPoint(p,u);return f[0][0]=Math.min(f[0][0],v[0]),f[1][0]=Math.min(f[1][0],v[1]),f[0][1]=Math.max(f[0][1],v[0]),f[1][1]=Math.max(f[1][1],v[1]),v}),xyMinMax:f}}};function xE(o,i,r,s){var u=r.getAxis(["x","y"][o]),f=rS(Te([0,1],function(p){return i?u.coordToData(u.toLocalCoord(s[p]),!0):u.toGlobalCoord(u.dataToCoord(s[p]))})),d=[];return d[o]=f,d[1-o]=[NaN,NaN],{values:f,xyMinMax:d}}var UV={lineX:St(jY,0),lineY:St(jY,1),rect:function(i,r,s){return[[i[0][0]-s[0]*r[0][0],i[0][1]-s[0]*r[0][1]],[i[1][0]-s[1]*r[1][0],i[1][1]-s[1]*r[1][1]]]},polygon:function(i,r,s){return Te(i,function(u,f){return[u[0]-s[0]*r[f][0],u[1]-s[1]*r[f][1]]})}};function jY(o,i,r,s){return[i[0]-s[o]*r[0],i[1]-s[o]*r[1]]}function WY(o){return o?[o[0][1]-o[0][0],o[1][1]-o[1][0]]:[NaN,NaN]}var TE=UY,DE=q,h$=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){this._brushController||(this._brushController=new Vy(u.getZr()),this._brushController.on("brush",Ye(this._onBrush,this)).mount()),function(o,i,r,s,u){var f=r._isZoomActive;s&&"takeGlobalCursor"===s.type&&(f="dataZoomSelect"===s.key&&s.dataZoomSelectActive),r._isZoomActive=f,o.setIconStatus("zoom",f?"emphasis":"normal");var p=new TE(ab(o),i,{include:["grid"]}).makePanelOpts(u,function(v){return v.xAxisDeclared&&!v.yAxisDeclared?"lineX":!v.xAxisDeclared&&v.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(p).enableBrush(!(!f||!p.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()})}(r,s,this,f,u),function(o,i){o.setIconStatus("back",function(o){return SE(o).length}(i)>1?"emphasis":"normal")}(r,s)},i.prototype.onclick=function(r,s,u){p$[u].call(this)},i.prototype.remove=function(r,s){this._brushController&&this._brushController.unmount()},i.prototype.dispose=function(r,s){this._brushController&&this._brushController.dispose()},i.prototype._onBrush=function(r){var s=r.areas;if(r.isEnd&&s.length){var u={},f=this.ecModel;this._brushController.updateCovers([]),new TE(ab(this.model),f,{include:["grid"]}).matchOutputRanges(s,f,function(g,m,y){if("cartesian2d"===y.type){var b=g.brushType;"rect"===b?(p("x",y,m[0]),p("y",y,m[1])):p({lineX:"x",lineY:"y"}[b],y,m)}}),function(o,i){var r=SE(o);wE(i,function(s,u){for(var f=r.length-1;f>=0&&!r[f][u];f--);if(f<0){var p=o.queryComponents({mainType:"dataZoom",subType:"select",id:u})[0];if(p){var v=p.getPercentRange();r[0][u]={dataZoomId:u,start:v[0],end:v[1]}}}}),r.push(i)}(f,u),this._dispatchZoomAction(u)}function p(g,m,y){var b=m.getAxis(g),w=b.model,S=function(g,m,y){var b;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(w){w.getAxisModel(g,m.componentIndex)&&(b=w)}),b}(g,w,f),M=S.findRepresentativeAxisProxy(w).getMinMaxSpan();(null!=M.minValueSpan||null!=M.maxValueSpan)&&(y=kl(0,y.slice(),b.scale.getExtent(),0,M.minValueSpan,M.maxValueSpan)),S&&(u[S.id]={dataZoomId:S.id,startValue:y[0],endValue:y[1]})}},i.prototype._dispatchZoomAction=function(r){var s=[];DE(r,function(u,f){s.push(rt(u))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},i.getDefaultOption=function(r){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},i}(Is),p$={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(o){var i=SE(o),r=i[i.length-1];i.length>1&&i.pop();var s={};return wE(r,function(u,f){for(var d=i.length-1;d>=0;d--)if(u=i[d][f]){s[f]=u;break}}),s}(this.ecModel))}};function ab(o){var i={xAxisIndex:o.get("xAxisIndex",!0),yAxisIndex:o.get("yAxisIndex",!0),xAxisId:o.get("xAxisId",!0),yAxisId:o.get("yAxisId",!0)};return null==i.xAxisIndex&&null==i.xAxisId&&(i.xAxisIndex="all"),null==i.yAxisIndex&&null==i.yAxisId&&(i.yAxisIndex="all"),i}!function(o,i){Oa(null==iC.get(o)&&i),iC.set(o,i)}("dataZoom",function(o){var i=o.getComponent("toolbox",0),r=["feature","dataZoom"];if(i&&null!=i.get(r)){var s=i.getModel(r),u=[],d=is(o,ab(s));return DE(d.xAxisModels,function(v){return p(v,"xAxis","xAxisIndex")}),DE(d.yAxisModels,function(v){return p(v,"yAxis","yAxisIndex")}),u}function p(v,g,m){var y=v.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+g+y};b[m]=y,u.push(b)}});var qY=h$,WV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="tooltip",i.dependencies=["axisPointer"],i.defaultOption={zlevel:0,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}},i}(qt);function EE(o){var i=o.get("confine");return null!=i?!!i:"richText"===o.get("renderMode")}function YV(o){if(Ze.domSupported)for(var i=document.documentElement.style,r=0,s=o.length;r-1?(p+="top:50%",v+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(p+="left:50%",v+="translateX(-50%) rotate("+(g="top"===f?225:45)+"deg)");var m=g*Math.PI/180,y=d+u,b=y*Math.abs(Math.cos(m))+y*Math.abs(Math.sin(m)),S=i+" solid "+u+"px;";return'
'}(s,u,f)),yt(i))d.innerHTML=i+p;else if(i){d.innerHTML="",we(i)||(i=[i]);for(var v=0;v=0;f--){var d=o[f];d&&(d instanceof Fn&&(d=d.get("tooltip",!0)),yt(d)&&(d={formatter:d}),d&&(u=new Fn(d,u,s)))}return u}function BE(o,i){return o.dispatchAction||Ye(i.dispatchAction,i)}function HE(o){return"center"===o||"middle"===o}var eB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){if(!Ze.node){var u=r.getComponent("tooltip"),f=u.get("renderMode");this._renderMode=function(o){return"auto"===o?Ze.domSupported?"html":"richText":o||"html"}(f),this._tooltipContent="richText"===this._renderMode?new gt(s):new Dc(s.getDom(),s,{appendToBody:u.get("appendToBody",!0)})}},i.prototype.render=function(r,s,u){if(!Ze.node){this.group.removeAll(),this._tooltipModel=r,this._ecModel=s,this._api=u,this._alwaysShowContent=r.get("alwaysShowContent");var f=this._tooltipContent;f.update(r),f.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow()}},i.prototype._initGlobalListener=function(){var s=this._tooltipModel.get("triggerOn");eY("itemTooltip",this._api,Bn(function(u,f,d){"none"!==s&&(s.indexOf(u)>=0?this._tryShow(f,d):"leave"===u&&this._hide(d))},this))},i.prototype._keepShow=function(){var r=this._tooltipModel,s=this._ecModel,u=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==r.get("triggerOn")){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!u.isDisposed()&&f.manuallyShowTip(r,s,u,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(r,s,u,f){if(f.from!==this.uid&&!Ze.node){var d=BE(f,u);this._ticket="";var p=f.dataByCoordSys,v=function(o,i,r){var s=f0(o).queryOptionMap,u=s.keys()[0];if(u&&"series"!==u){var v,d=d0(i,u,s.get(u),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(d&&(r.getViewOfComponentModel(d).group.traverse(function(g){var m=ht(g).tooltipConfig;if(m&&m.name===o.name)return v=g,!0}),v))return{componentMainType:u,componentIndex:d.componentIndex,el:v}}}(f,s,u);if(v){var g=v.el.getBoundingRect().clone();g.applyTransform(v.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:v.el,position:f.position,positionDefault:"bottom"},d)}else if(f.tooltip&&null!=f.x&&null!=f.y){var m=v$;m.x=f.x,m.y=f.y,m.update(),ht(m).tooltipConfig={name:null,option:f.tooltip},this._tryShow({offsetX:f.x,offsetY:f.y,target:m},d)}else if(p)this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,dataByCoordSys:p,tooltipOption:f.tooltipOption},d);else if(null!=f.seriesIndex){if(this._manuallyAxisShowTip(r,s,u,f))return;var y=rY(f,s),b=y.point[0],w=y.point[1];null!=b&&null!=w&&this._tryShow({offsetX:b,offsetY:w,target:y.el,position:f.position,positionDefault:"bottom"},d)}else null!=f.x&&null!=f.y&&(u.dispatchAction({type:"updateAxisPointer",x:f.x,y:f.y}),this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,target:u.getZr().findHover(f.x,f.y).target},d))}},i.prototype.manuallyHideTip=function(r,s,u,f){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,f.from!==this.uid&&this._hide(BE(f,u))},i.prototype._manuallyAxisShowTip=function(r,s,u,f){var d=f.seriesIndex,p=f.dataIndex,v=s.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=p&&null!=v){var g=s.getSeriesByIndex(d);if(g&&"axis"===VE([g.getData().getItemModel(p),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return u.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:p,position:f.position}),!0}},i.prototype._tryShow=function(r,s){var u=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var d=r.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,r);else if(u){var p,v;this._lastDataByCoordSys=null,xh(u,function(g){return null!=ht(g).dataIndex?(p=g,!0):null!=ht(g).tooltipConfig?(v=g,!0):void 0},!0),p?this._showSeriesItemTooltip(r,p,s):v?this._showComponentItemTooltip(r,v,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},i.prototype._showOrMove=function(r,s){var u=r.get("showDelay");s=Ye(s,this),clearTimeout(this._showTimout),u>0?this._showTimout=setTimeout(s,u):s()},i.prototype._showAxisTooltip=function(r,s){var u=this._ecModel,d=[s.offsetX,s.offsetY],p=VE([s.tooltipOption],this._tooltipModel),v=this._renderMode,g=[],m=pi("section",{blocks:[],noHeader:!0}),y=[],b=new r_;Dl(r,function(P){Dl(P.dataByAxis,function(O){var R=u.getComponent(O.axisDim+"Axis",O.axisIndex),V=O.value;if(R&&null!=V){var B=Ps(V,R.axis,u,O.seriesDataIndices,O.valueLabelOpt),z=pi("section",{header:B,noHeader:!jc(B),sortBlocks:!0,blocks:[]});m.blocks.push(z),q(O.seriesDataIndices,function(j){var X=u.getSeriesByIndex(j.seriesIndex),Z=j.dataIndexInside,Q=X.getDataParams(Z);if(!(Q.dataIndex<0)){Q.axisDim=O.axisDim,Q.axisIndex=O.axisIndex,Q.axisType=O.axisType,Q.axisId=O.axisId,Q.axisValue=NT(R.axis,{value:V}),Q.axisValueLabel=B,Q.marker=b.makeTooltipMarker("item",wf(Q.color),v);var te=yh(X.formatTooltip(Z,!0,null));te.markupFragment&&z.blocks.push(te.markupFragment),te.markupText&&y.push(te.markupText),g.push(Q)}})}})}),m.blocks.reverse(),y.reverse();var w=s.position,S=p.get("order"),M=cR(m,b,v,S,u.get("useUTC"),p.get("textStyle"));M&&y.unshift(M);var T=y.join("richText"===v?"\n\n":"
");this._showOrMove(p,function(){this._updateContentNotChangedOnAxis(r,g)?this._updatePosition(p,w,d[0],d[1],this._tooltipContent,g):this._showTooltipContent(p,T,g,Math.random()+"",d[0],d[1],w,null,b)})},i.prototype._showSeriesItemTooltip=function(r,s,u){var f=this._ecModel,d=ht(s),p=d.seriesIndex,v=f.getSeriesByIndex(p),g=d.dataModel||v,m=d.dataIndex,y=d.dataType,b=g.getData(y),w=this._renderMode,S=r.positionDefault,M=VE([b.getItemModel(m),g,v&&(v.coordinateSystem||{}).model],this._tooltipModel,S?{position:S}:null),x=M.get("trigger");if(null==x||"item"===x){var T=g.getDataParams(m,y),P=new r_;T.marker=P.makeTooltipMarker("item",wf(T.color),w);var O=yh(g.formatTooltip(m,!1,y)),R=M.get("order"),V=O.markupFragment?cR(O.markupFragment,P,w,R,f.get("useUTC"),M.get("textStyle")):O.markupText,B="item_"+g.name+"_"+m;this._showOrMove(M,function(){this._showTooltipContent(M,V,T,B,r.offsetX,r.offsetY,r.position,r.target,P)}),u({type:"showTip",dataIndexInside:m,dataIndex:b.getRawIndex(m),seriesIndex:p,from:this.uid})}},i.prototype._showComponentItemTooltip=function(r,s,u){var f=ht(s),p=f.tooltipConfig.option||{};yt(p)&&(p={content:p,formatter:p});var g=[p],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);m&&g.push(m),g.push({formatter:p.content});var y=r.positionDefault,b=VE(g,this._tooltipModel,y?{position:y}:null),w=b.get("content"),S=Math.random()+"",M=new r_;this._showOrMove(b,function(){var x=rt(b.get("formatterParams")||{});this._showTooltipContent(b,w,x,S,r.offsetX,r.offsetY,r.position,s,M)}),u({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(r,s,u,f,d,p,v,g,m){if(this._ticket="",r.get("showContent")&&r.get("show")){var y=this._tooltipContent,b=r.get("formatter");v=v||r.get("position");var w=s,M=this._getNearestPoint([d,p],u,r.get("trigger"),r.get("borderColor")).color;if(b)if(yt(b)){var x=r.ecModel.get("useUTC"),T=we(u)?u[0]:u;w=b,T&&T.axisType&&T.axisType.indexOf("time")>=0&&(w=iu(T.axisValue,w,x)),w=Wm(w,u,!0)}else if(An(b)){var O=Bn(function(R,V){R===this._ticket&&(y.setContent(V,m,r,M,v),this._updatePosition(r,v,d,p,y,u,g))},this);this._ticket=f,w=b(u,f,O)}else w=b;y.setContent(w,m,r,M,v),y.show(r,M),this._updatePosition(r,v,d,p,y,u,g)}},i.prototype._getNearestPoint=function(r,s,u,f){return"axis"===u||we(s)?{color:f||("html"===this._renderMode?"#fff":"none")}:we(s)?void 0:{color:f||s.color||s.borderColor}},i.prototype._updatePosition=function(r,s,u,f,d,p,v){var g=this._api.getWidth(),m=this._api.getHeight();s=s||r.get("position");var y=d.getSize(),b=r.get("align"),w=r.get("verticalAlign"),S=v&&v.getBoundingRect().clone();if(v&&S.applyTransform(v.transform),An(s)&&(s=s([u,f],p,d.el,S,{viewSize:[g,m],contentSize:y.slice()})),we(s))u=zn(s[0],g),f=zn(s[1],m);else if(at(s)){var M=s;M.width=y[0],M.height=y[1];var x=li(M,{width:g,height:m});u=x.x,f=x.y,b=null,w=null}else if(yt(s)&&v)u=(T=function(o,i,r,s){var u=r[0],f=r[1],d=Math.ceil(Math.SQRT2*s)+8,p=0,v=0,g=i.width,m=i.height;switch(o){case"inside":p=i.x+g/2-u/2,v=i.y+m/2-f/2;break;case"top":p=i.x+g/2-u/2,v=i.y-f-d;break;case"bottom":p=i.x+g/2-u/2,v=i.y+m+d;break;case"left":p=i.x-u-d,v=i.y+m/2-f/2;break;case"right":p=i.x+g+d,v=i.y+m/2-f/2}return[p,v]}(s,S,y,r.get("borderWidth")))[0],f=T[1];else{var T;u=(T=function(o,i,r,s,u,f,d){var p=r.getSize(),v=p[0],g=p[1];return null!=f&&(o+v+f+2>s?o-=v+f:o+=f),null!=d&&(i+g+d>u?i-=g+d:i+=d),[o,i]}(u,f,d,g,m,b?null:20,w?null:20))[0],f=T[1]}b&&(u-=HE(b)?y[0]/2:"right"===b?y[0]:0),w&&(f-=HE(w)?y[1]/2:"bottom"===w?y[1]:0),EE(r)&&(u=(T=function(o,i,r,s,u){var f=r.getSize(),d=f[0],p=f[1];return o=Math.min(o+d,s)-d,i=Math.min(i+p,u)-p,[o=Math.max(o,0),i=Math.max(i,0)]}(u,f,d,g,m))[0],f=T[1]),d.moveTo(u,f)},i.prototype._updateContentNotChangedOnAxis=function(r,s){var u=this._lastDataByCoordSys,f=this._cbParamsList,d=!!u&&u.length===r.length;return d&&Dl(u,function(p,v){var g=p.dataByAxis||[],y=(r[v]||{}).dataByAxis||[];(d=d&&g.length===y.length)&&Dl(g,function(b,w){var S=y[w]||{},M=b.seriesDataIndices||[],x=S.seriesDataIndices||[];(d=d&&b.value===S.value&&b.axisType===S.axisType&&b.axisId===S.axisId&&M.length===x.length)&&Dl(M,function(T,P){var O=x[P];d=d&&T.seriesIndex===O.seriesIndex&&T.dataIndex===O.dataIndex}),f&&q(b.seriesDataIndices,function(T){var P=T.seriesIndex,O=s[P],R=f[P];O&&R&&R.data!==O.data&&(d=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=s,!!d},i.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},i.prototype.dispose=function(r,s){Ze.node||(this._tooltipContent.dispose(),iE("itemTooltip",s))},i.type="tooltip",i}(un),ud=["rect","polygon","keep","clear"];function tB(o,i){var r=jn(o?o.brush:[]);if(r.length){var s=[];q(r,function(v){var g=v.hasOwnProperty("toolbox")?v.toolbox:[];g instanceof Array&&(s=s.concat(g))});var u=o&&o.toolbox;we(u)&&(u=u[0]),u||(o.toolbox=[u={feature:{}}]);var f=u.feature||(u.feature={}),d=f.brush||(f.brush={}),p=d.type||(d.type=[]);p.push.apply(p,s),function(o){var i={};q(o,function(r){i[r]=1}),o.length=0,q(i,function(r,s){o.push(s)})}(p),i&&!p.length&&p.push.apply(p,ud)}}var oS=q;function sS(o){if(o)for(var i in o)if(o.hasOwnProperty(i))return!0}function Ka(o,i,r){var s={};return oS(i,function(f){var d=s[f]=function(){var f=function(){};return f.prototype.__hidden=f.prototype,new f}();oS(o[f],function(p,v){if(Qi.isValidType(v)){var g={type:v,visual:p};r&&r(g,f),d[v]=new Qi(g),"opacity"===v&&((g=rt(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new Qi(g))}})}),s}function jE(o,i,r){var s;q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])&&(s=!0)}),s&&q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])?o[u]=rt(i[u]):delete o[u]})}var KY={lineX:qE(0),lineY:qE(1),rect:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])},rect:function(i,r,s){return i&&s.boundingRect.intersect(i)}},polygon:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])&&Ph(s.range,i[0],i[1])},rect:function(i,r,s){var u=s.range;if(!i||u.length<=1)return!1;var f=i.x,d=i.y,p=i.width,v=i.height,g=u[0];return!!(Ph(u,f,d)||Ph(u,f+p,d)||Ph(u,f,d+v)||Ph(u,f+p,d+v)||Ft.create(i).contain(g[0],g[1])||v_(f,d,f+p,d,u)||v_(f,d,f,d+v,u)||v_(f+p,d,f+p,d+v,u)||v_(f,d+v,f+p,d+v,u))||void 0}}};function qE(o){var i=["x","y"],r=["width","height"];return{point:function(u,f,d){if(u)return lS(u[o],d.range)},rect:function(u,f,d){if(u){var p=d.range,v=[u[i[o]],u[i[o]]+u[r[o]]];return v[1]r[0][1]&&(r[0][1]=d[0]),d[1]r[1][1]&&(r[1][1]=d[1])}return r&&dS(r)}};function dS(o){return new Ft(o[0][0],o[1][0],o[0][1]-o[0][0],o[1][1]-o[1][0])}var aB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.ecModel=r,this.api=s,(this._brushController=new Vy(s.getZr())).on("brush",Ye(this._onBrush,this)).mount()},i.prototype.render=function(r,s,u,f){this.model=r,this._updateController(r,s,u,f)},i.prototype.updateTransform=function(r,s,u,f){cS(s),this._updateController(r,s,u,f)},i.prototype.updateVisual=function(r,s,u,f){this.updateTransform(r,s,u,f)},i.prototype.updateView=function(r,s,u,f){this._updateController(r,s,u,f)},i.prototype._updateController=function(r,s,u,f){(!f||f.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(u)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},i.prototype.dispose=function(){this._brushController.dispose()},i.prototype._onBrush=function(r){var s=this.model.id,u=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:s,areas:rt(u),$from:s}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:s,areas:rt(u),$from:s})},i.type="brush",i}(un);function hS(o,i){return Be({brushType:o.brushType,brushMode:o.brushMode,transformable:o.transformable,brushStyle:new Fn(o.brushStyle).getItemStyle(),removeOnClick:o.removeOnClick,z:o.z},i,!0)}var _$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.areas=[],r.brushOption={},r}return he(i,o),i.prototype.optionUpdated=function(r,s){var u=this.option;!s&&jE(u,r,["inBrush","outOfBrush"]);var f=u.inBrush=u.inBrush||{};u.outOfBrush=u.outOfBrush||{color:"#ddd"},f.hasOwnProperty("liftZ")||(f.liftZ=5)},i.prototype.setAreas=function(r){!r||(this.areas=Te(r,function(s){return hS(this.option,s)},this))},i.prototype.setBrushOption=function(r){this.brushOption=hS(this.option,r),this.brushType=this.brushOption.brushType},i.type="brush",i.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],i.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},i}(qt),y$=["rect","polygon","lineX","lineY","keep","clear"],vS=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u){var f,d,p;s.eachComponent({mainType:"brush"},function(v){f=v.brushType,d=v.brushOption.brushMode||"single",p=p||!!v.areas.length}),this._brushType=f,this._brushMode=d,q(r.get("type",!0),function(v){r.setIconStatus(v,("keep"===v?"multiple"===d:"clear"===v?p:v===f)?"emphasis":"normal")})},i.prototype.updateView=function(r,s,u){this.render(r,s,u)},i.prototype.getIcons=function(){var r=this.model,s=r.get("icon",!0),u={};return q(r.get("type",!0),function(f){s[f]&&(u[f]=s[f])}),u},i.prototype.onclick=function(r,s,u){var f=this._brushType,d=this._brushMode;"clear"===u?(s.dispatchAction({type:"axisAreaSelect",intervals:[]}),s.dispatchAction({type:"brush",command:"clear",areas:[]})):s.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===u?f:f!==u&&u,brushMode:"keep"===u?"multiple"===d?"single":"multiple":d}})},i.getDefaultOption=function(r){return{show:!0,type:y$.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:r.getLocaleModel().get(["toolbox","brush","title"])}},i}(Is),KE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode={type:"box",ignoreSize:!0},r}return he(i,o),i.type="title",i.defaultOption={zlevel:0,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"}},i}(qt),hp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){if(this.group.removeAll(),r.get("show")){var f=this.group,d=r.getModel("textStyle"),p=r.getModel("subtextStyle"),v=r.get("textAlign"),g=ot(r.get("textBaseline"),r.get("textVerticalAlign")),m=new fn({style:Or(d,{text:r.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),y=m.getBoundingRect(),b=r.get("subtext"),w=new fn({style:Or(p,{text:b,fill:p.getTextColor(),y:y.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),S=r.get("link"),M=r.get("sublink"),x=r.get("triggerEvent",!0);m.silent=!S&&!x,w.silent=!M&&!x,S&&m.on("click",function(){J0(S,"_"+r.get("target"))}),M&&w.on("click",function(){J0(M,"_"+r.get("subtarget"))}),ht(m).eventData=ht(w).eventData=x?{componentType:"title",componentIndex:r.componentIndex}:null,f.add(m),b&&f.add(w);var T=f.getBoundingRect(),P=r.getBoxLayoutParams();P.width=T.width,P.height=T.height;var O=li(P,{width:u.getWidth(),height:u.getHeight()},r.get("padding"));v||("middle"===(v=r.get("left")||r.get("right"))&&(v="center"),"right"===v?O.x+=O.width:"center"===v&&(O.x+=O.width/2)),g||("center"===(g=r.get("top")||r.get("bottom"))&&(g="middle"),"bottom"===g?O.y+=O.height:"middle"===g&&(O.y+=O.height/2),g=g||"top"),f.x=O.x,f.y=O.y,f.markRedraw();var R={align:v,verticalAlign:g};m.setStyle(R),w.setStyle(R),T=f.getBoundingRect();var V=O.margin,B=r.getItemStyle(["color","opacity"]);B.fill=r.get("backgroundColor");var z=new sn({shape:{x:T.x-V[3],y:T.y-V[0],width:T.width+V[1]+V[3],height:T.height+V[0]+V[2],r:r.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});f.add(z)}},i.type="title",i}(un),lB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode="box",r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u),this._initData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this._initData()},i.prototype.setCurrentIndex=function(r){null==r&&(r=this.option.currentIndex);var s=this._data.count();this.option.loop?r=(r%s+s)%s:(r>=s&&(r=s-1),r<0&&(r=0)),this.option.currentIndex=r},i.prototype.getCurrentIndex=function(){return this.option.currentIndex},i.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i.prototype.setPlayState=function(r){this.option.autoPlay=!!r},i.prototype.getPlayState=function(){return!!this.option.autoPlay},i.prototype._initData=function(){var d,r=this.option,s=r.data||[],u=r.axisType,f=this._names=[];"category"===u?(d=[],q(s,function(g,m){var b,y=wi(Ee(g),"");at(g)?(b=rt(g)).value=m:b=m,d.push(b),f.push(y)})):d=s,(this._data=new Ga([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[u]||"number"}],this)).initData(d,f)},i.prototype.getData=function(){return this._data},i.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i.type="timeline",i.defaultOption={zlevel:0,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:[]},i}(qt),pp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline.slider",i.defaultOption=rh(lB.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:[]}),i}(lB);qr(pp,Ke.prototype);var b$=pp,uB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline",i}(un),Au=function(o){function i(r,s,u,f){var d=o.call(this,r,s,u)||this;return d.type=f||"value",d}return he(i,o),i.prototype.getLabelModel=function(){return this.model.getModel("label")},i.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},i}(_l),Ec=Math.PI,Ig=pn();function ob(o,i,r,s,u,f){var d=i.get("color");u?(u.setColor(d),r.add(u),f&&f.onUpdate(u)):((u=Ir(o.get("symbol"),-1,-1,2,2,d)).setStyle("strokeNoScale",!0),r.add(u),f&&f.onCreate(u));var v=i.getItemStyle(["color"]);u.setStyle(v),s=Be({rectHover:!0,z2:100},s,!0);var g=g_(o.get("symbolSize"));s.scaleX=g[0]/2,s.scaleY=g[1]/2;var m=Ah(o.get("symbolOffset"),g);m&&(s.x=(s.x||0)+m[0],s.y=(s.y||0)+m[1]);var y=o.get("symbolRotate");return s.rotation=(y||0)*Math.PI/180||0,u.attr(s),u.updateTransform(),u}function dB(o,i,r,s,u,f){if(!o.dragging){var d=u.getModel("checkpointStyle"),p=s.dataToCoord(u.getData().get("value",r));if(f||!d.get("animation",!0))o.attr({x:p,y:0}),i&&i.attr({shape:{x2:p}});else{var v={duration:d.get("animationDuration",!0),easing:d.get("animationEasing",!0)};o.stopAnimation(null,!0),o.animateTo({x:p,y:0},v),i&&i.animateTo({shape:{x2:p}},v)}}}var JE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.api=s},i.prototype.render=function(r,s,u){if(this.model=r,this.api=u,this.ecModel=s,this.group.removeAll(),r.get("show",!0)){var f=this._layout(r,u),d=this._createGroup("_mainGroup"),p=this._createGroup("_labelGroup"),v=this._axis=this._createAxis(f,r);r.formatTooltip=function(g){return pi("nameValue",{noName:!0,value:v.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,v,r)},this),this._renderAxisLabel(f,p,v,r),this._position(f,r)}this._doPlayStop(),this._updateTicksStatus()},i.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},i.prototype.dispose=function(){this._clearTimer()},i.prototype._layout=function(r,s){var p,u=r.get(["label","position"]),f=r.get("orient"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},o.get("padding"))}(r,s),v={horizontal:"center",vertical:(p=null==u||"auto"===u?"horizontal"===f?d.y+d.height/2=0||"+"===p?"left":"right"},g={horizontal:p>=0||"+"===p?"top":"bottom",vertical:"middle"},m={horizontal:0,vertical:Ec/2},y="vertical"===f?d.height:d.width,b=r.getModel("controlStyle"),w=b.get("show",!0),S=w?b.get("itemSize"):0,M=w?b.get("itemGap"):0,x=S+M,T=r.get(["label","rotate"])||0;T=T*Ec/180;var P,O,R,V=b.get("position",!0),B=w&&b.get("showPlayBtn",!0),z=w&&b.get("showPrevBtn",!0),j=w&&b.get("showNextBtn",!0),X=0,Z=y;"left"===V||"bottom"===V?(B&&(P=[0,0],X+=x),z&&(O=[X,0],X+=x),j&&(R=[Z-S,0],Z-=x)):(B&&(P=[Z-S,0],Z-=x),z&&(O=[0,0],X+=x),j&&(R=[Z-S,0],Z-=x));var Q=[X,Z];return r.get("inverse")&&Q.reverse(),{viewRect:d,mainLength:y,orient:f,rotation:m[f],labelRotation:T,labelPosOpt:p,labelAlign:r.get(["label","align"])||v[f],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||g[f],playPosition:P,prevBtnPosition:O,nextBtnPosition:R,axisExtent:Q,controlSize:S,controlGap:M}},i.prototype._position=function(r,s){var u=this._mainGroup,f=this._labelGroup,d=r.viewRect;if("vertical"===r.orient){var p=[1,0,0,1,0,0],v=d.x,g=d.y+d.height;Oo(p,p,[-v,-g]),Od(p,p,-Ec/2),Oo(p,p,[v,g]),(d=d.clone()).applyTransform(p)}var m=P(d),y=P(u.getBoundingRect()),b=P(f.getBoundingRect()),w=[u.x,u.y],S=[f.x,f.y];S[0]=w[0]=m[0][0];var x,M=r.labelPosOpt;function T(R){R.originX=m[0][0]-R.x,R.originY=m[1][0]-R.y}function P(R){return[[R.x,R.x+R.width],[R.y,R.y+R.height]]}function O(R,V,B,z,j){R[z]+=B[z][j]-V[z][j]}null==M||yt(M)?(O(w,y,m,1,x="+"===M?0:1),O(S,b,m,1,1-x)):(O(w,y,m,1,x=M>=0?0:1),S[1]=w[1]+M),u.setPosition(w),f.setPosition(S),u.rotation=f.rotation=r.rotation,T(u),T(f)},i.prototype._createAxis=function(r,s){var u=s.getData(),f=s.get("axisType"),d=function(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getCategories(),extent:[1/0,-1/0]});case"time":return new dU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new Vv}}(s,f);d.getTicks=function(){return u.mapArray(["value"],function(g){return{value:g}})};var p=u.getDataExtent("value");d.setExtent(p[0],p[1]),d.niceTicks();var v=new Au("value",d,r.axisExtent,f);return v.model=s,v},i.prototype._createGroup=function(r){var s=this[r]=new ct;return this.group.add(s),s},i.prototype._renderAxisLine=function(r,s,u,f){var d=u.getExtent();if(f.get(["lineStyle","show"])){var p=new Ti({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:Se({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});s.add(p);var v=this._progressLine=new Ti({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:tt({lineCap:"round",lineWidth:p.style.lineWidth},f.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});s.add(v)}},i.prototype._renderAxisTick=function(r,s,u,f){var d=this,p=f.getData(),v=u.scale.getTicks();this._tickSymbols=[],q(v,function(g){var m=u.dataToCoord(g.value),y=p.getItemModel(g.value),b=y.getModel("itemStyle"),w=y.getModel(["emphasis","itemStyle"]),S=y.getModel(["progress","itemStyle"]),M={x:m,y:0,onclick:Ye(d._changeTimeline,d,g.value)},x=ob(y,b,s,M);x.ensureState("emphasis").style=w.getItemStyle(),x.ensureState("progress").style=S.getItemStyle(),qn(x);var T=ht(x);y.get("tooltip")?(T.dataIndex=g.value,T.dataModel=f):T.dataIndex=T.dataModel=null,d._tickSymbols.push(x)})},i.prototype._renderAxisLabel=function(r,s,u,f){var d=this;if(u.getLabelModel().get("show")){var v=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=v.getItemModel(y),w=b.getModel("label"),S=b.getModel(["emphasis","label"]),M=b.getModel(["progress","label"]),x=u.dataToCoord(m.tickValue),T=new fn({x:x,y:0,rotation:r.labelRotation-r.rotation,onclick:Ye(d._changeTimeline,d,y),silent:!1,style:Or(w,{text:m.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});T.ensureState("emphasis").style=Or(S),T.ensureState("progress").style=Or(M),s.add(T),qn(T),Ig(T).dataIndex=y,d._tickLabels.push(T)})}},i.prototype._renderControl=function(r,s,u,f){var d=r.controlSize,p=r.rotation,v=f.getModel("controlStyle").getItemStyle(),g=f.getModel(["emphasis","controlStyle"]).getItemStyle(),m=f.getPlayState(),y=f.get("inverse",!0);function b(w,S,M,x){if(w){var T=Ro(ot(f.get(["controlStyle",S+"BtnSize"]),d),d),O=function(o,i,r,s){var u=s.style,f=cl(o.get(["controlStyle",i]),s||{},new Ft(r[0],r[1],r[2],r[3]));return u&&f.setStyle(u),f}(f,S+"Icon",[0,-T/2,T,T],{x:w[0],y:w[1],originX:d/2,originY:0,rotation:x?-p:0,rectHover:!0,style:v,onclick:M});O.ensureState("emphasis").style=g,s.add(O),qn(O)}}b(r.nextBtnPosition,"next",Ye(this._changeTimeline,this,y?"-":"+")),b(r.prevBtnPosition,"prev",Ye(this._changeTimeline,this,y?"+":"-")),b(r.playPosition,m?"stop":"play",Ye(this._handlePlayClick,this,!m),!0)},i.prototype._renderCurrentPointer=function(r,s,u,f){var d=f.getData(),p=f.getCurrentIndex(),v=d.getItemModel(p).getModel("checkpointStyle"),g=this;this._currentPointer=ob(v,v,this._mainGroup,{},this._currentPointer,{onCreate:function(b){b.draggable=!0,b.drift=Ye(g._handlePointerDrag,g),b.ondragend=Ye(g._handlePointerDragend,g),dB(b,g._progressLine,p,u,f,!0)},onUpdate:function(b){dB(b,g._progressLine,p,u,f)}})},i.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},i.prototype._handlePointerDrag=function(r,s,u){this._clearTimer(),this._pointerChangeTimeline([u.offsetX,u.offsetY])},i.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},i.prototype._pointerChangeTimeline=function(r,s){var u=this._toAxisCoord(r)[0],d=io(this._axis.getExtent().slice());u>d[1]&&(u=d[1]),u=0&&(d[f]=+d[f].toFixed(b)),[d,y]}var tP={min:St(lb,"min"),max:St(lb,"max"),average:St(lb,"average"),median:St(lb,"median")};function ub(o,i){var r=o.getData(),s=o.coordinateSystem;if(i&&!function(o){return!isNaN(parseFloat(o.x))&&!isNaN(parseFloat(o.y))}(i)&&!we(i.coord)&&s){var u=s.dimensions,f=_B(i,r,s,o);if((i=rt(i)).type&&tP[i.type]&&f.baseAxis&&f.valueAxis){var d=Rt(u,f.baseAxis.dim),p=Rt(u,f.valueAxis.dim),v=tP[i.type](r,f.baseDataDim,f.valueDataDim,d,p);i.coord=v[0],i.value=v[1]}else{for(var g=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis],m=0;m<2;m++)tP[g[m]]&&(g[m]=nP(r,r.mapDimension(u[m]),g[m]));i.coord=g}}return i}function _B(o,i,r,s){var u={};return null!=o.valueIndex||null!=o.valueDim?(u.valueDataDim=null!=o.valueIndex?i.getDimension(o.valueIndex):o.valueDim,u.valueAxis=r.getAxis(function(o,i){var r=o.getData().getDimensionInfo(i);return r&&r.coordDim}(s,u.valueDataDim)),u.baseAxis=r.getOtherAxis(u.valueAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim)):(u.baseAxis=s.getBaseAxis(),u.valueAxis=r.getOtherAxis(u.baseAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim),u.valueDataDim=i.mapDimension(u.valueAxis.dim)),u}function cb(o,i){return!(o&&o.containData&&i.coord&&!function(o){return!(isNaN(parseFloat(o.x))&&isNaN(parseFloat(o.y)))}(i))||o.containData(i.coord)}function fb(o,i,r,s){return s<2?o.coord&&o.coord[s]:o.value}function nP(o,i,r){if("average"===r){var s=0,u=0;return o.each(i,function(f,d){isNaN(f)||(s+=f,u++)}),s/u}return"median"===r?o.getMedian(i):o.getDataExtent(i)["max"===r?1:0]}var Oc=pn(),db=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this.markerGroupMap=et()},i.prototype.render=function(r,s,u){var f=this,d=this.markerGroupMap;d.each(function(p){Oc(p).keep=!1}),s.eachSeries(function(p){var v=Al.getMarkerModelFromSeries(p,f.type);v&&f.renderSeries(p,v,s,u)}),d.each(function(p){!Oc(p).keep&&f.group.remove(p.group)})},i.prototype.markKeep=function(r){Oc(r).keep=!0},i.prototype.blurSeries=function(r){var s=this;q(r,function(u){var f=Al.getMarkerModelFromSeries(u,s.type);f&&f.getData().eachItemGraphicEl(function(p){p&&Lm(p)})})},i.type="marker",i}(un);function CS(o,i,r){var s=i.coordinateSystem;o.each(function(u){var d,f=o.getItemModel(u),p=Fe(f.get("x"),r.getWidth()),v=Fe(f.get("y"),r.getHeight());if(isNaN(p)||isNaN(v)){if(i.getMarkerPosition)d=i.getMarkerPosition(o.getValues(o.dimensions,u));else if(s){var g=o.get(s.dimensions[0],u),m=o.get(s.dimensions[1],u);d=s.dataToPoint([g,m])}}else d=[p,v];isNaN(p)||(d[0]=p),isNaN(v)||(d[1]=v),o.setItemLayout(u,d)})}var s9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markPoint");d&&(CS(d.getData(),f,u),this.markerGroupMap.get(f.id).updateLayout())},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new Y_),y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(d){return Se(Se({},i.getData().getDimensionInfo(i.getData().mapDimension(d))||{}),{name:d,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=Te(r.get("data"),St(ub,i));return o&&(f=Yn(f,St(cb,o))),u.initData(f,null,o?fb:function(d){return d.value}),u}(d,r,s);s.setData(y),CS(s.getData(),r,f),y.each(function(b){var w=y.getItemModel(b),S=w.getShallow("symbol"),M=w.getShallow("symbolSize"),x=w.getShallow("symbolRotate"),T=w.getShallow("symbolOffset"),P=w.getShallow("symbolKeepAspect");if(An(S)||An(M)||An(x)||An(T)){var O=s.getRawValue(b),R=s.getDataParams(b);An(S)&&(S=S(O,R)),An(M)&&(M=M(O,R)),An(x)&&(x=x(O,R)),An(T)&&(T=T(O,R))}var V=w.getModel("itemStyle").getItemStyle(),B=kh(v,"color");V.fill||(V.fill=B),y.setItemVisual(b,{symbol:S,symbolSize:M,symbolRotate:x,symbolOffset:T,symbolKeepAspect:P,style:V})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(b){b.traverse(function(w){ht(w).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markPoint",i}(db),yB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markLine",i.defaultOption={zlevel:0,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"},i}(Al),wS=pn(),SS=function(i,r,s,u){var d,f=i.getData();if(we(u))d=u;else{var p=u.type;if("min"===p||"max"===p||"average"===p||"median"===p||null!=u.xAxis||null!=u.yAxis){var v=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)v=r.getAxis(null!=u.yAxis?"y":"x"),g=ni(u.yAxis,u.xAxis);else{var m=_B(u,f,r,i);v=m.valueAxis,g=nP(f,MT(f,m.valueDataDim),p)}var b="x"===v.dim?0:1,w=1-b,S=rt(u),M={coord:[]};S.type=null,S.coord=[],S.coord[w]=-1/0,M.coord[w]=1/0;var x=s.get("precision");x>=0&&"number"==typeof g&&(g=+g.toFixed(Math.min(x,20))),S.coord[b]=M.coord[b]=g,d=[S,M,{type:p,valueIndex:u.valueIndex,value:g}]}else d=[]}var T=[ub(i,d[0]),ub(i,d[1]),Se({},d[2])];return T[2].type=T[2].type||null,Be(T[2],T[0]),Be(T[2],T[1]),T};function kS(o){return!isNaN(o)&&!isFinite(o)}function iP(o,i,r,s){var u=1-o,f=s.dimensions[o];return kS(i[u])&&kS(r[u])&&i[o]===r[o]&&s.getAxis(f).containData(i[o])}function c9(o,i){if("cartesian2d"===o.type){var r=i[0].coord,s=i[1].coord;if(r&&s&&(iP(1,r,s,o)||iP(0,r,s,o)))return!0}return cb(o,i[0])&&cb(o,i[1])}function MS(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get("x"),u.getWidth()),g=Fe(d.get("y"),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(o.dimensions,i));else{var y=o.get((m=f.dimensions)[0],i),b=o.get(m[1],i);p=f.dataToPoint([y,b])}if(lc(f,"cartesian2d")){var m,w=f.getAxis("x"),S=f.getAxis("y");kS(o.get((m=f.dimensions)[0],i))?p[0]=w.toGlobalCoord(w.getExtent()[r?0:1]):kS(o.get(m[1],i))&&(p[1]=S.toGlobalCoord(S.getExtent()[r?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];o.setItemLayout(i,p)}var aP=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markLine");if(d){var p=d.getData(),v=wS(d).from,g=wS(d).to;v.each(function(m){MS(v,m,!0,f,u),MS(g,m,!1,f,u)}),p.each(function(m){p.setItemLayout(m,[v.getItemLayout(m),g.getItemLayout(m)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new gN);this.group.add(m.group);var y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(g){return Se(Se({},i.getData().getDimensionInfo(i.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=new Ga(s,r),d=new Ga([],r),p=Te(r.get("data"),St(SS,i,o,r));o&&(p=Yn(p,St(c9,o)));var v=o?fb:function(g){return g.value};return u.initData(Te(p,function(g){return g[0]}),null,v),f.initData(Te(p,function(g){return g[1]}),null,v),d.initData(Te(p,function(g){return g[2]})),d.hasItemOption=!0,{from:u,to:f,line:d}}(d,r,s),b=y.from,w=y.to,S=y.line;wS(s).from=b,wS(s).to=w,s.setData(S);var M=s.get("symbol"),x=s.get("symbolSize"),T=s.get("symbolRotate"),P=s.get("symbolOffset");function O(R,V,B){var z=R.getItemModel(V);MS(R,V,B,r,f);var j=z.getModel("itemStyle").getItemStyle();null==j.fill&&(j.fill=kh(v,"color")),R.setItemVisual(V,{symbolKeepAspect:z.get("symbolKeepAspect"),symbolOffset:ot(z.get("symbolOffset",!0),P[B?0:1]),symbolRotate:ot(z.get("symbolRotate",!0),T[B?0:1]),symbolSize:ot(z.get("symbolSize"),x[B?0:1]),symbol:ot(z.get("symbol",!0),M[B?0:1]),style:j})}we(M)||(M=[M,M]),we(x)||(x=[x,x]),we(T)||(T=[T,T]),we(P)||(P=[P,P]),y.from.each(function(R){O(b,R,!0),O(w,R,!1)}),S.each(function(R){var V=S.getItemModel(R).getModel("lineStyle").getLineStyle();S.setItemLayout(R,[b.getItemLayout(R),w.getItemLayout(R)]),null==V.stroke&&(V.stroke=b.getItemVisual(R,"style").fill),S.setItemVisual(R,{fromSymbolKeepAspect:b.getItemVisual(R,"symbolKeepAspect"),fromSymbolOffset:b.getItemVisual(R,"symbolOffset"),fromSymbolRotate:b.getItemVisual(R,"symbolRotate"),fromSymbolSize:b.getItemVisual(R,"symbolSize"),fromSymbol:b.getItemVisual(R,"symbol"),toSymbolKeepAspect:w.getItemVisual(R,"symbolKeepAspect"),toSymbolOffset:w.getItemVisual(R,"symbolOffset"),toSymbolRotate:w.getItemVisual(R,"symbolRotate"),toSymbolSize:w.getItemVisual(R,"symbolSize"),toSymbol:w.getItemVisual(R,"symbol"),style:V})}),m.updateData(S),y.line.eachItemGraphicEl(function(R,V){R.traverse(function(B){ht(B).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markLine",i}(db),h9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markArea",i.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},i}(Al),xS=pn(),p9=function(i,r,s,u){var f=ub(i,u[0]),d=ub(i,u[1]),p=f.coord,v=d.coord;p[0]=ni(p[0],-1/0),p[1]=ni(p[1],-1/0),v[0]=ni(v[0],1/0),v[1]=ni(v[1],1/0);var g=Lb([{},f,d]);return g.coord=[f.coord,d.coord],g.x0=f.x,g.y0=f.y,g.x1=d.x,g.y1=d.y,g};function hb(o){return!isNaN(o)&&!isFinite(o)}function TS(o,i,r,s){var u=1-o;return hb(i[u])&&hb(r[u])}function bB(o,i){var r=i.coord[0],s=i.coord[1];return!!(lc(o,"cartesian2d")&&r&&s&&(TS(1,r,s)||TS(0,r,s)))||cb(o,{coord:r,x:i.x0,y:i.y0})||cb(o,{coord:s,x:i.x1,y:i.y1})}function CB(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get(r[0]),u.getWidth()),g=Fe(d.get(r[1]),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(r,i));else{var b=[m=o.get(r[0],i),y=o.get(r[1],i)];f.clampData&&f.clampData(b,b),p=f.dataToPoint(b,!0)}if(lc(f,"cartesian2d")){var w=f.getAxis("x"),S=f.getAxis("y"),m=o.get(r[0],i),y=o.get(r[1],i);hb(m)?p[0]=w.toGlobalCoord(w.getExtent()["x0"===r[0]?0:1]):hb(y)&&(p[1]=S.toGlobalCoord(S.getExtent()["y0"===r[1]?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];return p}var wB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],m9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markArea");if(d){var p=d.getData();p.each(function(v){var g=Te(wB,function(y){return CB(p,v,y,f,u)});p.setItemLayout(v,g),p.getItemGraphicEl(v).setShape("points",g)})}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,{group:new ct});this.group.add(m.group),this.markKeep(m);var y=function(o,i,r){var s,u;o?(s=Te(o&&o.dimensions,function(v){var g=i.getData();return Se(Se({},g.getDimensionInfo(g.mapDimension(v))||{}),{name:v,ordinalMeta:null})}),u=new Ga(Te(["x0","y0","x1","y1"],function(v,g){return{name:v,type:s[g%2].type}}),r)):u=new Ga(s=[{name:"value",type:"float"}],r);var d=Te(r.get("data"),St(p9,i,o,r));return o&&(d=Yn(d,St(bB,o))),u.initData(d,null,o?function(v,g,m,y){return v.coord[Math.floor(y/2)][y%2]}:function(v){return v.value}),u.hasItemOption=!0,u}(d,r,s);s.setData(y),y.each(function(b){var w=Te(wB,function(j){return CB(y,b,j,r,f)}),S=d.getAxis("x").scale,M=d.getAxis("y").scale,x=S.getExtent(),T=M.getExtent(),P=[S.parse(y.get("x0",b)),S.parse(y.get("x1",b))],O=[M.parse(y.get("y0",b)),M.parse(y.get("y1",b))];io(P),io(O),y.setItemLayout(b,{points:w,allClipped:!!(x[0]>P[1]||x[1]O[1]||T[1]=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.defaultOption={zlevel:0,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",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,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",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},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}},i}(qt),Rg=St,oP=q,pb=ct;function sP(o,i,r,s){vb(o,i,r,s),r.dispatchAction({type:"legendToggleSelect",name:null!=o?o:i}),Co(o,i,r,s)}function kB(o){for(var r,i=o.getZr().storage.getDisplayList(),s=0,u=i.length;s0?2:0:g[b]=w}var S=i.getModel("lineStyle"),M=q0.concat([["inactiveColor"],["inactiveWidth"]]),x={};for(m=0;m0?2:0:x[b]=w}if("auto"===g.fill&&(g.fill=u.fill),"auto"===g.stroke&&(g.stroke=u.fill),"auto"===x.stroke&&(x.stroke=u.fill),!d){var T=i.get("inactiveBorderWidth"),P=g[o.indexOf("empty")>-1?"fill":"stroke"];g.lineWidth="auto"===T?u.lineWidth>0&&P?2:0:g.lineWidth,g.fill=i.get("inactiveColor"),g.stroke=i.get("inactiveBorderColor"),x.stroke=r.get("inactiveColor"),x.lineWidth=r.get("inactiveWidth")}return{itemStyle:g,lineStyle:x}}(m=T||m||"roundRect",f,d.getModel("lineStyle"),v,g,b,M),R=new pb,V=f.getModel("textStyle");if("function"!=typeof r.getLegendIcon||T&&"inherit"!==T){var B="inherit"===T&&r.getData().getVisual("symbol")?"inherit"===x?r.getData().getVisual("symbolRotate"):x:0;R.add(function(o){var i=o.icon||"roundRect",r=Ir(i,0,0,o.itemWidth,o.itemHeight,o.itemStyle.fill);return r.setStyle(o.itemStyle),r.rotation=(o.iconRotate||0)*Math.PI/180,r.setOrigin([o.itemWidth/2,o.itemHeight/2]),i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}({itemWidth:w,itemHeight:S,icon:m,iconRotate:B,itemStyle:O.itemStyle,lineStyle:O.lineStyle}))}else R.add(r.getLegendIcon({itemWidth:w,itemHeight:S,icon:m,iconRotate:x,itemStyle:O.itemStyle,lineStyle:O.lineStyle}));var z="left"===p?w+5:-5,j=p,X=d.get("formatter"),Z=s;"string"==typeof X&&X?Z=X.replace("{name}",null!=s?s:""):"function"==typeof X&&(Z=X(s));var Q=f.get("inactiveColor");R.add(new fn({style:Or(V,{text:Z,x:z,y:S/2,fill:M?V.getTextColor():Q,align:j,verticalAlign:"middle"})}));var te=new sn({shape:R.getBoundingRect(),invisible:!0}),ee=f.getModel("tooltip");return ee.get("show")&&Av({el:te,componentModel:d,itemName:s,itemTooltipOption:ee.option}),R.add(te),R.eachChild(function(le){le.silent=!0}),te.silent=!y,this.getContentGroup().add(R),qn(R),R.__legendDataIndex=u,R},i.prototype.layoutInner=function(r,s,u,f,d,p){var v=this.getContentGroup(),g=this.getSelectorGroup();Sf(r.get("orient"),v,r.get("itemGap"),u.width,u.height);var m=v.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),v.markRedraw(),d){Sf("horizontal",g,r.get("selectorItemGap",!0));var b=g.getBoundingRect(),w=[-b.x,-b.y],S=r.get("selectorButtonGap",!0),M=r.getOrient().index,x=0===M?"width":"height",T=0===M?"height":"width",P=0===M?"y":"x";"end"===p?w[M]+=m[x]+S:y[M]+=b[x]+S,w[1-M]+=m[T]/2-b[T]/2,g.x=w[0],g.y=w[1],v.x=y[0],v.y=y[1];var O={x:0,y:0};return O[x]=m[x]+S+b[x],O[T]=Math.max(m[T],b[T]),O[P]=Math.min(0,b[P]+w[1-M]),O}return v.x=y[0],v.y=y[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(un);function lP(o){var i=o.findComponents({mainType:"legend"});i&&i.length&&o.filterSeries(function(r){for(var s=0;su[d],x=[-w.x,-w.y];s||(x[f]=m[g]);var T=[0,0],P=[-S.x,-S.y],O=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));M&&("end"===r.get("pageButtonPosition",!0)?P[f]+=u[d]-S[d]:T[f]+=S[d]+O),P[1-f]+=w[p]/2-S[p]/2,m.setPosition(x),y.setPosition(T),b.setPosition(P);var V={x:0,y:0};if(V[d]=M?u[d]:w[d],V[p]=Math.max(w[p],S[p]),V[v]=Math.min(0,S[v]+P[1-f]),y.__rectSize=u[d],M){var B={x:0,y:0};B[d]=Math.max(u[d]-S[d]-O,0),B[p]=V[p],y.setClipPath(new sn({shape:B})),y.__rectSize=B[d]}else b.eachChild(function(j){j.attr({invisible:!0,silent:!0})});var z=this._getPageInfo(r);return null!=z.pageIndex&&ln(m,{x:z.contentPosition[0],y:z.contentPosition[1]},M?r:null),this._updatePageInfoView(r,z),V},i.prototype._pageGo=function(r,s,u){var f=this._getPageInfo(s)[r];null!=f&&u.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:s.id})},i.prototype._updatePageInfoView=function(r,s){var u=this._controllerGroup;q(["pagePrev","pageNext"],function(m){var b=null!=s[m+"DataIndex"],w=u.childOfName(m);w&&(w.setStyle("fill",r.get(b?"pageIconColor":"pageIconInactiveColor",!0)),w.cursor=b?"pointer":"default")});var f=u.childOfName("pageText"),d=r.get("pageFormatter"),p=s.pageIndex,v=null!=p?p+1:0,g=s.pageCount;f&&d&&f.setStyle("text",yt(d)?d.replace("{current}",null==v?"":v+"").replace("{total}",null==g?"":g+""):d({current:v,total:g}))},i.prototype._getPageInfo=function(r){var s=r.get("scrollDataIndex",!0),u=this.getContentGroup(),f=this._containerGroup.__rectSize,d=r.getOrient().index,p=PS[d],v=OS[d],g=this._findTargetItemIndex(s),m=u.children(),y=m[g],b=m.length,w=b?1:0,S={contentPosition:[u.x,u.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var M=R(y);S.contentPosition[d]=-M.s;for(var x=g+1,T=M,P=M,O=null;x<=b;++x)(!(O=R(m[x]))&&P.e>T.s+f||O&&!V(O,T.s))&&(T=P.i>T.i?P:O)&&(null==S.pageNextDataIndex&&(S.pageNextDataIndex=T.i),++S.pageCount),P=O;for(x=g-1,T=M,P=M,O=null;x>=-1;--x)(!(O=R(m[x]))||!V(P,O.s))&&T.i=z&&B.s<=z+f}},i.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(d,p){var v=d.__legendDataIndex;null==f&&null!=v&&(f=p),v===r&&(s=p)}),null!=s?s:f):0;var s,f},i.type="legend.scroll",i}(Lg);function Rs(o){Ot(AS),o.registerComponentModel(ES),o.registerComponentView(IS),function(o){o.registerAction("legendScroll","legendscroll",function(i,r){var s=i.scrollDataIndex;null!=s&&r.eachComponent({mainType:"legend",subType:"scroll",query:i},function(u){u.setScrollDataIndex(s)})})}(o)}var x9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.inside",i.defaultOption=rh(eS.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),i}(eS),RS=pn();function T9(o,i,r){RS(o).coordSysRecordMap.each(function(s){var u=s.dataZoomInfoMap.get(i.uid);u&&(u.getRange=r)})}function mb(o,i){if(i){o.removeKey(i.model.uid);var r=i.controller;r&&r.dispose()}}function D9(o,i){o.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:i})}function uP(o,i,r,s){return o.coordinateSystem.containPoint([r,s])}var EB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return he(i,o),i.prototype.render=function(r,s,u){o.prototype.render.apply(this,arguments),r.noTarget()?this._clear():(this.range=r.getPercentRange(),T9(u,r,{pan:Ye(LS.pan,this),zoom:Ye(LS.zoom,this),scrollMove:Ye(LS.scrollMove,this)}))},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){(function(o,i){for(var r=RS(o).coordSysRecordMap,s=r.keys(),u=0;u0?v.pixelStart+v.pixelLength-v.pixel:v.pixel-v.pixelStart)/v.pixelLength*(d[1]-d[0])+d[0],m=Math.max(1/u.scale,0);d[0]=(d[0]-g)*m+g,d[1]=(d[1]-g)*m+g;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(kl(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:PB(function(o,i,r,s,u,f){var d=cP[s]([f.oldX,f.oldY],[f.newX,f.newY],i,u,r);return d.signal*(o[1]-o[0])*d.pixel/d.pixelLength}),scrollMove:PB(function(o,i,r,s,u,f){return cP[s]([0,0],[f.scrollDelta,f.scrollDelta],i,u,r).signal*(o[1]-o[0])*f.scrollDelta})};function PB(o){return function(i,r,s,u){var f=this.range,d=f.slice(),p=i.axisModels[0];if(p&&(kl(o(d,p,i,r,s,u),d,[0,100],"all"),this.range=d,f[0]!==d[0]||f[1]!==d[1]))return d}}var cP={grid:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem.getRect();return i=i||[0,0],"x"===d.dim?(p.pixel=r[0]-i[0],p.pixelLength=v.width,p.pixelStart=v.x,p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=v.height,p.pixelStart=v.y,p.signal=d.inverse?-1:1),p},polar:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem,g=v.getRadiusAxis().getExtent(),m=v.getAngleAxis().getExtent();return i=i?v.pointToCoord(i):[0,0],r=v.pointToCoord(r),"radiusAxis"===s.mainType?(p.pixel=r[0]-i[0],p.pixelLength=g[1]-g[0],p.pixelStart=g[0],p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=m[1]-m[0],p.pixelStart=m[0],p.signal=d.inverse?-1:1),p},singleAxis:function(i,r,s,u,f){var d=s.axis,p=f.model.coordinateSystem.getRect(),v={};return i=i||[0,0],"horizontal"===d.orient?(v.pixel=r[0]-i[0],v.pixelLength=p.width,v.pixelStart=p.x,v.signal=d.inverse?1:-1):(v.pixel=r[1]-i[1],v.pixelLength=p.height,v.pixelStart=p.y,v.signal=d.inverse?-1:1),v}},OB=EB;function IB(o){vE(o),o.registerComponentModel(x9),o.registerComponentView(OB),function(o){o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,function(i,r){var s=RS(r),u=s.coordSysRecordMap||(s.coordSysRecordMap=et());u.each(function(f){f.dataZoomInfoMap=null}),i.eachComponent({mainType:"dataZoom",subType:"inside"},function(f){q(MV(f).infoList,function(p){var v=p.model.uid,g=u.get(v)||u.set(v,function(o,i){var r={model:i,containsPoint:St(uP,i),dispatchAction:St(D9,o),dataZoomInfoMap:null,controller:null},s=r.controller=new hy(o.getZr());return q(["pan","zoom","scrollMove"],function(u){s.on(u,function(f){var d=[];r.dataZoomInfoMap.each(function(p){if(f.isAvailableBehavior(p.model.option)){var v=(p.getRange||{})[u],g=v&&v(p.dzReferCoordSysInfo,r.model.mainType,r.controller,f);!p.model.get("disabled",!0)&&g&&d.push({dataZoomId:p.model.id,start:g[0],end:g[1]})}}),d.length&&r.dispatchAction(d)})}),r}(r,p.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=et())).set(f.uid,{dzReferCoordSysInfo:p,model:f,getRange:null})})}),u.each(function(f){var p,d=f.controller,v=f.dataZoomInfoMap;if(v){var g=v.keys()[0];null!=g&&(p=v.get(g))}if(p){var m=function(o){var i,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return o.each(function(f){var d=f.model,p=!d.get("disabled",!0)&&(!d.get("zoomLock",!0)||"move");s[r+p]>s[r+i]&&(i=p),u=u&&d.get("preventDefaultMouseMove",!0)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}(v);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),il(f,"dispatchAction",p.model.get("throttle",!0),"fixRate")}else mb(u,f)})})}(o)}var RB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.slider",i.layoutMode="box",i.defaultOption=rh(eS.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"}}}),i}(eS),vp=sn,yb="horizontal",LB="vertical",I9=["line","bar","candlestick","scatter"],R9={easing:"cubicOut",duration:100,delay:0};function BB(o){return"vertical"===o?"ns-resize":"ew-resize"}var L9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._displayables={},r}return he(i,o),i.prototype.init=function(r,s){this.api=s,this._onBrush=Ye(this._onBrush,this),this._onBrushEnd=Ye(this._onBrushEnd,this)},i.prototype.render=function(r,s,u,f){if(o.prototype.render.apply(this,arguments),il(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),!1!==r.get("show"))return r.noTarget()?(this._clear(),void this.group.removeAll()):((!f||"dataZoom"!==f.type||f.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){!function(o,i){var r=o[i];r&&r[J]&&(o[i]=r[J])}(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},i.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(s),this._positionGroup()},i.prototype._resetLocation=function(){var r=this.dataZoomModel,s=this.api,f=r.get("brushSelect")?7:0,d=this._findCoordRect(),p={width:s.getWidth(),height:s.getHeight()},v=this._orient===yb?{right:p.width-d.x-d.width,top:p.height-30-7-f,width:d.width,height:30}:{right:7,top:d.y,width:30,height:d.height},g=av(r.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=v[y])});var m=li(g,p);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===LB&&this._size.reverse()},i.prototype._positionGroup=function(){var r=this.group,s=this._location,u=this._orient,f=this.dataZoomModel.getFirstTargetAxisModel(),d=f&&f.get("inverse"),p=this._displayables.sliderGroup,v=(this._dataShadowInfo||{}).otherAxisInverse;p.attr(u!==yb||d?u===yb&&d?{scaleY:v?1:-1,scaleX:-1}:u!==LB||d?{scaleY:v?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:v?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:v?1:-1,scaleX:1});var g=r.getBoundingRect([p]);r.x=s.x-g.x,r.y=s.y-g.y,r.markRedraw()},i.prototype._getViewExtent=function(){return[0,this._size[0]]},i.prototype._renderBackground=function(){var r=this.dataZoomModel,s=this._size,u=this._displayables.sliderGroup,f=r.get("brushSelect");u.add(new vp({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var d=new vp({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:Ye(this._onClickPanel,this)}),p=this.api.getZr();f?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",p.on("mousemove",this._onBrush),p.on("mouseup",this._onBrushEnd)):(p.off("mousemove",this._onBrush),p.off("mouseup",this._onBrushEnd)),u.add(d)},i.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],r){var s=this._size,u=r.series,f=u.getRawData(),d=u.getShadowDim?u.getShadowDim():r.otherDim;if(null!=d){var p=f.getDataExtent(d),v=.3*(p[1]-p[0]);p=[p[0]-v,p[1]+v];var x,g=[0,s[1]],y=[[s[0],0],[0,0]],b=[],w=s[0]/(f.count()-1),S=0,M=Math.round(f.count()/s[0]);f.each([d],function(V,B){if(M>0&&B%M)S+=w;else{var z=null==V||isNaN(V)||""===V,j=z?0:bn(V,p,g,!0);z&&!x&&B?(y.push([y[y.length-1][0],0]),b.push([b[b.length-1][0],0])):!z&&x&&(y.push([S,0]),b.push([S,0])),y.push([S,j]),b.push([S,j]),S+=w,x=z}});for(var B,z,j,X,T=this.dataZoomModel,O=0;O<3;O++){var R=(B=void 0,z=void 0,void 0,void 0,B=T.getModel(1===O?"selectedDataBackground":"dataBackground"),z=new ct,j=new ya({shape:{points:y},segmentIgnoreThreshold:1,style:B.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),X=new _r({shape:{points:b},segmentIgnoreThreshold:1,style:B.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),z.add(j),z.add(X),z);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}}}},i.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,s=r.get("showDataShadow");if(!1!==s){var u,f=this.ecModel;return r.eachTargetAxis(function(d,p){q(r.getAxisProxy(d,p).getTargetSeriesModels(),function(g){if(!(u||!0!==s&&Rt(I9,g.get("type"))<0)){var b,m=f.getComponent(Tc(d),p).axis,y=function(o){return{x:"y",y:"x",radius:"angle",angle:"radius"}[o]}(d),w=g.coordinateSystem;null!=y&&w.getOtherAxis&&(b=w.getOtherAxis(m).inverse),y=g.getData().mapDimension(y),u={thisAxis:m,series:g,thisDim:d,otherDim:y,otherAxisInverse:b}}},this)},this),u}},i.prototype._renderHandle=function(){var r=this.group,s=this._displayables,u=s.handles=[null,null],f=s.handleLabels=[null,null],d=this._displayables.sliderGroup,p=this._size,v=this.dataZoomModel,g=this.api,m=v.get("borderRadius")||0,y=v.get("brushSelect"),b=s.filler=new vp({silent:y,style:{fill:v.get("fillerColor")},textConfig:{position:"inside"}});d.add(b),d.add(new vp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:p[0],height:p[1],r:m},style:{stroke:v.get("dataBackgroundColor")||v.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(O){var R=v.get("handleIcon");!EC[R]&&R.indexOf("path://")<0&&R.indexOf("image://")<0&&(R="path://"+R);var V=Ir(R,-1,0,2,2,null,!0);V.attr({cursor:BB(this._orient),draggable:!0,drift:Ye(this._onDragMove,this,O),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1),z2:5});var B=V.getBoundingRect(),z=v.get("handleSize");this._handleHeight=Fe(z,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,V.setStyle(v.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=v.getModel(["emphasis","handleStyle"]).getItemStyle(),qn(V);var j=v.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[O]=V);var X=v.getModel("textStyle");r.add(f[O]=new fn({silent:!0,invisible:!0,style:Or(X,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:X.getTextColor(),font:X.getFont()}),z2:10}))},this);var w=b;if(y){var S=Fe(v.get("moveHandleSize"),p[1]),M=s.moveHandle=new sn({style:v.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:p[1]-.5,height:S}}),x=.8*S,T=s.moveHandleIcon=Ir(v.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);T.silent=!0,T.y=p[1]+S/2-.5,M.ensureState("emphasis").style=v.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var P=Math.min(p[1]/2,Math.max(S,10));(w=s.moveZone=new sn({invisible:!0,shape:{y:p[1]-P,height:S+P}})).on("mouseover",function(){g.enterEmphasis(M)}).on("mouseout",function(){g.leaveEmphasis(M)}),d.add(M),d.add(T),d.add(w)}w.attr({draggable:!0,cursor:BB(this._orient),drift:Ye(this._onDragMove,this,"all"),ondragstart:Ye(this._showDataInfo,this,!0),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1)})},i.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[bn(r[0],[0,100],s,!0),bn(r[1],[0,100],s,!0)]},i.prototype._updateInterval=function(r,s){var u=this.dataZoomModel,f=this._handleEnds,d=this._getViewExtent(),p=u.findRepresentativeAxisProxy().getMinMaxSpan(),v=[0,100];kl(s,f,d,u.get("zoomLock")?"all":r,null!=p.minSpan?bn(p.minSpan,v,d,!0):null,null!=p.maxSpan?bn(p.maxSpan,v,d,!0):null);var g=this._range,m=this._range=io([bn(f[0],d,v,!0),bn(f[1],d,v,!0)]);return!g||g[0]!==m[0]||g[1]!==m[1]},i.prototype._updateView=function(r){var s=this._displayables,u=this._handleEnds,f=io(u.slice()),d=this._size;q([0,1],function(w){var M=this._handleHeight;s.handles[w].attr({scaleX:M/2,scaleY:M/2,x:u[w]+(w?-1:1),y:d[1]/2-M/2})},this),s.filler.setShape({x:f[0],y:0,width:f[1]-f[0],height:d[1]});var p={x:f[0],width:f[1]-f[0]};s.moveHandle&&(s.moveHandle.setShape(p),s.moveZone.setShape(p),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",p.x+p.width/2));for(var v=s.dataShadowSegs,g=[0,f[0],f[1],d[0]],m=0;ms[0]||u[1]<0||u[1]>s[1])){var f=this._handleEnds,p=this._updateInterval("all",u[0]-(f[0]+f[1])/2);this._updateView(),p&&this._dispatchZoomAction(!1)}},i.prototype._onBrushStart=function(r){this._brushStart=new Tt(r.offsetX,r.offsetY),this._brushing=!0,this._brushStartTime=+new Date},i.prototype._onBrushEnd=function(r){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,s){s.attr("ignore",!0);var u=s.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(u.width)<5)){var d=this._getViewExtent(),p=[0,100];this._range=io([bn(u.x,d,p,!0),bn(u.x+u.width,d,p,!0)]),this._handleEnds=[u.x,u.x+u.width],this._updateView(),this._dispatchZoomAction(!1)}}}},i.prototype._onBrush=function(r){this._brushing&&(Vl(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},i.prototype._updateBrushRect=function(r,s){var u=this._displayables,d=u.brushRect;d||(d=u.brushRect=new vp({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),u.sliderGroup.add(d)),d.attr("ignore",!1);var p=this._brushStart,v=this._displayables.sliderGroup,g=v.transformCoordToLocal(r,s),m=v.transformCoordToLocal(p.x,p.y),y=this._size;g[0]=Math.max(Math.min(y[0],g[0]),0),d.setShape({x:m[0],y:0,width:g[0]-m[0],height:y[1]})},i.prototype._dispatchZoomAction=function(r){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?R9:null,start:s[0],end:s[1]})},i.prototype._findCoordRect=function(){var r,s=MV(this.dataZoomModel).infoList;if(!r&&s.length){var u=s[0].model.coordinateSystem;r=u.getRect&&u.getRect()}if(!r){var f=this.api.getWidth(),d=this.api.getHeight();r={x:.2*f,y:.2*d,width:.6*f,height:.6*d}}return r},i.type="dataZoom.slider",i}(Tu);function HB(o){o.registerComponentModel(RB),o.registerComponentView(L9),vE(o)}var k$={get:function(i,r,s){var u=rt((UB[i]||{})[r]);return s&&we(u)?u[u.length-1]:u}},UB={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]}},GB=k$,jB=Qi.mapVisual,WB=Qi.eachVisual,F9=we,YB=q,N9=io,qB=bn,bb=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u)},i.prototype.optionUpdated=function(r,s){var u=this.option;Ze.canvasSupported||(u.realtime=!1),!s&&jE(u,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(r){var s=this.stateList;r=Ye(r,this),this.controllerVisuals=Ka(this.option.controller,s,r),this.targetVisuals=Ka(this.option.target,s,r)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,s=[];return null==r||"all"===r?this.ecModel.eachSeries(function(u,f){s.push(f)}):s=jn(r),s},i.prototype.eachTargetSeries=function(r,s){q(this.getTargetSeriesIndices(),function(u){var f=this.ecModel.getSeriesByIndex(u);f&&r.call(s,f)},this)},i.prototype.isTargetSeries=function(r){var s=!1;return this.eachTargetSeries(function(u){u===r&&(s=!0)}),s},i.prototype.formatValueText=function(r,s,u){var g,f=this.option,d=f.precision,p=this.dataBound,v=f.formatter;u=u||["<",">"],we(r)&&(r=r.slice(),g=!0);var m=s?r:g?[y(r[0]),y(r[1])]:y(r);return yt(v)?v.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):An(v)?g?v(r[0],r[1]):v(r):g?r[0]===p[0]?u[0]+" "+m[1]:r[1]===p[1]?u[1]+" "+m[0]:m[0]+" - "+m[1]:m;function y(b){return b===p[0]?"min":b===p[1]?"max":(+b).toFixed(Math.min(d,20))}},i.prototype.resetExtent=function(){var r=this.option,s=N9([r.min,r.max]);this._dataExtent=s},i.prototype.getDataDimensionIndex=function(r){var s=this.option.dimension;if(null!=s)return r.getDimensionIndex(s);for(var u=r.dimensions,f=u.length-1;f>=0;f--){var p=r.getDimensionInfo(u[f]);if(!p.isCalculationCoord)return p.storeDimIndex}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var r=this.ecModel,s=this.option,u={inRange:s.inRange,outOfRange:s.outOfRange},f=s.target||(s.target={}),d=s.controller||(s.controller={});Be(f,u),Be(d,u);var p=this.isCategory();function v(y){F9(s.color)&&!y.inRange&&(y.inRange={color:s.color.slice().reverse()}),y.inRange=y.inRange||{color:r.get("gradientColor")}}v.call(this,f),v.call(this,d),function(y,b,w){var S=y[b],M=y[w];S&&!M&&(M=y[w]={},YB(S,function(x,T){if(Qi.isValidType(T)){var P=GB.get(T,"inactive",p);null!=P&&(M[T]=P,"color"===T&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}}))}.call(this,f,"inRange","outOfRange"),function(y){var b=(y.inRange||{}).symbol||(y.outOfRange||{}).symbol,w=(y.inRange||{}).symbolSize||(y.outOfRange||{}).symbolSize,S=this.get("inactiveColor"),x=this.getItemSymbol()||"roundRect";YB(this.stateList,function(T){var P=this.itemSize,O=y[T];O||(O=y[T]={color:p?S:[S]}),null==O.symbol&&(O.symbol=b&&rt(b)||(p?x:[x])),null==O.symbolSize&&(O.symbolSize=w&&rt(w)||(p?P[0]:[P[0],P[0]])),O.symbol=jB(O.symbol,function(B){return"none"===B?x:B});var R=O.symbolSize;if(null!=R){var V=-1/0;WB(R,function(B){B>V&&(V=B)}),O.symbolSize=jB(R,function(B){return qB(B,[0,V],[0,P[0]],!0)})}},this)}.call(this,d)},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(r){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(r){return null},i.prototype.getVisualMeta=function(r){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,zlevel: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"}},i}(qt),XB=[20,140];function KB(o,i,r){if(r[0]===r[1])return r.slice();for(var u=(r[1]-r[0])/200,f=r[0],d=[],p=0;p<=200&&fs[1]&&s.reverse(),s[0]=Math.max(s[0],r[0]),s[1]=Math.min(s[1],r[1]))},i.prototype.completeVisualOption=function(){o.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(r){var s=this.option.controller[r].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},i.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},i.prototype.getSelected=function(){var r=this.getExtent(),s=io((this.get("range")||[]).slice());return s[0]>r[1]&&(s[0]=r[1]),s[1]>r[1]&&(s[1]=r[1]),s[0]=u[1]||r<=s[1])?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[];return this.eachTargetSeries(function(u){var f=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(p,v){r[0]<=p&&p<=r[1]&&f.push(v)},this),s.push({seriesId:u.id,dataIndex:f})},this),s},i.prototype.getVisualMeta=function(r){var s=KB(0,0,this.getExtent()),u=KB(0,0,this.option.range.slice()),f=[];function d(w,S){f.push({value:w,color:r(w,S)})}for(var p=0,v=0,g=u.length,m=s.length;vr[1])break;f.push({color:this.getControllerVisual(v,"color",s),offset:p/100})}return f.push({color:this.getControllerVisual(r[1],"color",s),offset:1}),f},i.prototype._createBarPoints=function(r,s){var u=this.visualMapModel.itemSize;return[[u[0]-s[0],r[0]],[u[0],r[0]],[u[0],r[1]],[u[0]-s[1],r[1]]]},i.prototype._createBarGroup=function(r){var s=this._orient,u=this.visualMapModel.get("inverse");return new ct("horizontal"!==s||u?"horizontal"===s&&u?{scaleX:"bottom"===r?-1:1,rotation:-Math.PI/2}:"vertical"!==s||u?{scaleX:"left"===r?1:-1}:{scaleX:"left"===r?1:-1,scaleY:-1}:{scaleX:"bottom"===r?1:-1,rotation:Math.PI/2})},i.prototype._updateHandle=function(r,s){if(this._useHandle){var u=this._shapes,f=this.visualMapModel,d=u.handleThumbs,p=u.handleLabels,v=f.itemSize,g=f.getExtent();e5([0,1],function(m){var y=d[m];y.setStyle("fill",s.handlesColor[m]),y.y=r[m];var b=Un(r[m],[0,v[1]],g,!0),w=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=w/v[0],y.x=v[0]-w/2;var S=ul(u.handleLabelPoints[m],Lf(y,this.group));p[m].setStyle({x:S[0],y:S[1],text:f.formatValueText(this._dataInterval[m]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",u.mainGroup):"center"})},this)}},i.prototype._showIndicator=function(r,s,u,f){var d=this.visualMapModel,p=d.getExtent(),v=d.itemSize,g=[0,v[1]],m=this._shapes,y=m.indicator;if(y){y.attr("invisible",!1);var w=this.getControllerVisual(r,"color",{convertOpacityToAlpha:!0}),S=this.getControllerVisual(r,"symbolSize"),M=Un(r,p,g,!0),x=v[0]-S/2,T={x:y.x,y:y.y};y.y=M,y.x=x;var P=ul(m.indicatorLabelPoint,Lf(y,this.group)),O=m.indicatorLabel;O.attr("invisible",!1);var R=this._applyTransform("left",m.mainGroup),B="horizontal"===this._orient;O.setStyle({text:(u||"")+d.formatValueText(s),verticalAlign:B?R:"middle",align:B?"center":R});var z={x:x,y:M,style:{fill:w}},j={style:{x:P[0],y:P[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var X={duration:100,easing:"cubicInOut",additive:!0};y.x=T.x,y.y=T.y,y.animateTo(z,X),O.animateTo(j,X)}else y.attr(z),O.attr(j);this._firstShowIndicator=!1;var Z=this._shapes.handleLabels;if(Z)for(var Q=0;Qd[1]&&(y[1]=1/0),s&&(y[0]===-1/0?this._showIndicator(m,y[1],"< ",v):y[1]===1/0?this._showIndicator(m,y[0],"> ",v):this._showIndicator(m,m,"\u2248 ",v));var b=this._hoverLinkDataIndices,w=[];(s||n5(u))&&(w=this._hoverLinkDataIndices=u.findTargetDataIndices(y));var S=function(o,i){var r={},s={};return u(o||[],r),u(i||[],s,r),[f(r),f(s)];function u(d,p,v){for(var g=0,m=d.length;g=0&&(d.dimension=p,u.push(d))}}),i.getData().setVisual("visualMeta",u)}}];function W9(o,i,r,s){for(var u=i.targetVisuals[s],f=Qi.prepareVisualTypes(u),d={color:kh(o.getData(),"color")},p=0,v=f.length;p0:i.splitNumber>0)&&!i.calculable?"piecewise":"continuous"}),o.registerAction(G9,j9),q(i5,function(i){o.registerVisual(o.PRIORITY.VISUAL.COMPONENT,i)}),o.registerPreprocessor(Qt))}function gp(o){o.registerComponentModel(V9),o.registerComponentView(x$),El(o)}var HS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._pieceList=[],r}return he(i,o),i.prototype.optionUpdated=function(r,s){o.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var u=this._mode=this._determineMode();this._pieceList=[],o5[this._mode].call(this,this._pieceList),this._resetSelected(r,s);var f=this.option.categories;this.resetVisual(function(d,p){"categories"===u?(d.mappingMethod="category",d.categories=rt(f)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=Te(this._pieceList,function(v){return v=rt(v),"inRange"!==p&&(v.visual=null),v}))})},i.prototype.completeVisualOption=function(){var r=this.option,s={},u=Qi.listVisualTypes(),f=this.isCategory();function d(p,v,g){return p&&p[v]&&p[v].hasOwnProperty(g)}q(r.pieces,function(p){q(u,function(v){p.hasOwnProperty(v)&&(s[v]=1)})}),q(s,function(p,v){var g=!1;q(this.stateList,function(m){g=g||d(r,m,v)||d(r.target,m,v)},this),!g&&q(this.stateList,function(m){(r[m]||(r[m]={}))[v]=GB.get(v,"inRange"===m?"active":"inactive",f)})},this),o.prototype.completeVisualOption.apply(this,arguments)},i.prototype._resetSelected=function(r,s){var u=this.option,f=this._pieceList,d=(s?u:r).selected||{};if(u.selected=d,q(f,function(v,g){var m=this.getSelectedMapKey(v);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var p=!1;q(f,function(v,g){var m=this.getSelectedMapKey(v);d[m]&&(p?d[m]=!1:p=!0)},this)}},i.prototype.getItemSymbol=function(){return this.get("itemSymbol")},i.prototype.getSelectedMapKey=function(r){return"categories"===this._mode?r.value+"":r.index+""},i.prototype.getPieceList=function(){return this._pieceList},i.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},i.prototype.setSelected=function(r){this.option.selected=rt(r)},i.prototype.getValueState=function(r){var s=Qi.findPieceIndex(r,this._pieceList);return null!=s&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[],u=this._pieceList;return this.eachTargetSeries(function(f){var d=[],p=f.getData();p.each(this.getDataDimensionIndex(p),function(v,g){Qi.findPieceIndex(v,u)===r&&d.push(g)},this),s.push({seriesId:f.id,dataIndex:d})},this),s},i.prototype.getRepresentValue=function(r){var s;if(this.isCategory())s=r.value;else if(null!=r.value)s=r.value;else{var u=r.interval||[];s=u[0]===-1/0&&u[1]===1/0?0:(u[0]+u[1])/2}return s},i.prototype.getVisualMeta=function(r){if(!this.isCategory()){var s=[],u=["",""],f=this,p=this._pieceList.slice();if(p.length){var v=p[0].interval[0];v!==-1/0&&p.unshift({interval:[-1/0,v]}),(v=p[p.length-1].interval[1])!==1/0&&p.push({interval:[v,1/0]})}else p.push({interval:[-1/0,1/0]});var g=-1/0;return q(p,function(m){var y=m.interval;y&&(y[0]>g&&d([g,y[0]],"outOfRange"),d(y.slice()),g=y[1])},this),{stops:s,outerColors:u}}function d(m,y){var b=f.getRepresentValue({interval:m});y||(y=f.getValueState(b));var w=r(b,y);m[0]===-1/0?u[0]=w:m[1]===1/0?u[1]=w:s.push({value:m[0],color:w},{value:m[1],color:w})}},i.type="visualMap.piecewise",i.defaultOption=rh(bb.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}),i}(bb),o5={splitNumber:function(i){var r=this.option,s=Math.min(r.precision,20),u=this.getExtent(),f=r.splitNumber;f=Math.max(parseInt(f,10),1),r.splitNumber=f;for(var d=(u[1]-u[0])/f;+d.toFixed(s)!==d&&s<5;)s++;r.precision=s,d=+d.toFixed(s),r.minOpen&&i.push({interval:[-1/0,u[0]],close:[0,0]});for(var p=0,v=u[0];p","\u2265"][u[0]]])},this)}};function hP(o,i){var r=o.inverse;("vertical"===o.orient?!r:r)&&i.reverse()}var Y9=HS,Pu=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.doRender=function(){var r=this.group;r.removeAll();var s=this.visualMapModel,u=s.get("textGap"),f=s.textStyleModel,d=f.getFont(),p=f.getTextColor(),v=this._getItemAlign(),g=s.itemSize,m=this._getViewData(),y=m.endsText,b=ni(s.get("showLabel",!0),!y);y&&this._renderEndsText(r,y[0],g,b,v),q(m.viewPieceList,function(w){var S=w.piece,M=new ct;M.onclick=Ye(this._onItemClick,this,S),this._enableHoverLink(M,w.indexInModelPieceList);var x=s.getRepresentValue(S);if(this._createItemSymbol(M,x,[0,0,g[0],g[1]]),b){var T=this.visualMapModel.getValueState(x);M.add(new fn({style:{x:"right"===v?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:v,font:d,fill:p,opacity:"outOfRange"===T?.5:1}}))}r.add(M)},this),y&&this._renderEndsText(r,y[1],g,b,v),Sf(s.get("orient"),r,s.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},i.prototype._enableHoverLink=function(r,s){var u=this;r.on("mouseover",function(){return f("highlight")}).on("mouseout",function(){return f("downplay")});var f=function(p){var v=u.visualMapModel;v.option.hoverLink&&u.api.dispatchAction({type:p,batch:VS(v.findTargetDataIndices(s),v)})}},i.prototype._getItemAlign=function(){var r=this.visualMapModel,s=r.option;if("vertical"===s.orient)return JB(r,this.api,r.itemSize);var u=s.align;return(!u||"auto"===u)&&(u="left"),u},i.prototype._renderEndsText=function(r,s,u,f,d){if(s){var p=new ct,v=this.visualMapModel.textStyleModel;p.add(new fn({style:{x:f?"right"===d?u[0]:0:u[0]/2,y:u[1]/2,verticalAlign:"middle",align:f?d:"center",text:s,font:v.getFont(),fill:v.getTextColor()}})),r.add(p)}},i.prototype._getViewData=function(){var r=this.visualMapModel,s=Te(r.getPieceList(),function(p,v){return{piece:p,indexInModelPieceList:v}}),u=r.get("text"),f=r.get("orient"),d=r.get("inverse");return("horizontal"===f?d:!d)?s.reverse():u&&(u=u.slice().reverse()),{viewPieceList:s,endsText:u}},i.prototype._createItemSymbol=function(r,s,u){r.add(Ir(this.getControllerVisual(s,"symbol"),u[0],u[1],u[2],u[3],this.getControllerVisual(s,"color")))},i.prototype._onItemClick=function(r){var s=this.visualMapModel,u=s.option,f=rt(u.selected),d=s.getSelectedMapKey(r);"single"===u.selectedMode?(f[d]=!0,q(f,function(p,v){f[v]=v===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},i.type="visualMap.piecewise",i}(QB);function fd(o){o.registerComponentModel(Y9),o.registerComponentView(Pu),El(o)}var X9={label:{enabled:!0},decal:{show:!1}},s5=pn(),Z9={};function K9(o,i){var r=o.getModel("aria");if(r.get("enabled")){var s=rt(X9);Be(s.label,o.getLocaleModel().get("aria"),!1),Be(r.option,s,!1),function(){if(r.getModel("decal").get("show")){var y=et();o.eachSeries(function(b){if(!b.isColorBySeries()){var w=y.get(b.type);w||y.set(b.type,w={}),s5(b).scope=w}}),o.eachRawSeries(function(b){if(!o.isSeriesFiltered(b))if("function"!=typeof b.enableAriaDecal){var w=b.getData();if(b.isColorBySeries()){var P=KM(b.ecModel,b.name,Z9,o.getSeriesCount()),O=w.getVisual("decal");w.setVisual("decal",R(O,P))}else{var S=b.getRawData(),M={},x=s5(b).scope;w.each(function(V){var B=w.getRawIndex(V);M[B]=V});var T=S.count();S.each(function(V){var B=M[V],z=S.getName(V)||V+"",j=KM(b.ecModel,z,x,T),X=w.getItemVisual(B,"decal");w.setItemVisual(B,"decal",R(X,j))})}}else b.enableAriaDecal();function R(V,B){var z=V?Se(Se({},B),V):B;return z.dirty=!0,z}})}}(),function(){var g=o.getLocaleModel().get("aria"),m=r.getModel("label");if(m.option=tt(m.option,g),m.get("enabled")){var y=i.getZr().dom;if(m.get("description"))return void y.setAttribute("aria-label",m.get("description"));var x,b=o.getSeriesCount(),w=m.get(["data","maxCount"])||10,S=m.get(["series","maxCount"])||10,M=Math.min(b,S);if(!(b<1)){var T=function(){var g=o.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();if(T)x=d(m.get(["general","withTitle"]),{title:T});else x=m.get(["general","withoutTitle"]);var O=[];x+=d(m.get(b>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:b}),o.eachSeries(function(j,X){if(X1?["series","multiple",te]:["series","single",te]),{seriesId:j.seriesIndex,seriesName:j.get("name"),seriesType:v(j.subType)});var ee=j.getData();ee.count()>w?Z+=d(m.get(["data","partialData"]),{displayCnt:w}):Z+=m.get(["data","allData"]);for(var oe=[],de=0;de":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},$9=function(){function o(i){null==(this._condVal=yt(i)?new RegExp(i):CH(i)?i:null)&&Mn("")}return o.prototype.evaluate=function(i){var r=typeof i;return"string"===r?this._condVal.test(i):"number"===r&&this._condVal.test(i+"")},o}(),J9=function(){function o(){}return o.prototype.evaluate=function(){return this.value},o}(),eq=function(){function o(){}return o.prototype.evaluate=function(){for(var i=this.children,r=0;r2&&s.push(u),u=[ee,le]}function m(ee,le,oe,de){Vg(ee,oe)&&Vg(le,de)||u.push(ee,le,oe,de,oe,de)}for(var b,w,S,M,x=0;xj:Q2&&s.push(u),s}function Bg(o,i,r,s,u,f,d,p,v,g){if(Vg(o,r)&&Vg(i,s)&&Vg(u,d)&&Vg(f,p))v.push(d,p);else{var m=2/g,y=m*m,b=d-o,w=p-i,S=Math.sqrt(b*b+w*w);b/=S,w/=S;var M=r-o,x=s-i,T=u-d,P=f-p,O=M*M+x*x,R=T*T+P*P;if(O=0&&R-B*B=0)v.push(d,p);else{var X=[],Z=[];qu(o,r,u,d,.5,X),qu(i,s,f,p,.5,Z),Bg(X[0],Z[0],X[1],Z[1],X[2],Z[2],X[3],Z[3],v,g),Bg(X[4],Z[4],X[5],Z[5],X[6],Z[6],X[7],Z[7],v,g)}}}}function f5(o,i,r){var f=Math.abs(o[i]/o[1-i]),d=Math.ceil(Math.sqrt(f*r)),p=Math.floor(r/d);0===p&&(p=1,d=r);for(var v=[],g=0;g0)for(g=0;gMath.abs(g),y=f5([v,g],m?0:1,i),b=(m?p:g)/y.length,w=0;w1?null:new Tt(M*v+o,M*g+i)}function d5(o,i,r){var s=new Tt;Tt.sub(s,r,i),s.normalize();var u=new Tt;return Tt.sub(u,o,i),u.dot(s)}function Hg(o,i){var r=o[o.length-1];r&&r[0]===i[0]&&r[1]===i[1]||o.push(i)}function jS(o){var i=o.points,r=[],s=[];wm(i,r,s);var u=new Ft(r[0],r[1],s[0]-r[0],s[1]-r[1]),f=u.width,d=u.height,p=u.x,v=u.y,g=new Tt,m=new Tt;return f>d?(g.x=m.x=p+f/2,g.y=v,m.y=v+d):(g.y=m.y=v+d/2,g.x=p,m.x=p+f),function(o,i,r){for(var s=o.length,u=[],f=0;f0;g/=2){var m=0,y=0;(o&g)>0&&(m=1),(i&g)>0&&(y=1),p+=g*g*(3*m^y),0===y&&(1===m&&(o=g-1-o,i=g-1-i),v=o,o=i,i=v)}return p}function Lr(o){var i=1/0,r=1/0,s=-1/0,u=-1/0,f=Te(o,function(p){var v=p.getBoundingRect(),g=p.getComputedTransform(),m=v.x+v.width/2+(g?g[4]:0),y=v.y+v.height/2+(g?g[5]:0);return i=Math.min(m,i),r=Math.min(y,r),s=Math.max(m,s),u=Math.max(y,u),[m,y]});return Te(f,function(p,v){return{cp:p,z:pq(p[0],p[1],i,r,s,u),path:o[v]}}).sort(function(p,v){return p.z-v.z}).map(function(p){return p.path})}function jr(o){return function(o,i){var u,r=[],s=o.shape;switch(o.type){case"rect":(function(o,i,r){for(var s=o.width,u=o.height,f=s>u,d=f5([s,u],f?0:1,i),p=f?"width":"height",v=f?"height":"width",g=f?"x":"y",m=f?"y":"x",y=o[p]/d.length,b=0;b=0;u--)if(!r[u].many.length){var v=r[p].many;if(v.length<=1){if(!p)return r;p=0}f=v.length;var g=Math.ceil(f/2);r[u].many=v.slice(g,f),r[p].many=v.slice(0,g),p++}return r}var vq={clone:function(i){for(var r=[],s=1-Math.pow(1-i.path.style.opacity,1/i.count),u=0;u0){var g,m,p=s.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);m5(o)&&(g=o,m=i),m5(i)&&(g=i,m=o);for(var b=g?g===o:o.length>i.length,w=g?_5(m,g):_5(b?i:o,[b?o:i]),S=0,M=0;M1e4))for(var u=s.getIndices(),f=function(o){for(var i=o.dimensions,r=0;r0&&R.group.traverse(function(B){B instanceof Nt&&!B.animators.length&&B.animateFrom({style:{opacity:0}},V)})})}function w5(o){return o.getModel("universalTransition").get("seriesKey")||o.id}function S5(o){return we(o)?o.sort().join(","):o}function Ou(o){if(o.hostModel)return o.hostModel.getModel("universalTransition").get("divideShape")}function Pl(o,i){for(var r=0;r=0&&u.push({data:i.oldData[p],divide:Ou(i.oldData[p]),dim:d.dimension})}),q(jn(o.to),function(d){var p=Pl(r.updatedSeries,d);if(p>=0){var v=r.updatedSeries[p].getData();f.push({data:v,divide:Ou(v),dim:d.dimension})}}),u.length>0&&f.length>0&&C5(u,f,s)}(b,u,s,r)});else{var d=function(o,i){var r=et(),s=et(),u=et();return q(o.oldSeries,function(d,p){var v=o.oldData[p],g=w5(d),m=S5(g);s.set(m,v),we(g)&&q(g,function(y){u.set(y,{data:v,key:m})})}),q(i.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var p=d.getData(),v=w5(d),g=S5(v),m=s.get(g);if(m)r.set(g,{oldSeries:[{divide:Ou(m),data:m}],newSeries:[{divide:Ou(p),data:p}]});else if(we(v)){var y=[];q(v,function(S){var M=s.get(S);M&&y.push({divide:Ou(M),data:M})}),y.length&&r.set(g,{oldSeries:y,newSeries:[{data:p,divide:Ou(p)}]})}else{var b=u.get(v);if(b){var w=r.get(b.key);w||(w={oldSeries:[{data:b.data,divide:Ou(b.data)}],newSeries:[]},r.set(b.key,w)),w.newSeries.push({data:p,divide:Ou(p)})}}}}),r}(u,s);q(d.keys(),function(b){var w=d.get(b);C5(w.oldSeries,w.newSeries,r)})}q(s.updatedSeries,function(b){b[N]&&(b[N]=!1)})}for(var p=i.getSeries(),v=u.oldSeries=[],g=u.oldData=[],m=0;m=200&&_t.status<=299}function Ie(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(ae){var _t=document.createEvent("MouseEvents");_t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(_t)}}var ko=sr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=sr.saveAs||("object"!=typeof window||window!==sr?function(){}:"download"in HTMLAnchorElement.prototype&&!ko?function(_t,ae,xr){var Gn=sr.URL||sr.webkitURL,It=document.createElement("a");It.download=ae=ae||_t.name||"download",It.rel="noopener","string"==typeof _t?(It.href=_t,It.origin!==location.origin?zi(It.href)?Oe(_t,ae,xr):Ie(It,It.target="_blank"):Ie(It)):(It.href=Gn.createObjectURL(_t),setTimeout(function(){Gn.revokeObjectURL(It.href)},4e4),setTimeout(function(){Ie(It)},0))}:"msSaveOrOpenBlob"in navigator?function(_t,ae,xr){if(ae=ae||_t.name||"download","string"==typeof _t)if(zi(_t))Oe(_t,ae,xr);else{var Gn=document.createElement("a");Gn.href=_t,Gn.target="_blank",setTimeout(function(){Ie(Gn)})}else navigator.msSaveOrOpenBlob(function(F,_t){return void 0===_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(F.type)?new Blob([String.fromCharCode(65279),F],{type:F.type}):F}(_t,xr),ae)}:function(_t,ae,xr,Gn){if((Gn=Gn||open("","_blank"))&&(Gn.document.title=Gn.document.body.innerText="downloading..."),"string"==typeof _t)return Oe(_t,ae,xr);var It="application/octet-stream"===_t.type,Nu=/constructor/i.test(sr.HTMLElement)||sr.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||It&&Nu||ko)&&"undefined"!=typeof FileReader){var he=new FileReader;he.onloadend=function(){var Ko=he.result;Ko=ue?Ko:Ko.replace(/^data:[^;]*;/,"data:attachment/file;"),Gn?Gn.location.href=Ko:location=Ko,Gn=null},he.readAsDataURL(_t)}else{var ei=sr.URL||sr.webkitURL,tn=ei.createObjectURL(_t);Gn?Gn.location=tn:location.href=tn,Gn=null,setTimeout(function(){ei.revokeObjectURL(tn)},4e4)}});sr.saveAs=W.saveAs=W,Zo.exports=W},45579:function(Zo){var sr=function(Dt){"use strict";var Ie,Oe=Object.prototype,zi=Oe.hasOwnProperty,ko="function"==typeof Symbol?Symbol:{},W=ko.iterator||"@@iterator",F=ko.asyncIterator||"@@asyncIterator",_t=ko.toStringTag||"@@toStringTag";function ae(nt,Ge,$e){return Object.defineProperty(nt,Ge,{value:$e,enumerable:!0,configurable:!0,writable:!0}),nt[Ge]}try{ae({},"")}catch(nt){ae=function($e,Ve,vn){return $e[Ve]=vn}}function xr(nt,Ge,$e,Ve){var cn=Object.create((Ge&&Ge.prototype instanceof tn?Ge:tn).prototype),er=new Nl(Ve||[]);return cn._invoke=function(nt,Ge,$e){var Ve=It;return function(cn,er){if(Ve===ue)throw new Error("Generator is already running");if(Ve===he){if("throw"===cn)throw er;return Xg()}for($e.method=cn,$e.arg=er;;){var ti=$e.delegate;if(ti){var Pi=At(ti,$e);if(Pi){if(Pi===ei)continue;return Pi}}if("next"===$e.method)$e.sent=$e._sent=$e.arg;else if("throw"===$e.method){if(Ve===It)throw Ve=he,$e.arg;$e.dispatchException($e.arg)}else"return"===$e.method&&$e.abrupt("return",$e.arg);Ve=ue;var fr=Gn(nt,Ge,$e);if("normal"===fr.type){if(Ve=$e.done?he:Nu,fr.arg===ei)continue;return{value:fr.arg,done:$e.done}}"throw"===fr.type&&(Ve=he,$e.method="throw",$e.arg=fr.arg)}}}(nt,$e,er),cn}function Gn(nt,Ge,$e){try{return{type:"normal",arg:nt.call(Ge,$e)}}catch(Ve){return{type:"throw",arg:Ve}}}Dt.wrap=xr;var It="suspendedStart",Nu="suspendedYield",ue="executing",he="completed",ei={};function tn(){}function Ko(){}function zc(){}var Yg={};ae(Yg,W,function(){return this});var cr=Object.getPrototypeOf,pd=cr&&cr(cr(Vu([])));pd&&pd!==Oe&&zi.call(pd,W)&&(Yg=pd);var Fl=zc.prototype=tn.prototype=Object.create(Yg);function pk(nt){["next","throw","return"].forEach(function(Ge){ae(nt,Ge,function($e){return this._invoke(Ge,$e)})})}function vd(nt,Ge){function $e(cn,er,ti,Pi){var fr=Gn(nt[cn],nt,er);if("throw"!==fr.type){var gd=fr.arg,Ze=gd.value;return Ze&&"object"==typeof Ze&&zi.call(Ze,"__await")?Ge.resolve(Ze.__await).then(function(Fs){$e("next",Fs,ti,Pi)},function(Fs){$e("throw",Fs,ti,Pi)}):Ge.resolve(Ze).then(function(Fs){gd.value=Fs,ti(gd)},function(Fs){return $e("throw",Fs,ti,Pi)})}Pi(fr.arg)}var Ve;this._invoke=function(cn,er){function ti(){return new Ge(function(Pi,fr){$e(cn,er,Pi,fr)})}return Ve=Ve?Ve.then(ti,ti):ti()}}function At(nt,Ge){var $e=nt.iterator[Ge.method];if($e===Ie){if(Ge.delegate=null,"throw"===Ge.method){if(nt.iterator.return&&(Ge.method="return",Ge.arg=Ie,At(nt,Ge),"throw"===Ge.method))return ei;Ge.method="throw",Ge.arg=new TypeError("The iterator does not provide a 'throw' method")}return ei}var Ve=Gn($e,nt.iterator,Ge.arg);if("throw"===Ve.type)return Ge.method="throw",Ge.arg=Ve.arg,Ge.delegate=null,ei;var vn=Ve.arg;return vn?vn.done?(Ge[nt.resultName]=vn.value,Ge.next=nt.nextLoc,"return"!==Ge.method&&(Ge.method="next",Ge.arg=Ie),Ge.delegate=null,ei):vn:(Ge.method="throw",Ge.arg=new TypeError("iterator result is not an object"),Ge.delegate=null,ei)}function Qo(nt){var Ge={tryLoc:nt[0]};1 in nt&&(Ge.catchLoc=nt[1]),2 in nt&&(Ge.finallyLoc=nt[2],Ge.afterLoc=nt[3]),this.tryEntries.push(Ge)}function qg(nt){var Ge=nt.completion||{};Ge.type="normal",delete Ge.arg,nt.completion=Ge}function Nl(nt){this.tryEntries=[{tryLoc:"root"}],nt.forEach(Qo,this),this.reset(!0)}function Vu(nt){if(nt){var Ge=nt[W];if(Ge)return Ge.call(nt);if("function"==typeof nt.next)return nt;if(!isNaN(nt.length)){var $e=-1,Ve=function vn(){for(;++$e=0;--vn){var cn=this.tryEntries[vn],er=cn.completion;if("root"===cn.tryLoc)return Ve("end");if(cn.tryLoc<=this.prev){var ti=zi.call(cn,"catchLoc"),Pi=zi.call(cn,"finallyLoc");if(ti&&Pi){if(this.prev=0;--Ve){var vn=this.tryEntries[Ve];if(vn.tryLoc<=this.prev&&zi.call(vn,"finallyLoc")&&this.prev=0;--$e){var Ve=this.tryEntries[$e];if(Ve.finallyLoc===Ge)return this.complete(Ve.completion,Ve.afterLoc),qg(Ve),ei}},catch:function(Ge){for(var $e=this.tryEntries.length-1;$e>=0;--$e){var Ve=this.tryEntries[$e];if(Ve.tryLoc===Ge){var vn=Ve.completion;if("throw"===vn.type){var cn=vn.arg;qg(Ve)}return cn}}throw new Error("illegal catch attempt")},delegateYield:function(Ge,$e,Ve){return this.delegate={iterator:Vu(Ge),resultName:$e,nextLoc:Ve},"next"===this.method&&(this.arg=Ie),ei}},Dt}(Zo.exports);try{regeneratorRuntime=sr}catch(Dt){"object"==typeof globalThis?globalThis.regeneratorRuntime=sr:Function("r","regeneratorRuntime = r")(sr)}},65686:function(Zo,sr,Dt){"use strict";function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Ie(e,a,t){return(Ie="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(l,c,h){var _=function(e,a){for(;!Object.prototype.hasOwnProperty.call(e,a)&&null!==(e=Oe(e)););return e}(l,c);if(_){var C=Object.getOwnPropertyDescriptor(_,c);return C.get?C.get.call(h):C.value}})(e,a,t||e)}function ko(e,a){for(var t=0;te.length)&&(a=e.length);for(var t=0,n=new Array(a);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(k){throw k},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,c=!0,h=!1;return{s:function(){t=t.call(e)},n:function(){var k=t.next();return c=k.done,k},e:function(k){h=!0,_=k},f:function(){try{!c&&null!=t.return&&t.return()}finally{if(h)throw _}}}}function cr(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var h,_,n=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(h=t.next()).done)&&(n.push(h.value),!a||n.length!==a);l=!0);}catch(C){c=!0,_=C}finally{try{!l&&null!=t.return&&t.return()}finally{if(c)throw _}}return n}}(e,a)||ei(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pd(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function At(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qo(e,a,t){return(Qo=xr()?Reflect.construct:function(l,c,h){var _=[null];_.push.apply(_,c);var k=new(Function.bind.apply(l,_));return h&&_t(k,h.prototype),k}).apply(null,arguments)}function Nl(e){var a="function"==typeof Map?new Map:void 0;return(Nl=function(n){if(null===n||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==a){if(a.has(n))return a.get(n);a.set(n,l)}function l(){return Qo(n,arguments,Oe(this).constructor)}return l.prototype=Object.create(n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_t(l,n)})(e)}var Vu=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Xg(e){return null!==e&&"object"==typeof e}function nt(e){return"function"==typeof e}var $e=function(){function e(a){return Error.call(this),this.message=a?"".concat(a.length," errors occurred during unsubscription:\n").concat(a.map(function(t,n){return"".concat(n+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=a,this}return e.prototype=Object.create(Error.prototype),e}(),Ve=function(){var a,e=function(){function a(t){F(this,a),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return W(a,[{key:"unsubscribe",value:function(){var n;if(!this.closed){var l=this._parentOrParents,c=this._ctorUnsubscribe,h=this._unsubscribe,_=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,l instanceof a)l.remove(this);else if(null!==l)for(var C=0;C2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof a?function(n){return n.pipe(Xr(function(l,c){return yt(e(l,c)).pipe(Be(function(h,_){return a(l,h,c,_)}))},t))}:("number"==typeof a&&(t=a),function(n){return n.lift(new jP(e,t))})}var jP=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;F(this,e),this.project=a,this.concurrent=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new WP(t,this.project,this.concurrent))}}]),e}(),WP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return F(this,t),(c=a.call(this,n)).project=l,c.concurrent=h,c.hasCompleted=!1,c.buffer=[],c.active=0,c.index=0,c}return W(t,[{key:"_next",value:function(l){this.active0?this._next(l.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(at);function zu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Xr(Ob,e)}function ni(e,a){return a?_k(e,a):new gn(tt(e))}function ot(){for(var e=Number.POSITIVE_INFINITY,a=null,t=arguments.length,n=new Array(t),l=0;l1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof c&&(e=n.pop()),null===a&&1===n.length&&n[0]instanceof gn?n[0]:zu(e)(ni(n,a))}function $o(){return function(a){return a.lift(new Fb(a))}}var Fb=function(){function e(a){F(this,e),this.connectable=a}return W(e,[{key:"call",value:function(t,n){var l=this.connectable;l._refCount++;var c=new Nb(t,l),h=n.subscribe(c);return c.closed||(c.connection=l.connect()),h}}]),e}(),Nb=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._refCount;if(c<=0)this.connection=null;else if(l._refCount=c-1,c>1)this.connection=null;else{var h=this.connection,_=l._connection;this.connection=null,_&&(!h||_===h)&&_.unsubscribe()}}else this.connection=null}}]),t}(Ze),Oa=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).source=n,c.subjectFactory=l,c._refCount=0,c._isComplete=!1,c}return W(t,[{key:"_subscribe",value:function(l){return this.getSubject().subscribe(l)}},{key:"getSubject",value:function(){var l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var l=this._connection;return l||(this._isComplete=!1,(l=this._connection=new Ve).add(this.source.subscribe(new YP(this.getSubject(),this))),l.closed&&(this._connection=null,l=Ve.EMPTY)),l}},{key:"refCount",value:function(){return $o()(this)}}]),t}(gn),jc=function(){var e=Oa.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),YP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_error",value:function(l){this._unsubscribe(),Ie(Oe(t.prototype),"_error",this).call(this,l)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Ie(Oe(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._connection;l._refCount=0,l._subject=null,l._connection=null,c&&c.unsubscribe()}}}]),t}(zP);function Bb(){return new qe}function Ae(e){for(var a in e)if(e[a]===Ae)return a;throw Error("Could not find renamed property on target object.")}function Mo(e,a){for(var t in a)a.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=a[t])}function hn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(hn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var a=e.toString();if(null==a)return""+a;var t=a.indexOf("\n");return-1===t?a:a.substring(0,t)}function Rn(e,a){return null==e||""===e?null===a?"":a:null==a||""===a?e:e+" "+a}var XP=Ae({__forward_ref__:Ae});function Sn(e){return e.__forward_ref__=Sn,e.toString=function(){return hn(this())},e}function Et(e){return wH(e)?e():e}function wH(e){return"function"==typeof e&&e.hasOwnProperty(XP)&&e.__forward_ref__===Sn}var xp=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,function(e,a){var t=e?"NG0".concat(e,": "):"";return"".concat(t).concat(a)}(n,l))).code=n,c}return t}(Nl(Error));function nn(e){return"string"==typeof e?e:null==e?"":String(e)}function sa(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():nn(e)}function bk(e,a){var t=a?" in ".concat(a):"";throw new xp("201","No provider for ".concat(sa(e)," found").concat(t))}function Ja(e,a){null==e&&function(e,a,t,n){throw new Error("ASSERTION ERROR: ".concat(e)+(null==n?"":" [Expected=> ".concat(t," ").concat(n," ").concat(a," <=Actual]")))}(a,e,null,"!=")}function We(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yc(e){return KP(e,qc)||KP(e,wk)}function KP(e,a){return e.hasOwnProperty(a)?e[a]:null}function bd(e){return e&&(e.hasOwnProperty(Vs)||e.hasOwnProperty(Xc))?e[Vs]:null}var Cd,qc=Ae({"\u0275prov":Ae}),Vs=Ae({"\u0275inj":Ae}),wk=Ae({ngInjectableDef:Ae}),Xc=Ae({ngInjectorDef:Ae}),yn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function _i(){return Cd}function Ia(e){var a=Cd;return Cd=e,a}function Gu(e,a,t){var n=Yc(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&yn.Optional?null:void 0!==a?a:void bk(hn(e),"Injector")}function Zc(e){return{toString:e}.toString()}var Qg=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Hs=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Sk="undefined"!=typeof globalThis&&globalThis,QP="undefined"!=typeof window&&window,$P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kk="undefined"!=typeof global&&global,Kn=Sk||kk||QP||$P,Tp={},tr=[],Dp=Ae({"\u0275cmp":Ae}),Mk=Ae({"\u0275dir":Ae}),$g=Ae({"\u0275pipe":Ae}),Gb=Ae({"\u0275mod":Ae}),eO=Ae({"\u0275loc":Ae}),zs=Ae({"\u0275fac":Ae}),ca=Ae({__NG_ELEMENT_ID__:Ae}),MH=0;function ke(e){return Zc(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qg.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||tr,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Hs.Emulated,id:"c",styles:e.styles||tr,_:null,setInput:null,schemas:e.schemas||null,tView:null},l=e.directives,c=e.features,h=e.pipes;return n.id+=MH++,n.inputs=rO(e.inputs,t),n.outputs=rO(e.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(Vl)}:null,n.pipeDefs=h?function(){return("function"==typeof h?h():h).map(xk)}:null,n})}function Vl(e){return Ra(e)||function(e){return e[Mk]||null}(e)}function xk(e){return function(e){return e[$g]||null}(e)}var xH={};function bt(e){return Zc(function(){var a={type:e.type,bootstrap:e.bootstrap||tr,declarations:e.declarations||tr,imports:e.imports||tr,exports:e.exports||tr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(xH[e.id]=e.type),a})}function rO(e,a){if(null==e)return Tp;var t={};for(var n in e)if(e.hasOwnProperty(n)){var l=e[n],c=l;Array.isArray(l)&&(c=l[1],l=l[0]),t[l]=n,a&&(a[l]=c)}return t}var ve=ke;function Ui(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ra(e){return e[Dp]||null}function fa(e,a){var t=e[Gb]||null;if(!t&&!0===a)throw new Error("Type ".concat(hn(e)," does not have '\u0275mod' property."));return t}function Hl(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gs(e){return Array.isArray(e)&&!0===e[1]}function Td(e){return 0!=(8&e.flags)}function rm(e){return 2==(2&e.flags)}function to(e){return 1==(1&e.flags)}function js(e){return null!==e.template}function im(e){return 0!=(512&e[2])}function Ad(e,a){return e.hasOwnProperty(zs)?e[zs]:null}var Xb=function(){function e(a,t,n){F(this,e),this.previousValue=a,this.currentValue=t,this.firstChange=n}return W(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function an(){return fO}function fO(e){return e.type.prototype.ngOnChanges&&(e.setInput=OH),dO}function dO(){var e=Ak(this),a=null==e?void 0:e.current;if(a){var t=e.previous;if(t===Tp)e.previous=a;else for(var n in a)t[n]=a[n];e.current=null,this.ngOnChanges(a)}}function OH(e,a,t,n){var l=Ak(e)||function(e,a){return e[om]=a}(e,{previous:Tp,current:null}),c=l.current||(l.current={}),h=l.previous,_=this.declaredInputs[t],C=h[_];c[_]=new Xb(C&&C.currentValue,a,h===Tp),e[n]=a}an.ngInherit=!0;var om="__ngSimpleChanges__";function Ak(e){return e[om]||null}var hO="http://www.w3.org/2000/svg",Ed=void 0;function Pd(){return void 0!==Ed?Ed:"undefined"!=typeof document?document:void 0}function Kr(e){return!!e.listen}var pO={createRenderer:function(a,t){return Pd()}};function di(e){for(;Array.isArray(e);)e=e[0];return e}function sm(e,a){return di(a[e])}function Ao(e,a){return di(a[e.index])}function Rk(e,a){return e.data[a]}function Jc(e,a){return e[a]}function Eo(e,a){var t=a[e];return Hl(t)?t:t[0]}function Lk(e){return 4==(4&e[2])}function Fk(e){return 128==(128&e[2])}function Ul(e,a){return null==a?null:e[a]}function gO(e){e[18]=0}function Nk(e,a){e[5]+=a;for(var t=e,n=e[3];null!==n&&(1===a&&1===t[5]||-1===a&&0===t[5]);)n[5]+=a,t=n,n=n[3]}var Lt={lFrame:nf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vk(){return Lt.bindingsEnabled}function Re(){return Lt.lFrame.lView}function En(){return Lt.lFrame.tView}function pe(e){return Lt.lFrame.contextLView=e,e[8]}function bi(){for(var e=no();null!==e&&64===e.type;)e=e.parent;return e}function no(){return Lt.lFrame.currentTNode}function Po(e,a){var t=Lt.lFrame;t.currentTNode=e,t.isParent=a}function Jo(){return Lt.lFrame.isParent}function Oo(){Lt.lFrame.isParent=!1}function Gl(){return Lt.isInCheckNoChangesMode}function lm(e){Lt.isInCheckNoChangesMode=e}function ha(){var e=Lt.lFrame,a=e.bindingRootIndex;return-1===a&&(a=e.bindingRootIndex=e.tView.bindingStartIndex),a}function qs(){return Lt.lFrame.bindingIndex}function es(){return Lt.lFrame.bindingIndex++}function ro(e){var a=Lt.lFrame,t=a.bindingIndex;return a.bindingIndex=a.bindingIndex+e,t}function VH(e,a){var t=Lt.lFrame;t.bindingIndex=t.bindingRootIndex=e,Xs(a)}function Xs(e){Lt.lFrame.currentDirectiveIndex=e}function Hk(e){var a=Lt.lFrame.currentDirectiveIndex;return-1===a?null:e[a]}function Tt(){return Lt.lFrame.currentQueryIndex}function Rp(e){Lt.lFrame.currentQueryIndex=e}function Jb(e){var a=e[1];return 2===a.type?a.declTNode:1===a.type?e[6]:null}function ef(e,a,t){if(t&yn.SkipSelf){for(var n=a,l=e;!(null!==(n=n.parent)||t&yn.Host||null===(n=Jb(l))||(l=l[15],10&n.type)););if(null===n)return!1;a=n,e=l}var c=Lt.lFrame=tf();return c.currentTNode=a,c.lView=e,!0}function jl(e){var a=tf(),t=e[1];Lt.lFrame=a,a.currentTNode=t.firstChild,a.lView=e,a.tView=t,a.contextLView=e,a.bindingIndex=t.bindingStartIndex,a.inI18n=!1}function tf(){var e=Lt.lFrame,a=null===e?null:e.child;return null===a?nf(e):a}function nf(e){var a={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=a),a}function Lp(){var e=Lt.lFrame;return Lt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Fp=Lp;function e0(){var e=Lp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ft(e){return(Lt.lFrame.contextLView=function(e,a){for(;e>0;)a=a[15],e--;return a}(e,Lt.lFrame.contextLView))[8]}function ri(){return Lt.lFrame.selectedIndex}function Zs(e){Lt.lFrame.selectedIndex=e}function Hr(){var e=Lt.lFrame;return Rk(e.tView,e.selectedIndex)}function pa(){Lt.lFrame.currentNamespace=hO}function t0(){Lt.lFrame.currentNamespace=null}function rf(e,a){for(var t=a.directiveStart,n=a.directiveEnd;t=n)break}else a[C]<0&&(e[18]+=65536),(_>11>16&&(3&e[2])===a){e[2]+=2048;try{c.call(_)}finally{}}}else try{c.call(_)}finally{}}var Rd=function e(a,t,n){F(this,e),this.factory=a,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function dm(e,a,t){for(var n=Kr(e),l=0;la){h=c-1;break}}}for(;c>16}(e),n=a;t>0;)n=n[15],t--;return n}var Wk=!0;function Hp(e){var a=Wk;return Wk=e,a}var xO=0;function zp(e,a){var t=Yk(e,a);if(-1!==t)return t;var n=a[1];n.firstCreatePass&&(e.injectorIndex=a.length,a0(n.data,e),a0(a,null),a0(n.blueprint,null));var l=bn(e,a),c=e.injectorIndex;if(Vp(l))for(var h=ts(l),_=Bp(l,a),C=_[1].data,k=0;k<8;k++)a[c+k]=_[h+k]|C[h+k];return a[c+8]=l,c}function a0(e,a){e.push(0,0,0,0,0,0,0,0,a)}function Yk(e,a){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===a[e.injectorIndex+8]?-1:e.injectorIndex}function bn(e,a){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,l=a;null!==l;){var c=l[1],h=c.type;if(null===(n=2===h?c.declTNode:1===h?l[6]:null))return-1;if(t++,l=l[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function Fe(e,a,t){!function(e,a,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(ca)&&(n=t[ca]),null==n&&(n=t[ca]=xO++);var l=255&n;a.data[e+(l>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:yn.Default,l=arguments.length>4?arguments[4]:void 0;if(null!==e){var c=hm(t);if("function"==typeof c){if(!ef(a,e,n))return n&yn.Host?io(l,t,n):ns(a,t,n,l);try{var h=c(n);if(null!=h||n&yn.Optional)return h;bk(t)}finally{Fp()}}else if("number"==typeof c){var _=null,C=Yk(e,a),k=-1,D=n&yn.Host?a[16][6]:null;for((-1===C||n&yn.SkipSelf)&&(-1!==(k=-1===C?bn(e,a):a[C+8])&&ao(n,!1)?(_=a[1],C=ts(k),a=Bp(k,a)):C=-1);-1!==C;){var I=a[1];if(DO(c,C,I.data)){var L=GH(C,a,t,_,n,D);if(L!==o0)return L}-1!==(k=a[C+8])&&ao(n,a[1].data[C+8]===D)&&DO(c,C,a)?(_=I,C=ts(k),a=Bp(k,a)):C=-1}}}return ns(a,t,n,l)}var o0={};function TO(){return new Fd(bi(),Re())}function GH(e,a,t,n,l,c){var h=a[1],_=h.data[e+8],D=Up(_,h,t,null==n?rm(_)&&Wk:n!=h&&0!=(3&_.type),l&yn.Host&&c===_);return null!==D?Ld(a,h,D,_):o0}function Up(e,a,t,n,l){for(var c=e.providerIndexes,h=a.data,_=1048575&c,C=e.directiveStart,D=c>>20,L=l?_+D:e.directiveEnd,G=n?_:_+D;G=C&&Y.type===t)return G}if(l){var $=h[C];if($&&js($)&&$.type===t)return C}return null}function Ld(e,a,t,n){var l=e[t],c=a.data;if(function(e){return e instanceof Rd}(l)){var h=l;h.resolving&&function(e,a){throw new xp("200","Circular dependency in DI detected for ".concat(e).concat(""))}(sa(c[t]));var _=Hp(h.canSeeViewProviders);h.resolving=!0;var C=h.injectImpl?Ia(h.injectImpl):null;ef(e,n,yn.Default);try{l=e[t]=h.factory(void 0,c,e,n),a.firstCreatePass&&t>=n.directiveStart&&function(e,a,t){var n=a.type.prototype,c=n.ngOnInit,h=n.ngDoCheck;if(n.ngOnChanges){var _=fO(a);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,_),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,_)}c&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,c),h&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,h),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,h))}(t,c[t],a)}finally{null!==C&&Ia(C),Hp(_),h.resolving=!1,Fp()}}return l}function hm(e){if("string"==typeof e)return e.charCodeAt(0)||0;var a=e.hasOwnProperty(ca)?e[ca]:void 0;return"number"==typeof a?a>=0?255&a:TO:a}function DO(e,a,t){return!!(t[a+(e>>5)]&1<=e.length?e.push(t):e.splice(a,0,t)}function Vd(e,a){return a>=e.length-1?e.pop():e.splice(a,1)[0]}function is(e,a){for(var t=[],n=0;n=0?e[1|n]=t:function(e,a,t,n){var l=e.length;if(l==a)e.push(t,n);else if(1===l)e.push(n,e[0]),e[0]=t;else{for(l--,e.push(e[l-1],e[l]);l>a;)e[l]=e[l-2],l--;e[a]=t,e[a+1]=n}}(e,n=~n,a,t),n}function vm(e,a){var t=Bd(e,a);if(t>=0)return e[1|t]}function Bd(e,a){return function(e,a,t){for(var n=0,l=e.length>>t;l!==n;){var c=n+(l-n>>1),h=e[c<a?l=c:n=c+1}return~(l<1&&void 0!==arguments[1]?arguments[1]:yn.Default;if(void 0===zd)throw new Error("inject() must be called from an injection context");return null===zd?Gu(e,void 0,a):zd.get(e,a&yn.Optional?null:void 0,a)}function ce(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn.Default;return(_i()||g0)(Et(e),a)}var tM=ce;function uf(e){for(var a=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var l=hn(a);if(Array.isArray(a))l=a.map(hn).join(" -> ");else if("object"==typeof a){var c=[];for(var h in a)if(a.hasOwnProperty(h)){var _=a[h];c.push(h+":"+("string"==typeof _?JSON.stringify(_):hn(_)))}l="{".concat(c.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(l,"]: ").concat(e.replace(ez,"\n "))}("\n"+e.message,l,t,n),e.ngTokenPath=l,e[Yu]=null,e}var jd,pr,jp=_m(sf("Inject",function(a){return{token:a}}),-1),oi=_m(sf("Optional"),8),Fo=_m(sf("SkipSelf"),4);function Gi(e){var a;return(null===(a=function(){if(void 0===jd&&(jd=null,Kn.trustedTypes))try{jd=Kn.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return jd}())||void 0===a?void 0:a.createHTML(e))||e}function C0(e){var a;return(null===(a=function(){if(void 0===pr&&(pr=null,Kn.trustedTypes))try{pr=Kn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return pr}())||void 0===a?void 0:a.createHTML(e))||e}var ff=function(){function e(a){F(this,e),this.changingThisBreaksApplicationSecurity=a}return W(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),lz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(ff),Li=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(ff),oM=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(ff),uz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(ff),LO=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(ff);function ji(e){return e instanceof ff?e.changingThisBreaksApplicationSecurity:e}function Ks(e,a){var t=FO(e);if(null!=t&&t!==a){if("ResourceURL"===t&&"URL"===a)return!0;throw new Error("Required a safe ".concat(a,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===a}function FO(e){return e instanceof ff&&e.getTypeName()||null}var w0=function(){function e(a){F(this,e),this.inertDocumentHelper=a}return W(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(Gi(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(l){return null}}}]),e}(),S0=function(){function e(a){if(F(this,e),this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return W(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Gi(t),n;var l=this.inertDocument.createElement("body");return l.innerHTML=Gi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(l),l}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,l=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();Yd.hasOwnProperty(n)&&!df.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(M0(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),cM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,km=/([^\#-~ |!])/g;function M0(e){return e.replace(/&/g,"&").replace(cM,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(km,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}function HO(e,a){var t=null;try{Mm=Mm||function(e){var a=new S0(e);return function(){try{return!!(new window.DOMParser).parseFromString(Gi(""),"text/html")}catch(e){return!1}}()?new w0(a):a}(e);var n=a?String(a):"";t=Mm.getInertBodyElement(n);var l=5,c=n;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,n=c,c=t.innerHTML,t=Mm.getInertBodyElement(n)}while(n!==c);return Gi((new vf).sanitizeChildren($s(t)||t))}finally{if(t)for(var C=$s(t)||t;C.firstChild;)C.removeChild(C.firstChild)}}function $s(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ss=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Si(e){var a=ga();return a?C0(a.sanitize(ss.HTML,e)||""):Ks(e,"HTML")?C0(ji(e)):HO(Pd(),nn(e))}function Gt(e){var a=ga();return a?a.sanitize(ss.URL,e)||"":Ks(e,"URL")?ji(e):Sm(nn(e))}function ga(){var e=Re();return e&&e[12]}var GO="__ngContext__";function Wi(e,a){e[GO]=a}function dM(e){var a=function(e){return e[GO]||null}(e);return a?Array.isArray(a)?a:a.lView:null}function Dm(e){return e.ngOriginalError}function yz(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;n0&&(e[t-1][4]=n[4]);var c=Vd(e,10+a);!function(e,a){Jp(e,a,a[11],2,null,null),a[0]=null,a[6]=null}(n[1],n);var h=c[19];null!==h&&h.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function rI(e,a){if(!(256&a[2])){var t=a[11];Kr(t)&&t.destroyNode&&Jp(e,a,t,3,null,null),function(e){var a=e[13];if(!a)return yM(e[1],e);for(;a;){var t=null;if(Hl(a))t=a[13];else{var n=a[10];n&&(t=n)}if(!t){for(;a&&!a[4]&&a!==e;)Hl(a)&&yM(a[1],a),a=a[3];null===a&&(a=e),Hl(a)&&yM(a[1],a),t=a&&a[4]}a=t}}(a)}}function yM(e,a){if(!(256&a[2])){a[2]&=-129,a[2]|=256,function(e,a){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[l=k]():n[l=-k].unsubscribe(),c+=2}else{var D=n[l=t[c+1]];t[c].call(D)}if(null!==n){for(var I=l+1;Ic?"":l[I+1].toLowerCase();var G=8&n?L:null;if(G&&-1!==th(G,k,0)||2&n&&k!==L){if(fs(n))return!1;h=!0}}}}else{if(!h&&!fs(n)&&!fs(C))return!1;if(h&&fs(C))continue;h=!1,n=C|1&n}}return fs(n)||h}function fs(e){return 0==(1&e)}function B0(e,a,t,n){if(null===a)return-1;var l=0;if(n||!t){for(var c=!1;l-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+_+'"':"")+"]"}else 8&n?l+="."+h:4&n&&(l+=" "+h);else""!==l&&!fs(h)&&(a+=AM(c,l),l=""),n=h,c=c||!fs(n);t++}return""!==l&&(a+=AM(c,l)),a}var jt={};function H(e){z0(En(),Re(),ri()+e,Gl())}function z0(e,a,t,n){if(!n)if(3==(3&a[2])){var c=e.preOrderCheckHooks;null!==c&&Wu(a,c,t)}else{var h=e.preOrderHooks;null!==h&&Id(a,h,0,t)}Zs(t)}function Mi(e,a){return e<<17|a<<2}function lr(e){return e>>17&32767}function EM(e){return 2|e}function Qu(e){return(131068&e)>>2}function G0(e,a){return-131069&e|a<<2}function j0(e){return 1|e}function K0(e,a){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&z0(e,a,20,Gl()),t(n,l)}finally{Zs(c)}}function ah(e,a,t){if(Td(a))for(var l=a.directiveEnd,c=a.directiveStart;c2&&void 0!==arguments[2]?arguments[2]:Ao,n=a.localNames;if(null!==n)for(var l=a.index+1,c=0;c0;){var t=e[--a];if("number"==typeof t&&t<0)return t}return 0})(_)!=C&&_.push(C),_.push(n,l,h)}}function wf(e,a){null!==e.hostBindings&&e.hostBindings(1,a)}function Ym(e,a){a.flags|=2,(e.components||(e.components=[])).push(a.index)}function uh(e,a,t){if(t){if(a.exportAs)for(var n=0;n0&&WM(t)}}function WM(e){for(var a=Jd(e);null!==a;a=Kp(a))for(var t=10;t0&&WM(n)}var h=e[1].components;if(null!==h)for(var _=0;_0&&WM(C)}}function ov(e,a){var t=Eo(a,e),n=t[1];(function(e,a){for(var t=a.length;t1&&void 0!==arguments[1]?arguments[1]:mm;if(n===mm){var l=new Error("NullInjectorError: No provider for ".concat(hn(t),"!"));throw l.name="NullInjectorError",l}return n}}]),e}(),qm=new Ee("Set Injector scope."),Xm={},DI={},ZM=void 0;function aC(){return void 0===ZM&&(ZM=new iC),ZM}function AI(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new EI(e,t,a||aC(),n)}var EI=function(){function e(a,t,n){var l=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;F(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var h=[];t&&va(t,function(C){return l.processProvider(C,a,t)}),va([a],function(C){return l.processInjectorType(C,[],h)}),this.records.set(uv,fh(void 0,this));var _=this.records.get(qm);this.scope=null!=_?_.value:null,this.source=c||("object"==typeof a?null:hn(a))}return W(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;this.assertNotDestroyed();var c=v0(this),h=Ia(void 0);try{if(!(l&yn.SkipSelf)){var _=this.records.get(t);if(void 0===_){var C=Wz(t)&&Yc(t);_=C&&this.injectableDefInScope(C)?fh(QM(t),Xm):null,this.records.set(t,_)}if(null!=_)return this.hydrate(t,_)}var k=l&yn.Self?aC():this.parent;return k.get(t,n=l&yn.Optional&&n===mm?null:n)}catch(I){if("NullInjectorError"===I.name){var D=I[Yu]=I[Yu]||[];if(D.unshift(hn(t)),c)throw I;return rz(I,t,"R3InjectorError",this.source)}throw I}finally{Ia(h),v0(c)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(l,c){return t.push(hn(c))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,n,l){var c=this;if(!(t=Et(t)))return!1;var h=bd(t),_=null==h&&t.ngModule||void 0,C=void 0===_?t:_,I=-1!==l.indexOf(C);if(void 0!==_&&(h=bd(_)),null==h)return!1;if(null!=h.imports&&!I){var L;l.push(C);try{va(h.imports,function(se){c.processInjectorType(se,n,l)&&(void 0===L&&(L=[]),L.push(se))})}finally{}if(void 0!==L)for(var G=function(be){var Ce=L[be],je=Ce.ngModule,Qe=Ce.providers;va(Qe,function(kt){return c.processProvider(kt,je,Qe||tr)})},Y=0;Y0){var t=is(a,"?");throw new Error("Can't resolve all parameters for ".concat(hn(e),": (").concat(t.join(", "),")."))}var n=function(e){var a=e&&(e[qc]||e[wk]);if(a){var t=function(e){if(e.hasOwnProperty("name"))return e.name;var a=(""+e).match(/^function\s*([^\s(]+)/);return null===a?"":a[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),a}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function $M(e,a,t){var n=void 0;if(dh(e)){var l=Et(e);return Ad(l)||QM(l)}if(PI(e))n=function(){return Et(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,At(uf(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))n=function(){return ce(Et(e.useExisting))};else{var c=Et(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ad(c)||QM(c);n=function(){return Qo(c,At(uf(e.deps)))}}return n}function fh(e,a){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:a,multi:t?[]:void 0}}function PI(e){return null!==e&&"object"==typeof e&&Jk in e}function dh(e){return"function"==typeof e}function Wz(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ee}var JM=function(e,a,t){return function(e){var l=AI(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return l._resolveInjectorDefTypes(),l}({name:t},a,e,t)},kn=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"create",value:function(n,l){return Array.isArray(n)?JM(n,l,""):JM(n.providers,n.parent,n.name||"")}}]),a}();return e.THROW_IF_NOT_FOUND=mm,e.NULL=new iC,e.\u0275prov=We({token:e,providedIn:"any",factory:function(){return ce(uv)}}),e.__NG_ELEMENT_ID__=-1,e}();function o4(e,a){rf(dM(e)[1],bi())}function Pe(e){for(var a=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];a;){var l=void 0;if(js(e))l=a.\u0275cmp||a.\u0275dir;else{if(a.\u0275cmp)throw new Error("Directives cannot inherit Components");l=a.\u0275dir}if(l){if(t){n.push(l);var c=e;c.inputs=cC(e.inputs),c.declaredInputs=cC(e.declaredInputs),c.outputs=cC(e.outputs);var h=l.hostBindings;h&&gh(e,h);var _=l.viewQuery,C=l.contentQueries;if(_&&GI(e,_),C&&vh(e,C),Mo(e.inputs,l.inputs),Mo(e.declaredInputs,l.declaredInputs),Mo(e.outputs,l.outputs),js(l)&&l.data.animation){var k=e.data;k.animation=(k.animation||[]).concat(l.data.animation)}}var D=l.features;if(D)for(var I=0;I=0;n--){var l=e[n];l.hostVars=a+=l.hostVars,l.hostAttrs=ct(l.hostAttrs,t=ct(t,l.hostAttrs))}}(n)}function cC(e){return e===Tp?{}:e===tr?[]:e}function GI(e,a){var t=e.viewQuery;e.viewQuery=t?function(n,l){a(n,l),t(n,l)}:a}function vh(e,a){var t=e.contentQueries;e.contentQueries=t?function(n,l,c){a(n,l,c),t(n,l,c)}:a}function gh(e,a){var t=e.hostBindings;e.hostBindings=t?function(n,l){a(n,l),t(n,l)}:a}var $m=null;function _h(){if(!$m){var e=Kn.Symbol;if(e&&e.iterator)$m=e.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:yn.Default,t=Re();if(null===t)return ce(e,a);var n=bi();return qk(n,t,Et(e),a)}function U(e,a,t){var n=Re();return Ni(n,es(),a)&&Na(En(),Hr(),n,e,a,n[11],t,!1),U}function vx(e,a,t,n,l){var h=l?"class":"style";TI(e,t,a.inputs[h],h,n)}function A(e,a,t,n){var l=Re(),c=En(),h=20+e,_=l[11],C=l[h]=O0(_,a,Lt.lFrame.currentNamespace),k=c.firstCreatePass?function(e,a,t,n,l,c,h){var _=a.consts,k=nv(a,e,2,l,Ul(_,c));return Wm(a,t,k,Ul(_,h)),null!==k.attrs&&lv(k,k.attrs,!1),null!==k.mergedAttrs&&lv(k,k.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,k),k}(h,c,l,0,a,t,n):c.data[h];Po(k,!0);var D=k.mergedAttrs;null!==D&&dm(_,C,D);var I=k.classes;null!==I&&ki(_,C,I);var L=k.styles;null!==L&&sI(_,C,L),64!=(64&k.flags)&&$p(c,l,C,k),0===Lt.lFrame.elementDepthCount&&Wi(C,l),Lt.lFrame.elementDepthCount++,to(k)&&(rv(c,l,k),ah(c,k,l)),null!==n&&oh(l,k)}function E(){var e=bi();Jo()?Oo():Po(e=e.parent,!1);var a=e;Lt.lFrame.elementDepthCount--;var t=En();t.firstCreatePass&&(rf(t,e),Td(e)&&t.queries.elementEnd(e)),null!=a.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(a)&&vx(t,a,Re(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(a)&&vx(t,a,Re(),a.stylesWithoutHost,!1)}function me(e,a,t,n){A(e,a,t,n),E()}function vt(e,a,t){var n=Re(),l=En(),c=e+20,h=l.firstCreatePass?function(e,a,t,n,l){var c=a.consts,h=Ul(c,n),_=nv(a,e,8,"ng-container",h);return null!==h&&lv(_,h,!0),Wm(a,t,_,Ul(c,l)),null!==a.queries&&a.queries.elementStart(a,_),_}(c,l,n,a,t):l.data[c];Po(h,!0);var _=n[c]=n[11].createComment("");$p(l,n,_,h),Wi(_,n),to(h)&&(rv(l,n,h),ah(l,h,n)),null!=t&&oh(n,h)}function xn(){var e=bi(),a=En();Jo()?Oo():Po(e=e.parent,!1),a.firstCreatePass&&(rf(a,e),Td(e)&&a.queries.elementEnd(e))}function un(e,a,t){vt(e,a,t),xn()}function De(){return Re()}function vv(e){return!!e&&"function"==typeof e.then}function dR(e){return!!e&&"function"==typeof e.subscribe}var gv=dR;function ne(e,a,t,n){var l=Re(),c=En(),h=bi();return hR(c,l,l[11],h,e,a,!!t,n),ne}function mv(e,a){var t=bi(),n=Re(),l=En();return hR(l,n,Fi(Hk(l.data),t,n),t,e,a,!1),mv}function hR(e,a,t,n,l,c,h,_){var C=to(n),D=e.firstCreatePass&&ch(e),I=a[8],L=tl(a),G=!0;if(3&n.type||_){var Y=Ao(n,a),$=_?_(Y):Y,ie=L.length,fe=_?function(Fu){return _(di(Fu[n.index]))}:n.index;if(Kr(t)){var se=null;if(!_&&C&&(se=function(e,a,t,n){var l=e.cleanup;if(null!=l)for(var c=0;cC?_[C]:null}"string"==typeof h&&(c+=2)}return null}(e,a,l,n.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=c,se.__ngLastListenerFn__=c,G=!1;else{c=Vn(n,a,I,c,!1);var Ce=t.listen($,l,c);L.push(c,Ce),D&&D.push(l,fe,ie,ie+1)}}else c=Vn(n,a,I,c,!0),$.addEventListener(l,c,h),L.push(c),D&&D.push(l,fe,ie,h)}else c=Vn(n,a,I,c,!1);var Qe,je=n.outputs;if(G&&null!==je&&(Qe=je[l])){var kt=Qe.length;if(kt)for(var Dn=0;Dn0&&void 0!==arguments[0]?arguments[0]:1;return Ft(e)}function vR(e,a){for(var t=null,n=function(e){var a=e.attrs;if(null!=a){var t=a.indexOf(5);if(0==(1&t))return a[t+1]}return null}(e),l=0;l1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Re(),l=En(),c=nv(l,20+e,16,null,t||null);null===c.projection&&(c.projection=a),Oo(),64!=(64&c.flags)&&Dz(l,n,c)}function il(e,a,t){return mx(e,"",a,"",t),il}function mx(e,a,t,n,l){var c=Re(),h=su(c,a,t,n);return h!==jt&&Na(En(),Hr(),c,e,h,c[11],l,!1),mx}function i_(e,a,t,n,l){for(var c=e[t+1],h=null===a,_=n?lr(c):Qu(c),C=!1;0!==_&&(!1===C||h);){var D=e[_+1];vC(e[_],a)&&(C=!0,e[_+1]=n?j0(D):EM(D)),_=n?lr(D):Qu(D)}C&&(e[t+1]=n?EM(c):j0(c))}function vC(e,a){return null===e||null==a||(Array.isArray(e)?e[1]:e)===a||!(!Array.isArray(e)||"string"!=typeof a)&&Bd(e,a)>=0}var xi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bR(e){return e.substring(xi.key,xi.keyEnd)}function CR(e,a){var t=xi.textEnd;return t===a?-1:(a=xi.keyEnd=function(e,a,t){for(;a32;)a++;return a}(e,xi.key=a,t),yv(e,a,t))}function yv(e,a,t){for(;a=0;t=CR(a,t))Lo(e,bR(a),!0)}function uo(e,a,t,n){var l=Re(),c=En(),h=ro(2);c.firstUpdatePass&&xR(c,e,h,n),a!==jt&&Ni(l,h,a)&&xh(c,c.data[ri()],l,l[11],e,l[h+1]=function(e,a){return null==e||("string"==typeof a?e+=a:"object"==typeof e&&(e=hn(ji(e)))),e}(a,t),n,h)}function Mx(e,a){return a>=e.expandoStartIndex}function xR(e,a,t,n){var l=e.data;if(null===l[t+1]){var c=l[ri()],h=Mx(e,t);Tx(c,n)&&null===a&&!h&&(a=!1),a=function(e,a,t,n){var l=Hk(e),c=n?a.residualClasses:a.residualStyles;if(null===l)0===(n?a.classBindings:a.styleBindings)&&(t=bv(t=kh(null,e,a,t,n),a.attrs,n),c=null);else{var _=a.directiveStylingLast;if(-1===_||e[_]!==l)if(t=kh(l,e,a,t,n),null===c){var k=function(e,a,t){var n=t?a.classBindings:a.styleBindings;if(0!==Qu(n))return e[lr(n)]}(e,a,n);void 0!==k&&Array.isArray(k)&&function(e,a,t,n){e[lr(t?a.classBindings:a.styleBindings)]=n}(e,a,n,k=bv(k=kh(null,e,a,k[1],n),a.attrs,n))}else c=function(e,a,t){for(var n=void 0,l=a.directiveEnd,c=1+a.directiveStylingLast;c0)&&(k=!0):D=t,l)if(0!==C){var G=lr(e[_+1]);e[n+1]=Mi(G,_),0!==G&&(e[G+1]=G0(e[G+1],n)),e[_+1]=function(e,a){return 131071&e|a<<17}(e[_+1],n)}else e[n+1]=Mi(_,0),0!==_&&(e[_+1]=G0(e[_+1],n)),_=n;else e[n+1]=Mi(C,0),0===_?_=n:e[C+1]=G0(e[C+1],n),C=n;k&&(e[n+1]=EM(e[n+1])),i_(e,D,n,!0),i_(e,D,n,!1),function(e,a,t,n,l){var c=l?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof a&&Bd(c,a)>=0&&(t[n+1]=j0(t[n+1]))}(a,D,e,n,c),h=Mi(_,C),c?a.classBindings=h:a.styleBindings=h}(l,c,a,t,h,n)}}function kh(e,a,t,n,l){var c=null,h=t.directiveEnd,_=t.directiveStylingLast;for(-1===_?_=t.directiveStart:_++;_0;){var C=e[l],k=Array.isArray(C),D=k?C[1]:C,I=null===D,L=t[l+1];L===jt&&(L=I?tr:void 0);var G=I?vm(L,n):D===n?L:void 0;if(k&&!gC(G)&&(G=vm(C,n)),gC(G)&&(_=G,h))return _;var Y=e[l+1];l=h?lr(Y):Qu(Y)}if(null!==a){var $=c?a.residualClasses:a.residualStyles;null!=$&&(_=vm($,n))}return _}function gC(e){return void 0!==e}function Tx(e,a){return 0!=(e.flags&(a?16:32))}function K(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Re(),n=En(),l=e+20,c=n.firstCreatePass?nv(n,l,1,a,null):n.data[l],h=t[l]=P0(t[11],a);$p(n,t,h,c),Po(c,!1)}function Pn(e){return ze("",e,""),Pn}function ze(e,a,t){var n=Re(),l=su(n,e,a,t);return l!==jt&&au(n,ri(),l),ze}function Cv(e,a,t,n,l){var c=Re(),h=function(e,a,t,n,l,c){var _=zo(e,qs(),t,l);return ro(2),_?a+nn(t)+n+nn(l)+c:jt}(c,e,a,t,n,l);return h!==jt&&au(c,ri(),h),Cv}function Ex(e,a,t){!function(e,a,t,n){var l=En(),c=ro(2);l.firstUpdatePass&&xR(l,null,c,n);var h=Re();if(t!==jt&&Ni(h,c,t)){var _=l.data[ri()];if(Tx(_,n)&&!Mx(l,c)){var k=n?_.classesWithoutHost:_.stylesWithoutHost;null!==k&&(t=Rn(k,t||"")),vx(l,_,h,t,n)}else!function(e,a,t,n,l,c,h,_){l===jt&&(l=tr);for(var C=0,k=0,D=0>20;if(dh(e)||!e.multi){var Y=new Rd(k,l,N),$=$x(C,a,l?I:I+G,L);-1===$?(Fe(zp(D,_),h,C),IC(h,e,a.length),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Y),_.push(Y)):(t[$]=Y,_[$]=Y)}else{var ie=$x(C,a,I+G,L),fe=$x(C,a,I,I+G),be=fe>=0&&t[fe];if(l&&!be||!l&&!(ie>=0&&t[ie])){Fe(zp(D,_),h,C);var Ce=function(e,a,t,n,l){var c=new Rd(e,t,N);return c.multi=[],c.index=a,c.componentProviders=0,Qx(c,l,n&&!t),c}(l?p8:n2,t.length,l,n,k);!l&&be&&(t[fe].providerFactory=Ce),IC(h,e,a.length,0),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Ce),_.push(Ce)}else IC(h,e,ie>-1?ie:fe,Qx(t[l?fe:ie],k,!l&&n));!l&&n&&be&&t[fe].componentProviders++}}}function IC(e,a,t,n){var l=dh(a);if(l||function(e){return!!e.useClass}(a)){var h=(a.useClass||a).prototype.ngOnDestroy;if(h){var _=e.destroyHooks||(e.destroyHooks=[]);if(!l&&a.multi){var C=_.indexOf(t);-1===C?_.push(t,[n,h]):_[C+1].push(n,h)}else _.push(t,h)}}}function Qx(e,a,t){return t&&e.componentProviders++,e.multi.push(a)-1}function $x(e,a,t,n){for(var l=t;l1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,l){return t2(n,l?l(e):e,a)}}}var a2=function e(){F(this,e)},eT=function e(){F(this,e)},tT=function(){function e(){F(this,e)}return W(e,[{key:"resolveComponentFactory",value:function(t){throw function(e){var a=Error("No component factory found for ".concat(hn(e),". Did you add it to @NgModule.entryComponents?"));return a.ngComponent=e,a}(t)}}]),e}(),Zi=function(){var e=function a(){F(this,a)};return e.NULL=new tT,e}();function __(){}function lu(e,a){return new Ue(Ao(e,a))}var m8=function(){return lu(bi(),Re())},Ue=function(){var e=function a(t){F(this,a),this.nativeElement=t};return e.__NG_ELEMENT_ID__=m8,e}();function rT(e){return e instanceof Ue?e.nativeElement:e}var Ff=function e(){F(this,e)},fl=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=function(){return FC()},e}(),FC=function(){var e=Re(),t=Eo(bi().index,e);return function(e){return e[11]}(Hl(t)?t:e)},NC=function(){var e=function a(){F(this,a)};return e.\u0275prov=We({token:e,providedIn:"root",factory:function(){return null}}),e}(),tc=function e(a){F(this,e),this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")},u2=new tc("12.2.4"),Uo=function(){function e(){F(this,e)}return W(e,[{key:"supports",value:function(t){return fv(t)}},{key:"create",value:function(t){return new b8(t)}}]),e}(),c2=function(a,t){return t},b8=function(){function e(a){F(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||c2}return W(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,l=this._removalsHead,c=0,h=null;n||l;){var _=!l||n&&n.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==t;){var c=a[t.index];if(null!==c&&n.push(di(c)),Gs(c))for(var h=10;h-1&&(nI(t,l),Vd(n,l))}this._attachedToViewContainer=!1}rI(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){HM(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){nC(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){rC(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,a,t){lm(!0);try{rC(e,a,t)}finally{lm(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,a){Jp(e,a,a[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),e}(),m2=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n))._view=n,l}return W(t,[{key:"detectChanges",value:function(){Ho(this._view)}},{key:"checkNoChanges",value:function(){!function(e){lm(!0);try{Ho(e)}finally{lm(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(b_),_2=function(e){return function(e,a,t){if(rm(e)&&!t){var n=Eo(e.index,a);return new b_(n,n)}return 47&e.type?new b_(a[16],a):null}(bi(),Re(),16==(16&e))},Vt=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=_2,e}(),M8=[new y_],T8=new ys([new Uo]),D8=new Eh(M8),aT=function(){return BC(bi(),Re())},Xn=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=aT,e}(),Ih=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._declarationLView=n,h._declarationTContainer=l,h.elementRef=c,h}return W(t,[{key:"createEmbeddedView",value:function(l){var c=this._declarationTContainer.tViews,h=ru(this._declarationLView,c,l,16,null,c.declTNode,null,null,null,null);h[17]=this._declarationLView[this._declarationTContainer.index];var C=this._declarationLView[19];return null!==C&&(h[19]=C.createEmbeddedView(c)),Um(c,h,l),new b_(h)}}]),t}(Xn);function BC(e,a){return 4&e.type?new Ih(a,e,lu(e,a)):null}var nc=function e(){F(this,e)},C2=function e(){F(this,e)},E8=function(){return uu(bi(),Re())},Qn=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=E8,e}(),w2=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._lContainer=n,h._hostTNode=l,h._hostLView=c,h}return W(t,[{key:"element",get:function(){return lu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Fd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var l=bn(this._hostTNode,this._hostLView);if(Vp(l)){var c=Bp(l,this._hostLView),h=ts(l);return new Fd(c[1].data[h+8],c)}return new Fd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(l){var c=S2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,h){var _=l.createEmbeddedView(c||{});return this.insert(_,h),_}},{key:"createComponent",value:function(l,c,h,_,C){var k=h||this.parentInjector;if(!C&&null==l.ngModule&&k){var D=k.get(nc,null);D&&(C=D)}var I=l.create(k,_,void 0,C);return this.insert(I.hostView,c),I}},{key:"insert",value:function(l,c){var h=l._lView,_=h[1];if(function(e){return Gs(e[3])}(h)){var C=this.indexOf(l);if(-1!==C)this.detach(C);else{var k=h[3],D=new w2(k,k[6],k[3]);D.detach(D.indexOf(l))}}var I=this._adjustIndex(c),L=this._lContainer;!function(e,a,t,n){var l=10+n,c=t.length;n>0&&(t[l-1][4]=a),n1&&void 0!==arguments[1]?arguments[1]:0;return null==l?this.length+c:l}}]),t}(Qn);function S2(e){return e[8]}function Rh(e){return e[8]||(e[8]=[])}function uu(e,a){var t,n=a[e.index];if(Gs(n))t=n;else{var l;if(8&e.type)l=di(n);else{var c=a[11];l=c.createComment("");var h=Ao(e,a);bf(c,Lm(c,h),l,function(e,a){return Kr(e)?e.nextSibling(a):a.nextSibling}(c,h),!1)}a[e.index]=t=iv(n,a,l,e),qt(a,t)}return new w2(t,e,a)}var Vh={},wT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).ngModule=n,l}return W(t,[{key:"resolveComponentFactory",value:function(l){var c=Ra(l);return new Rv(c,this.ngModule)}}]),t}(Zi);function X2(e){var a=[];for(var t in e)e.hasOwnProperty(t)&&a.push({propName:e[t],templateName:t});return a}var Z2=new Ee("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return gM}}),Rv=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).componentDef=n,c.ngModule=l,c.componentType=n.type,c.selector=function(e){return e.map(Fm).join(",")}(n.selectors),c.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],c.isBoundToModule=!!l,c}return W(t,[{key:"inputs",get:function(){return X2(this.componentDef.inputs)}},{key:"outputs",get:function(){return X2(this.componentDef.outputs)}},{key:"create",value:function(l,c,h,_){var se,be,C=(_=_||this.ngModule)?function(e,a){return{get:function(n,l,c){var h=e.get(n,Vh,c);return h!==Vh||l===Vh?h:a.get(n,l,c)}}}(l,_.injector):l,k=C.get(Ff,pO),D=C.get(NC,null),I=k.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",G=h?function(e,a,t){if(Kr(e))return e.selectRootElement(a,t===Hs.ShadowDom);var l="string"==typeof a?e.querySelector(a):a;return l.textContent="",l}(I,h,this.componentDef.encapsulation):O0(k.createRenderer(null,this.componentDef),L,function(e){var a=e.toLowerCase();return"svg"===a?hO:"math"===a?"http://www.w3.org/1998/MathML/":null}(L)),Y=this.componentDef.onPush?576:528,$=function(e,a){return{components:[],scheduler:e||gM,clean:xI,playerHandler:a||null,flags:0}}(),ie=sh(0,null,null,1,0,null,null,null,null,null),fe=ru(null,ie,$,Y,null,null,k,I,D,C);jl(fe);try{var Ce=function(e,a,t,n,l,c){var h=t[1];t[20]=e;var C=nv(h,20,2,"#host",null),k=C.mergedAttrs=a.hostAttrs;null!==k&&(lv(C,k,!0),null!==e&&(dm(l,e,k),null!==C.classes&&ki(l,e,C.classes),null!==C.styles&&sI(l,e,C.styles)));var D=n.createRenderer(e,a),I=ru(t,Gm(a),null,a.onPush?64:16,t[20],C,n,D,c||null,null);return h.firstCreatePass&&(Fe(zp(C,t),h,a.type),Ym(h,C),eC(C,t.length,1)),qt(t,I),t[20]=I}(G,this.componentDef,fe,k,I);if(G)if(h)dm(I,G,["ng-version",u2.full]);else{var je=function(e){for(var a=[],t=[],n=1,l=2;n0&&ki(I,G,kt.join(" "))}if(be=Rk(ie,20),void 0!==c)for(var Dn=be.projection=[],Zn=0;Zn1&&void 0!==arguments[1]?arguments[1]:kn.THROW_IF_NOT_FOUND,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;return l===kn||l===nc||l===uv?this:this._r3Injector.get(l,c,h)}},{key:"destroy",value:function(){var l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(function(c){return c()}),this.destroyCbs=null}},{key:"onDestroy",value:function(l){this.destroyCbs.push(l)}}]),t}(nc),kT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).moduleType=n,null!==fa(n)&&function(e){var a=new Set;!function t(n){var l=fa(n,!0),c=l.id;null!==c&&(function(e,a,t){if(a&&a!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(hn(a)," vs ").concat(hn(a.name)))}(c,Lv.get(c),n),Lv.set(c,n));var k,C=tn(cs(l.imports));try{for(C.s();!(k=C.n()).done;){var D=k.value;a.has(D)||(a.add(D),t(D))}}catch(I){C.e(I)}finally{C.f()}}(e)}(n),l}return W(t,[{key:"create",value:function(l){return new $8(this.moduleType,l)}}]),t}(C2);function rw(e,a,t){var n=ha()+e,l=Re();return l[n]===jt?ou(l,n,t?a.call(t):a()):function(e,a){return e[a]}(l,n)}function vl(e,a,t,n){return eL(Re(),ha(),e,a,t,n)}function zf(e,a,t,n,l){return gl(Re(),ha(),e,a,t,n,l)}function O_(e,a){var t=e[a];return t===jt?void 0:t}function eL(e,a,t,n,l,c){var h=a+t;return Ni(e,h,l)?ou(e,h+1,c?n.call(c,l):n(l)):O_(e,h+1)}function gl(e,a,t,n,l,c,h){var _=a+t;return zo(e,_,l,c)?ou(e,_+2,h?n.call(h,l,c):n(l,c)):O_(e,_+2)}function Uf(e,a){var n,t=En(),l=e+20;t.firstCreatePass?(n=function(e,a){if(a)for(var t=a.length-1;t>=0;t--){var n=a[t];if(e===n.name)return n}throw new xp("302","The pipe '".concat(e,"' could not be found!"))}(a,t.pipeRegistry),t.data[l]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(l,n.onDestroy)):n=t.data[l];var c=n.factory||(n.factory=Ad(n.type)),h=Ia(N);try{var _=Hp(!1),C=c();return Hp(_),function(e,a,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),a[t]=n}(t,Re(),l,C),C}finally{Ia(h)}}function Gf(e,a,t){var n=e+20,l=Re(),c=Jc(l,n);return jf(l,I_(l,n)?eL(l,ha(),a,c.transform,t,c):c.transform(t))}function iw(e,a,t,n){var l=e+20,c=Re(),h=Jc(c,l);return jf(c,I_(c,l)?gl(c,ha(),a,h.transform,t,n,h):h.transform(t,n))}function I_(e,a){return e[1].data[a].pure}function jf(e,a){return xf.isWrapped(a)&&(a=xf.unwrap(a),e[qs()]=jt),a}function Nv(e){return function(a){setTimeout(e,void 0,a)}}var ye=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return F(this,t),(n=a.call(this)).__isAsync=l,n}return W(t,[{key:"emit",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,l)}},{key:"subscribe",value:function(l,c,h){var _,C,k,D=l,I=c||function(){return null},L=h;if(l&&"object"==typeof l){var G=l;D=null===(_=G.next)||void 0===_?void 0:_.bind(G),I=null===(C=G.error)||void 0===C?void 0:C.bind(G),L=null===(k=G.complete)||void 0===k?void 0:k.bind(G)}this.__isAsync&&(I=Nv(I),D&&(D=Nv(D)),L&&(L=Nv(L)));var Y=Ie(Oe(t.prototype),"subscribe",this).call(this,{next:D,error:I,complete:L});return l instanceof Ve&&l.add(Y),Y}}]),t}(qe);function TT(){return this._results[_h()]()}var Wo=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];F(this,e),this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=_h(),n=e.prototype;n[t]||(n[t]=TT)}return W(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ye)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var l=this;l.dirty=!1;var c=rs(t);(this._changesDetected=!function(e,a,t){if(e.length!==a.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var l=null!==t.contentQueries?t.contentQueries[0]:n.length,c=[],h=0;h2&&void 0!==arguments[2]?arguments[2]:null;F(this,e),this.predicate=a,this.flags=t,this.read=n},AT=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"elementStart",value:function(t,n){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:-1;F(this,e),this.metadata=a,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return W(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,l=t.parent;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var l=this.metadata.predicate;if(Array.isArray(l))for(var c=0;c0)n.push(h[_/2]);else{for(var k=c[_+1],D=a[-C],I=10;I0&&(_=setTimeout(function(){h._callbacks=h._callbacks.filter(function(C){return C.timeoutId!==_}),n(h._didWork,h.getPendingTasks())},l)),this._callbacks.push({doneCb:n,timeoutId:_,updateCb:c})}},{key:"whenStable",value:function(n,l,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,l,c),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,l,c){return[]}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),U_=function(){var e=function(){function a(){F(this,a),this._applications=new Map,_w.addToWindow(this)}return W(a,[{key:"registerApplication",value:function(n,l){this._applications.set(n,l)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return _w.findTestabilityInTree(this,n,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),_w=new(function(){function e(){F(this,e)}return W(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,l){return null}}]),e}()),XT=!0,ac=!1;function yw(){return ac=!0,XT}var ho,oc=function(e,a,t){var n=new kT(t);return Promise.resolve(n)},LL=new Ee("AllowMultipleToken"),Yv=function e(a,t){F(this,e),this.name=a,this.token=t};function FL(e){if(ho&&!ho.destroyed&&!ho.injector.get(LL,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ho=e.get($T);var a=e.get(HT,null);return a&&a.forEach(function(t){return t()}),ho}function NL(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(a),l=new Ee(n);return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=QT();if(!h||h.injector.get(LL,!1))if(e)e(t.concat(c).concat({provide:l,useValue:!0}));else{var _=t.concat(c).concat({provide:l,useValue:!0},{provide:qm,useValue:"platform"});FL(kn.create({providers:_,name:n}))}return WU(l)}}function WU(e){var a=QT();if(!a)throw new Error("No platform exists!");if(!a.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return a}function QT(){return ho&&!ho.destroyed?ho:null}var $T=function(){var e=function(){function a(t){F(this,a),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return W(a,[{key:"bootstrapModuleFactory",value:function(n,l){var c=this,k=function(e,a){return"noop"===e?new zU:("zone.js"===e?void 0:e)||new ft({enableLongStackTrace:yw(),shouldCoalesceEventChangeDetection:!!(null==a?void 0:a.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==a?void 0:a.ngZoneRunCoalescing)})}(l?l.ngZone:void 0,{ngZoneEventCoalescing:l&&l.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:l&&l.ngZoneRunCoalescing||!1}),D=[{provide:ft,useValue:k}];return k.run(function(){var I=kn.create({providers:D,parent:c.injector,name:n.moduleType.name}),L=n.create(I),G=L.injector.get(Qd,null);if(!G)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return k.runOutsideAngular(function(){var Y=k.onError.subscribe({next:function(ie){G.handleError(ie)}});L.onDestroy(function(){Cw(c._modules,L),Y.unsubscribe()})}),function(e,a,t){try{var n=((Y=L.injector.get(zh)).runInitializers(),Y.donePromise.then(function(){return SC(L.injector.get(vu,l_)||l_),c._moduleDoBootstrap(L),L}));return vv(n)?n.catch(function(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}):n}catch(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}var Y}(G,k)})}},{key:"bootstrapModule",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],h=JT({},c);return oc(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,h)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(sc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(c){return l.bootstrap(c)});else{if(!n.instance.ngDoBootstrap)throw new Error("The module ".concat(hn(n.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");n.instance.ngDoBootstrap(l)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(n){return n.destroy()}),this._destroyListeners.forEach(function(n){return n()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function JT(e,a){return Array.isArray(a)?a.reduce(JT,e):Object.assign(Object.assign({},e),a)}var sc=function(){var e=function(){function a(t,n,l,c,h){var _=this;F(this,a),this._zone=t,this._injector=n,this._exceptionHandler=l,this._componentFactoryResolver=c,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){_._zone.run(function(){_.tick()})}});var C=new gn(function(D){_._stable=_._zone.isStable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks,_._zone.runOutsideAngular(function(){D.next(_._stable),D.complete()})}),k=new gn(function(D){var I;_._zone.runOutsideAngular(function(){I=_._zone.onStable.subscribe(function(){ft.assertNotInAngularZone(),WT(function(){!_._stable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks&&(_._stable=!0,D.next(!0))})})});var L=_._zone.onUnstable.subscribe(function(){ft.assertInAngularZone(),_._stable&&(_._stable=!1,_._zone.runOutsideAngular(function(){D.next(!1)}))});return function(){I.unsubscribe(),L.unsubscribe()}});this.isStable=ot(C,k.pipe(function(e){return $o()(function(e,a){return function(n){var l;l="function"==typeof e?e:function(){return e};var c=Object.create(n,jc);return c.source=n,c.subjectFactory=l,c}}(Bb)(e))}))}return W(a,[{key:"bootstrap",value:function(n,l){var h,c=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");h=n instanceof eT?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(h.componentType);var _=function(e){return e.isBoundToModule}(h)?void 0:this._injector.get(nc),k=h.create(kn.NULL,[],l||h.selector,_),D=k.location.nativeElement,I=k.injector.get(qT,null),L=I&&k.injector.get(U_);return I&&L&&L.registerApplication(D,I),k.onDestroy(function(){c.detachView(k.hostView),Cw(c.components,k),L&&L.unregisterApplication(D)}),this._loadComponent(k),k}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var c,l=tn(this._views);try{for(l.s();!(c=l.n()).done;)c.value.detectChanges()}catch(D){l.e(D)}finally{l.f()}}catch(D){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(D)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var l=n;this._views.push(l),l.attachToAppRef(this)}},{key:"detachView",value:function(n){var l=n;Cw(this._views,l),l.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(dw,[]).concat(this._bootstrapListeners).forEach(function(c){return c(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(kn),ce(Qd),ce(Zi),ce(zh))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function Cw(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var qf=function e(){F(this,e)},KU=function e(){F(this,e)},QU={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},$U=function(){var e=function(){function a(t,n){F(this,a),this._compiler=t,this._config=n||QU}return W(a,[{key:"load",value:function(n){return this.loadAndCompile(n)}},{key:"loadAndCompile",value:function(n){var l=this,h=cr(n.split("#"),2),_=h[0],C=h[1];return void 0===C&&(C="default"),Dt(98255)(_).then(function(k){return k[C]}).then(function(k){return HL(k,_,C)}).then(function(k){return l._compiler.compileModuleAsync(k)})}},{key:"loadFactory",value:function(n){var c=cr(n.split("#"),2),h=c[0],_=c[1],C="NgFactory";return void 0===_&&(_="default",C=""),Dt(98255)(this._config.factoryPathPrefix+h+this._config.factoryPathSuffix).then(function(k){return k[_+C]}).then(function(k){return HL(k,h,_)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(gu),ce(KU,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function HL(e,a,t){if(!e)throw new Error("Cannot find '".concat(t,"' in '").concat(a,"'"));return e}var cG=NL(null,"core",[{provide:jv,useValue:"unknown"},{provide:$T,deps:[kn]},{provide:U_,deps:[]},{provide:hw,deps:[]}]),fG=[{provide:sc,useClass:sc,deps:[ft,kn,Qd,Zi,zh]},{provide:Z2,deps:[ft],useFactory:function(e){var a=[];return e.onStable.subscribe(function(){for(;a.length;)a.pop()()}),function(t){a.push(t)}}},{provide:zh,useClass:zh,deps:[[new oi,fo]]},{provide:gu,useClass:gu,deps:[]},xL,{provide:ys,useFactory:function(){return T8},deps:[]},{provide:Eh,useFactory:function(){return D8},deps:[]},{provide:vu,useFactory:function(e){return SC(e=e||"undefined"!=typeof $localize&&$localize.locale||l_),e},deps:[[new jp(vu),new oi,new Fo]]},{provide:DL,useValue:"USD"}],WL=function(){var e=function a(t){F(this,a)};return e.\u0275fac=function(t){return new(t||e)(ce(sc))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:fG}),e}(),Nw=null;function _u(){return Nw}var pF=function e(){F(this,e)},lt=new Ee("DocumentToken"),cc=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:vF,token:e,providedIn:"platform"}),e}();function vF(){return ce(mF)}var gF=new Ee("Location Initialized"),mF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c._init(),c}return W(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return _u().getBaseHref(this._doc)}},{key:"onPopState",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("popstate",c,!1),function(){return h.removeEventListener("popstate",c)}}},{key:"onHashChange",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("hashchange",c,!1),function(){return h.removeEventListener("hashchange",c)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(c){this.location.pathname=c}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(c,h,_){_F()?this._history.pushState(c,h,_):this.location.hash=_}},{key:"replaceState",value:function(c,h,_){_F()?this._history.replaceState(c,h,_):this.location.hash=_}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(c)}},{key:"getState",value:function(){return this._history.state}}]),n}(cc);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:$f,token:e,providedIn:"platform"}),e}();function _F(){return!!window.history.pushState}function $f(){return new mF(ce(lt))}function fc(e,a){if(0==e.length)return a;if(0==a.length)return e;var t=0;return e.endsWith("/")&&t++,a.startsWith("/")&&t++,2==t?e+a.substring(1):1==t?e+a:e+"/"+a}function gD(e){var a=e.match(/#|\?|$/),t=a&&a.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function dc(e){return e&&"?"!==e[0]?"?"+e:e}var $v=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:Ms,token:e,providedIn:"root"}),e}();function Ms(e){var a=ce(lt).location;return new mD(ce(cc),a&&a.origin||"")}var Vw=new Ee("appBaseHref"),mD=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;if(F(this,n),(h=t.call(this))._platformLocation=l,h._removeListenerFns=[],null==c&&(c=h._platformLocation.getBaseHrefFromDOM()),null==c)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return h._baseHref=c,h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(c){return fc(this._baseHref,c)}},{key:"path",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],h=this._platformLocation.pathname+dc(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(h).concat(_):h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+dc(C));this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+dc(C));this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}($v);return e.\u0275fac=function(t){return new(t||e)(ce(cc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),yF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._platformLocation=l,h._baseHref="",h._removeListenerFns=[],null!=c&&(h._baseHref=c),h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var h=this._platformLocation.hash;return null==h&&(h="#"),h.length>0?h.substring(1):h}},{key:"prepareExternalUrl",value:function(c){var h=fc(this._baseHref,c);return h.length>0?"#"+h:h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+dc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+dc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}($v);return e.\u0275fac=function(t){return new(t||e)(ce(cc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Jv=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._subject=new ye,this._urlChangeListeners=[],this._platformStrategy=t;var c=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=gD(yu(c)),this._platformStrategy.onPopState(function(h){l._subject.emit({url:l.path(!0),pop:!0,state:h.state,type:h.type})})}return W(a,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+dc(l))}},{key:"normalize",value:function(n){return a.stripTrailingSlash(function(e,a){return e&&a.startsWith(e)?a.substring(e.length):a}(this._baseHref,yu(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dc(l)),c)}},{key:"replaceState",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dc(l)),c)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var l,c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(c=(l=this._platformStrategy).historyGo)||void 0===c||c.call(l,n)}},{key:"onUrlChange",value:function(n){var l=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(c){l._notifyUrlChangeListeners(c.url,c.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(c){return c(n,l)})}},{key:"subscribe",value:function(n,l,c){return this._subject.subscribe({next:n,error:l,complete:c})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce($v),ce(cc))},e.normalizeQueryParams=dc,e.joinWithSlash=fc,e.stripTrailingSlash=gD,e.\u0275prov=We({factory:XG,token:e,providedIn:"root"}),e}();function XG(){return new Jv(ce($v),ce(cc))}function yu(e){return e.replace(/\/index.html$/,"")}var iy=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),JG=function(e){return function(e){var a=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=Mv(a);if(t)return t;var n=a.split("-")[0];if(t=Mv(n))return t;if("en"===n)return q4;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Tr.PluralCase]},vy=function e(){F(this,e)},IF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).locale=l,c}return W(n,[{key:"getPluralCategory",value:function(c,h){switch(JG(h||this.locale)(c)){case iy.Zero:return"zero";case iy.One:return"one";case iy.Two:return"two";case iy.Few:return"few";case iy.Many:return"many";default:return"other"}}}]),n}(vy);return e.\u0275fac=function(t){return new(t||e)(ce(vu))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function RF(e,a){a=encodeURIComponent(a);var n,t=tn(e.split(";"));try{for(t.s();!(n=t.n()).done;){var l=n.value,c=l.indexOf("="),_=cr(-1==c?[l,""]:[l.slice(0,c),l.slice(c+1)],2),k=_[1];if(_[0].trim()===a)return decodeURIComponent(k)}}catch(D){t.e(D)}finally{t.f()}return null}var Ts=function(){var e=function(){function a(t,n,l,c){F(this,a),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=l,this._renderer=c,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return W(a,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(fv(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var l=this._keyValueDiffer.diff(this._rawClass);l&&this._applyKeyValueChanges(l)}}},{key:"_applyKeyValueChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachChangedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachRemovedItem(function(c){c.previousValue&&l._toggleClass(c.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){if("string"!=typeof c.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(hn(c.item)));l._toggleClass(c.item,!0)}),n.forEachRemovedItem(function(c){return l._toggleClass(c.item,!1)})}},{key:"_applyClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!0)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!!n[c])}))}},{key:"_removeClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!1)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!1)}))}},{key:"_toggleClass",value:function(n,l){var c=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(h){l?c._renderer.addClass(c._ngEl.nativeElement,h):c._renderer.removeClass(c._ngEl.nativeElement,h)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(ys),N(Eh),N(Ue),N(fl))},e.\u0275dir=ve({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),FF=function(){function e(a,t,n,l){F(this,e),this.$implicit=a,this.ngForOf=t,this.index=n,this.count=l}return W(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),ar=function(){var e=function(){function a(t,n,l){F(this,a),this._viewContainer=t,this._template=n,this._differs=l,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return W(a,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(c){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function(e){return e.name||typeof e}(n),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var l=this._differ.diff(this._ngForOf);l&&this._applyChanges(l)}}},{key:"_applyChanges",value:function(n){var l=this,c=[];n.forEachOperation(function(D,I,L){if(null==D.previousIndex){var G=l._viewContainer.createEmbeddedView(l._template,new FF(null,l._ngForOf,-1,-1),null===L?void 0:L),Y=new TD(D,G);c.push(Y)}else if(null==L)l._viewContainer.remove(null===I?void 0:I);else if(null!==I){var $=l._viewContainer.get(I);l._viewContainer.move($,L);var ie=new TD(D,$);c.push(ie)}});for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:RD;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var h=this.differ.diff(n),_=c!==this.compareFn;return h&&(this.keyValues=[],h.forEachItem(function(C){l.keyValues.push(E6(C.key,C.currentValue))})),(h||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Eh,16))},e.\u0275pipe=Ui({name:"keyvalue",type:e,pure:!1}),e}();function RD(e,a){var t=e.key,n=a.key;if(t===n)return 0;if(void 0===t)return 1;if(void 0===n)return-1;if(null===t)return 1;if(null===n)return-1;if("string"==typeof t&&"string"==typeof n)return t1&&void 0!==arguments[1])||arguments[1],h=t.findTestabilityInTree(l,c);if(null==h)throw new Error("Could not find testability for element.");return h},Kn.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Kn.getAllAngularRootElements=function(){return t.getAllRootElements()},Kn.frameworkStabilizers||(Kn.frameworkStabilizers=[]),Kn.frameworkStabilizers.push(function(c){var h=Kn.getAllAngularTestabilities(),_=h.length,C=!1,k=function(I){C=C||I,0==--_&&c(C)};h.forEach(function(D){D.whenStable(k)})})}},{key:"findTestabilityInTree",value:function(t,n,l){if(null==n)return null;var c=t.getTestability(n);return null!=c?c:l?_u().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){_w=e}(new e)}}]),e}(),U6=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"build",value:function(){return new XMLHttpRequest}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ng=new Ee("EventManagerPlugins"),yy=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(c){return c.manager=l}),this._plugins=t.slice().reverse()}return W(a,[{key:"addEventListener",value:function(n,l,c){return this._findPluginFor(l).addEventListener(n,l,c)}},{key:"addGlobalEventListener",value:function(n,l,c){return this._findPluginFor(l).addGlobalEventListener(n,l,c)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var l=this._eventNameToPlugin.get(n);if(l)return l;for(var c=this._plugins,h=0;h-1&&(h.splice(L,1),k+=I+".")}),k+=C,0!=h.length||0===C.length)return null;var D={};return D.domEventName=_,D.fullKey=k,D}},{key:"getEventFullKey",value:function(c){var h="",_=function(e){var a=e.key;if(null==a){if(null==(a=e.keyIdentifier))return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===e.location&&$F.hasOwnProperty(a)&&(a=$F[a]))}return QF[a]||a}(c);return" "===(_=_.toLowerCase())?_="space":"."===_&&(_="dot"),ZD.forEach(function(C){C!=_&&(0,QD[C])(c)&&(h+=C+".")}),h+=_}},{key:"eventCallback",value:function(c,h,_){return function(C){n.getEventFullKey(C)===c&&_.runGuarded(function(){return h(C)})}}},{key:"_normalizeKey",value:function(c){switch(c){case"esc":return"escape";default:return c}}}]),n}(Jw);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ed=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return ce(Ty)},token:e,providedIn:"root"}),e}(),Ty=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c}return W(n,[{key:"sanitize",value:function(c,h){if(null==h)return null;switch(c){case ss.NONE:return h;case ss.HTML:return Ks(h,"HTML")?ji(h):HO(this._doc,String(h)).toString();case ss.STYLE:return Ks(h,"Style")?ji(h):h;case ss.SCRIPT:if(Ks(h,"Script"))return ji(h);throw new Error("unsafe value used in a script context");case ss.URL:return FO(h),Ks(h,"URL")?ji(h):Sm(String(h));case ss.RESOURCE_URL:if(Ks(h,"ResourceURL"))return ji(h);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(c," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(c){return function(e){return new lz(e)}(c)}},{key:"bypassSecurityTrustStyle",value:function(c){return function(e){return new Li(e)}(c)}},{key:"bypassSecurityTrustScript",value:function(c){return function(e){return new oM(e)}(c)}},{key:"bypassSecurityTrustUrl",value:function(c){return function(e){return new uz(e)}(c)}},{key:"bypassSecurityTrustResourceUrl",value:function(c){return function(e){return new LO(e)}(c)}}]),n}(ed);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return function(e){return new Ty(e.get(lt))}(ce(uv))},token:e,providedIn:"root"}),e}(),hj=NL(cG,"browser",[{provide:jv,useValue:"browser"},{provide:HT,useValue:function(){N6.makeCurrent(),jF.init()},multi:!0},{provide:lt,useFactory:function(){return e=document,Ed=e,document;var e},deps:[]}]),pj=[[],{provide:qm,useValue:"root"},{provide:Qd,useFactory:function(){return new Qd},deps:[]},{provide:ng,useClass:ky,multi:!0,deps:[lt,ft,jv]},{provide:ng,useClass:aj,multi:!0,deps:[lt]},[],{provide:qh,useClass:qh,deps:[yy,by,Yf]},{provide:Ff,useExisting:qh},{provide:jD,useExisting:by},{provide:by,useClass:by,deps:[lt]},{provide:qT,useClass:qT,deps:[ft]},{provide:yy,useClass:yy,deps:[ng,ft]},{provide:zD,useClass:U6,deps:[]},[]],$D=function(){var e=function(){function a(t){if(F(this,a),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return W(a,null,[{key:"withServerTransition",value:function(n){return{ngModule:a,providers:[{provide:Yf,useValue:n.appId},{provide:GF,useExisting:Yf},z6]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(e,12))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:pj,imports:[Wa,WL]}),e}();function ut(){for(var e=arguments.length,a=new Array(e),t=0;t0){var c=n.slice(0,l),h=c.toLowerCase(),_=n.slice(l+1).trim();t.maybeSetNormalizedName(c,h),t.headers.has(h)?t.headers.get(h).push(_):t.headers.set(h,[_])}})}:function(){t.headers=new Map,Object.keys(a).forEach(function(n){var l=a[n],c=n.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(t.headers.set(c,l),t.maybeSetNormalizedName(n,c))})}:this.headers=new Map}return W(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(l){n.headers.set(l,t.headers.get(l)),n.normalizedNames.set(l,t.normalizedNames.get(l))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var l=t.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(t.name,n);var c=("a"===t.op?this.headers.get(n):void 0)||[];c.push.apply(c,At(l)),this.headers.set(n,c);break;case"d":var h=t.value;if(h){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(C){return-1===h.indexOf(C)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,_)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(l){return t(n.normalizedNames.get(l),n.headers.get(l))})}}]),e}(),wj=function(){function e(){F(this,e)}return W(e,[{key:"encodeKey",value:function(t){return sN(t)}},{key:"encodeValue",value:function(t){return sN(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function Sj(e,a){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(l){var c=l.indexOf("="),_=cr(-1==c?[a.decodeKey(l),""]:[a.decodeKey(l.slice(0,c)),a.decodeValue(l.slice(c+1))],2),C=_[0],k=_[1],D=t.get(C)||[];D.push(k),t.set(C,D)}),t}var ig=/%(\d[a-f0-9])/gi,kj={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function sN(e){return encodeURIComponent(e).replace(ig,function(a,t){var n;return null!==(n=kj[t])&&void 0!==n?n:a})}function lN(e){return"".concat(e)}var ag=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(F(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new wj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Sj(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var l=t.fromObject[n];a.map.set(n,Array.isArray(l)?l:[l])})):this.map=null}return W(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(l){var c=t[l];Array.isArray(c)?c.forEach(function(h){n.push({param:l,value:h,op:"a"})}):n.push({param:l,value:c,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var l=t.encoder.encodeKey(n);return t.map.get(n).map(function(c){return l+"="+t.encoder.encodeValue(c)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var l=("a"===n.op?t.map.get(n.param):void 0)||[];l.push(lN(n.value)),t.map.set(n.param,l);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var c=t.map.get(n.param)||[],h=c.indexOf(lN(n.value));-1!==h&&c.splice(h,1),c.length>0?t.map.set(n.param,c):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),rA=function(){function e(){F(this,e),this.map=new Map}return W(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function xj(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function a1(e){return"undefined"!=typeof Blob&&e instanceof Blob}function cN(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Py=function(){function e(a,t,n,l){var c;if(F(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=a.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,c=l):c=n,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new Zh),this.context||(this.context=new rA),this.params){var h=this.params.toString();if(0===h.length)this.urlWithParams=t;else{var _=t.indexOf("?");this.urlWithParams=t+(-1===_?"?":_0&&void 0!==arguments[0]?arguments[0]:{},l=t.method||this.method,c=t.url||this.url,h=t.responseType||this.responseType,_=void 0!==t.body?t.body:this.body,C=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,k=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,D=t.headers||this.headers,I=t.params||this.params,L=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(D=Object.keys(t.setHeaders).reduce(function(G,Y){return G.set(Y,t.setHeaders[Y])},D)),t.setParams&&(I=Object.keys(t.setParams).reduce(function(G,Y){return G.set(Y,t.setParams[Y])},I)),new e(l,c,_,{params:I,headers:D,context:L,reportProgress:k,responseType:h,withCredentials:C})}}]),e}(),og=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),o1=function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";F(this,e),this.headers=a.headers||new Zh,this.status=void 0!==a.status?a.status:t,this.statusText=a.statusText||n,this.url=a.url||null,this.ok=this.status>=200&&this.status<300},Dj=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.ResponseHeader,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),s1=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.Response,n.body=void 0!==l.body?l.body:null,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==l.body?l.body:this.body,headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),fN=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",l.ok=!1,l.message=l.status>=200&&l.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),l.error=n.error||null,l}return t}(o1);function Oy(e,a){return{body:a,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var dN=function(){var e=function(){function a(t){F(this,a),this.handler=t}return W(a,[{key:"request",value:function(n,l){var _,c=this,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Py)_=n;else{var C=void 0;C=h.headers instanceof Zh?h.headers:new Zh(h.headers);var k=void 0;h.params&&(k=h.params instanceof ag?h.params:new ag({fromObject:h.params})),_=new Py(n,l,void 0!==h.body?h.body:null,{headers:C,context:h.context,params:k,reportProgress:h.reportProgress,responseType:h.responseType||"json",withCredentials:h.withCredentials})}var D=ut(_).pipe(Xh(function(L){return c.handler.handle(L)}));if(n instanceof Py||"events"===h.observe)return D;var I=D.pipe(vr(function(L){return L instanceof s1}));switch(h.observe||"body"){case"body":switch(_.responseType){case"arraybuffer":return I.pipe(Be(function(L){if(null!==L.body&&!(L.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return L.body}));case"blob":return I.pipe(Be(function(L){if(null!==L.body&&!(L.body instanceof Blob))throw new Error("Response is not a Blob.");return L.body}));case"text":return I.pipe(Be(function(L){if(null!==L.body&&"string"!=typeof L.body)throw new Error("Response is not a string.");return L.body}));case"json":default:return I.pipe(Be(function(L){return L.body}))}case"response":return I;default:throw new Error("Unreachable: unhandled observe type ".concat(h.observe,"}"))}}},{key:"delete",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,l)}},{key:"get",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,l)}},{key:"head",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,l)}},{key:"jsonp",value:function(n,l){return this.request("JSONP",n,{params:(new ag).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,l)}},{key:"patch",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,Oy(c,l))}},{key:"post",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,Oy(c,l))}},{key:"put",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,Oy(c,l))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(nA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),hN=function(){function e(a,t){F(this,e),this.next=a,this.interceptor=t}return W(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),iA=new Ee("HTTP_INTERCEPTORS"),pN=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"intercept",value:function(n,l){return l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),CN=/^\)\]\}',?\n/,l1=function(){var e=function(){function a(t){F(this,a),this.xhrFactory=t}return W(a,[{key:"handle",value:function(n){var l=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new gn(function(c){var h=l.xhrFactory.build();if(h.open(n.method,n.urlWithParams),n.withCredentials&&(h.withCredentials=!0),n.headers.forEach(function(fe,se){return h.setRequestHeader(fe,se.join(","))}),n.headers.has("Accept")||h.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&h.setRequestHeader("Content-Type",_)}if(n.responseType){var C=n.responseType.toLowerCase();h.responseType="json"!==C?C:"text"}var k=n.serializeBody(),D=null,I=function(){if(null!==D)return D;var se=1223===h.status?204:h.status,be=h.statusText||"OK",Ce=new Zh(h.getAllResponseHeaders()),je=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(h)||n.url;return D=new Dj({headers:Ce,status:se,statusText:be,url:je})},L=function(){var se=I(),be=se.headers,Ce=se.status,je=se.statusText,Qe=se.url,kt=null;204!==Ce&&(kt=void 0===h.response?h.responseText:h.response),0===Ce&&(Ce=kt?200:0);var Dn=Ce>=200&&Ce<300;if("json"===n.responseType&&"string"==typeof kt){var Zn=kt;kt=kt.replace(CN,"");try{kt=""!==kt?JSON.parse(kt):null}catch(Br){kt=Zn,Dn&&(Dn=!1,kt={error:Br,text:kt})}}Dn?(c.next(new s1({body:kt,headers:be,status:Ce,statusText:je,url:Qe||void 0})),c.complete()):c.error(new fN({error:kt,headers:be,status:Ce,statusText:je,url:Qe||void 0}))},G=function(se){var be=I(),je=new fN({error:se,status:h.status||0,statusText:h.statusText||"Unknown Error",url:be.url||void 0});c.error(je)},Y=!1,$=function(se){Y||(c.next(I()),Y=!0);var be={type:og.DownloadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),"text"===n.responseType&&!!h.responseText&&(be.partialText=h.responseText),c.next(be)},ie=function(se){var be={type:og.UploadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),c.next(be)};return h.addEventListener("load",L),h.addEventListener("error",G),h.addEventListener("timeout",G),h.addEventListener("abort",G),n.reportProgress&&(h.addEventListener("progress",$),null!==k&&h.upload&&h.upload.addEventListener("progress",ie)),h.send(k),c.next({type:og.Sent}),function(){h.removeEventListener("error",G),h.removeEventListener("abort",G),h.removeEventListener("load",L),h.removeEventListener("timeout",G),n.reportProgress&&(h.removeEventListener("progress",$),null!==k&&h.upload&&h.upload.removeEventListener("progress",ie)),h.readyState!==h.DONE&&h.abort()}})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(zD))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),u1=new Ee("XSRF_COOKIE_NAME"),aA=new Ee("XSRF_HEADER_NAME"),SN=function e(){F(this,e)},sg=function(){var e=function(){function a(t,n,l){F(this,a),this.doc=t,this.platform=n,this.cookieName=l,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return W(a,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=RF(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(jv),ce(u1))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),oA=function(){var e=function(){function a(t,n){F(this,a),this.tokenService=t,this.headerName=n}return W(a,[{key:"intercept",value:function(n,l){var c=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||c.startsWith("http://")||c.startsWith("https://"))return l.handle(n);var h=this.tokenService.getToken();return null!==h&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,h)})),l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(SN),ce(aA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Kh=function(){var e=function(){function a(t,n){F(this,a),this.backend=t,this.injector=n,this.chain=null}return W(a,[{key:"handle",value:function(n){if(null===this.chain){var l=this.injector.get(iA,[]);this.chain=l.reduceRight(function(c,h){return new hN(c,h)},this.backend)}return this.chain.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(i1),ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Pj=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"disable",value:function(){return{ngModule:a,providers:[{provide:oA,useClass:pN}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:a,providers:[n.cookieName?{provide:u1,useValue:n.cookieName}:[],n.headerName?{provide:aA,useValue:n.headerName}:[]]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[oA,{provide:iA,useExisting:oA,multi:!0},{provide:SN,useClass:sg},{provide:u1,useValue:"XSRF-TOKEN"},{provide:aA,useValue:"X-XSRF-TOKEN"}]}),e}(),kN=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dN,{provide:nA,useClass:Kh},l1,{provide:i1,useExisting:l1}],imports:[[Pj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Ma=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this))._value=n,l}return W(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(l){var c=Ie(Oe(t.prototype),"_subscribe",this).call(this,l);return c&&!c.closed&&l.next(this._value),c}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Bu;return this._value}},{key:"next",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,this._value=l)}}]),t}(qe),Oj=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"notifyNext",value:function(l,c,h,_,C){this.destination.next(c)}},{key:"notifyError",value:function(l,c){this.destination.error(l)}},{key:"notifyComplete",value:function(l){this.destination.complete()}}]),t}(Ze),Ij=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).parent=n,h.outerValue=l,h.outerIndex=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){this.parent.notifyNext(this.outerValue,l,this.outerIndex,this.index++,this)}},{key:"_error",value:function(l){this.parent.notifyError(l,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),t}(Ze);function Rj(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Ij(e,t,n);if(!l.closed)return a instanceof gn?a.subscribe(l):Yn(a)(l)}var MN={};function Ry(){for(var e=arguments.length,a=new Array(e),t=0;t=2&&(t=!0),function(l){return l.lift(new Gj(e,a,t))}}var Gj=function(){function e(a,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];F(this,e),this.accumulator=a,this.seed=t,this.hasSeed=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new DN(t,this.accumulator,this.seed,this.hasSeed))}}]),e}(),DN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n)).accumulator=l,_._seed=c,_.hasSeed=h,_.index=0,_}return W(t,[{key:"seed",get:function(){return this._seed},set:function(l){this.hasSeed=!0,this._seed=l}},{key:"_next",value:function(l){if(this.hasSeed)return this._tryNext(l);this.seed=l,this.destination.next(l)}},{key:"_tryNext",value:function(l){var h,c=this.index++;try{h=this.accumulator(this.seed,l,c)}catch(_){this.destination.error(_)}this.seed=h,this.destination.next(h)}}]),t}(Ze);function _o(e){return function(t){var n=new AN(e),l=t.lift(n);return n.caught=l}}var AN=function(){function e(a){F(this,e),this.selector=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new lA(t,this.selector,this.caught))}}]),e}(),lA=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).selector=l,h.caught=c,h}return W(t,[{key:"error",value:function(l){if(!this.isStopped){var c;try{c=this.selector(l,this.caught)}catch(C){return void Ie(Oe(t.prototype),"error",this).call(this,C)}this._unsubscribeAndRecycle();var h=new Gc(this);this.add(h);var _=Oi(c,h);_!==h&&this.add(_)}}}]),t}(at);function uA(e){return function(t){return 0===e?h1():t.lift(new jj(e))}}var jj=function(){function e(a){if(F(this,e),this.total=a,this.total<0)throw new xN}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Wj(t,this.total))}}]),e}(),Wj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.ring=new Array,c.count=0,c}return W(t,[{key:"_next",value:function(l){var c=this.ring,h=this.total,_=this.count++;c.length0)for(var h=this.count>=this.total?this.total:this.count,_=this.ring,C=0;C0&&void 0!==arguments[0]?arguments[0]:Xj;return function(a){return a.lift(new Yj(e))}}var Yj=function(){function e(a){F(this,e),this.errorFactory=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new qj(t,this.errorFactory))}}]),e}(),qj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).errorFactory=l,c.hasValue=!1,c}return W(t,[{key:"_next",value:function(l){this.hasValue=!0,this.destination.next(l)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var l;try{l=this.errorFactory()}catch(c){l=c}this.destination.error(l)}}]),t}(Ze);function Xj(){return new f1}function PN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(a){return a.lift(new Zj(e))}}var Zj=function(){function e(a){F(this,e),this.defaultValue=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Kj(t,this.defaultValue))}}]),e}(),Kj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).defaultValue=l,c.isEmpty=!0,c}return W(t,[{key:"_next",value:function(l){this.isEmpty=!1,this.destination.next(l)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),t}(Ze);function lg(e,a){var t=arguments.length>=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,or(1),t?PN(a):EN(function(){return new f1}))}}function td(){}function Ya(e,a,t){return function(l){return l.lift(new $j(e,a,t))}}var $j=function(){function e(a,t,n){F(this,e),this.nextOrObserver=a,this.error=t,this.complete=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new cA(t,this.nextOrObserver,this.error,this.complete))}}]),e}(),cA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n))._tapNext=td,_._tapError=td,_._tapComplete=td,_._tapError=c||td,_._tapComplete=h||td,nt(l)?(_._context=It(_),_._tapNext=l):l&&(_._context=l,_._tapNext=l.next||td,_._tapError=l.error||td,_._tapComplete=l.complete||td),_}return W(t,[{key:"_next",value:function(l){try{this._tapNext.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.next(l)}},{key:"_error",value:function(l){try{this._tapError.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.error(l)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(l){return void this.destination.error(l)}return this.destination.complete()}}]),t}(Ze),e7=function(){function e(a){F(this,e),this.callback=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new t7(t,this.callback))}}]),e}(),t7=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).add(new Ve(l)),c}return t}(Ze),mc=function e(a,t){F(this,e),this.id=a,this.url=t},fA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return F(this,t),(c=a.call(this,n,l)).navigationTrigger=h,c.restoredState=_,c}return W(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(mc),kl=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).urlAfterRedirects=c,h}return W(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(mc),p1=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).reason=c,h}return W(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(mc),ug=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).error=c,h}return W(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(mc),dA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(mc),ON=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(mc),IN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C;return F(this,t),(C=a.call(this,n,l)).urlAfterRedirects=c,C.state=h,C.shouldActivate=_,C}return W(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(mc),RN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(mc),n7=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(mc),hA=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),LN=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),r7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),v1=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),i7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),a7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),FN=function(){function e(a,t,n){F(this,e),this.routerEvent=a,this.position=t,this.anchor=n}return W(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),Cn="primary",o7=function(){function e(a){F(this,e),this.params=a||{}}return W(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function cg(e){return new o7(e)}var pA="ngNavigationCancelingError";function g1(e){var a=Error("NavigationCancelingError: "+e);return a[pA]=!0,a}function Fy(e,a,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(a.hasChildren()||n.length0?e[e.length-1]:null}function $i(e,a){for(var t in e)e.hasOwnProperty(t)&&a(e[t],t)}function Su(e){return gv(e)?e:vv(e)?yt(Promise.resolve(e)):ut(e)}var l7={exact:function gA(e,a,t){if(!rd(e.segments,a.segments)||!dg(e.segments,a.segments,t)||e.numberOfChildren!==a.numberOfChildren)return!1;for(var n in a.children)if(!e.children[n]||!gA(e.children[n],a.children[n],t))return!1;return!0},subset:m1},zN={exact:function(e,a){return wu(e,a)},subset:function(e,a){return Object.keys(a).length<=Object.keys(e).length&&Object.keys(a).every(function(t){return NN(e[t],a[t])})},ignored:function(){return!0}};function vA(e,a,t){return l7[t.paths](e.root,a.root,t.matrixParams)&&zN[t.queryParams](e.queryParams,a.queryParams)&&!("exact"===t.fragment&&e.fragment!==a.fragment)}function m1(e,a,t){return _1(e,a,a.segments,t)}function _1(e,a,t,n){if(e.segments.length>t.length){var l=e.segments.slice(0,t.length);return!(!rd(l,t)||a.hasChildren()||!dg(l,t,n))}if(e.segments.length===t.length){if(!rd(e.segments,t)||!dg(e.segments,t,n))return!1;for(var c in a.children)if(!e.children[c]||!m1(e.children[c],a.children[c],n))return!1;return!0}var h=t.slice(0,e.segments.length),_=t.slice(e.segments.length);return!!(rd(e.segments,h)&&dg(e.segments,h,n)&&e.children[Cn])&&_1(e.children[Cn],a,_,n)}function dg(e,a,t){return a.every(function(n,l){return zN[t](e[l].parameters,n.parameters)})}var nd=function(){function e(a,t,n){F(this,e),this.root=a,this.queryParams=t,this.fragment=n}return W(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return _c.serialize(this)}}]),e}(),wn=function(){function e(a,t){var n=this;F(this,e),this.segments=a,this.children=t,this.parent=null,$i(t,function(l,c){return l.parent=n})}return W(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return hg(this)}}]),e}(),Ml=function(){function e(a,t){F(this,e),this.path=a,this.parameters=t}return W(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=cg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return S1(this)}}]),e}();function rd(e,a){return e.length===a.length&&e.every(function(t,n){return t.path===a[n].path})}var y1=function e(){F(this,e)},b1=function(){function e(){F(this,e)}return W(e,[{key:"parse",value:function(t){var n=new p7(t);return new nd(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(pg(t.root,!0)),l=function(e){var a=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(l){return"".concat(vg(t),"=").concat(vg(l))}).join("&"):"".concat(vg(t),"=").concat(vg(n))}).filter(function(t){return!!t});return a.length?"?".concat(a.join("&")):""}(t.queryParams),c="string"==typeof t.fragment?"#".concat(function(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(l).concat(c)}}]),e}(),_c=new b1;function hg(e){return e.segments.map(function(a){return S1(a)}).join("/")}function pg(e,a){if(!e.hasChildren())return hg(e);if(a){var t=e.children[Cn]?pg(e.children[Cn],!1):"",n=[];return $i(e.children,function(c,h){h!==Cn&&n.push("".concat(h,":").concat(pg(c,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var l=function(e,a){var t=[];return $i(e.children,function(n,l){l===Cn&&(t=t.concat(a(n,l)))}),$i(e.children,function(n,l){l!==Cn&&(t=t.concat(a(n,l)))}),t}(e,function(c,h){return h===Cn?[pg(e.children[Cn],!1)]:["".concat(h,":").concat(pg(c,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[Cn]?"".concat(hg(e),"/").concat(l[0]):"".concat(hg(e),"/(").concat(l.join("//"),")")}function WN(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vg(e){return WN(e).replace(/%3B/gi,";")}function C1(e){return WN(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function w1(e){return decodeURIComponent(e)}function mA(e){return w1(e.replace(/\+/g,"%20"))}function S1(e){return"".concat(C1(e.path)).concat(function(e){return Object.keys(e).map(function(a){return";".concat(C1(a),"=").concat(C1(e[a]))}).join("")}(e.parameters))}var _A=/^[^\/()?;=#]+/;function gg(e){var a=e.match(_A);return a?a[0]:""}var YN=/^[^=?&#]+/,h7=/^[^?&#]+/,p7=function(){function e(a){F(this,e),this.url=a,this.remaining=a}return W(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(l[Cn]=new wn(t,n)),l}},{key:"parseSegment",value:function(){var t=gg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Ml(w1(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=gg(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=gg(this.remaining);c&&this.capture(l=c)}t[w1(n)]=w1(l)}}},{key:"parseQueryParam",value:function(t){var n=function(e){var a=e.match(YN);return a?a[0]:""}(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=function(e){var a=e.match(h7);return a?a[0]:""}(this.remaining);c&&this.capture(l=c)}var h=mA(n),_=mA(l);if(t.hasOwnProperty(h)){var C=t[h];Array.isArray(C)||(t[h]=C=[C]),C.push(_)}else t[h]=_}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var l=gg(this.remaining),c=this.remaining[l.length];if("/"!==c&&")"!==c&&";"!==c)throw new Error("Cannot parse url '".concat(this.url,"'"));var h=void 0;l.indexOf(":")>-1?(h=l.substr(0,l.indexOf(":")),this.capture(h),this.capture(":")):t&&(h=Cn);var _=this.parseChildren();n[h]=1===Object.keys(_).length?_[Cn]:new wn([],_),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),e}(),Ny=function(){function e(a){F(this,e),this._root=a}return W(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=k1(t,this._root);return n?n.children.map(function(l){return l.value}):[]}},{key:"firstChild",value:function(t){var n=k1(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Vy(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(c){return c.value}).filter(function(c){return c!==t})}},{key:"pathFromRoot",value:function(t){return Vy(t,this._root).map(function(n){return n.value})}}]),e}();function k1(e,a){if(e===a.value)return a;var n,t=tn(a.children);try{for(t.s();!(n=t.n()).done;){var c=k1(e,n.value);if(c)return c}}catch(h){t.e(h)}finally{t.f()}return null}function Vy(e,a){if(e===a.value)return[a];var n,t=tn(a.children);try{for(t.s();!(n=t.n()).done;){var c=Vy(e,n.value);if(c.length)return c.unshift(a),c}}catch(h){t.e(h)}finally{t.f()}return[]}var ku=function(){function e(a,t){F(this,e),this.value=a,this.children=t}return W(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function mg(e){var a={};return e&&e.children.forEach(function(t){return a[t.value.outlet]=t}),a}var yA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).snapshot=l,bA(It(c),n),c}return W(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(Ny);function M1(e,a){var t=function(e,a){var h=new x1([],{},{},"",{},Cn,a,null,e.root,-1,{});return new KN("",new ku(h,[]))}(e,a),n=new Ma([new Ml("",{})]),l=new Ma({}),c=new Ma({}),h=new Ma({}),_=new Ma(""),C=new wr(n,l,h,_,c,Cn,a,t.root);return C.snapshot=t.root,new yA(new ku(C,[]),t)}var wr=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this._futureSnapshot=C}return W(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Be(function(t){return cg(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Be(function(t){return cg(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ZN(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==a)for(n=t.length-1;n>=1;){var l=t[n],c=t[n-1];if(l.routeConfig&&""===l.routeConfig.path)n--;else{if(c.component)break;n--}}return g7(t.slice(n))}function g7(e){return e.reduce(function(a,t){return{params:Object.assign(Object.assign({},a.params),t.params),data:Object.assign(Object.assign({},a.data),t.data),resolve:Object.assign(Object.assign({},a.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var x1=function(){function e(a,t,n,l,c,h,_,C,k,D,I){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this.routeConfig=C,this._urlSegment=k,this._lastPathIndex=D,this._resolve=I}return W(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=cg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(l){return l.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),KN=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,l)).url=n,bA(It(c),l),c}return W(t,[{key:"toString",value:function(){return QN(this._root)}}]),t}(Ny);function bA(e,a){a.value._routerState=e,a.children.forEach(function(t){return bA(e,t)})}function QN(e){var a=e.children.length>0?" { ".concat(e.children.map(QN).join(", ")," } "):"";return"".concat(e.value).concat(a)}function CA(e){if(e.snapshot){var a=e.snapshot,t=e._futureSnapshot;e.snapshot=t,wu(a.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),a.fragment!==t.fragment&&e.fragment.next(t.fragment),wu(a.params,t.params)||e.params.next(t.params),function(e,a){if(e.length!==a.length)return!1;for(var t=0;tl;){if(c-=l,!(n=n.parent))throw new Error("Invalid number of '../'");l=n.segments.length}return new SA(n,!1,l-c)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+c,e.numberOfDoubleDots)}(c,a,e),_=h.processChildren?E1(h.segmentGroup,h.index,c.commands):n3(h.segmentGroup,h.index,c.commands);return wA(h.segmentGroup,_,a,n,l)}function A1(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function By(e){return"object"==typeof e&&null!=e&&e.outlets}function wA(e,a,t,n,l){var c={};return n&&$i(n,function(h,_){c[_]=Array.isArray(h)?h.map(function(C){return"".concat(C)}):"".concat(h)}),new nd(t.root===e?a:JN(t.root,e,a),c,l)}function JN(e,a,t){var n={};return $i(e.children,function(l,c){n[c]=l===a?t:JN(l,a,t)}),new wn(e.segments,n)}var e3=function(){function e(a,t,n){if(F(this,e),this.isAbsolute=a,this.numberOfDoubleDots=t,this.commands=n,a&&n.length>0&&A1(n[0]))throw new Error("Root segment cannot have matrix parameters");var l=n.find(By);if(l&&l!==BN(n))throw new Error("{outlets:{}} has to be the last command")}return W(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),SA=function e(a,t,n){F(this,e),this.segmentGroup=a,this.processChildren=t,this.index=n};function n3(e,a,t){if(e||(e=new wn([],{})),0===e.segments.length&&e.hasChildren())return E1(e,a,t);var n=function(e,a,t){for(var n=0,l=a,c={match:!1,pathIndex:0,commandIndex:0};l=t.length)return c;var h=e.segments[l],_=t[n];if(By(_))break;var C="".concat(_),k=n0&&void 0===C)break;if(C&&k&&"object"==typeof k&&void 0===k.outlets){if(!i3(C,k,h))return c;n+=2}else{if(!i3(C,{},h))return c;n++}l++}return{match:!0,pathIndex:l,commandIndex:n}}(e,a,t),l=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},yg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var c=(a.matcher||Fy)(t,e,a);if(!c)return Object.assign({},yg);var h={};$i(c.posParams,function(C,k){h[k]=C.path});var _=c.consumed.length>0?Object.assign(Object.assign({},h),c.consumed[c.consumed.length-1].parameters):h;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:_,positionalParamSegments:null!==(n=c.posParams)&&void 0!==n?n:{}}}function O1(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&O7(e,t,n)){var c=new wn(a,P7(e,a,n,new wn(t,e.children)));return c._sourceSegment=e,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===t.length&&I7(e,t,n)){var h=new wn(e.segments,E7(e,a,t,n,e.children,l));return h._sourceSegment=e,h._segmentIndexShift=a.length,{segmentGroup:h,slicedSegments:t}}var _=new wn(e.segments,e.children);return _._sourceSegment=e,_._segmentIndexShift=a.length,{segmentGroup:_,slicedSegments:t}}function E7(e,a,t,n,l,c){var C,h={},_=tn(n);try{for(_.s();!(C=_.n()).done;){var k=C.value;if(I1(e,t,k)&&!l[As(k)]){var D=new wn([],{});D._sourceSegment=e,D._segmentIndexShift="legacy"===c?e.segments.length:a.length,h[As(k)]=D}}}catch(I){_.e(I)}finally{_.f()}return Object.assign(Object.assign({},l),h)}function P7(e,a,t,n){var l={};l[Cn]=n,n._sourceSegment=e,n._segmentIndexShift=a.length;var h,c=tn(t);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(""===_.path&&As(_)!==Cn){var C=new wn([],{});C._sourceSegment=e,C._segmentIndexShift=a.length,l[As(_)]=C}}}catch(k){c.e(k)}finally{c.f()}return l}function O7(e,a,t){return t.some(function(n){return I1(e,a,n)&&As(n)!==Cn})}function I7(e,a,t){return t.some(function(n){return I1(e,a,n)})}function I1(e,a,t){return(!(e.hasChildren()||a.length>0)||"full"!==t.pathMatch)&&""===t.path}function h3(e,a,t,n){return!!(As(e)===n||n!==Cn&&I1(a,t,e))&&("**"===e.path||P1(a,e,t).matched)}function p3(e,a,t){return 0===a.length&&!e.children[t]}var Uy=function e(a){F(this,e),this.segmentGroup=a||null},v3=function e(a){F(this,e),this.urlTree=a};function bg(e){return new gn(function(a){return a.error(new Uy(e))})}function TA(e){return new gn(function(a){return a.error(new v3(e))})}function DA(e){return new gn(function(a){return a.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var g3=function(){function e(a,t,n,l,c){F(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=l,this.config=c,this.allowRedirects=!0,this.ngModule=a.get(nc)}return W(e,[{key:"apply",value:function(){var t=this,n=O1(this.urlTree.root,[],[],this.config).segmentGroup,l=new wn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Cn).pipe(Be(function(_){return t.createUrlTree(R1(_),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(_o(function(_){if(_ instanceof v3)return t.allowRedirects=!1,t.match(_.urlTree);throw _ instanceof Uy?t.noMatchError(_):_}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Cn).pipe(Be(function(h){return n.createUrlTree(R1(h),t.queryParams,t.fragment)})).pipe(_o(function(h){throw h instanceof Uy?n.noMatchError(h):h}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,l){var c=t.segments.length>0?new wn([],pd({},Cn,t)):t;return new nd(c,n,l)}},{key:"expandSegmentGroup",value:function(t,n,l,c){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(t,n,l).pipe(Be(function(h){return new wn([],h)})):this.expandSegment(t,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(t,n,l){for(var c=this,h=[],_=0,C=Object.keys(l.children);_=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,uA(1),t?PN(a):EN(function(){return new f1}))}}())}},{key:"expandSegment",value:function(t,n,l,c,h,_){var C=this;return yt(l).pipe(Xh(function(k){return C.expandSegmentAgainstRoute(t,n,l,k,c,h,_).pipe(_o(function(I){if(I instanceof Uy)return ut(null);throw I}))}),lg(function(k){return!!k}),_o(function(k,D){if(k instanceof f1||"EmptyError"===k.name){if(p3(n,c,h))return ut(new wn([],{}));throw new Uy(n)}throw k}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,l,c,h,_,C){return h3(c,n,h,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(t,n,c,h,_):C&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_):bg(n):bg(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,l,c){var h=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TA(_):this.lineralizeSegments(l,_).pipe(Xr(function(C){var k=new wn(C,{});return h.expandSegment(t,k,n,C,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){var C=this,k=P1(n,c,h),I=k.consumedSegments,L=k.lastChild,G=k.positionalParamSegments;if(!k.matched)return bg(n);var Y=this.applyRedirectCommands(I,c.redirectTo,G);return c.redirectTo.startsWith("/")?TA(Y):this.lineralizeSegments(c,Y).pipe(Xr(function($){return C.expandSegment(t,n,l,$.concat(h.slice(L)),_,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,l,c,h){var _=this;if("**"===l.path)return l.loadChildren?(l._loadedConfig?ut(l._loadedConfig):this.configLoader.load(t.injector,l)).pipe(Be(function($){return l._loadedConfig=$,new wn(c,{})})):ut(new wn(c,{}));var k=P1(n,l,c),I=k.consumedSegments,L=k.lastChild;if(!k.matched)return bg(n);var G=c.slice(L);return this.getChildConfig(t,l,c).pipe(Xr(function($){var ie=$.module,fe=$.routes,se=O1(n,I,G,fe),be=se.segmentGroup,Ce=se.slicedSegments,je=new wn(be.segments,be.children);if(0===Ce.length&&je.hasChildren())return _.expandChildren(ie,fe,je).pipe(Be(function(Zn){return new wn(I,Zn)}));if(0===fe.length&&0===Ce.length)return ut(new wn(I,{}));var kt=As(l)===h;return _.expandSegment(ie,je,fe,Ce,kt?Cn:h,!0).pipe(Be(function(Zn){return new wn(I.concat(Zn.segments),Zn.children)}))}))}},{key:"getChildConfig",value:function(t,n,l){var c=this;return n.children?ut(new _g(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?ut(n._loadedConfig):this.runCanLoadGuards(t.injector,n,l).pipe(Xr(function(h){return h?c.configLoader.load(t.injector,n).pipe(Be(function(_){return n._loadedConfig=_,_})):function(e){return new gn(function(a){return a.error(g1("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(n)})):ut(new _g([],t))}},{key:"runCanLoadGuards",value:function(t,n,l){var c=this,h=n.canLoad;return h&&0!==h.length?ut(h.map(function(C){var D,k=t.get(C);if(function(e){return e&&qa(e.canLoad)}(k))D=k.canLoad(n,l);else{if(!qa(k))throw new Error("Invalid CanLoad guard");D=k(n,l)}return Su(D)})).pipe(zy(),Ya(function(C){if($h(C)){var k=g1('Redirecting to "'.concat(c.urlSerializer.serialize(C),'"'));throw k.url=C,k}}),Be(function(C){return!0===C})):ut(!0)}},{key:"lineralizeSegments",value:function(t,n){for(var l=[],c=n.root;;){if(l=l.concat(c.segments),0===c.numberOfChildren)return ut(l);if(c.numberOfChildren>1||!c.children[Cn])return DA(t.redirectTo);c=c.children[Cn]}}},{key:"applyRedirectCommands",value:function(t,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,l)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,l,c){var h=this.createSegmentGroup(t,n.root,l,c);return new nd(h,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var l={};return $i(t,function(c,h){if("string"==typeof c&&c.startsWith(":")){var C=c.substring(1);l[h]=n[C]}else l[h]=c}),l}},{key:"createSegmentGroup",value:function(t,n,l,c){var h=this,_=this.createSegments(t,n.segments,l,c),C={};return $i(n.children,function(k,D){C[D]=h.createSegmentGroup(t,k,l,c)}),new wn(_,C)}},{key:"createSegments",value:function(t,n,l,c){var h=this;return n.map(function(_){return _.path.startsWith(":")?h.findPosParam(t,_,c):h.findOrReturn(_,l)})}},{key:"findPosParam",value:function(t,n,l){var c=l[n.path.substring(1)];if(!c)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return c}},{key:"findOrReturn",value:function(t,n){var h,l=0,c=tn(n);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(_.path===t.path)return n.splice(l),_;l++}}catch(C){c.e(C)}finally{c.f()}return t}}]),e}();function R1(e){for(var a={},t=0,n=Object.keys(e.children);t0||h.hasChildren())&&(a[l]=h)}return function(e){if(1===e.numberOfChildren&&e.children[Cn]){var a=e.children[Cn];return new wn(e.segments.concat(a.segments),a.children)}return e}(new wn(e.segments,a))}var AA=function e(a){F(this,e),this.path=a,this.route=this.path[this.path.length-1]},L1=function e(a,t){F(this,e),this.component=a,this.route=t};function N7(e,a,t){var n=e._root;return Gy(n,a?a._root:null,t,[n.value])}function F1(e,a,t){var n=function(e){if(!e)return null;for(var a=e.parent;a;a=a.parent){var t=a.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(a);return(n?n.module.injector:t).get(e)}function Gy(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=mg(a);return e.children.forEach(function(h){H7(h,c[h.value.outlet],t,n.concat([h.value]),l),delete c[h.value.outlet]}),$i(c,function(h,_){return jy(h,t.getContext(_),l)}),l}function H7(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=e.value,h=a?a.value:null,_=t?t.getContext(e.value.outlet):null;if(h&&c.routeConfig===h.routeConfig){var C=z7(h,c,c.routeConfig.runGuardsAndResolvers);C?l.canActivateChecks.push(new AA(n)):(c.data=h.data,c._resolvedData=h._resolvedData),Gy(e,a,c.component?_?_.children:null:t,n,l),C&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new L1(_.outlet.component,h))}else h&&jy(a,_,l),l.canActivateChecks.push(new AA(n)),Gy(e,null,c.component?_?_.children:null:t,n,l);return l}function z7(e,a,t){if("function"==typeof t)return t(e,a);switch(t){case"pathParamsChange":return!rd(e.url,a.url);case"pathParamsOrQueryParamsChange":return!rd(e.url,a.url)||!wu(e.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!T1(e,a)||!wu(e.queryParams,a.queryParams);case"paramsChange":default:return!T1(e,a)}}function jy(e,a,t){var n=mg(e),l=e.value;$i(n,function(c,h){jy(c,l.component?a?a.children.getContext(h):null:a,t)}),t.canDeactivateChecks.push(new L1(l.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,l))}var X7=function e(){F(this,e)};function b3(e){return new gn(function(a){return a.error(e)})}var K7=function(){function e(a,t,n,l,c,h){F(this,e),this.rootComponentType=a,this.config=t,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=h}return W(e,[{key:"recognize",value:function(){var t=O1(this.urlTree.root,[],[],this.config.filter(function(_){return void 0===_.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,Cn);if(null===n)return null;var l=new x1([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Cn,this.rootComponentType,null,this.urlTree.root,-1,{}),c=new ku(l,n),h=new KN(this.url,c);return this.inheritParamsAndData(h._root),h}},{key:"inheritParamsAndData",value:function(t){var n=this,l=t.value,c=ZN(l,this.paramsInheritanceStrategy);l.params=Object.freeze(c.params),l.data=Object.freeze(c.data),t.children.forEach(function(h){return n.inheritParamsAndData(h)})}},{key:"processSegmentGroup",value:function(t,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,l)}},{key:"processChildren",value:function(t,n){for(var l=[],c=0,h=Object.keys(n.children);c0?BN(l).parameters:{};h=new x1(l,k,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+l.length,EA(t))}else{var D=P1(n,t,l);if(!D.matched)return null;_=D.consumedSegments,C=l.slice(D.lastChild),h=new x1(_,D.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+_.length,EA(t))}var I=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),L=O1(n,_,C,I.filter(function(se){return void 0===se.redirectTo}),this.relativeLinkResolution),G=L.segmentGroup,Y=L.slicedSegments;if(0===Y.length&&G.hasChildren()){var $=this.processChildren(I,G);return null===$?null:[new ku(h,$)]}if(0===I.length&&0===Y.length)return[new ku(h,[])];var ie=As(t)===c,fe=this.processSegment(I,G,Y,ie?Cn:c);return null===fe?null:[new ku(h,fe)]}}]),e}();function w3(e){var l,a=[],t=new Set,n=tn(e);try{var c=function(){var L=l.value;if(!function(e){var a=e.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}(L))return a.push(L),"continue";var Y,G=a.find(function($){return L.value.routeConfig===$.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,At(L.children)),t.add(G)):a.push(L)};for(n.s();!(l=n.n()).done;)c()}catch(I){n.e(I)}finally{n.f()}var C,_=tn(t);try{for(_.s();!(C=_.n()).done;){var k=C.value,D=w3(k.children);a.push(new ku(k.value,D))}}catch(I){_.e(I)}finally{_.f()}return a.filter(function(I){return!t.has(I)})}function S3(e){for(var a=e;a._sourceSegment;)a=a._sourceSegment;return a}function k3(e){for(var a=e,t=a._segmentIndexShift?a._segmentIndexShift:0;a._sourceSegment;)t+=(a=a._sourceSegment)._segmentIndexShift?a._segmentIndexShift:0;return t-1}function M3(e){return e.data||{}}function EA(e){return e.resolve||{}}function PA(e){return xa(function(a){var t=e(a);return t?yt(t).pipe(Be(function(){return a})):ut(a)})}var T3=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return t}(function(){function e(){F(this,e)}return W(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}()),OA=new Ee("ROUTES"),D3=function(){function e(a,t,n,l){F(this,e),this.loader=a,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=l}return W(e,[{key:"load",value:function(t,n){var l=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var h=this.loadModuleFactory(n.loadChildren).pipe(Be(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var C=_.create(t);return new _g(VN(C.injector.get(OA,void 0,yn.Self|yn.Optional)).map(xA),C)}),_o(function(_){throw n._loader$=void 0,_}));return n._loader$=new Oa(h,function(){return new qe}).pipe($o()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return"string"==typeof t?yt(this.loader.load(t)):Su(t()).pipe(Xr(function(l){return l instanceof C2?ut(l):yt(n.compiler.compileModuleAsync(l))}))}}]),e}(),N1=function e(){F(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Cg,this.attachRef=null},Cg=function(){function e(){F(this,e),this.contexts=new Map}return W(e,[{key:"onChildOutletCreated",value:function(t,n){var l=this.getOrCreateContext(t);l.outlet=n,this.contexts.set(t,l)}},{key:"onChildOutletDestroyed",value:function(t){var n=this.getContext(t);n&&(n.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var n=this.getContext(t);return n||(n=new N1,this.contexts.set(t,n)),n}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),e}(),sW=function(){function e(){F(this,e)}return W(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function lW(e){throw e}function uW(e,a,t){return a.parse("/")}function A3(e,a){return ut(null)}var cW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ta=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=l,this.location=c,this.config=k,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new qe,this.errorHandler=lW,this.malformedUriErrorHandler=uW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:A3,afterPreactivation:A3},this.urlHandlingStrategy=new sW,this.routeReuseStrategy=new T3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=h.get(nc),this.console=h.get(hw);var G=h.get(ft);this.isNgZoneEnabled=G instanceof ft&&ft.isInAngularZone(),this.resetConfig(k),this.currentUrlTree=new nd(new wn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new D3(_,C,function($){return D.triggerEvent(new hA($))},function($){return D.triggerEvent(new LN($))}),this.routerState=M1(this.currentUrlTree,this.rootComponentType),this.transitions=new Ma({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return W(a,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var l=this,c=this.events;return n.pipe(vr(function(h){return 0!==h.id}),Be(function(h){return Object.assign(Object.assign({},h),{extractedUrl:l.urlHandlingStrategy.extract(h.rawUrl)})}),xa(function(h){var _=!1,C=!1;return ut(h).pipe(Ya(function(k){l.currentNavigation={id:k.id,initialUrl:k.currentRawUrl,extractedUrl:k.extractedUrl,trigger:k.source,extras:k.extras,previousNavigation:l.lastSuccessfulNavigation?Object.assign(Object.assign({},l.lastSuccessfulNavigation),{previousNavigation:null}):null}}),xa(function(k){var D=!l.navigated||k.extractedUrl.toString()!==l.browserUrlTree.toString(),I=("reload"===l.onSameUrlNavigation||D)&&l.urlHandlingStrategy.shouldProcessUrl(k.rawUrl);if(V1(k.source)&&(l.browserUrlTree=k.rawUrl),I)return ut(k).pipe(xa(function(Ce){var je=l.transitions.getValue();return c.next(new fA(Ce.id,l.serializeUrl(Ce.extractedUrl),Ce.source,Ce.restoredState)),je!==l.transitions.getValue()?Ar:Promise.resolve(Ce)}),function(e,a,t,n){return xa(function(l){return function(e,a,t,n,l){return new g3(e,a,t,n,l).apply()}(e,a,t,l.extractedUrl,n).pipe(Be(function(c){return Object.assign(Object.assign({},l),{urlAfterRedirects:c})}))})}(l.ngModule.injector,l.configLoader,l.urlSerializer,l.config),Ya(function(Ce){l.currentNavigation=Object.assign(Object.assign({},l.currentNavigation),{finalUrl:Ce.urlAfterRedirects})}),function(e,a,t,n,l){return Xr(function(c){return function(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var h=new K7(e,a,t,n,l,c).recognize();return null===h?b3(new X7):ut(h)}catch(_){return b3(_)}}(e,a,c.urlAfterRedirects,t(c.urlAfterRedirects),n,l).pipe(Be(function(h){return Object.assign(Object.assign({},c),{targetSnapshot:h})}))})}(l.rootComponentType,l.config,function(Ce){return l.serializeUrl(Ce)},l.paramsInheritanceStrategy,l.relativeLinkResolution),Ya(function(Ce){"eager"===l.urlUpdateStrategy&&(Ce.extras.skipLocationChange||l.setBrowserUrl(Ce.urlAfterRedirects,Ce),l.browserUrlTree=Ce.urlAfterRedirects);var je=new dA(Ce.id,l.serializeUrl(Ce.extractedUrl),l.serializeUrl(Ce.urlAfterRedirects),Ce.targetSnapshot);c.next(je)}));if(D&&l.rawUrlTree&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){var Y=k.extractedUrl,$=k.source,ie=k.restoredState,fe=k.extras,se=new fA(k.id,l.serializeUrl(Y),$,ie);c.next(se);var be=M1(Y,l.rootComponentType).snapshot;return ut(Object.assign(Object.assign({},k),{targetSnapshot:be,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},fe),{skipLocationChange:!1,replaceUrl:!1})}))}return l.rawUrlTree=k.rawUrl,l.browserUrlTree=k.urlAfterRedirects,k.resolve(null),Ar}),PA(function(k){var Y=k.extras;return l.hooks.beforePreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),Ya(function(k){var D=new ON(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot);l.triggerEvent(D)}),Be(function(k){return Object.assign(Object.assign({},k),{guards:N7(k.targetSnapshot,k.currentSnapshot,l.rootContexts)})}),function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.currentSnapshot,c=t.guards,h=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===h.length?ut(Object.assign(Object.assign({},t),{guardsResult:!0})):function(e,a,t,n){return yt(e).pipe(Xr(function(l){return function(e,a,t,n,l){var c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;return c&&0!==c.length?ut(c.map(function(_){var k,C=F1(_,a,l);if(function(e){return e&&qa(e.canDeactivate)}(C))k=Su(C.canDeactivate(e,a,t,n));else{if(!qa(C))throw new Error("Invalid CanDeactivate guard");k=Su(C(e,a,t,n))}return k.pipe(lg())})).pipe(zy()):ut(!0)}(l.component,l.route,t,a,n)}),lg(function(l){return!0!==l},!0))}(_,n,l,e).pipe(Xr(function(C){return C&&function(e){return"boolean"==typeof e}(C)?function(e,a,t,n){return yt(a).pipe(Xh(function(l){return d1(function(e,a){return null!==e&&a&&a(new r7(e)),ut(!0)}(l.route.parent,n),function(e,a){return null!==e&&a&&a(new i7(e)),ut(!0)}(l.route,n),function(e,a,t){var n=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(function(h){return function(e){var a=e.routeConfig?e.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:e,guards:a}:null}(h)}).filter(function(h){return null!==h}).map(function(h){return Ly(function(){return ut(h.guards.map(function(C){var D,k=F1(C,h.node,t);if(function(e){return e&&qa(e.canActivateChild)}(k))D=Su(k.canActivateChild(n,e));else{if(!qa(k))throw new Error("Invalid CanActivateChild guard");D=Su(k(n,e))}return D.pipe(lg())})).pipe(zy())})});return ut(c).pipe(zy())}(e,l.path,t),function(e,a,t){var n=a.routeConfig?a.routeConfig.canActivate:null;return n&&0!==n.length?ut(n.map(function(c){return Ly(function(){var _,h=F1(c,a,t);if(function(e){return e&&qa(e.canActivate)}(h))_=Su(h.canActivate(a,e));else{if(!qa(h))throw new Error("Invalid CanActivate guard");_=Su(h(a,e))}return _.pipe(lg())})})).pipe(zy()):ut(!0)}(e,l.route,t))}),lg(function(l){return!0!==l},!0))}(n,h,e,a):ut(C)}),Be(function(C){return Object.assign(Object.assign({},t),{guardsResult:C})}))})}(l.ngModule.injector,function(k){return l.triggerEvent(k)}),Ya(function(k){if($h(k.guardsResult)){var D=g1('Redirecting to "'.concat(l.serializeUrl(k.guardsResult),'"'));throw D.url=k.guardsResult,D}var I=new IN(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot,!!k.guardsResult);l.triggerEvent(I)}),vr(function(k){return!!k.guardsResult||(l.restoreHistory(k),l.cancelNavigationTransition(k,""),!1)}),PA(function(k){if(k.guards.canActivateChecks.length)return ut(k).pipe(Ya(function(D){var I=new RN(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}),xa(function(D){var I=!1;return ut(D).pipe(function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.guards.canActivateChecks;if(!l.length)return ut(t);var c=0;return yt(l).pipe(Xh(function(h){return function(e,a,t,n){return function(e,a,t,n){var l=Object.keys(e);if(0===l.length)return ut({});var c={};return yt(l).pipe(Xr(function(h){return function(e,a,t,n){var l=F1(e,a,n);return Su(l.resolve?l.resolve(a,t):l(a,t))}(e[h],a,t,n).pipe(Ya(function(_){c[h]=_}))}),uA(1),Xr(function(){return Object.keys(c).length===l.length?ut(c):Ar}))}(e._resolve,e,a,n).pipe(Be(function(c){return e._resolvedData=c,e.data=Object.assign(Object.assign({},e.data),ZN(e,t).resolve),null}))}(h.route,n,e,a)}),Ya(function(){return c++}),uA(1),Xr(function(h){return c===l.length?ut(t):Ar}))})}(l.paramsInheritanceStrategy,l.ngModule.injector),Ya({next:function(){return I=!0},complete:function(){I||(l.restoreHistory(D),l.cancelNavigationTransition(D,"At least one route resolver didn't emit any value."))}}))}),Ya(function(D){var I=new n7(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}))}),PA(function(k){var Y=k.extras;return l.hooks.afterPreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),Be(function(k){var D=function(e,a,t){var n=D1(e,a._root,t?t._root:void 0);return new yA(n,a)}(l.routeReuseStrategy,k.targetSnapshot,k.currentRouterState);return Object.assign(Object.assign({},k),{targetRouterState:D})}),Ya(function(k){l.currentUrlTree=k.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,k.rawUrl),l.routerState=k.targetRouterState,"deferred"===l.urlUpdateStrategy&&(k.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,k),l.browserUrlTree=k.urlAfterRedirects)}),function(a,t,n){return Be(function(l){return new x7(t,l.targetRouterState,l.currentRouterState,n).activate(a),l})}(l.rootContexts,l.routeReuseStrategy,function(k){return l.triggerEvent(k)}),Ya({next:function(){_=!0},complete:function(){_=!0}}),function(e){return function(a){return a.lift(new e7(e))}}(function(){if(!_&&!C){var k="Navigation ID ".concat(h.id," is not equal to the current navigation id ").concat(l.navigationId);"replace"===l.canceledNavigationResolution&&l.restoreHistory(h),l.cancelNavigationTransition(h,k)}l.currentNavigation=null}),_o(function(k){if(C=!0,function(e){return e&&e[pA]}(k)){var D=$h(k.url);D||(l.navigated=!0,l.restoreHistory(h,!0));var I=new p1(h.id,l.serializeUrl(h.extractedUrl),k.message);c.next(I),D?setTimeout(function(){var G=l.urlHandlingStrategy.merge(k.url,l.rawUrlTree),Y={skipLocationChange:h.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||V1(h.source)};l.scheduleNavigation(G,"imperative",null,Y,{resolve:h.resolve,reject:h.reject,promise:h.promise})},0):h.resolve(!1)}else{l.restoreHistory(h,!0);var L=new ug(h.id,l.serializeUrl(h.extractedUrl),k);c.next(L);try{h.resolve(l.errorHandler(k))}catch(G){h.reject(G)}}return Ar}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(l){var c=n.extractLocationChangeInfoFromEvent(l);n.shouldScheduleNavigation(n.lastLocationChangeInfo,c)&&setTimeout(function(){var h=c.source,_=c.state,C=c.urlTree,k={replaceUrl:!0};if(_){var D=Object.assign({},_);delete D.navigationId,delete D.\u0275routerPageId,0!==Object.keys(D).length&&(k.state=D)}n.scheduleNavigation(C,h,_,k)},0),n.lastLocationChangeInfo=c}))}},{key:"extractLocationChangeInfoFromEvent",value:function(n){var l;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(l=n.state)||void 0===l?void 0:l.navigationId)?n.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(n,l){if(!n)return!0;var c=l.urlTree.toString()===n.urlTree.toString();return!(l.transitionId===n.transitionId&&c&&("hashchange"===l.source&&"popstate"===n.source||"popstate"===l.source&&"hashchange"===n.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){u3(n),this.config=n.map(xA),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.relativeTo,h=l.queryParams,_=l.fragment,C=l.queryParamsHandling,k=l.preserveFragment,D=c||this.routerState.root,I=k?this.currentUrlTree.fragment:_,L=null;switch(C){case"merge":L=Object.assign(Object.assign({},this.currentUrlTree.queryParams),h);break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=h||null}return null!==L&&(L=this.removeEmptyProps(L)),b7(D,this.currentUrlTree,n,L,null!=I?I:null)}},{key:"navigateByUrl",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},c=$h(n)?n:this.parseUrl(n),h=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(h,"imperative",null,l)}},{key:"navigate",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return dW(n),this.navigateByUrl(this.createUrlTree(n,l),l)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var l;try{l=this.urlSerializer.parse(n)}catch(c){l=this.malformedUriErrorHandler(c,this.urlSerializer,n)}return l}},{key:"isActive",value:function(n,l){var c;if(c=!0===l?Object.assign({},cW):!1===l?Object.assign({},fW):l,$h(n))return vA(this.currentUrlTree,n,c);var h=this.parseUrl(n);return vA(this.currentUrlTree,h,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var h=n[c];return null!=h&&(l[c]=h),l},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(l){n.navigated=!0,n.lastSuccessfulId=l.id,n.currentPageId=l.targetPageId,n.events.next(new kl(l.id,n.serializeUrl(l.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,l.resolve(!0)},function(l){n.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(n,l,c,h,_){var C,k;if(this.disposed)return Promise.resolve(!1);var $,ie,fe,D=this.getTransition(),I=V1(l)&&D&&!V1(D.source),Y=(this.lastSuccessfulId===D.id||this.currentNavigation?D.rawUrl:D.urlAfterRedirects).toString()===n.toString();if(I&&Y)return Promise.resolve(!0);_?($=_.resolve,ie=_.reject,fe=_.promise):fe=new Promise(function(je,Qe){$=je,ie=Qe});var be,se=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(c=this.location.getState()),be=c&&c.\u0275routerPageId?c.\u0275routerPageId:h.replaceUrl||h.skipLocationChange?null!==(C=this.browserPageId)&&void 0!==C?C:0:(null!==(k=this.browserPageId)&&void 0!==k?k:0)+1):be=0,this.setTransition({id:se,targetPageId:be,source:l,restoredState:c,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:h,resolve:$,reject:ie,promise:fe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fe.catch(function(je){return Promise.reject(je)})}},{key:"setBrowserUrl",value:function(n,l){var c=this.urlSerializer.serialize(n),h=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",h):this.location.go(c,"",h)}},{key:"restoreHistory",value:function(n){var c,h,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var _=this.currentPageId-n.targetPageId,C="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl);C&&0!==_?this.location.historyGo(_):this.currentUrlTree===(null===(h=this.currentNavigation)||void 0===h?void 0:h.finalUrl)&&0===_&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,l){var c=new p1(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(c),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":l}:{navigationId:n}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Yl),ce(y1),ce(Cg),ce(Jv),ce(kn),ce(qf),ce(gu),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function dW(e){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{};F(this,a),this.router=t,this.viewportScroller=n,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration=l.scrollPositionRestoration||"disabled",l.anchorScrolling=l.anchorScrolling||"disabled"}return W(a,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof fA?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=l.navigationTrigger,n.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof kl&&(n.lastId=l.id,n.scheduleScrollEvent(l,n.router.parseUrl(l.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof FN&&(l.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,l){this.router.triggerEvent(new FN(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ta),ce(Kw),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ad=new Ee("ROUTER_CONFIGURATION"),LA=new Ee("ROUTER_FORROOT_GUARD"),I3=[Jv,{provide:y1,useClass:b1},{provide:Ta,useFactory:function(e,a,t,n,l,c,h){var _=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9?arguments[9]:void 0,D=new Ta(null,e,a,t,n,l,c,VN(h));return C&&(D.urlHandlingStrategy=C),k&&(D.routeReuseStrategy=k),V3(_,D),_.enableTracing&&D.events.subscribe(function(I){var L,G;null===(L=console.group)||void 0===L||L.call(console,"Router Event: ".concat(I.constructor.name)),console.log(I.toString()),console.log(I),null===(G=console.groupEnd)||void 0===G||G.call(console)}),D},deps:[y1,Cg,Jv,kn,qf,gu,OA,ad,[function e(){F(this,e)},new oi],[function e(){F(this,e)},new oi]]},Cg,{provide:wr,useFactory:function(e){return e.routerState.root},deps:[Ta]},{provide:qf,useClass:$U},P3,H1,vW,{provide:ad,useValue:{enableTracing:!1}}];function R3(){return new Yv("Router",Ta)}var FA=function(){var e=function(){function a(t,n){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n,l){return{ngModule:a,providers:[I3,F3(n),{provide:LA,useFactory:L3,deps:[[Ta,new oi,new Fo]]},{provide:ad,useValue:l||{}},{provide:$v,useFactory:mW,deps:[cc,[new jp(Vw),new oi],ad]},{provide:RA,useFactory:gW,deps:[Ta,Kw,ad]},{provide:IA,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:H1},{provide:Yv,multi:!0,useFactory:R3},[od,{provide:fo,multi:!0,useFactory:B3,deps:[od]},{provide:z3,useFactory:H3,deps:[od]},{provide:dw,multi:!0,useExisting:z3}]]}}},{key:"forChild",value:function(n){return{ngModule:a,providers:[F3(n)]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(LA,8),ce(Ta,8))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function gW(e,a,t){return t.scrollOffset&&a.setOffset(t.scrollOffset),new RA(e,a,t)}function mW(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new yF(e,a):new mD(e,a)}function L3(e){return"guarded"}function F3(e){return[{provide:YH,multi:!0,useValue:e},{provide:OA,multi:!0,useValue:e}]}function V3(e,a){e.errorHandler&&(a.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(a.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(a.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(a.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(a.urlUpdateStrategy=e.urlUpdateStrategy)}var od=function(){var e=function(){function a(t){F(this,a),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qe}return W(a,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(gF,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var c=null,h=new Promise(function(k){return c=k}),_=n.injector.get(Ta),C=n.injector.get(ad);return"disabled"===C.initialNavigation?(_.setUpLocationChangeListener(),c(!0)):"enabled"===C.initialNavigation||"enabledBlocking"===C.initialNavigation?(_.hooks.afterPreactivation=function(){return n.initNavigation?ut(null):(n.initNavigation=!0,c(!0),n.resultOfPreactivationDone)},_.initialNavigation()):c(!0),h})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(ad),c=this.injector.get(P3),h=this.injector.get(RA),_=this.injector.get(Ta),C=this.injector.get(sc);n===C.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&_.initialNavigation(),c.setUpPreloading(),h.init(),_.resetRootComponentType(C.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function B3(e){return e.appInitializer.bind(e)}function H3(e){return e.bootstrapListener.bind(e)}var z3=new Ee("Router Initializer"),yW=function(){function e(a){this.user=a.user,this.role=a.role,this.admin=a.admin}return Object.defineProperty(e.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),e}();function it(e){return null!=e&&"false"!=="".concat(e)}function Di(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U3(e)?Number(e):a}function U3(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Sg(e){return Array.isArray(e)?e:[e]}function mi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function yc(e){return e instanceof Ue?e.nativeElement:e}function G3(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,t=[];if(null!=e){var c,n=Array.isArray(e)?e:"".concat(e).split(a),l=tn(n);try{for(l.s();!(c=l.n()).done;){var h=c.value,_="".concat(h).trim();_&&t.push(_)}}catch(C){l.e(C)}finally{l.f()}}return t}function Tl(e,a,t,n){return nt(t)&&(n=t,t=void 0),n?Tl(e,a,t).pipe(Be(function(l){return Vu(l)?n.apply(void 0,At(l)):n(l)})):new gn(function(l){j3(e,a,function(h){l.next(arguments.length>1?Array.prototype.slice.call(arguments):h)},l,t)})}function j3(e,a,t,n,l){var c;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var h=e;e.addEventListener(a,t,l),c=function(){return h.removeEventListener(a,t,l)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var _=e;e.on(a,t),c=function(){return _.off(a,t)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var C=e;e.addListener(a,t),c=function(){return C.removeListener(a,t)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var k=0,D=e.length;k1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=l;var h=this.id,_=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(_,h,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(l.flush.bind(l,this),h)}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&this.delay===h&&!1===this.pending)return c;clearInterval(c)}},{key:"execute",value:function(l,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var h=this._execute(l,c);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var h=!1,_=void 0;try{this.work(l)}catch(C){h=!0,_=!!C&&C||new Error(C)}if(h)return this.unsubscribe(),_}},{key:"_unsubscribe",value:function(){var l=this.id,c=this.scheduler,h=c.actions,_=h.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==_&&h.splice(_,1),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null}}]),t}(function(e){ae(t,e);var a=ue(t);function t(n,l){return F(this,t),a.call(this)}return W(t,[{key:"schedule",value:function(l){return this}}]),t}(Ve)),q3=function(){var e=function(){function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.now;F(this,a),this.SchedulerAction=t,this.now=n}return W(a,[{key:"schedule",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,n).schedule(c,l)}}]),a}();return e.now=function(){return Date.now()},e}(),z1=function(e){ae(t,e);var a=ue(t);function t(n){var l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q3.now;return F(this,t),(l=a.call(this,n,function(){return t.delegate&&t.delegate!==It(l)?t.delegate.now():c()})).actions=[],l.active=!1,l.scheduled=void 0,l}return W(t,[{key:"schedule",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,h=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(l,c,h):Ie(Oe(t.prototype),"schedule",this).call(this,l,c,h)}},{key:"flush",value:function(l){var c=this.actions;if(this.active)c.push(l);else{var h;this.active=!0;do{if(h=l.execute(l.state,l.delay))break}while(l=c.shift());if(this.active=!1,h){for(;l=c.shift();)l.unsubscribe();throw h}}}}]),t}(q3),X3=1,xW=function(){return Promise.resolve()}(),Yy={};function Z3(e){return e in Yy&&(delete Yy[e],!0)}var VA_setImmediate=function(a){var t=X3++;return Yy[t]=!0,xW.then(function(){return Z3(t)&&a()}),t},VA_clearImmediate=function(a){Z3(a)},TW=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n,l)).scheduler=n,c.work=l,c}return W(t,[{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==h&&h>0?Ie(Oe(t.prototype),"requestAsyncId",this).call(this,l,c,h):(l.actions.push(this),l.scheduled||(l.scheduled=VA_setImmediate(l.flush.bind(l,null))))}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&h>0||null===h&&this.delay>0)return Ie(Oe(t.prototype),"recycleAsyncId",this).call(this,l,c,h);0===l.actions.length&&(VA_clearImmediate(c),l.scheduled=void 0)}}]),t}(kg),BA=new(function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"flush",value:function(l){this.active=!0,this.scheduled=void 0;var h,c=this.actions,_=-1,C=c.length;l=l||c.shift();do{if(h=l.execute(l.state,l.delay))break}while(++_=0}function K3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=-1;return zA(a)?n=Number(a)<1?1:Number(a):rt(a)&&(t=a),rt(t)||(t=Mg),new gn(function(l){var c=zA(e)?e:+e-t.now();return t.schedule(FW,c,{index:0,period:n,subscriber:l})})}function FW(e){var a=e.index,t=e.period,n=e.subscriber;if(n.next(a),!n.closed){if(-1===t)return n.complete();e.index=a+1,this.schedule(e,t)}}function U1(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return IW(function(){return K3(e,a)})}function Ht(e){return function(a){return a.lift(new Q3(e))}}var Q3=function(){function e(a){F(this,e),this.notifier=a}return W(e,[{key:"call",value:function(t,n){var l=new $3(t),c=Oi(this.notifier,new Gc(l));return c&&!l.seenValue?(l.add(c),n.subscribe(l)):l}}]),e}(),$3=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n)).seenValue=!1,l}return W(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),t}(at);function GA(e,a){return new gn(a?function(t){return a.schedule(nV,0,{error:e,subscriber:t})}:function(t){return t.error(e)})}function nV(e){e.subscriber.error(e.error)}var Mu,qy=function(){var e=function(){function a(t,n,l){F(this,a),this.kind=t,this.value=n,this.error=l,this.hasValue="N"===t}return W(a,[{key:"observe",value:function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}},{key:"do",value:function(n,l,c){switch(this.kind){case"N":return n&&n(this.value);case"E":return l&&l(this.error);case"C":return c&&c()}}},{key:"accept",value:function(n,l,c){return n&&"function"==typeof n.next?this.observe(n):this.do(n,l,c)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return ut(this.value);case"E":return GA(this.error);case"C":return h1()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(n){return void 0!==n?new a("N",n):a.undefinedValueNotification}},{key:"createError",value:function(n){return new a("E",void 0,n)}},{key:"createComplete",value:function(){return a.completeNotification}}]),a}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();try{Mu="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Mu=!1}var qo,Xy,Cc,WA,en=function(){var e=function a(t){F(this,a),this._platformId=t,this.isBrowser=this._platformId?function(e){return"browser"===e}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Mu)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(ce(jv))},e.\u0275prov=We({factory:function(){return new e(ce(jv))},token:e,providedIn:"root"}),e}(),ep=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),G1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function j1(){if(qo)return qo;if("object"!=typeof document||!document)return qo=new Set(G1);var e=document.createElement("input");return qo=new Set(G1.filter(function(a){return e.setAttribute("type",a),e.type===a}))}function tp(e){return function(){if(null==Xy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Xy=!0}}))}finally{Xy=Xy||!1}return Xy}()?e:!!e.capture}function rV(){if(null==Cc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Cc=!1;if("scrollBehavior"in document.documentElement.style)Cc=!0;else{var e=Element.prototype.scrollTo;Cc=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Cc}function W1(e){if(function(){if(null==WA){var e="undefined"!=typeof document?document.head:null;WA=!(!e||!e.createShadowRoot&&!e.attachShadow)}return WA}()){var a=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Ky(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var a=e.shadowRoot.activeElement;if(a===e)break;e=a}return e}function rp(e){return e.composedPath?e.composedPath()[0]:e.target}var iV=new Ee("cdk-dir-doc",{providedIn:"root",factory:function(){return tM(lt)}}),Sr=function(){var e=function(){function a(t){if(F(this,a),this.value="ltr",this.change=new ye,t){var c=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===c||"rtl"===c?c:"ltr"}}return W(a,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(iV,8))},e.\u0275prov=We({factory:function(){return new e(ce(iV,8))},token:e,providedIn:"root"}),e}(),Qy=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),qA=function e(){F(this,e)};function Y1(e){return e&&"function"==typeof e.connect}var XA=function(){function e(){F(this,e)}return W(e,[{key:"applyChanges",value:function(t,n,l,c,h){t.forEachOperation(function(_,C,k){var D,I;if(null==_.previousIndex){var L=l(_,C,k);D=n.createEmbeddedView(L.templateRef,L.context,L.index),I=1}else null==k?(n.remove(C),I=3):(D=n.get(C),n.move(D,k),I=2);h&&h({context:null==D?void 0:D.context,operation:I,record:_})})}},{key:"detach",value:function(){}}]),e}(),ip=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];F(this,e),this._multiple=t,this._emitChanges=l,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,n&&n.length&&(t?n.forEach(function(c){return a._markSelected(c)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return W(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,n=arguments.length,l=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new gn(function(c){n._globalSubscription||n._addGlobalListener();var h=l>0?n._scrolled.pipe(U1(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){h.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):ut()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(l,c){return n.deregister(c)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,l){var c=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe(vr(function(h){return!h||c.indexOf(h)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(h,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=yc(l),h=n.getElementRef().nativeElement;do{if(c==h)return!0}while(c=c.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Tl(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(lt,8))},token:e,providedIn:"root"}),e}(),yo=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._platform=t,this._change=new qe,this._changeListener=function(h){c._change.next(h)},this._document=l,n.runOutsideAngular(function(){if(t.isBrowser){var h=c._getWindow();h.addEventListener("resize",c._changeListener),h.addEventListener("orientationchange",c._changeListener)}c.change().subscribe(function(){return c._viewportSize=null})})}return W(a,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),l=this.getViewportSize(),c=l.width,h=l.height;return{top:n.top,left:n.left,bottom:n.top+h,right:n.left+c,height:h,width:c}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,l=this._getWindow(),c=n.documentElement,h=c.getBoundingClientRect();return{top:-h.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-h.left||n.body.scrollLeft||l.scrollX||c.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(U1(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt,8))},token:e,providedIn:"root"}),e}(),lp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),q1=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qy,ep,lp],Qy,lp]}),e}(),X1=function(){function e(){F(this,e)}return W(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),sd=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=h,_}return t}(X1),Ps=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).templateRef=n,h.viewContainerRef=l,h.context=c,h}return W(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=c,Ie(Oe(t.prototype),"attach",this).call(this,l)}},{key:"detach",value:function(){return this.context=void 0,Ie(Oe(t.prototype),"detach",this).call(this)}}]),t}(X1),eE=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).element=n instanceof Ue?n.nativeElement:n,l}return t}(X1),Jy=function(){function e(){F(this,e),this._isDisposed=!1,this.attachDomPortal=null}return W(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof sd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ps?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof eE?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),tE=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C,k;return F(this,t),(k=a.call(this)).outletElement=n,k._componentFactoryResolver=l,k._appRef=c,k._defaultInjector=h,k.attachDomPortal=function(D){var I=D.element,L=k._document.createComment("dom-portal");I.parentNode.insertBefore(L,I),k.outletElement.appendChild(I),k._attachedPortal=D,Ie((C=It(k),Oe(t.prototype)),"setDisposeFn",C).call(C,function(){L.parentNode&&L.parentNode.replaceChild(I,L)})},k._document=_,k}return W(t,[{key:"attachComponentPortal",value:function(l){var C,c=this,_=(l.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(l.component);return l.viewContainerRef?(C=l.viewContainerRef.createComponent(_,l.viewContainerRef.length,l.injector||l.viewContainerRef.injector),this.setDisposeFn(function(){return C.destroy()})):(C=_.create(l.injector||this._defaultInjector),this._appRef.attachView(C.hostView),this.setDisposeFn(function(){c._appRef.detachView(C.hostView),C.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(C)),this._attachedPortal=l,C}},{key:"attachTemplatePortal",value:function(l){var c=this,h=l.viewContainerRef,_=h.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(C){return c.outletElement.appendChild(C)}),_.detectChanges(),this.setDisposeFn(function(){var C=h.indexOf(_);-1!==C&&h.remove(C)}),this._attachedPortal=l,_}},{key:"dispose",value:function(){Ie(Oe(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(l){return l.hostView.rootNodes[0]}}]),t}(Jy),nE=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){return F(this,n),t.call(this,l,c)}return n}(Ps);return e.\u0275fac=function(t){return new(t||e)(N(Xn),N(Qn))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Pe]}),e}(),Os=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _,C;return F(this,n),(C=t.call(this))._componentFactoryResolver=l,C._viewContainerRef=c,C._isInitialized=!1,C.attached=new ye,C.attachDomPortal=function(k){var D=k.element,I=C._document.createComment("dom-portal");k.setAttachedHost(It(C)),D.parentNode.insertBefore(I,D),C._getRootNode().appendChild(D),C._attachedPortal=k,Ie((_=It(C),Oe(n.prototype)),"setDisposeFn",_).call(_,function(){I.parentNode&&I.parentNode.replaceChild(D,I)})},C._document=h,C}return W(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(c){this.hasAttached()&&!c&&!this._isInitialized||(this.hasAttached()&&Ie(Oe(n.prototype),"detach",this).call(this),c&&Ie(Oe(n.prototype),"attach",this).call(this,c),this._attachedPortal=c)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(c){c.setAttachedHost(this);var h=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,C=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),k=h.createComponent(C,h.length,c.injector||h.injector);return h!==this._viewContainerRef&&this._getRootNode().appendChild(k.hostView.rootNodes[0]),Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return k.destroy()}),this._attachedPortal=c,this._attachedRef=k,this.attached.emit(k),k}},{key:"attachTemplatePortal",value:function(c){var h=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return h._viewContainerRef.clear()}),this._attachedPortal=c,this._attachedRef=_,this.attached.emit(_),_}},{key:"_getRootNode",value:function(){var c=this._viewContainerRef.element.nativeElement;return c.nodeType===c.ELEMENT_NODE?c:c.parentNode}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(Zi),N(Qn),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Pe]}),e}(),xg=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),wc=function(){function e(a,t){F(this,e),this.predicate=a,this.inclusive=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new JW(t,this.predicate,this.inclusive))}}]),e}(),JW=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).predicate=l,h.inclusive=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){var h,c=this.destination;try{h=this.predicate(l,this.index++)}catch(_){return void c.error(_)}this.nextOrComplete(l,h)}},{key:"nextOrComplete",value:function(l,c){var h=this.destination;Boolean(c)?h.next(l):(this.inclusive&&h.next(l),h.complete())}}]),t}(Ze);function Vi(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;nl.height||n.scrollWidth>l.width}}]),e}(),SV=function(){function e(a,t,n,l){var c=this;F(this,e),this._scrollDispatcher=a,this._ngZone=t,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=function(){c.disable(),c._overlayRef.hasAttached()&&c._ngZone.run(function(){return c._overlayRef.detach()})}}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var l=t._viewportRuler.getViewportScrollPosition().top;Math.abs(l-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),kV=function(){function e(){F(this,e)}return W(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function fE(e,a){return a.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Tc(e,a){return a.some(function(t){return e.topt.bottom||e.leftt.right})}var s$=function(){function e(a,t,n,l){F(this,e),this._scrollDispatcher=a,this._viewportRuler=t,this._ngZone=n,this._config=l,this._scrollSubscription=null}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var l=t._overlayRef.overlayElement.getBoundingClientRect(),c=t._viewportRuler.getViewportSize(),h=c.width,_=c.height;fE(l,[{width:h,height:_,bottom:_,right:h,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),l$=function(){var e=function a(t,n,l,c){var h=this;F(this,a),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new kV},this.close=function(_){return new SV(h._scrollDispatcher,h._ngZone,h._viewportRuler,_)},this.block=function(){return new wY(h._viewportRuler,h._document)},this.reposition=function(_){return new s$(h._scrollDispatcher,h._viewportRuler,h._ngZone,_)},this._document=c};return e.\u0275fac=function(t){return new(t||e)(ce(op),ce(yo),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(op),ce(yo),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),up=function e(a){if(F(this,e),this.scrollStrategy=new kV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a)for(var n=0,l=Object.keys(a);n-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),MY=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this,l))._keydownListener=function(h){for(var _=c._attachedOverlays,C=_.length-1;C>-1;C--)if(_[C]._keydownEvents.observers.length>0){_[C]._keydownEvents.next(h);break}},c}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"add",this).call(this,c),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),xY=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._platform=c,h._cursorStyleIsSet=!1,h._clickListener=function(_){for(var C=rp(_),k=h._attachedOverlays.slice(),D=k.length-1;D>-1;D--){var I=k[D];if(!(I._outsidePointerEvents.observers.length<1)&&I.hasAttached()){if(I.overlayElement.contains(C))break;I._outsidePointerEvents.next(_)}}},h}return W(n,[{key:"add",value:function(c){if(Ie(Oe(n.prototype),"add",this).call(this,c),!this._isAttached){var h=this._document.body;h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=h.style.cursor,h.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var c=this._document.body;c.removeEventListener("click",this._clickListener,!0),c.removeEventListener("auxclick",this._clickListener,!0),c.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(c.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(lt),ce(en))},token:e,providedIn:"root"}),e}(),Tu="undefined"!=typeof window?window:{},DV=void 0!==Tu.__karma__&&!!Tu.__karma__||void 0!==Tu.jasmine&&!!Tu.jasmine||void 0!==Tu.jest&&!!Tu.jest||void 0!==Tu.Mocha&&!!Tu.Mocha,tb=function(){var e=function(){function a(t,n){F(this,a),this._platform=n,this._document=t}return W(a,[{key:"ngOnDestroy",value:function(){var n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var n="cdk-overlay-container";if(this._platform.isBrowser||DV)for(var l=this._document.querySelectorAll(".".concat(n,'[platform="server"], ')+".".concat(n,'[platform="test"]')),c=0;cY&&(Y=se,G=fe)}}catch(be){$.e(be)}finally{$.f()}return this._isPushed=!1,void this._applyPosition(G.position,G.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&cp(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,t);this._applyPosition(t,n)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n){var l;if("center"==n.originX)l=t.left+t.width/2;else{var c=this._isRtl()?t.right:t.left,h=this._isRtl()?t.left:t.right;l="start"==n.originX?c:h}return{x:l,y:"center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,n,l){var c;return c="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+c,y:t.y+("center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,l,c){var h=EV(n),_=t.x,C=t.y,k=this._getOffset(c,"x"),D=this._getOffset(c,"y");k&&(_+=k),D&&(C+=D);var G=0-C,Y=C+h.height-l.height,$=this._subtractOverflows(h.width,0-_,_+h.width-l.width),ie=this._subtractOverflows(h.height,G,Y),fe=$*ie;return{visibleArea:fe,isCompletelyWithinViewport:h.width*h.height===fe,fitsInViewportVertically:ie===h.height,fitsInViewportHorizontally:$==h.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,h=l.right-n.x,_=AV(this._overlayRef.getConfig().minHeight),C=AV(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=_&&_<=c)&&(t.fitsInViewportHorizontally||null!=C&&C<=h)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var I,L,c=EV(n),h=this._viewportRect,_=Math.max(t.x+c.width-h.width,0),C=Math.max(t.y+c.height-h.height,0),k=Math.max(h.top-l.top-t.y,0),D=Math.max(h.left-l.left-t.x,0);return this._previousPushAmount={x:I=c.width<=h.width?D||-_:t.xD&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.y-D/2)}if("end"===n.overlayX&&!c||"start"===n.overlayX&&c)$=l.width-t.x+this._viewportMargin,G=t.x-this._viewportMargin;else if("start"===n.overlayX&&!c||"end"===n.overlayX&&c)Y=t.x,G=l.right-t.x;else{var ie=Math.min(l.right-t.x+l.left,t.x),fe=this._lastBoundingBoxSize.width;Y=t.x-ie,(G=2*ie)>fe&&!this._isInitialRender&&!this._growAfterOpen&&(Y=t.x-fe/2)}return{top:_,left:Y,bottom:C,right:$,width:G,height:h}}},{key:"_setBoundingBoxStyles",value:function(t,n){var l=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var h=this._overlayRef.getConfig().maxHeight,_=this._overlayRef.getConfig().maxWidth;c.height=mi(l.height),c.top=mi(l.top),c.bottom=mi(l.bottom),c.width=mi(l.width),c.left=mi(l.left),c.right=mi(l.right),c.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",c.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",h&&(c.maxHeight=mi(h)),_&&(c.maxWidth=mi(_))}this._lastBoundingBoxSize=l,cp(this._boundingBox.style,c)}},{key:"_resetBoundingBoxStyles",value:function(){cp(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){cp(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var l={},c=this._hasExactPosition(),h=this._hasFlexibleDimensions,_=this._overlayRef.getConfig();if(c){var C=this._viewportRuler.getViewportScrollPosition();cp(l,this._getExactOverlayY(n,t,C)),cp(l,this._getExactOverlayX(n,t,C))}else l.position="static";var k="",D=this._getOffset(n,"x"),I=this._getOffset(n,"y");D&&(k+="translateX(".concat(D,"px) ")),I&&(k+="translateY(".concat(I,"px)")),l.transform=k.trim(),_.maxHeight&&(c?l.maxHeight=mi(_.maxHeight):h&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=mi(_.maxWidth):h&&(l.maxWidth="")),cp(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(t,n,l){var c={top:"",bottom:""},h=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l));var _=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return h.y-=_,"bottom"===t.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(h.y+this._overlayRect.height),"px"):c.top=mi(h.y),c}},{key:"_getExactOverlayX",value:function(t,n,l){var c={left:"",right:""},h=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(h.x+this._overlayRect.width),"px"):c.left=mi(h.x),c}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(function(c){return c.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Tc(t,l),isOriginOutsideView:fE(t,l),isOverlayClipped:Tc(n,l),isOverlayOutsideView:fE(n,l)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),c=l.width,h=l.height,_=l.maxWidth,C=l.maxHeight,k=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),D=!("100%"!==h&&"100vh"!==h||C&&"100%"!==C&&"100vh"!==C);t.position=this._cssPosition,t.marginLeft=k?"0":this._leftOffset,t.marginTop=D?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,k?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=D?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(pE),l.justifyContent=l.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),AY=function(){var e=function(){function a(t,n,l,c){F(this,a),this._viewportRuler=t,this._document=n,this._platform=l,this._overlayContainer=c}return W(a,[{key:"global",value:function(){return new vE}},{key:"connectedTo",value:function(n,l,c){return new DY(l,c,n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(n){return new hE(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(yo),ce(lt),ce(en),ce(tb))},e.\u0275prov=We({factory:function(){return new e(ce(yo),ce(lt),ce(en),ce(tb))},token:e,providedIn:"root"}),e}(),Is=0,Ai=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=h,this._injector=_,this._ngZone=C,this._document=k,this._directionality=D,this._location=I,this._outsideClickDispatcher=L}return W(a,[{key:"create",value:function(n){var l=this._createHostElement(),c=this._createPaneElement(l),h=this._createPortalOutlet(c),_=new up(n);return _.direction=_.direction||this._directionality.value,new Ag(h,l,c,_,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var l=this._document.createElement("div");return l.id="cdk-overlay-".concat(Is++),l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(sc)),new tE(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(l$),ce(tb),ce(Zi),ce(AY),ce(MY),ce(kn),ce(ft),ce(lt),ce(Sr),ce(Jv),ce(xY))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Eg=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],gE=new Ee("cdk-connected-overlay-scroll-strategy"),EY=function(){var e=function a(t){F(this,a),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),PV=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._overlay=t,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ve.EMPTY,this._attachSubscription=Ve.EMPTY,this._detachSubscription=Ve.EMPTY,this._positionSubscription=Ve.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ye,this.positionChange=new ye,this.attach=new ye,this.detach=new ye,this.overlayKeydown=new ye,this.overlayOutsideClick=new ye,this._templatePortal=new Ps(n,l),this._scrollStrategyFactory=c,this.scrollStrategy=this._scrollStrategyFactory()}return W(a,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=it(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=it(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=it(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=it(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=it(n)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=Eg);var l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=l.detachments().subscribe(function(){return n.detach.emit()}),l.keydownEvents().subscribe(function(c){n.overlayKeydown.next(c),27===c.keyCode&&!n.disableClose&&!Vi(c)&&(c.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(c){n.overlayOutsideClick.next(c)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),l=new up({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}},{key:"_updatePositionStrategy",value:function(n){var l=this,c=this.positions.map(function(h){return{originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||l.offsetX,offsetY:h.offsetY||l.offsetY,panelClass:h.panelClass||void 0}});return n.setOrigin(this.origin.elementRef).withPositions(c).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(n),n}},{key:"_attachOverlay",value:function(){var n=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(l){n.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){return t.lift(new wc(e,a))}}(function(){return n.positionChange.observers.length>0})).subscribe(function(l){n.positionChange.emit(l),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Xn),N(Qn),N(gE),N(Sr,8))},e.\u0275dir=ve({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[an]}),e}(),OV={provide:gE,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},fp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Ai,OV],imports:[[Qy,xg,q1],q1]}),e}();function mE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return function(t){return t.lift(new IV(e,a))}}var IV=function(){function e(a,t){F(this,e),this.dueTime=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new OY(t,this.dueTime,this.scheduler))}}]),e}(),OY=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).dueTime=l,h.scheduler=c,h.debouncedSubscription=null,h.lastValue=null,h.hasValue=!1,h}return W(t,[{key:"_next",value:function(l){this.clearDebounce(),this.lastValue=l,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(RV,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var l=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(l)}}},{key:"clearDebounce",value:function(){var l=this.debouncedSubscription;null!==l&&(this.remove(l),l.unsubscribe(),this.debouncedSubscription=null)}}]),t}(Ze);function RV(e){e.debouncedNext()}function IY(e){return function(a){return a.lift(new c$(e))}}var c$=function(){function e(a){F(this,e),this.total=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new RY(t,this.total))}}]),e}(),RY=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.count=0,c}return W(t,[{key:"_next",value:function(l){++this.count>this.total&&this.destination.next(l)}}]),t}(Ze),_E=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),yE=function(){var e=function(){function a(t){F(this,a),this._mutationObserverFactory=t,this._observedElements=new Map}return W(a,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(l,c){return n._cleanupObserver(c)})}},{key:"observe",value:function(n){var l=this,c=yc(n);return new gn(function(h){var C=l._observeElement(c).subscribe(h);return function(){C.unsubscribe(),l._unobserveElement(c)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var l=new qe,c=this._mutationObserverFactory.create(function(h){return l.next(h)});c&&c.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:c,stream:l,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var l=this._observedElements.get(n),c=l.observer,h=l.stream;c&&c.disconnect(),h.complete(),this._observedElements.delete(n)}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(_E))},e.\u0275prov=We({factory:function(){return new e(ce(_E))},token:e,providedIn:"root"}),e}(),nb=function(){var e=function(){function a(t,n,l){F(this,a),this._contentObserver=t,this._elementRef=n,this._ngZone=l,this.event=new ye,this._disabled=!1,this._currentSubscription=null}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Di(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?l.pipe(mE(n.debounce)):l).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(yE),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),ld=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[_E]}),e}();function tS(e,a){return(e.getAttribute(a)||"").match(/\S+/g)||[]}var LV="cdk-describedby-message-container",rb="cdk-describedby-message",nS="cdk-describedby-host",bE=0,Du=new Map,ta=null,FV=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var h=CE(l,c);"string"!=typeof l?(NV(l),Du.set(h,{messageElement:l,referenceCount:0})):Du.has(h)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,h)||this._addMessageReference(n,h)}}},{key:"removeDescription",value:function(n,l,c){if(l&&this._isElementNode(n)){var h=CE(l,c);if(this._isElementDescribedByMessage(n,h)&&this._removeMessageReference(n,h),"string"==typeof l){var _=Du.get(h);_&&0===_.referenceCount&&this._deleteMessageElement(h)}ta&&0===ta.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var n=this._document.querySelectorAll("[".concat(nS,"]")),l=0;l-1&&c!==t._activeItemIndex&&(t._activeItemIndex=c)}})}return W(e,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ya(function(l){return t._pressedLetters.push(l)}),mE(n),vr(function(){return t._pressedLetters.length>0}),Be(function(){return t._pressedLetters.join("")})).subscribe(function(l){for(var c=t._getItemsArray(),h=1;h0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var n=this._activeItem;this.updateActiveItem(t),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var n=this,l=t.keyCode,h=["altKey","ctrlKey","metaKey","shiftKey"].every(function(_){return!t[_]||n._allowedModifierKeys.indexOf(_)>-1});switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&h){this.setNextItemActive();break}return;case 38:if(this._vertical&&h){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&h){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&h){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&h){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&h){this.setLastItemActive();break}return;default:return void((h||Vi(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(l>=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var n=this._getItemsArray(),l="number"==typeof t?t:n.indexOf(t),c=n[l];this._activeItem=null==c?null:c,this._activeItemIndex=l}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var n=this._getItemsArray(),l=1;l<=n.length;l++){var c=(this._activeItemIndex+t*l+n.length)%n.length;if(!this._skipPredicateFn(n[c]))return void this.setActiveItem(c)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,n){var l=this._getItemsArray();if(l[t]){for(;this._skipPredicateFn(l[t]);)if(!l[t+=n])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Wo?this._items.toArray():this._items}}]),e}(),wE=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"setActiveItem",value:function(l){this.activeItem&&this.activeItem.setInactiveStyles(),Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.setActiveStyles()}}]),t}(VV),ib=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._origin="program",n}return W(t,[{key:"setFocusOrigin",value:function(l){return this._origin=l,this}},{key:"setActiveItem",value:function(l){Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.focus(this._origin)}}]),t}(VV),BV=function(){var e=function(){function a(t){F(this,a),this._platform=t}return W(a,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var l=function(e){try{return e.frameElement}catch(a){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(l&&(-1===kE(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),h=kE(n);return n.hasAttribute("contenteditable")?-1!==h:!("iframe"===c||"object"===c||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var a=e.nodeName.toLowerCase(),t="input"===a&&e.type;return"text"===t||"password"===t||"select"===a||"textarea"===a}(n))&&("audio"===c?!!n.hasAttribute("controls")&&-1!==h:"video"===c?-1!==h&&(null!==h||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,l){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var a=e.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||rS(e))}(n)&&!this.isDisabled(n)&&((null==l?void 0:l.ignoreVisibility)||this.isVisible(n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function rS(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var a=e.getAttribute("tabindex");return"-32768"!=a&&!(!a||isNaN(parseInt(a,10)))}function kE(e){if(!rS(e))return null;var a=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}var ME=function(){function e(a,t,n,l){var c=this,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4];F(this,e),this._element=a,this._checker=t,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=function(){return c.focusLastTabbableElement()},this.endAnchorListener=function(){return c.focusFirstTabbableElement()},this._enabled=!0,h||this.attachAnchors()}return W(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),n&&(n.removeEventListener("focus",this.endAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),l=0;l=0;l--){var c=n[l].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[l]):null;if(c)return c}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(or(1)).subscribe(t)}}]),e}(),xE=function(){var e=function(){function a(t,n,l){F(this,a),this._checker=t,this._ngZone=n,this._document=l}return W(a,[{key:"create",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new ME(n,this._checker,this._ngZone,this._document,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(BV),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(BV),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),UV=function(){var e=function(){function a(t,n,l){F(this,a),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return W(a,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(n){this.focusTrap.enabled=it(n)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(n){this._autoCapture=it(n)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(n){var l=n.autoCapture;l&&!l.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=Ky(),this.focusTrap.focusInitialElementWhenReady()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[an]}),e}();function ab(e){return 0===e.offsetX&&0===e.offsetY}function AE(e){var a=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}"undefined"!=typeof Element&∈var GV=new Ee("cdk-input-modality-detector-options"),qY={ignoreKeys:[18,17,224,91,16]},Pg=tp({passive:!0,capture:!0}),WV=function(){var e=function(){function a(t,n,l,c){var h=this;F(this,a),this._platform=t,this._mostRecentTarget=null,this._modality=new Ma(null),this._lastTouchMs=0,this._onKeydown=function(_){var C,k;(null===(k=null===(C=h._options)||void 0===C?void 0:C.ignoreKeys)||void 0===k?void 0:k.some(function(D){return D===_.keyCode}))||(h._modality.next("keyboard"),h._mostRecentTarget=rp(_))},this._onMousedown=function(_){Date.now()-h._lastTouchMs<650||(h._modality.next(ab(_)?"keyboard":"mouse"),h._mostRecentTarget=rp(_))},this._onTouchstart=function(_){AE(_)?h._modality.next("keyboard"):(h._lastTouchMs=Date.now(),h._modality.next("touch"),h._mostRecentTarget=rp(_))},this._options=Object.assign(Object.assign({},qY),c),this.modalityDetected=this._modality.pipe(IY(1)),this.modalityChanged=this.modalityDetected.pipe(Xa()),t.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",h._onKeydown,Pg),l.addEventListener("mousedown",h._onMousedown,Pg),l.addEventListener("touchstart",h._onTouchstart,Pg)})}return W(a,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,Pg),document.removeEventListener("mousedown",this._onMousedown,Pg),document.removeEventListener("touchstart",this._onTouchstart,Pg))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt),ce(GV,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt),ce(GV,8))},token:e,providedIn:"root"}),e}(),EE=new Ee("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),PE=new Ee("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),iS=function(){var e=function(){function a(t,n,l,c){F(this,a),this._ngZone=n,this._defaultOptions=c,this._document=l,this._liveElement=t||this._createLiveElement()}return W(a,[{key:"announce",value:function(n){for(var h,_,l=this,c=this._defaultOptions,C=arguments.length,k=new Array(C>1?C-1:0),D=1;D1&&void 0!==arguments[1]&&arguments[1],c=yc(n);if(!this._platform.isBrowser||1!==c.nodeType)return ut(null);var h=W1(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var C={checkChildren:l,subject:new qe,rootNode:h};return this._elementInfo.set(c,C),this._registerGlobalListeners(C),C.subject}},{key:"stopMonitoring",value:function(n){var l=yc(n),c=this._elementInfo.get(l);c&&(c.subject.complete(),this._setClasses(l),this._elementInfo.delete(l),this._removeGlobalListeners(c))}},{key:"focusVia",value:function(n,l,c){var h=this,_=yc(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(k){var D=cr(k,2);return h._originChanged(D[0],l,D[1])}):(this._setOrigin(l),"function"==typeof _.focus&&_.focus(c))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(l,c){return n.stopMonitoring(c)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(n,l,c){c?n.classList.add(l):n.classList.remove(l)}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,l){this._toggleClass(n,"cdk-focused",!!l),this._toggleClass(n,"cdk-touch-focused","touch"===l),this._toggleClass(n,"cdk-keyboard-focused","keyboard"===l),this._toggleClass(n,"cdk-mouse-focused","mouse"===l),this._toggleClass(n,"cdk-program-focused","program"===l)}},{key:"_setOrigin",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){l._origin=n,l._originFromTouchInteraction="touch"===n&&c,0===l._detectionMode&&(clearTimeout(l._originTimeoutId),l._originTimeoutId=setTimeout(function(){return l._origin=null},l._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,l){var c=this._elementInfo.get(l),h=rp(n);!c||!c.checkChildren&&l!==h||this._originChanged(l,this._getFocusOrigin(h),c)}},{key:"_onBlur",value:function(n,l){var c=this._elementInfo.get(l);!c||c.checkChildren&&n.relatedTarget instanceof Node&&l.contains(n.relatedTarget)||(this._setClasses(l),this._emitOrigin(c.subject,null))}},{key:"_emitOrigin",value:function(n,l){this._ngZone.run(function(){return n.next(l)})}},{key:"_registerGlobalListeners",value:function(n){var l=this;if(this._platform.isBrowser){var c=n.rootNode,h=this._rootNodeFocusListenerCount.get(c)||0;h||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,aS),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,aS)}),this._rootNodeFocusListenerCount.set(c,h+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){l._getWindow().addEventListener("focus",l._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ht(this._stopInputModalityDetector)).subscribe(function(_){l._setOrigin(_,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var l=n.rootNode;if(this._rootNodeFocusListenerCount.has(l)){var c=this._rootNodeFocusListenerCount.get(l);c>1?this._rootNodeFocusListenerCount.set(l,c-1):(l.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aS),l.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aS),this._rootNodeFocusListenerCount.delete(l))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,l,c){this._setClasses(n,l),this._emitOrigin(c.subject,l),this._lastFocusOrigin=l}},{key:"_getClosestElementsInfo",value:function(n){var l=[];return this._elementInfo.forEach(function(c,h){(h===n||c.checkChildren&&h.contains(n))&&l.push([h,c])}),l}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},token:e,providedIn:"root"}),e}(),OE=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new ye}return W(a,[{key:"ngAfterViewInit",value:function(){var n=this,l=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(l,1===l.nodeType&&l.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return n.cdkFocusChange.emit(c)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(na))},e.\u0275dir=ve({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),ZV="cdk-high-contrast-black-on-white",KV="cdk-high-contrast-white-on-black",IE="cdk-high-contrast-active",RE=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._document=n}return W(a,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var l=this._document.defaultView||window,c=l&&l.getComputedStyle?l.getComputedStyle(n):null,h=(c&&c.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(n),h){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(IE),n.remove(ZV),n.remove(KV),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(IE),n.add(ZV)):2===l&&(n.add(IE),n.add(KV))}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(lt))},token:e,providedIn:"root"}),e}(),LE=function(){var e=function a(t){F(this,a),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ce(RE))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep,ld]]}),e}(),QV=new tc("12.2.4"),FE=function e(){F(this,e)},XY=function e(){F(this,e)},Dc="*";function Ei(e,a){return{type:7,name:e,definitions:a,options:{}}}function Tn(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:a,timings:e}}function NE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:a}}function gt(e){return{type:6,styles:e,offset:null}}function Bn(e,a,t){return{type:0,name:e,styles:a,options:t}}function Dl(e){return{type:5,steps:e}}function zn(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:a,options:t}}function $V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function BE(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:a,options:t}}function JV(e){Promise.resolve(null).then(e)}var Og=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+t}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;JV(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),HE=function(){function e(a){var t=this;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;var n=0,l=0,c=0,h=this.players.length;0==h?JV(function(){return t._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==h&&t._onFinish()}),_.onDestroy(function(){++l==h&&t._onDestroy()}),_.onStart(function(){++c==h&&t._onStart()})}),this.totalTime=this.players.reduce(function(_,C){return Math.max(_,C.totalTime)},0)}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(l){var c=l.totalTime?Math.min(1,n/l.totalTime):1;l.setPosition(c)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,l){return null===n||l.totalTime>n.totalTime?l:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}();function eB(){return"undefined"!=typeof window&&void 0!==window.document}function UE(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ud(e){switch(e.length){case 0:return new Og;case 1:return e[0];default:return new HE(e)}}function tB(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=[],_=[],C=-1,k=null;if(n.forEach(function(I){var L=I.offset,G=L==C,Y=G&&k||{};Object.keys(I).forEach(function($){var ie=$,fe=I[$];if("offset"!==$)switch(ie=a.normalizePropertyName(ie,h),fe){case"!":fe=l[$];break;case Dc:fe=c[$];break;default:fe=a.normalizeStyleValue($,ie,fe,h)}Y[ie]=fe}),G||_.push(Y),k=Y,C=L}),h.length){var D="\n - ";throw new Error("Unable to animate due to the following errors:".concat(D).concat(h.join(D)))}return _}function GE(e,a,t,n){switch(a){case"start":e.onStart(function(){return n(t&&oS(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&oS(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&oS(t,"destroy",e))})}}function oS(e,a,t){var n=t.totalTime,c=sS(e.element,e.triggerName,e.fromState,e.toState,a||e.phaseName,null==n?e.totalTime:n,!!t.disabled),h=e._data;return null!=h&&(c._data=h),c}function sS(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:a,fromState:t,toState:n,phaseName:l,totalTime:c,disabled:!!h}}function Ka(e,a,t){var n;return e instanceof Map?(n=e.get(a))||e.set(a,n=t):(n=e[a])||(n=e[a]=t),n}function jE(e){var a=e.indexOf(":");return[e.substring(1,a),e.substr(a+1)]}var WE=function(a,t){return!1},YE=function(a,t){return!1},qE=function(a,t,n){return[]},QY=UE();(QY||"undefined"!=typeof Element)&&(WE=eB()?function(a,t){for(;t&&t!==document.documentElement;){if(t===a)return!0;t=t.parentNode||t.host}return!1}:function(a,t){return a.contains(t)},YE=function(){if(QY||Element.prototype.matches)return function(t,n){return t.matches(n)};var e=Element.prototype,a=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return a?function(t,n){return a.apply(t,[n])}:YE}(),qE=function(a,t,n){var l=[];if(n)for(var c=a.querySelectorAll(t),h=0;h1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){a[t]=e[t]}),a}function cd(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)for(var n in e)t[n]=e[n];else pp(e,t);return t}function uB(e,a,t){return t?a+":"+t+";":""}function cB(e){for(var a="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void a.push(n);e=n}var l=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return t.push('The provided transition expression "'.concat(e,'" is not supported')),a;var c=l[1],h=l[2],_=l[3];a.push(vB(c,_)),"<"==h[0]&&!("*"==c&&"*"==_)&&a.push(vB(_,c))}(n,t,a)}):t.push(e),t}var sb=new Set(["true","1"]),Al=new Set(["false","0"]);function vB(e,a){var t=sb.has(e)||Al.has(e),n=sb.has(a)||Al.has(a);return function(l,c){var h="*"==e||e==l,_="*"==a||a==c;return!h&&t&&"boolean"==typeof l&&(h=l?sb.has(e):Al.has(e)),!_&&n&&"boolean"==typeof c&&(_=c?sb.has(a):Al.has(a)),h&&_}}var r9=new RegExp("s*".concat(":self","s*,?"),"g");function mB(e,a,t){return new tP(e).build(a,t)}var tP=function(){function e(a){F(this,e),this._driver=a}return W(e,[{key:"build",value:function(t,n){var l=new i9(n);return this._resetContextStyleTimingState(l),bo(this,Ig(t),l)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var l=this,c=n.queryCount=0,h=n.depCount=0,_=[],C=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(k){if(l._resetContextStyleTimingState(n),0==k.type){var D=k,I=D.name;I.toString().split(/\s*,\s*/).forEach(function(G){D.name=G,_.push(l.visitState(D,n))}),D.name=I}else if(1==k.type){var L=l.visitTransition(k,n);c+=L.queryCount,h+=L.depCount,C.push(L)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:_,transitions:C,queryCount:c,depCount:h,options:null}}},{key:"visitState",value:function(t,n){var l=this.visitStyle(t.styles,n),c=t.options&&t.options.params||null;if(l.containsDynamicStyles){var h=new Set,_=c||{};if(l.styles.forEach(function(k){if(fb(k)){var D=k;Object.keys(D).forEach(function(I){fB(D[I]).forEach(function(L){_.hasOwnProperty(L)||h.add(L)})})}}),h.size){var C=ob(h.values());n.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(C.join(", ")))}}return{type:0,name:t.name,style:l,options:c?{params:c}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var l=bo(this,Ig(t.animation),n);return{type:1,matchers:eP(t.expr,n.errors),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Oc(t.options)}}},{key:"visitSequence",value:function(t,n){var l=this;return{type:2,steps:t.steps.map(function(c){return bo(l,c,n)}),options:Oc(t.options)}}},{key:"visitGroup",value:function(t,n){var l=this,c=n.currentTime,h=0,_=t.steps.map(function(C){n.currentTime=c;var k=bo(l,C,n);return h=Math.max(h,n.currentTime),k});return n.currentTime=h,{type:3,steps:_,options:Oc(t.options)}}},{key:"visitAnimate",value:function(t,n){var l=function(e,a){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return rP(gS(e,a).duration,0,"");var l=e;if(l.split(/\s+/).some(function(_){return"{"==_.charAt(0)&&"{"==_.charAt(1)})){var h=rP(0,0,"");return h.dynamic=!0,h.strValue=l,h}return rP((t=t||gS(l,a)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=l;var c,h=t.styles?t.styles:gt({});if(5==h.type)c=this.visitKeyframes(h,n);else{var _=t.styles,C=!1;if(!_){C=!0;var k={};l.easing&&(k.easing=l.easing),_=gt(k)}n.currentTime+=l.duration+l.delay;var D=this.visitStyle(_,n);D.isEmptyStep=C,c=D}return n.currentAnimateTimings=null,{type:4,timings:l,style:c,options:null}}},{key:"visitStyle",value:function(t,n){var l=this._makeStyleAst(t,n);return this._validateStyleAst(l,n),l}},{key:"_makeStyleAst",value:function(t,n){var l=[];Array.isArray(t.styles)?t.styles.forEach(function(_){"string"==typeof _?_==Dc?l.push(_):n.errors.push("The provided style string value ".concat(_," is not allowed.")):l.push(_)}):l.push(t.styles);var c=!1,h=null;return l.forEach(function(_){if(fb(_)){var C=_,k=C.easing;if(k&&(h=k,delete C.easing),!c)for(var D in C)if(C[D].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:h,offset:t.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(t,n){var l=this,c=n.currentAnimateTimings,h=n.currentTime,_=n.currentTime;c&&_>0&&(_-=c.duration+c.delay),t.styles.forEach(function(C){"string"!=typeof C&&Object.keys(C).forEach(function(k){if(l._driver.validateStyleProperty(k)){var D=n.collectedStyles[n.currentQuerySelector],I=D[k],L=!0;I&&(_!=h&&_>=I.startTime&&h<=I.endTime&&(n.errors.push('The CSS property "'.concat(k,'" that exists between the times of "').concat(I.startTime,'ms" and "').concat(I.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(_,'ms" and "').concat(h,'ms"')),L=!1),_=I.startTime),L&&(D[k]={startTime:_,endTime:h}),n.options&&function(e,a,t){var n=a.params||{},l=fB(e);l.length&&l.forEach(function(c){n.hasOwnProperty(c)||t.push("Unable to resolve the local animation param ".concat(c," in the given list of values"))})}(C[k],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(k,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,n){var l=this,c={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),c;var _=0,C=[],k=!1,D=!1,I=0,L=t.steps.map(function(be){var Ce=l._makeStyleAst(be,n),je=null!=Ce.offset?Ce.offset:function(e){if("string"==typeof e)return null;var a=null;if(Array.isArray(e))e.forEach(function(n){if(fb(n)&&n.hasOwnProperty("offset")){var l=n;a=parseFloat(l.offset),delete l.offset}});else if(fb(e)&&e.hasOwnProperty("offset")){var t=e;a=parseFloat(t.offset),delete t.offset}return a}(Ce.styles),Qe=0;return null!=je&&(_++,Qe=Ce.offset=je),D=D||Qe<0||Qe>1,k=k||Qe0&&_0?Ce==$?1:Y*Ce:C[Ce],Qe=je*se;n.currentTime=ie+fe.delay+Qe,fe.duration=Qe,l._validateStyleAst(be,n),be.offset=je,c.styles.push(be)}),c}},{key:"visitReference",value:function(t,n){return{type:8,animation:bo(this,Ig(t.animation),n),options:Oc(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:Oc(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Oc(t.options)}}},{key:"visitQuery",value:function(t,n){var l=n.currentQuerySelector,c=t.options||{};n.queryCount++,n.currentQuery=t;var _=cr(function(e){var a=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return a&&(e=e.replace(r9,"")),[e=e.replace(/@\*/g,vS).replace(/@\w+/g,function(t){return vS+"-"+t.substr(1)}).replace(/:animating/g,KE),a]}(t.selector),2),C=_[0],k=_[1];n.currentQuerySelector=l.length?l+" "+C:C,Ka(n.collectedStyles,n.currentQuerySelector,{});var D=bo(this,Ig(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=l,{type:11,selector:C,limit:c.limit||0,optional:!!c.optional,includeSelf:k,animation:D,originalSelector:t.selector,options:Oc(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var l="full"===t.timings?{duration:0,delay:0,easing:"full"}:gS(t.timings,n.errors,!0);return{type:12,animation:bo(this,Ig(t.animation),n),timings:l,options:null}}}]),e}(),i9=function e(a){F(this,e),this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function fb(e){return!Array.isArray(e)&&"object"==typeof e}function Oc(e){return e?(e=pp(e)).params&&(e.params=function(e){return e?pp(e):null}(e.params)):e={},e}function rP(e,a,t){return{duration:e,delay:a,easing:t}}function db(e,a,t,n,l,c){var h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,_=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:a,preStyleProps:t,postStyleProps:n,duration:l,delay:c,totalTime:l+c,easing:h,subTimeline:_}}var CS=function(){function e(){F(this,e),this._map=new Map}return W(e,[{key:"consume",value:function(t){var n=this._map.get(t);return n?this._map.delete(t):n=[],n}},{key:"append",value:function(t,n){var l,c=this._map.get(t);c||this._map.set(t,c=[]),(l=c).push.apply(l,At(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),s9=new RegExp(":enter","g"),u9=new RegExp(":leave","g");function yB(e,a,t,n,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new wS).buildKeyframes(e,a,t,n,l,c,h,_,C,k)}var wS=function(){function e(){F(this,e)}return W(e,[{key:"buildKeyframes",value:function(t,n,l,c,h,_,C,k,D){var I=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];D=D||new CS;var L=new kS(t,n,D,c,h,I,[]);L.options=k,L.currentTimeline.setStyles([_],null,L.errors,k),bo(this,l,L);var G=L.timelines.filter(function($){return $.containsAnimation()});if(G.length&&Object.keys(C).length){var Y=G[G.length-1];Y.allowOnlyTimelineStyles()||Y.setStyles([C],null,L.errors,k)}return G.length?G.map(function($){return $.buildKeyframes()}):[db(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var l=n.subInstructions.consume(n.element);if(l){var c=n.createSubContext(t.options),h=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);h!=_&&n.transformIntoNewTimeline(_)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var l=n.createSubContext(t.options);l.transformIntoNewTimeline(),this.visitReference(t.animation,l),n.transformIntoNewTimeline(l.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,l){var h=n.currentTimeline.currentTime,_=null!=l.duration?hp(l.duration):null,C=null!=l.delay?hp(l.delay):null;return 0!==_&&t.forEach(function(k){var D=n.appendInstructionToTimeline(k,_,C);h=Math.max(h,D.duration+D.delay)}),h}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),bo(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var l=this,c=n.subContextCount,h=n,_=t.options;if(_&&(_.params||_.delay)&&((h=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==h.previousNode.type&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=SS);var C=hp(_.delay);h.delayNextStep(C)}t.steps.length&&(t.steps.forEach(function(k){return bo(l,k,h)}),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>c&&h.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var l=this,c=[],h=n.currentTimeline.currentTime,_=t.options&&t.options.delay?hp(t.options.delay):0;t.steps.forEach(function(C){var k=n.createSubContext(t.options);_&&k.delayNextStep(_),bo(l,C,k),h=Math.max(h,k.currentTimeline.currentTime),c.push(k.currentTimeline)}),c.forEach(function(C){return n.currentTimeline.mergeTimelineCollectedStyles(C)}),n.transformIntoNewTimeline(h),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var l=t.strValue;return gS(n.params?mS(l,n.params,n.errors):l,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var l=n.currentAnimateTimings=this._visitTiming(t.timings,n),c=n.currentTimeline;l.delay&&(n.incrementTime(l.delay),c.snapshotCurrentStyles());var h=t.style;5==h.type?this.visitKeyframes(h,n):(n.incrementTime(l.duration),this.visitStyle(h,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var l=n.currentTimeline,c=n.currentAnimateTimings;!c&&l.getCurrentStyleProperties().length&&l.forwardFrame();var h=c&&c.easing||t.easing;t.isEmptyStep?l.applyEmptyStep(h):l.setStyles(t.styles,h,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,h=l.duration,C=n.createSubContext().currentTimeline;C.easing=l.easing,t.styles.forEach(function(k){C.forwardTime((k.offset||0)*h),C.setStyles(k.styles,k.easing,n.errors,n.options),C.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(C),n.transformIntoNewTimeline(c+h),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var l=this,c=n.currentTimeline.currentTime,h=t.options||{},_=h.delay?hp(h.delay):0;_&&(6===n.previousNode.type||0==c&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=SS);var C=c,k=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!h.optional,n.errors);n.currentQueryTotal=k.length;var D=null;k.forEach(function(I,L){n.currentQueryIndex=L;var G=n.createSubContext(t.options,I);_&&G.delayNextStep(_),I===n.element&&(D=G.currentTimeline),bo(l,t.animation,G),G.currentTimeline.applyStylesToKeyframe(),C=Math.max(C,G.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(C),D&&(n.currentTimeline.mergeTimelineCollectedStyles(D),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var l=n.parentContext,c=n.currentTimeline,h=t.timings,_=Math.abs(h.duration),C=_*(n.currentQueryTotal-1),k=_*n.currentQueryIndex;switch(h.duration<0?"reverse":h.easing){case"reverse":k=C-k;break;case"full":k=l.currentStaggerTime}var I=n.currentTimeline;k&&I.delayNextStep(k);var L=I.currentTime;bo(this,t.animation,n),n.previousNode=t,l.currentStaggerTime=c.currentTime-L+(c.startTime-l.currentTimeline.startTime)}}]),e}(),SS={},kS=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this._driver=a,this.element=t,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=h,this.timelines=_,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=SS,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new iP(this._driver,t,0),_.push(this.currentTimeline)}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var l=this;if(t){var c=t,h=this.options;null!=c.duration&&(h.duration=hp(c.duration)),null!=c.delay&&(h.delay=hp(c.delay));var _=c.params;if(_){var C=h.params;C||(C=this.options.params={}),Object.keys(_).forEach(function(k){(!n||!C.hasOwnProperty(k))&&(C[k]=mS(_[k],C,l.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var l=t.params={};Object.keys(n).forEach(function(c){l[c]=n[c]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=n||this.element,h=new e(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return h.previousNode=this.previousNode,h.currentAnimateTimings=this.currentAnimateTimings,h.options=this._copyOptions(),h.updateOptions(t),h.currentQueryIndex=this.currentQueryIndex,h.currentQueryTotal=this.currentQueryTotal,h.parentContext=this,this.subContextCount++,h}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=SS,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,l){var c={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=l?l:0)+t.delay,easing:""},h=new c9(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,c,t.stretchStartingKeyframe);return this.timelines.push(h),c}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,l,c,h,_){var C=[];if(c&&C.push(this.element),t.length>0){t=(t=t.replace(s9,"."+this._enterClassName)).replace(u9,"."+this._leaveClassName);var D=this._driver.query(this.element,t,1!=l);0!==l&&(D=l<0?D.slice(D.length+l,D.length):D.slice(0,l)),C.push.apply(C,At(D))}return!h&&0==C.length&&_.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),C}}]),e}(),iP=function(){function e(a,t,n,l){F(this,e),this._driver=a,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=l,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return W(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(l){n._backFill[l]=n._globalTimelineStyles[l]||Dc,n._currentKeyframe[l]=Dc}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,l,c){var h=this;n&&(this._previousKeyframe.easing=n);var _=c&&c.params||{},C=function(e,a){var n,t={};return e.forEach(function(l){"*"===l?(n=n||Object.keys(a)).forEach(function(c){t[c]=Dc}):cd(l,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(C).forEach(function(k){var D=mS(C[k],_,l);h._pendingStyles[k]=D,h._localTimelineStyles.hasOwnProperty(k)||(h._backFill[k]=h._globalTimelineStyles.hasOwnProperty(k)?h._globalTimelineStyles[k]:Dc),h._updateStyle(k,D)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,l=Object.keys(n);0!=l.length&&(this._pendingStyles={},l.forEach(function(c){t._currentKeyframe[c]=n[c]}),Object.keys(this._localTimelineStyles).forEach(function(c){t._currentKeyframe.hasOwnProperty(c)||(t._currentKeyframe[c]=t._localTimelineStyles[c])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var l=t._localTimelineStyles[n];t._pendingStyles[n]=l,t._updateStyle(n,l)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(l){var c=n._styleSummary[l],h=t._styleSummary[l];(!c||h.time>c.time)&&n._updateStyle(l,h.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,l=new Set,c=1===this._keyframes.size&&0===this.duration,h=[];this._keyframes.forEach(function(I,L){var G=cd(I,!0);Object.keys(G).forEach(function(Y){var $=G[Y];"!"==$?n.add(Y):$==Dc&&l.add(Y)}),c||(G.offset=L/t.duration),h.push(G)});var _=n.size?ob(n.values()):[],C=l.size?ob(l.values()):[];if(c){var k=h[0],D=pp(k);k.offset=0,D.offset=1,h=[k,D]}return db(this.element,h,_,C,this.duration,this.startTime,this.easing,!1)}}]),e}(),c9=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_,C){var k,D=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return F(this,t),(k=a.call(this,n,l,C.delay)).keyframes=c,k.preStyleProps=h,k.postStyleProps=_,k._stretchStartingKeyframe=D,k.timings={duration:C.duration,delay:C.delay,easing:C.easing},k}return W(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var l=this.keyframes,c=this.timings,h=c.delay,_=c.duration,C=c.easing;if(this._stretchStartingKeyframe&&h){var k=[],D=_+h,I=h/D,L=cd(l[0],!1);L.offset=0,k.push(L);var G=cd(l[0],!1);G.offset=MS(I),k.push(G);for(var Y=l.length-1,$=1;$<=Y;$++){var ie=cd(l[$],!1);ie.offset=MS((h+ie.offset*_)/D),k.push(ie)}_=D,h=0,C="",l=k}return db(this.element,l,this.preStyleProps,this.postStyleProps,_,h,C,!0)}}]),t}(iP);function MS(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,a-1);return Math.round(e*t)/t}var aP=function e(){F(this,e)},d9=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"normalizePropertyName",value:function(l,c){return JE(l)}},{key:"normalizeStyleValue",value:function(l,c,h,_){var C="",k=h.toString().trim();if(xS[c]&&0!==h&&"0"!==h)if("number"==typeof h)C="px";else{var D=h.match(/^[+-]?[\d\.]+([a-z]*)$/);D&&0==D[1].length&&_.push("Please provide a CSS unit value for ".concat(l,":").concat(h))}return k+C}}]),t}(aP),xS=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),a={},e.forEach(function(t){return a[t]=!0}),a;var e,a}();function hb(e,a,t,n,l,c,h,_,C,k,D,I,L){return{type:0,element:e,triggerName:a,isRemovalTransition:l,fromState:t,fromStyles:c,toState:n,toStyles:h,timelines:_,queriedElements:C,preStyleProps:k,postStyleProps:D,totalTime:I,errors:L}}var TS={},bB=function(){function e(a,t,n){F(this,e),this._triggerName=a,this.ast=t,this._stateStyles=n}return W(e,[{key:"match",value:function(t,n,l,c){return function(e,a,t,n,l){return e.some(function(c){return c(a,t,n,l)})}(this.ast.matchers,t,n,l,c)}},{key:"buildStyles",value:function(t,n,l){var c=this._stateStyles["*"],h=this._stateStyles[t],_=c?c.buildStyles(n,l):{};return h?h.buildStyles(n,l):_}},{key:"build",value:function(t,n,l,c,h,_,C,k,D,I){var L=[],G=this.ast.options&&this.ast.options.params||TS,$=this.buildStyles(l,C&&C.params||TS,L),ie=k&&k.params||TS,fe=this.buildStyles(c,ie,L),se=new Set,be=new Map,Ce=new Map,je="void"===c,Qe={params:Object.assign(Object.assign({},G),ie)},kt=I?[]:yB(t,n,this.ast.animation,h,_,$,fe,Qe,D,L),Dn=0;if(kt.forEach(function(Br){Dn=Math.max(Br.duration+Br.delay,Dn)}),L.length)return hb(n,this._triggerName,l,c,je,$,fe,[],[],be,Ce,Dn,L);kt.forEach(function(Br){var Hi=Br.element,Ll=Ka(be,Hi,{});Br.preStyleProps.forEach(function($a){return Ll[$a]=!0});var Lu=Ka(Ce,Hi,{});Br.postStyleProps.forEach(function($a){return Lu[$a]=!0}),Hi!==n&&se.add(Hi)});var Zn=ob(se.values());return hb(n,this._triggerName,l,c,je,$,fe,kt,Zn,be,Ce,Dn)}}]),e}(),wB=function(){function e(a,t,n){F(this,e),this.styles=a,this.defaultParams=t,this.normalizer=n}return W(e,[{key:"buildStyles",value:function(t,n){var l=this,c={},h=pp(this.defaultParams);return Object.keys(t).forEach(function(_){var C=t[_];null!=C&&(h[_]=C)}),this.styles.styles.forEach(function(_){if("string"!=typeof _){var C=_;Object.keys(C).forEach(function(k){var D=C[k];D.length>1&&(D=mS(D,h,n));var I=l.normalizer.normalizePropertyName(k,n);D=l.normalizer.normalizeStyleValue(k,I,D,n),c[I]=D})}}),c}}]),e}(),g9=function(){function e(a,t,n){var l=this;F(this,e),this.name=a,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(c){l.states[c.name]=new wB(c.style,c.options&&c.options.params||{},n)}),SB(this.states,"true","1"),SB(this.states,"false","0"),t.transitions.forEach(function(c){l.transitionFactories.push(new bB(a,c,l.states))}),this.fallbackTransition=function(e,a,t){return new bB(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(h,_){return!0}],options:null,queryCount:0,depCount:0},a)}(a,this.states)}return W(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,l,c){return this.transitionFactories.find(function(_){return _.match(t,n,l,c)})||null}},{key:"matchStyles",value:function(t,n,l){return this.fallbackTransition.buildStyles(t,n,l)}}]),e}();function SB(e,a,t){e.hasOwnProperty(a)?e.hasOwnProperty(t)||(e[t]=e[a]):e.hasOwnProperty(t)&&(e[a]=e[t])}var _9=new CS,y9=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return W(e,[{key:"register",value:function(t,n){var l=[],c=mB(this._driver,n,l);if(l.length)throw new Error("Unable to build the animation due to the following errors: ".concat(l.join("\n")));this._animations[t]=c}},{key:"_buildPlayer",value:function(t,n,l){var c=t.element,h=tB(this._driver,this._normalizer,c,t.keyframes,n,l);return this._driver.animate(c,h,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var C,l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=[],_=this._animations[t],k=new Map;if(_?(C=yB(this._driver,n,_,oB,hS,{},{},c,_9,h)).forEach(function(L){var G=Ka(k,L.element,{});L.postStyleProps.forEach(function(Y){return G[Y]=null})}):(h.push("The requested animation doesn't exist or has already been destroyed"),C=[]),h.length)throw new Error("Unable to create the animation due to the following errors: ".concat(h.join("\n")));k.forEach(function(L,G){Object.keys(L).forEach(function(Y){L[Y]=l._driver.computeStyle(G,Y,Dc)})});var D=C.map(function(L){var G=k.get(L.element);return l._buildPlayer(L,{},G)}),I=ud(D);return this._playersById[t]=I,I.onDestroy(function(){return l.destroy(t)}),this.players.push(I),I}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var l=this.players.indexOf(n);l>=0&&this.players.splice(l,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(t));return n}},{key:"listen",value:function(t,n,l,c){var h=sS(n,"","","");return GE(this._getPlayer(t),l,h,c),function(){}}},{key:"command",value:function(t,n,l,c){if("register"!=l)if("create"!=l){var _=this._getPlayer(t);switch(l){case"play":_.play();break;case"pause":_.pause();break;case"reset":_.reset();break;case"restart":_.restart();break;case"finish":_.finish();break;case"init":_.init();break;case"setPosition":_.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,c[0]||{});else this.register(t,c[0])}}]),e}(),DS="ng-animate-queued",oP="ng-animate-disabled",pb=".ng-animate-disabled",b9="ng-star-inserted",w9=[],sP={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Co="__ng_removed",vb=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";F(this,e),this.namespaceId=t;var n=a&&a.hasOwnProperty("value"),l=n?a.value:a;if(this.value=MB(l),n){var c=pp(a);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var l=this.options.params;Object.keys(n).forEach(function(c){null==l[c]&&(l[c]=n[c])})}}}]),e}(),Lg="void",lP=new vb(Lg),gb=function(){function e(a,t,n){F(this,e),this.id=a,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Rs(t,this._hostClassName)}return W(e,[{key:"listen",value:function(t,n,l,c){var h=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(l,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==l||0==l.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(l))throw new Error('The provided animation trigger event "'.concat(l,'" for the animation trigger "').concat(n,'" is not supported!'));var _=Ka(this._elementListeners,t,[]),C={name:n,phase:l,callback:c};_.push(C);var k=Ka(this._engine.statesByElement,t,{});return k.hasOwnProperty(n)||(Rs(t,pS),Rs(t,pS+"-"+n),k[n]=lP),function(){h._engine.afterFlush(function(){var D=_.indexOf(C);D>=0&&_.splice(D,1),h._triggers[n]||delete k[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return n}},{key:"trigger",value:function(t,n,l){var c=this,h=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_=this._getTrigger(n),C=new AS(this.id,n,t),k=this._engine.statesByElement.get(t);k||(Rs(t,pS),Rs(t,pS+"-"+n),this._engine.statesByElement.set(t,k={}));var D=k[n],I=new vb(l,this.id),L=l&&l.hasOwnProperty("value");!L&&D&&I.absorbOptions(D.options),k[n]=I,D||(D=lP);var G=I.value===Lg;if(G||D.value!==I.value){var fe=Ka(this._engine.playersByElement,t,[]);fe.forEach(function(Ce){Ce.namespaceId==c.id&&Ce.triggerName==n&&Ce.queued&&Ce.destroy()});var se=_.matchTransition(D.value,I.value,t,I.params),be=!1;if(!se){if(!h)return;se=_.fallbackTransition,be=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:se,fromState:D,toState:I,player:C,isFallbackTransition:be}),be||(Rs(t,DS),C.onStart(function(){Fg(t,DS)})),C.onDone(function(){var Ce=c.players.indexOf(C);Ce>=0&&c.players.splice(Ce,1);var je=c._engine.playersByElement.get(t);if(je){var Qe=je.indexOf(C);Qe>=0&&je.splice(Qe,1)}}),this.players.push(C),fe.push(C),C}if(!T9(D.params,I.params)){var Y=[],$=_.matchStyles(D.value,D.params,Y),ie=_.matchStyles(I.value,I.params,Y);Y.length?this._engine.reportError(Y):this._engine.afterFlush(function(){Ec(t,$),Au(t,ie)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(l,c){delete l[t]}),this._elementListeners.forEach(function(l,c){n._elementListeners.set(c,l.filter(function(h){return h.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(l){return l.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var l=this,c=this._engine.driver.query(t,vS,!0);c.forEach(function(h){if(!h[Co]){var _=l._engine.fetchNamespacesByElement(h);_.size?_.forEach(function(C){return C.triggerLeaveAnimation(h,n,!1,!0)}):l.clearElementCache(h)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(h){return l.clearElementCache(h)})})}},{key:"triggerLeaveAnimation",value:function(t,n,l,c){var h=this,_=this._engine.statesByElement.get(t);if(_){var C=[];if(Object.keys(_).forEach(function(k){if(h._triggers[k]){var D=h.trigger(t,k,Lg,c);D&&C.push(D)}}),C.length)return this._engine.markElementAsRemoved(this.id,t,!0,n),l&&ud(C).onDone(function(){return h._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,l=this._elementListeners.get(t),c=this._engine.statesByElement.get(t);if(l&&c){var h=new Set;l.forEach(function(_){var C=_.name;if(!h.has(C)){h.add(C);var D=n._triggers[C].fallbackTransition,I=c[C]||lP,L=new vb(Lg),G=new AS(n.id,C,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:C,transition:D,fromState:I,toState:L,player:G,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var l=this,c=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var h=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(t):[];if(_&&_.length)h=!0;else for(var C=t;C=C.parentNode;)if(c.statesByElement.get(C)){h=!0;break}}if(this.prepareLeaveAnimationListeners(t),h)c.markElementAsRemoved(this.id,t,!1,n);else{var D=t[Co];(!D||D===sP)&&(c.afterFlush(function(){return l.clearElementCache(t)}),c.destroyInnerAnimations(t),c._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,l=[];return this._queue.forEach(function(c){var h=c.player;if(!h.destroyed){var _=c.element,C=n._elementListeners.get(_);C&&C.forEach(function(k){if(k.name==c.triggerName){var D=sS(_,c.triggerName,c.fromState.value,c.toState.value);D._data=t,GE(c.player,k.phase,D,k.callback)}}),h.markedForDestroy?n._engine.afterFlush(function(){h.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,h){var _=c.transition.ast.depCount,C=h.transition.ast.depCount;return 0==_||0==C?_-C:n._engine.driver.containsElement(c.element,h.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(l){return l.element===t})||n}}]),e}(),S9=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(l,c){}}return W(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(l){l.queued&&t.push(l)})}),t}},{key:"createNamespace",value:function(t,n){var l=new gb(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(l,n):(this.newHostElements.set(n,l),this.collectEnterElement(n)),this._namespaceLookup[t]=l}},{key:"_balanceNamespaceList",value:function(t,n){var l=this._namespaceList.length-1;if(l>=0){for(var c=!1,h=l;h>=0;h--)if(this.driver.containsElement(this._namespaceList[h].hostElement,n)){this._namespaceList.splice(h+1,0,t),c=!0;break}c||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t}},{key:"register",value:function(t,n){var l=this._namespaceLookup[t];return l||(l=this.createNamespace(t,n)),l}},{key:"registerTrigger",value:function(t,n,l){var c=this._namespaceLookup[t];c&&c.register(n,l)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var l=this;if(t){var c=this._fetchNamespace(t);this.afterFlush(function(){l.namespacesByHostElement.delete(c.hostElement),delete l._namespaceLookup[t];var h=l._namespaceList.indexOf(c);h>=0&&l._namespaceList.splice(h,1)}),this.afterFlushAnimationsDone(function(){return c.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,l=this.statesByElement.get(t);if(l)for(var c=Object.keys(l),h=0;h=0&&this.collectedLeaveElements.splice(_,1)}if(t){var C=this._fetchNamespace(t);C&&C.insertNode(n,l)}c&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,oP)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fg(t,oP))}},{key:"removeNode",value:function(t,n,l,c){if(ES(n)){var h=t?this._fetchNamespace(t):null;if(h?h.removeNode(n,c):this.markElementAsRemoved(t,n,!1,c),l){var _=this.namespacesByHostElement.get(n);_&&_.id!==t&&_.removeNode(n,c)}}else this._onRemovalComplete(n,c)}},{key:"markElementAsRemoved",value:function(t,n,l,c){this.collectedLeaveElements.push(n),n[Co]={namespaceId:t,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1}}},{key:"listen",value:function(t,n,l,c,h){return ES(n)?this._fetchNamespace(t).listen(n,l,c,h):function(){}}},{key:"_buildInstruction",value:function(t,n,l,c,h){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,l,c,t.fromState.options,t.toState.options,n,h)}},{key:"destroyInnerAnimations",value:function(t){var n=this,l=this.driver.query(t,vS,!0);l.forEach(function(c){return n.destroyActiveAnimationsForElement(c)}),0!=this.playersByQueriedElement.size&&(l=this.driver.query(t,KE,!0)).forEach(function(c){return n.finishActiveQueriedAnimationOnElement(c)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(l){l.queued?l.markedForDestroy=!0:l.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(l){return l.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return ud(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var n=this,l=t[Co];if(l&&l.setForRemoval){if(t[Co]=sP,l.namespaceId){this.destroyInnerAnimations(t);var c=this._fetchNamespace(l.namespaceId);c&&c.clearElementCache(t)}this._onRemovalComplete(t,l.setForRemoval)}this.driver.matchesElement(t,pb)&&this.markElementAsDisabled(t,!1),this.driver.query(t,pb,!0).forEach(function(h){n.markElementAsDisabled(h,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,l=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(L,G){return t._balanceNamespaceList(L,G)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var c=0;c=0;Ll--)this._namespaceList[Ll].drainQueuedTransitions(n).forEach(function(Ct){var Jt=Ct.player,dn=Ct.element;if(Br.push(Jt),l.collectedEnterElements.length){var oa=dn[Co];if(oa&&oa.setForMove)return void Jt.destroy()}var Ab=!G||!l.driver.containsElement(G,dn),hk=Dn.get(dn),yH=ie.get(dn),So=l._buildInstruction(Ct,c,yH,hk,Ab);if(So.errors&&So.errors.length)Hi.push(So);else{if(Ab)return Jt.onStart(function(){return Ec(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);if(Ct.isFallbackTransition)return Jt.onStart(function(){return Ec(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);So.timelines.forEach(function(Hc){return Hc.stretchStartingKeyframe=!0}),c.append(dn,So.timelines),C.push({instruction:So,player:Jt,element:dn}),So.queriedElements.forEach(function(Hc){return Ka(k,Hc,[]).push(Jt)}),So.preStyleProps.forEach(function(Hc,Eb){var bH=Object.keys(Hc);if(bH.length){var Pb=D.get(Eb);Pb||D.set(Eb,Pb=new Set),bH.forEach(function(TX){return Pb.add(TX)})}}),So.postStyleProps.forEach(function(Hc,Eb){var bH=Object.keys(Hc),Pb=I.get(Eb);Pb||I.set(Eb,Pb=new Set),bH.forEach(function(TX){return Pb.add(TX)})})}});if(Hi.length){var $a=[];Hi.forEach(function(Ct){$a.push("@".concat(Ct.triggerName," has failed due to:\n")),Ct.errors.forEach(function(Jt){return $a.push("- ".concat(Jt,"\n"))})}),Br.forEach(function(Ct){return Ct.destroy()}),this.reportError($a)}var Fu=new Map,Bc=new Map;C.forEach(function(Ct){var Jt=Ct.element;c.has(Jt)&&(Bc.set(Jt,Jt),l._beforeAnimationBuild(Ct.player.namespaceId,Ct.instruction,Fu))}),h.forEach(function(Ct){var Jt=Ct.element;l._getPreviousPlayers(Jt,!1,Ct.namespaceId,Ct.triggerName,null).forEach(function(oa){Ka(Fu,Jt,[]).push(oa),oa.destroy()})});var Tb=se.filter(function(Ct){return DB(Ct,D,I)}),Db=new Map;OS(Db,this.driver,Ce,I,Dc).forEach(function(Ct){DB(Ct,D,I)&&Tb.push(Ct)});var LP=new Map;$.forEach(function(Ct,Jt){OS(LP,l.driver,new Set(Ct),D,"!")}),Tb.forEach(function(Ct){var Jt=Db.get(Ct),dn=LP.get(Ct);Db.set(Ct,Object.assign(Object.assign({},Jt),dn))});var FP=[],gH=[],NP={};C.forEach(function(Ct){var Jt=Ct.element,dn=Ct.player,oa=Ct.instruction;if(c.has(Jt)){if(L.has(Jt))return dn.onDestroy(function(){return Au(Jt,oa.toStyles)}),dn.disabled=!0,dn.overrideTotalTime(oa.totalTime),void h.push(dn);var Ab=NP;if(Bc.size>1){for(var hk=Jt,yH=[];hk=hk.parentNode;){var So=Bc.get(hk);if(So){Ab=So;break}yH.push(hk)}yH.forEach(function(Eb){return Bc.set(Eb,Ab)})}var xX=l._buildAnimation(dn.namespaceId,oa,Fu,_,LP,Db);if(dn.setRealPlayer(xX),Ab===NP)FP.push(dn);else{var Hc=l.playersByElement.get(Ab);Hc&&Hc.length&&(dn.parentPlayer=ud(Hc)),h.push(dn)}}else Ec(Jt,oa.fromStyles),dn.onDestroy(function(){return Au(Jt,oa.toStyles)}),gH.push(dn),L.has(Jt)&&h.push(dn)}),gH.forEach(function(Ct){var Jt=_.get(Ct.element);if(Jt&&Jt.length){var dn=ud(Jt);Ct.setRealPlayer(dn)}}),h.forEach(function(Ct){Ct.parentPlayer?Ct.syncPlayerEvents(Ct.parentPlayer):Ct.destroy()});for(var VP=0;VP0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,l):new Og(t.duration,t.delay)}}]),e}(),AS=function(){function e(a,t,n){F(this,e),this.namespaceId=a,this.triggerName=t,this.element=n,this._player=new Og,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return W(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(l){n._queuedCallbacks[l].forEach(function(c){return GE(t,l,void 0,c)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,l=this._player;l.triggerCallback&&t.onStart(function(){return l.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){Ka(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function MB(e){return null!=e?e:null}function ES(e){return e&&1===e.nodeType}function PS(e,a){var t=e.style.display;return e.style.display=null!=a?a:"none",t}function OS(e,a,t,n,l){var c=[];t.forEach(function(C){return c.push(PS(C))});var h=[];n.forEach(function(C,k){var D={};C.forEach(function(I){var L=D[I]=a.computeStyle(k,I,l);(!L||0==L.length)&&(k[Co]=kB,h.push(k))}),e.set(k,D)});var _=0;return t.forEach(function(C){return PS(C,c[_++])}),h}function TB(e,a){var t=new Map;if(e.forEach(function(_){return t.set(_,[])}),0==a.length)return t;var l=new Set(a),c=new Map;function h(_){if(!_)return 1;var C=c.get(_);if(C)return C;var k=_.parentNode;return C=t.has(k)?k:l.has(k)?1:h(k),c.set(_,C),C}return a.forEach(function(_){var C=h(_);1!==C&&t.get(C).push(_)}),t}var IS="$$classes";function Rs(e,a){if(e.classList)e.classList.add(a);else{var t=e[IS];t||(t=e[IS]={}),t[a]=!0}}function Fg(e,a){if(e.classList)e.classList.remove(a);else{var t=e[IS];t&&delete t[a]}}function M9(e,a,t){ud(t).onDone(function(){return e.processLeaveNode(a)})}function RS(e,a){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function AB(e,a){var t=null,n=null;return Array.isArray(a)&&a.length?(t=uP(a[0]),a.length>1&&(n=uP(a[a.length-1]))):a&&(t=uP(a)),t||n?new D9(e,t,n):null}var D9=function(){var e=function(){function a(t,n,l){F(this,a),this._element=t,this._startStyles=n,this._endStyles=l,this._state=0;var c=a.initialStylesByElement.get(t);c||a.initialStylesByElement.set(t,c={}),this._initialStyles=c}return W(a,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Au(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Au(this._element,this._initialStyles),this._endStyles&&(Au(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(Ec(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ec(this._element,this._endStyles),this._endStyles=null),Au(this._element,this._initialStyles),this._state=3)}}]),a}();return e.initialStylesByElement=new WeakMap,e}();function uP(e){for(var a=null,t=Object.keys(e),n=0;n=this._delay&&l>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),fP(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,a){var n=_b(e,"").split(","),l=vp(n,a);l>=0&&(n.splice(l,1),FS(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function OB(e,a,t){FS(e,"PlayState",t,RB(e,a))}function RB(e,a){var t=_b(e,"");return t.indexOf(",")>0?vp(t.split(","),a):vp([t],a)}function vp(e,a){for(var t=0;t=0)return t;return-1}function fP(e,a,t){t?e.removeEventListener(LS,a):e.addEventListener(LS,a)}function FS(e,a,t,n){var l=EB+a;if(null!=n){var c=e.style[l];if(c.length){var h=c.split(",");h[n]=t,t=h.join(",")}}e.style[l]=t}function _b(e,a){return e.style[EB+a]||""}var FB=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.element=a,this.keyframes=t,this.animationName=n,this._duration=l,this._delay=c,this._finalStyles=_,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=h||"linear",this.totalTime=l+c,this._buildStyler()}return W(e,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new cP(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var n={};if(this.hasStarted()){var l=this._state>=3;Object.keys(this._finalStyles).forEach(function(c){"offset"!=c&&(n[c]=l?t._finalStyles[c]:Pc(t.element,c))})}this.currentSnapshot=n}}]),e}(),I9=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).element=n,c._startingStyles={},c.__initialized=!1,c._styles=rB(l),c}return W(t,[{key:"init",value:function(){var l=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(c){l._startingStyles[c]=l.element.style[c]}),Ie(Oe(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var l=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(c){return l.element.style.setProperty(c,l._styles[c])}),Ie(Oe(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var l=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(c){var h=l._startingStyles[c];h?l.element.style.setProperty(c,h):l.element.style.removeProperty(c)}),this._startingStyles=null,Ie(Oe(t.prototype),"destroy",this).call(this))}}]),t}(Og),R9="gen_css_kf_",VB=function(){function e(){F(this,e),this._count=0}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"buildKeyframeElement",value:function(t,n,l){l=l.map(function(C){return rB(C)});var c="@keyframes ".concat(n," {\n"),h="";l.forEach(function(C){h=" ";var k=parseFloat(C.offset);c+="".concat(h).concat(100*k,"% {\n"),h+=" ",Object.keys(C).forEach(function(D){var I=C[D];switch(D){case"offset":return;case"easing":return void(I&&(c+="".concat(h,"animation-timing-function: ").concat(I,";\n")));default:return void(c+="".concat(h).concat(D,": ").concat(I,";\n"))}}),c+="".concat(h,"}\n")}),c+="}\n";var _=document.createElement("style");return _.textContent=c,_}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],k=_.filter(function(fe){return fe instanceof FB}),D={};hB(l,c)&&k.forEach(function(fe){var se=fe.currentSnapshot;Object.keys(se).forEach(function(be){return D[be]=se[be]})});var I=L9(n=pB(t,n,D));if(0==l)return new I9(t,I);var L="".concat(R9).concat(this._count++),G=this.buildKeyframeElement(t,L,n),Y=BB(t);Y.appendChild(G);var $=AB(t,n),ie=new FB(t,n,L,l,c,h,I,$);return ie.onDestroy(function(){return HB(G)}),ie}}]),e}();function BB(e){var a,t=null===(a=e.getRootNode)||void 0===a?void 0:a.call(e);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head}function L9(e){var a={};return e&&(Array.isArray(e)?e:[e]).forEach(function(n){Object.keys(n).forEach(function(l){"offset"==l||"easing"==l||(a[l]=n[l])})}),a}function HB(e){e.parentNode.removeChild(e)}var UB=function(){function e(a,t,n,l){F(this,e),this.element=a,this.keyframes=t,this.options=n,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,n,l){return t.animate(n,l)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(l){"offset"!=l&&(n[l]=t._finished?t._finalKeyframe[l]:Pc(t.element,l))}),this.currentSnapshot=n}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),GB=function(){function e(){F(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(WB().toString()),this._cssKeyframesDriver=new VB}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],C=arguments.length>6?arguments[6]:void 0,k=!C&&!this._isNativeImpl;if(k)return this._cssKeyframesDriver.animate(t,n,l,c,h,_);var D=0==c?"both":"forwards",I={duration:l,delay:c,fill:D};h&&(I.easing=h);var L={},G=_.filter(function($){return $ instanceof UB});hB(l,c)&&G.forEach(function($){var ie=$.currentSnapshot;Object.keys(ie).forEach(function(fe){return L[fe]=ie[fe]})});var Y=AB(t,n=pB(t,n=n.map(function($){return cd($,!1)}),L));return new UB(t,n,I,Y)}}]),e}();function WB(){return eB()&&Element.prototype.animate||{}}var F9=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._nextAnimationId=0,h._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Hs.None,styles:[],data:{animation:[]}}),h}return W(n,[{key:"build",value:function(c){var h=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?NE(c):c;return qB(this._renderer,null,h,"register",[_]),new YB(h,this._renderer)}}]),n}(FE);return e.\u0275fac=function(t){return new(t||e)(ce(Ff),ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),YB=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this))._id=n,c._renderer=l,c}return W(t,[{key:"create",value:function(l,c){return new N9(this._id,l,c||{},this._renderer)}}]),t}(XY),N9=function(){function e(a,t,n,l){F(this,e),this.id=a,this.element=t,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return W(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,l),this.engine.onInsert(this.namespaceId,n,t,c)}},{key:"removeChild",value:function(t,n,l){this.engine.onRemove(this.namespaceId,n,this.delegate,l)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,l,c){this.delegate.setAttribute(t,n,l,c)}},{key:"removeAttribute",value:function(t,n,l){this.delegate.removeAttribute(t,n,l)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,l,c){this.delegate.setStyle(t,n,l,c)}},{key:"removeStyle",value:function(t,n,l){this.delegate.removeStyle(t,n,l)}},{key:"setProperty",value:function(t,n,l){"@"==n.charAt(0)&&n==bb?this.disableAnimations(t,!!l):this.delegate.setProperty(t,n,l)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,l){return this.delegate.listen(t,n,l)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),KB=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,l,c,h)).factory=n,_.namespaceId=l,_}return W(t,[{key:"setProperty",value:function(l,c,h){"@"==c.charAt(0)?"."==c.charAt(1)&&c==bb?this.disableAnimations(l,h=void 0===h||!!h):this.engine.process(this.namespaceId,l,c.substr(1),h):this.delegate.setProperty(l,c,h)}},{key:"listen",value:function(l,c,h){var _=this;if("@"==c.charAt(0)){var C=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(l),k=c.substr(1),D="";if("@"!=k.charAt(0)){var L=cr(function(e){var a=e.indexOf(".");return[e.substring(0,a),e.substr(a+1)]}(k),2);k=L[0],D=L[1]}return this.engine.listen(this.namespaceId,C,k,D,function(G){_.factory.scheduleListenerCallback(G._data||-1,h,G)})}return this.delegate.listen(l,c,h)}}]),t}(ZB),QB=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l.body,c,h)}return W(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(mb);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(dS),ce(aP))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Un=new Ee("AnimationModuleType"),e5=[{provide:FE,useClass:F9},{provide:aP,useFactory:function(){return new d9}},{provide:mb,useClass:QB},{provide:Ff,useFactory:function(e,a,t){return new XB(e,a,t)},deps:[qh,mb,ft]}],dP=[{provide:dS,useFactory:function(){return"function"==typeof WB()?new GB:new VB}},{provide:Un,useValue:"BrowserAnimations"}].concat(e5),BS=[{provide:dS,useClass:iB},{provide:Un,useValue:"NoopAnimations"}].concat(e5),H9=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:n.disableAnimations?BS:dP}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:dP,imports:[$D]}),e}();function U9(e,a){if(1&e&&me(0,"mat-pseudo-checkbox",4),2&e){var t=J();U("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function n5(e,a){if(1&e&&(A(0,"span",5),K(1),E()),2&e){var t=J();H(1),ze("(",t.group.label,")")}}var r5=["*"],G9=function(){var e=function a(){F(this,a)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),j9=function(){var e=function a(){F(this,a)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),i5=new tc("12.2.4"),a5=new Ee("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Qt=function(){var e=function(){function a(t,n,l){F(this,a),this._hasDoneGlobalChecks=!1,this._document=l,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return W(a,[{key:"_getWindow",value:function(){var n=this._document.defaultView||window;return"object"==typeof n&&n?n:null}},{key:"_checkIsEnabled",value:function(n){return!(!yw()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}},{key:"_isTestEnv",value:function(){var n=this._getWindow();return n&&(n.__karma__||n.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var n=this._document.createElement("div");n.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(n);var l=getComputedStyle(n);l&&"none"!==l.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&i5.full!==QV.full&&console.warn("The Angular Material version ("+i5.full+") does not match the Angular CDK version ("+QV.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(RE),ce(a5,8),ce(lt))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qy],Qy]}),e}();function ra(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_1&&void 0!==arguments[1]?arguments[1]:0;return function(t){ae(l,t);var n=ue(l);function l(){var c;F(this,l);for(var h=arguments.length,_=new Array(h),C=0;C0?l:t}}]),e}(),Pu=new Ee("mat-date-formats");try{fd="undefined"!=typeof Intl}catch(e){fd=!1}var q9={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},s5=zS(31,function(a){return String(a+1)}),Z9={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},K9=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function zS(e,a){for(var t=Array(e),n=0;n9999)&&(c=this.clone(c)).setFullYear(Math.max(1,Math.min(9999,c.getFullYear()))),h=Object.assign(Object.assign({},h),{timeZone:"utc"});var _=new Intl.DateTimeFormat(this.locale,h);return this._stripDirectionalityCharacters(this._format(_,c))}return this._stripDirectionalityCharacters(c.toDateString())}},{key:"addCalendarYears",value:function(c,h){return this.addCalendarMonths(c,12*h)}},{key:"addCalendarMonths",value:function(c,h){var _=this._createDateWithOverflow(this.getYear(c),this.getMonth(c)+h,this.getDate(c));return this.getMonth(_)!=((this.getMonth(c)+h)%12+12)%12&&(_=this._createDateWithOverflow(this.getYear(_),this.getMonth(_),0)),_}},{key:"addCalendarDays",value:function(c,h){return this._createDateWithOverflow(this.getYear(c),this.getMonth(c),this.getDate(c)+h)}},{key:"toIso8601",value:function(c){return[c.getUTCFullYear(),this._2digit(c.getUTCMonth()+1),this._2digit(c.getUTCDate())].join("-")}},{key:"deserialize",value:function(c){if("string"==typeof c){if(!c)return null;if(K9.test(c)){var h=new Date(c);if(this.isValid(h))return h}}return Ie(Oe(n.prototype),"deserialize",this).call(this,c)}},{key:"isDateInstance",value:function(c){return c instanceof Date}},{key:"isValid",value:function(c){return!isNaN(c.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(c,h,_){var C=new Date;return C.setFullYear(c,h,_),C.setHours(0,0,0,0),C}},{key:"_2digit",value:function(c){return("00"+c).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(c){return c.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(c,h){var _=new Date;return _.setUTCFullYear(h.getFullYear(),h.getMonth(),h.getDate()),_.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),c.format(_)}}]),n}(Ur);return e.\u0275fac=function(t){return new(t||e)(ce(hP,8),ce(en))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),$9=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:Ur,useClass:Q9}],imports:[[ep]]}),e}(),J9={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},eq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:Pu,useValue:J9}],imports:[[$9]]}),e}(),dd=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"isErrorState",value:function(n,l){return!!(n&&n.invalid&&(n.touched||l&&l.submitted))}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),tq=function(){function e(a,t,n){F(this,e),this._renderer=a,this.element=t,this.config=n,this.state=3}return W(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),pP={enterDuration:225,exitDuration:150},vP=tp({passive:!0}),c5=["mousedown","touchstart"],rq=["mouseup","mouseleave","touchend","touchcancel"],gP=function(){function e(a,t,n,l){F(this,e),this._target=a,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,l.isBrowser&&(this._containerElement=yc(n))}return W(e,[{key:"fadeInRipple",value:function(t,n){var l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},pP),c.animation);c.centered&&(t=h.left+h.width/2,n=h.top+h.height/2);var C=c.radius||aq(t,n,h),k=t-h.left,D=n-h.top,I=_.enterDuration,L=document.createElement("div");L.classList.add("mat-ripple-element"),L.style.left="".concat(k-C,"px"),L.style.top="".concat(D-C,"px"),L.style.height="".concat(2*C,"px"),L.style.width="".concat(2*C,"px"),null!=c.color&&(L.style.backgroundColor=c.color),L.style.transitionDuration="".concat(I,"ms"),this._containerElement.appendChild(L),iq(L),L.style.transform="scale(1)";var G=new tq(this,L,c);return G.state=0,this._activeRipples.add(G),c.persistent||(this._mostRecentTransientRipple=G),this._runTimeoutOutsideZone(function(){var Y=G===l._mostRecentTransientRipple;G.state=1,!c.persistent&&(!Y||!l._isPointerDown)&&G.fadeOut()},I),G}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var l=t.element,c=Object.assign(Object.assign({},pP),t.config.animation);l.style.transitionDuration="".concat(c.exitDuration,"ms"),l.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,l.parentNode.removeChild(l)},c.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=yc(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(c5))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(rq),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=ab(t),l=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(l){n._triggerElement.addEventListener(l,n,vP)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(c5.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}),this._pointerUpEventsRegistered&&rq.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}))}}]),e}();function iq(e){window.getComputedStyle(e).getPropertyValue("opacity")}function aq(e,a,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),l=Math.max(Math.abs(a-t.top),Math.abs(a-t.bottom));return Math.sqrt(n*n+l*l)}var US=new Ee("mat-ripple-global-options"),Ls=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._elementRef=t,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new gP(this,n,t,l)}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,l,Object.assign(Object.assign({},this.rippleConfig),c)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&dt("mat-ripple-unbounded",n.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),Da=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qt,ep],Qt]}),e}(),Vg=function(){var e=function a(t){F(this,a),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,n){2&t&&dt("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,n){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),mP=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qt]]}),e}(),Bg=new Ee("MAT_OPTION_PARENT_COMPONENT"),oq=ra(function(){return function e(){F(this,e)}}()),f5=0,_P=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c,h;return F(this,n),(c=t.call(this))._labelId="mat-optgroup-label-".concat(f5++),c._inert=null!==(h=null==l?void 0:l.inertGroups)&&void 0!==h&&h,c}return n}(oq);return e.\u0275fac=function(t){return new(t||e)(N(Bg,8))},e.\u0275dir=ve({type:e,inputs:{label:"label"},features:[Pe]}),e}(),GS=new Ee("MatOptgroup"),lq=0,d5=function e(a){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];F(this,e),this.source=a,this.isUserInput=t},Hg=function(){var e=function(){function a(t,n,l,c){F(this,a),this._element=t,this._changeDetectorRef=n,this._parent=l,this.group=c,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(lq++),this.onSelectionChange=new ye,this._stateChanges=new qe}return W(a,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(n){this._disabled=it(n)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(n,l){var c=this._getHostElement();"function"==typeof c.focus&&c.focus(l)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(n){(13===n.keyCode||32===n.keyCode)&&!Vi(n)&&(this._selectViaInteraction(),n.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new d5(this,n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(void 0),N(_P))},e.\u0275dir=ve({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Bi=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(Hg);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Bg,8),N(GS,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,n){1&t&&ne("click",function(){return n._selectViaInteraction()})("keydown",function(c){return n._handleKeydown(c)}),2&t&&(Xi("id",n.id),Ke("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),dt("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[Pe],ngContentSelectors:r5,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,n){1&t&&(nr(),re(0,U9,1,2,"mat-pseudo-checkbox",0),A(1,"span",1),Wt(2),E(),re(3,n5,2,1,"span",2),me(4,"div",3)),2&t&&(U("ngIf",n.multiple),H(3),U("ngIf",n.group&&n.group._inert),H(1),U("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[Kt,Ls,Vg],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function jS(e,a,t){if(t.length){for(var n=a.toArray(),l=t.toArray(),c=0,h=0;ht+n?Math.max(0,e-n+a):t}var WS=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Da,Wa,Qt,mP]]}),e}();function uq(e,a){}var yP=function e(){F(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},cq={dialogContainer:Ei("dialogContainer",[Bn("void, exit",gt({opacity:0,transform:"scale(0.7)"})),Bn("enter",gt({transform:"none"})),zn("* => enter",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",gt({transform:"none",opacity:1}))),zn("* => void, * => exit",Tn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",gt({opacity:0})))])},h5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._elementRef=l,D._focusTrapFactory=c,D._changeDetectorRef=h,D._config=C,D._focusMonitor=k,D._animationStateChanged=new ye,D._elementFocusedBeforeDialogWasOpened=null,D._closeInteractionType=null,D.attachDomPortal=function(I){return D._portalOutlet.hasAttached(),D._portalOutlet.attachDomPortal(I)},D._ariaLabelledBy=C.ariaLabelledBy||null,D._document=_,D}return W(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(c)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var c=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&c&&"function"==typeof c.focus){var h=Ky(),_=this._elementRef.nativeElement;(!h||h===this._document.body||h===_||_.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ky())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var c=this._elementRef.nativeElement,h=Ky();return c===h||c.contains(h)}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(Vt),N(lt,8),N(yP),N(na))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},features:[Pe]}),e}(),fq=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._state="enter",l}return W(n,[{key:"_onAnimationDone",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===h&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===h||"void"===h)&&this._animationStateChanged.next({state:"closing",totalTime:_})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(h5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&mv("@dialogContainer.start",function(c){return n._onAnimationStart(c)})("@dialogContainer.done",function(c){return n._onAnimationDone(c)}),2&t&&(Xi("id",n._id),Ke("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Ba("@dialogContainer",n._state))},features:[Pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&re(0,uq,0,0,"ng-template",0)},directives:[Os],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[cq.dialogContainer]}}),e}(),p5=0,Er=function(){function e(a,t){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(p5++);F(this,e),this._overlayRef=a,this._containerInstance=t,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new qe,this._afterClosed=new qe,this._beforeClosed=new qe,this._state=0,t._id=l,t._animationStateChanged.pipe(vr(function(c){return"opened"===c.state}),or(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(vr(function(c){return"closed"===c.state}),or(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),a.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),a.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!n.disableClose&&!Vi(c)})).subscribe(function(c){c.preventDefault(),bP(n,"keyboard")}),a.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():bP(n,"mouse")})}return W(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(vr(function(l){return"closing"===l.state}),or(1)).subscribe(function(l){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},l.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function bP(e,a,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=a),e.close(t)}var Gr=new Ee("MatDialogData"),YS=new Ee("mat-dialog-default-options"),dq=new Ee("mat-dialog-scroll-strategy"),wb={provide:dq,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},v5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){var I=this;F(this,a),this._overlay=t,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=h,this._dialogRefConstructor=C,this._dialogContainerType=k,this._dialogDataToken=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=Ly(function(){return I.openDialogs.length?I._getAfterAllClosed():I._getAfterAllClosed().pipe(Qr(void 0))}),this._scrollStrategy=_}return W(a,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,l){var c=this;(l=function(e,a){return Object.assign(Object.assign({},a),e)}(l,this._defaultOptions||new yP)).id&&this.getDialogById(l.id);var h=this._createOverlay(l),_=this._attachDialogContainer(h,l),C=this._attachDialogContent(n,_,h,l);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(C),C.afterClosed().subscribe(function(){return c._removeOpenDialog(C)}),this.afterOpened.next(C),_._initializeWithAttachedContent(),C}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(l){return l.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var l=this._getOverlayConfig(n);return this._overlay.create(l)}},{key:"_getOverlayConfig",value:function(n){var l=new up({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(l.backdropClass=n.backdropClass),l}},{key:"_attachDialogContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:yP,useValue:l}]}),_=new sd(this._dialogContainerType,l.viewContainerRef,h,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,h){var _=new this._dialogRefConstructor(c,l,h.id);if(n instanceof Xn)l.attachTemplatePortal(new Ps(n,null,{$implicit:h.data,dialogRef:_}));else{var C=this._createInjector(h,_,l),k=l.attachComponentPortal(new sd(n,h.viewContainerRef,C));_.componentInstance=k.instance}return _.updateSize(h.width,h.height).updatePosition(h.position),_}},{key:"_createInjector",value:function(n,l,c){var h=n&&n.viewContainerRef&&n.viewContainerRef.injector,_=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:l}];return n.direction&&(!h||!h.get(Sr,null,yn.Optional))&&_.push({provide:Sr,useValue:{value:n.direction,change:ut()}}),kn.create({parent:h||this._injector,providers:_})}},{key:"_removeOpenDialog",value:function(n){var l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,h){c?h.setAttribute("aria-hidden",c):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var l=n.parentElement.children,c=l.length-1;c>-1;c--){var h=l[c];h!==n&&"SCRIPT"!==h.nodeName&&"STYLE"!==h.nodeName&&!h.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(h,h.getAttribute("aria-hidden")),h.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var l=n.length;l--;)n[l].close()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(kn),N(void 0),N(void 0),N(tb),N(void 0),N(Yl),N(Yl),N(Ee))},e.\u0275dir=ve({type:e}),e}(),Sb=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,_,k,D,C,Er,fq,Gr)}return n}(v5);return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(kn),ce(Jv,8),ce(YS,8),ce(dq),ce(e,12),ce(tb))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),pq=0,Lr=function(){var e=function(){function a(t,n,l){F(this,a),this.dialogRef=t,this._elementRef=n,this._dialog=l,this.type="button"}return W(a,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=g5(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var l=n._matDialogClose||n._matDialogCloseResult;l&&(this.dialogResult=l.currentValue)}},{key:"_onButtonClick",value:function(n){bP(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._onButtonClick(c)}),2&t&&Ke("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[an]}),e}(),jr=function(){var e=function(){function a(t,n,l){F(this,a),this._dialogRef=t,this._elementRef=n,this._dialog=l,this.id="mat-dialog-title-".concat(pq++)}return W(a,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=g5(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var l=n._dialogRef._containerInstance;l&&!l._ariaLabelledBy&&(l._ariaLabelledBy=n.id)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Xi("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),Fr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),$r=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function g5(e,a){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?a.find(function(n){return n.id===t.id}):null}var m5=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Sb,wb],imports:[[fp,xg,Qt],Qt]}),e}();function vq(e){var a=e.subscriber,t=e.counter,n=e.period;a.next(t),this.schedule({subscriber:a,counter:t+1,period:n},n)}var XS=["mat-button",""],hd=["*"],wP=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",mq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y5=Eu(ra(El(function(){return function e(a){F(this,e),this._elementRef=a}}()))),In=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;F(this,n),(_=t.call(this,l))._focusMonitor=c,_._animationMode=h,_.isRoundButton=_._hasHostAttributes("mat-fab","mat-mini-fab"),_.isIconButton=_._hasHostAttributes("mat-icon-button");var k,C=tn(mq);try{for(C.s();!(k=C.n()).done;){var D=k.value;_._hasHostAttributes(D)&&_._getHostElement().classList.add(D)}}catch(I){C.e(I)}finally{C.f()}return l.nativeElement.classList.add("mat-button-base"),_.isRoundButton&&(_.color="accent"),_}return W(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(c,h){c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var c=this,h=arguments.length,_=new Array(h),C=0;C0&&(this.dialogRef.afterClosed().subscribe(function(t){a.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return(!zA(e)||e<0)&&(e=0),(!a||"function"!=typeof a.schedule)&&(a=Mg),new gn(function(t){return t.add(a.schedule(vq,e,{subscriber:t,counter:0,period:e})),t})}(1e3).subscribe(function(t){var n=a.data.autoclose-1e3*(t+1);a.setExtra(n),n<=0&&a.close()}))},e.prototype.initYesNo=function(){},e.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Ou.yesno?this.initYesNo():this.initAlert()},e.\u0275fac=function(t){return new(t||e)(N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),me(2,"mat-dialog-content",1),Uf(3,"safeHtml"),A(4,"mat-dialog-actions"),re(5,C5,4,1,"button",2),re(6,w5,3,1,"button",3),re(7,S5,3,1,"button",3),E()),2&t&&(U("innerHtml",Gf(1,5,n.data.title),Si),H(2),U("innerHTML",Gf(3,7,n.data.body),Si),H(3),U("ngIf",0==n.data.type),H(1),U("ngIf",1==n.data.type),H(1),U("ngIf",1==n.data.type))},directives:[jr,Fr,$r,Kt,In,Lr,Hn],pipes:[b5],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),Pl=function(e){return e.TEXT="text",e.TEXTBOX="textbox",e.NUMERIC="numeric",e.PASSWORD="password",e.HIDDEN="hidden",e.CHOICE="choice",e.MULTI_CHOICE="multichoice",e.EDITLIST="editlist",e.CHECKBOX="checkbox",e.IMAGECHOICE="imgchoice",e.DATE="date",e.DATETIME="datetime",e.TAGLIST="taglist",e}({}),M5=function(){function e(){}return e.locateChoice=function(a,t){var n=t.gui.values.find(function(l){return l.id===a});if(void 0===n)try{n=t.gui.values[0]}catch(l){n={id:"",img:"",text:""}}return n},e}();function o(e,a){return new gn(function(t){var n=e.length;if(0!==n)for(var l=new Array(n),c=0,h=0,_=function(D){var I=yt(e[D]),L=!1;t.add(I.subscribe({next:function(Y){L||(L=!0,h++),l[D]=Y},error:function(Y){return t.error(Y)},complete:function(){(++c===n||!L)&&(h===n&&t.next(a?a.reduce(function(Y,$,ie){return Y[$]=l[ie],Y},{}):l),t.complete())}}))},C=0;Ce?{max:{max:e,actual:a.value}}:null}}(t)}},{key:"required",value:function(t){return P(t)}},{key:"requiredTrue",value:function(t){return O(t)}},{key:"email",value:function(t){return function(e){return m(e.value)||S.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(e){return function(a){return m(a.value)||!y(a.value)?null:a.value.lengthe?{maxlength:{requiredLength:e,actualLength:a.value.length}}:null}}function j(e){return null}function X(e){return null!=e}function Z(e){var a=vv(e)?yt(e):e;return gv(a),a}function Q(e){var a={};return e.forEach(function(t){a=null!=t?Object.assign(Object.assign({},a),t):a}),0===Object.keys(a).length?null:a}function te(e,a){return a.map(function(t){return t(e)})}function le(e){return e.map(function(a){return function(e){return!e.validate}(a)?a:function(t){return a.validate(t)}})}function oe(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return Q(te(t,a))}}function de(e){return null!=e?oe(le(e)):null}function ge(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return function(){for(var e=arguments.length,a=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(n)}},{key:"hasError",value:function(n,l){return!!this.control&&this.control.hasError(n,l)}},{key:"getError",value:function(n,l){return this.control?this.control.getError(n,l):null}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),Yt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Mt);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,features:[Pe]}),e}(),Ut=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return t}(Mt),Wn=function(){function e(a){F(this,e),this._cd=a}return W(e,[{key:"is",value:function(t){var n,l,c;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(c=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===c?void 0:c[t])}}]),e}(),xt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Ut,2))},e.\u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&dt("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Pe]}),e}(),Nr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Yt,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&dt("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Pe]}),e}();function SP(e,a){bq(e,a),a.valueAccessor.writeValue(e.value),function(e,a){a.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&P$(e,a)})}(e,a),function(e,a){var t=function(l,c){a.valueAccessor.writeValue(l),c&&a.viewToModelUpdate(l)};e.registerOnChange(t),a._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,a),function(e,a){a.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&P$(e,a),"submit"!==e.updateOn&&e.markAsTouched()})}(e,a),function(e,a){if(a.valueAccessor.setDisabledState){var t=function(l){a.valueAccessor.setDisabledState(l)};e.registerOnDisabledChange(t),a._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,a)}function D5(e,a){var n=function(){};a.valueAccessor&&(a.valueAccessor.registerOnChange(n),a.valueAccessor.registerOnTouched(n)),E5(e,a),e&&(a._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function A5(e,a){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(a)})}function bq(e,a){var t=Me(e);null!==a.validator?e.setValidators(xe(t,a.validator)):"function"==typeof t&&e.setValidators([t]);var n=He(e);null!==a.asyncValidator?e.setAsyncValidators(xe(n,a.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var l=function(){return e.updateValueAndValidity()};A5(a._rawValidators,l),A5(a._rawAsyncValidators,l)}function E5(e,a){var t=!1;if(null!==e){if(null!==a.validator){var n=Me(e);if(Array.isArray(n)&&n.length>0){var l=n.filter(function(C){return C!==a.validator});l.length!==n.length&&(t=!0,e.setValidators(l))}}if(null!==a.asyncValidator){var c=He(e);if(Array.isArray(c)&&c.length>0){var h=c.filter(function(C){return C!==a.asyncValidator});h.length!==c.length&&(t=!0,e.setAsyncValidators(h))}}}var _=function(){};return A5(a._rawValidators,_),A5(a._rawAsyncValidators,_),t}function P$(e,a){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function O$(e,a){bq(e,a)}function I$(e,a){e._syncPendingControls(),a.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function P5(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var kP="VALID",O5="INVALID",KS="PENDING",MP="DISABLED";function Sq(e){return(Mq(e)?e.validators:e)||null}function R$(e){return Array.isArray(e)?de(e):e||null}function kq(e,a){return(Mq(a)?a.asyncValidators:e)||null}function L$(e){return Array.isArray(e)?_e(e):e||null}function Mq(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var xq=function(){function e(a,t){F(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=t,this._composedValidatorFn=R$(this._rawValidators),this._composedAsyncValidatorFn=L$(this._rawAsyncValidators)}return W(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===kP}},{key:"invalid",get:function(){return this.status===O5}},{key:"pending",get:function(){return this.status==KS}},{key:"disabled",get:function(){return this.status===MP}},{key:"enabled",get:function(){return this.status!==MP}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=R$(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=L$(t)}},{key:"addValidators",value:function(t){this.setValidators($t(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators($t(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(zt(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(zt(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return mt(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return mt(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=KS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=MP,this.errors=null,this._forEachChild(function(l){l.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=kP,this._forEachChild(function(l){l.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kP||this.status===KS)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?MP:kP}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=KS,this._hasOwnPendingAsyncValidator=!0;var l=Z(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(function(c){n._hasOwnPendingAsyncValidator=!1,n.setErrors(c,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function(e,a,t){if(null==a||(Array.isArray(a)||(a=a.split(".")),Array.isArray(a)&&0===a.length))return null;var n=e;return a.forEach(function(l){n=n instanceof Tq?n.controls.hasOwnProperty(l)?n.controls[l]:null:n instanceof kne&&n.at(l)||null}),n}(this,t)}},{key:"getError",value:function(t,n){var l=n?this.get(n):this;return l&&l.errors?l.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new ye,this.statusChanges=new ye}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?MP:this.errors?O5:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(KS)?KS:this._anyControlsHaveStatus(O5)?O5:kP}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Mq(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),I5=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0;return F(this,t),(n=a.call(this,Sq(c),kq(h,c)))._onChange=[],n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),n}return W(t,[{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==h.emitViewToModelChange)}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(l,c)}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(l),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(l){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(l){this._onChange.push(l)}},{key:"_unregisterOnChange",value:function(l){P5(this._onChange,l)}},{key:"registerOnDisabledChange",value:function(l){this._onDisabledChange.push(l)}},{key:"_unregisterOnDisabledChange",value:function(l){P5(this._onDisabledChange,l)}},{key:"_forEachChild",value:function(l){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(l){this._isBoxedValue(l)?(this.value=this._pendingValue=l.value,l.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=l}}]),t}(xq),Tq=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Sq(l),kq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"registerControl",value:function(l,c){return this.controls[l]?this.controls[l]:(this.controls[l]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}},{key:"addControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],c&&this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(l){return this.controls.hasOwnProperty(l)&&this.controls[l].enabled}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),Object.keys(l).forEach(function(_){c._throwIfControlMissing(_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(Object.keys(l).forEach(function(_){c.controls[_]&&c.controls[_].patchValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(l,c,h){return l[h]=c instanceof I5?c.value:c.getRawValue(),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,h){return!!h._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[l])throw new Error("Cannot find form control with name: ".concat(l,"."))}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(h){var _=c.controls[h];_&&l(_,h)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){c.setParent(l),c._registerOnCollectionChange(l._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(l){for(var c=0,h=Object.keys(this.controls);c0||this.disabled}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control with name: '".concat(h,"'."))})}}]),t}(xq),kne=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Sq(l),kq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"at",value:function(l){return this.controls[l]}},{key:"push",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(l),this._registerControl(l),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:h.emitEvent})}},{key:"removeAt",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),c&&(this.controls.splice(l,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),l.forEach(function(_,C){c._throwIfControlMissing(C),c.at(C).setValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(l.forEach(function(_,C){c.at(C)&&c.at(C).patchValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this.controls.map(function(l){return l instanceof I5?l.value:l.getRawValue()})}},{key:"clear",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(c){return c._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:l.emitEvent}))}},{key:"_syncPendingControls",value:function(){var l=this.controls.reduce(function(c,h){return!!h._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(l))throw new Error("Cannot find form control at index ".concat(l))}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,h){l(c,h)})}},{key:"_updateValue",value:function(){var l=this;this.value=this.controls.filter(function(c){return c.enabled||l.disabled}).map(function(c){return c.value})}},{key:"_anyControls",value:function(l){return this.controls.some(function(c){return c.enabled&&l(c)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){return l._registerControl(c)})}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control at index: ".concat(h,"."))})}},{key:"_allControlsDisabled",value:function(){var c,l=tn(this.controls);try{for(l.s();!(c=l.n()).done;)if(c.value.enabled)return!1}catch(_){l.e(_)}finally{l.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(l){l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange)}}]),t}(xq),Mne={provide:Yt,useExisting:Sn(function(){return Rc})},xP=function(){return Promise.resolve(null)}(),Rc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).submitted=!1,h._directives=[],h.ngSubmit=new ye,h.form=new Tq({},de(l),_e(c)),h}return W(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);c.control=_.registerControl(c.name,c.control),SP(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),h._directives.push(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name),P5(h._directives,c)})}},{key:"addFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path),C=new Tq({});O$(C,c),_.registerControl(c.name,C),C.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){var _=this;xP.then(function(){_.form.get(c.path).setValue(h)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,I$(this.form,this._directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(c){return c.pop(),c.length?this.form.get(c):this.form}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Mne]),Pe]}),e}(),Dne={provide:Ut,useExisting:Sn(function(){return kr})},V$=function(){return Promise.resolve(null)}(),kr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this)).control=new I5,C._registered=!1,C.update=new ye,C._parent=l,C._setValidators(c),C._setAsyncValidators(h),C.valueAccessor=function(e,a){if(!a)return null;Array.isArray(a);var t=void 0,n=void 0,l=void 0;return a.forEach(function(c){c.constructor===g?t=c:function(e){return Object.getPrototypeOf(e.constructor)===r}(c)?n=c:l=c}),l||n||t||null}(It(C),_),C}return W(n,[{key:"ngOnChanges",value:function(c){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in c&&this._updateDisabled(c),function(e,a){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(a,t.currentValue)}(c,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(e,a){return[].concat(At(a.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(c){this.viewModel=c,this.update.emit(c)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){SP(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(c){var h=this;V$.then(function(){h.control.setValue(c,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(c){var h=this,_=c.isDisabled.currentValue,C=""===_||_&&"false"!==_;V$.then(function(){C&&!h.control.disabled?h.control.disable():!C&&h.control.disabled&&h.control.enable()})}}]),n}(Ut);return e.\u0275fac=function(t){return new(t||e)(N(Yt,9),N(b,10),N(w,10),N(s,10))},e.\u0275dir=ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Xe([Dne]),Pe,an]}),e}(),Dq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Ene={provide:s,useExisting:Sn(function(){return zg}),multi:!0},zg=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"registerOnChange",value:function(c){this.onChange=function(h){c(""==h?null:parseFloat(h))}}}]),n}(r);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){1&t&&ne("input",function(c){return n.onChange(c.target.value)})("blur",function(){return n.onTouched()})},features:[Xe([Ene]),Pe]}),e}(),B$=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Aq=new Ee("NgModelWithFormControlWarning"),Lne={provide:Yt,useExisting:Sn(function(){return yp})},yp=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).validators=l,h.asyncValidators=c,h.submitted=!1,h._onCollectionChange=function(){return h._updateDomValue()},h.directives=[],h.form=null,h.ngSubmit=new ye,h._setValidators(l),h._setAsyncValidators(c),h}return W(n,[{key:"ngOnChanges",value:function(c){this._checkFormPresent(),c.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(E5(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(c){var h=this.form.get(c.path);return SP(h,c),h.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),h}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){D5(c.control||null,c),P5(this.directives,c)}},{key:"addFormGroup",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormGroup",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"addFormArray",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormArray",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormArray",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){this.form.get(c.path).setValue(h)}},{key:"onSubmit",value:function(c){return this.submitted=!0,I$(this.form,this.directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_updateDomValue",value:function(){var c=this;this.directives.forEach(function(h){var _=h.control,C=c.form.get(h.path);_!==C&&(D5(_||null,h),C instanceof I5&&(SP(C,h),h.control=C))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var h=this.form.get(c.path);O$(h,c),h.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var h=this.form.get(c.path);h&&function(e,a){return E5(e,a)}(h,c)&&h.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){bq(this.form,this),this._oldForm&&E5(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Lne]),Pe,an]}),e}();var qne={provide:b,useExisting:Sn(function(){return Lc}),multi:!0},Xne={provide:b,useExisting:Sn(function(){return R5}),multi:!0},Lc=function(){var e=function(){function a(){F(this,a),this._required=!1}return W(a,[{key:"required",get:function(){return this._required},set:function(n){this._required=null!=n&&!1!==n&&"false"!=="".concat(n),this._onChange&&this._onChange()}},{key:"validate",value:function(n){return this.required?P(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},inputs:{required:"required"},features:[Xe([qne])]}),e}(),R5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"validate",value:function(c){return this.required?O(c):null}}]),n}(Lc);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},features:[Xe([Xne]),Pe]}),e}(),Qne={provide:b,useExisting:Sn(function(){return Rq}),multi:!0},Rq=function(){var e=function(){function a(){F(this,a),this._validator=j}return W(a,[{key:"ngOnChanges",value:function(n){"maxlength"in n&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(n){return this.enabled()?this._validator(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"_createValidator",value:function(){this._validator=this.enabled()?B(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):j}},{key:"enabled",value:function(){return null!=this.maxlength}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("maxlength",n.enabled()?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Xe([Qne]),an]}),e}(),eJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[B$]]}),e}(),Jne=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[eJ]}),e}(),ere=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:[{provide:Aq,useValue:n.warnOnNgModelWithFormControl}]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[eJ]}),e}();function tre(e,a){1&e&&Wt(0)}var Lq=["*"];function nre(e,a){}var rre=function(a){return{animationDuration:a}},ire=function(a,t){return{value:a,params:t}},are=["tabBodyWrapper"],ore=["tabHeader"];function sre(e,a){}function lre(e,a){1&e&&re(0,sre,0,0,"ng-template",9),2&e&&U("cdkPortalOutlet",J().$implicit.templateLabel)}function ure(e,a){1&e&&K(0),2&e&&Pn(J().$implicit.textLabel)}function cre(e,a){if(1&e){var t=De();A(0,"div",6),ne("click",function(){var _=pe(t),C=_.$implicit,k=_.index,D=J(),I=Nn(1);return D._handleClick(C,I,k)})("cdkFocusChange",function(_){var k=pe(t).index;return J()._tabFocusChanged(_,k)}),A(1,"div",7),re(2,lre,1,1,"ng-template",8),re(3,ure,1,1,"ng-template",8),E(),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-label-active",c.selectedIndex==l),U("id",c._getTabLabelId(l))("disabled",n.disabled)("matRippleDisabled",n.disabled||c.disableRipple),Ke("tabIndex",c._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",c._tabs.length)("aria-controls",c._getTabContentId(l))("aria-selected",c.selectedIndex==l)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),H(2),U("ngIf",n.templateLabel),H(1),U("ngIf",!n.templateLabel)}}function fre(e,a){if(1&e){var t=De();A(0,"mat-tab-body",10),ne("_onCentered",function(){return pe(t),J()._removeTabBodyWrapperHeight()})("_onCentering",function(_){return pe(t),J()._setTabBodyWrapperHeight(_)}),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-body-active",c.selectedIndex===l),U("id",c._getTabContentId(l))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",c.animationDuration),Ke("tabindex",null!=c.contentTabIndex&&c.selectedIndex===l?c.contentTabIndex:null)("aria-labelledby",c._getTabLabelId(l))}}var tJ=["tabListContainer"],nJ=["tabList"],rJ=["nextPaginator"],iJ=["previousPaginator"],hre=new Ee("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),L5=function(){var e=function(){function a(t,n,l,c){F(this,a),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=l,this._animationMode=c}return W(a,[{key:"alignToElement",value:function(n){var l=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return l._setStyles(n)})}):this._setStyles(n)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(n){var l=this._inkBarPositioner(n),c=this._elementRef.nativeElement;c.style.left=l.left,c.style.width=l.width}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(hre),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,n){2&t&&dt("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),e}(),aJ=new Ee("MatTabContent"),oJ=new Ee("MatTabLabel"),Fc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(nE);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Xe([{provide:oJ,useExisting:e}]),Pe]}),e}(),vre=ra(function(){return function e(){F(this,e)}}()),sJ=new Ee("MAT_TAB_GROUP"),Iu=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._viewContainerRef=l,h._closestTabGroup=c,h.textLabel="",h._contentPortal=null,h._stateChanges=new qe,h.position=null,h.origin=null,h.isActive=!1,h}return W(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(c){this._setTemplateLabelInput(c)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(c){(c.hasOwnProperty("textLabel")||c.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ps(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(c){c&&(this._templateLabel=c)}}]),n}(vre);return e.\u0275fac=function(t){return new(t||e)(N(Qn),N(sJ,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,oJ,5),Zt(l,aJ,7,Xn)),2&t&&(Ne(c=Le())&&(n.templateLabel=c.first),Ne(c=Le())&&(n._explicitContent=c.first))},viewQuery:function(t,n){var l;1&t&&wt(Xn,7),2&t&&Ne(l=Le())&&(n._implicitContent=l.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Pe,an],ngContentSelectors:Lq,decls:1,vars:0,template:function(t,n){1&t&&(nr(),re(0,tre,1,0,"ng-template"))},encapsulation:2}),e}(),gre={translateTab:Ei("translateTab",[Bn("center, void, left-origin-center, right-origin-center",gt({transform:"none"})),Bn("left",gt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Bn("right",gt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),zn("* => left, * => right, left => center, right => center",Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zn("void => left-origin-center",[gt({transform:"translate3d(-100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zn("void => right-origin-center",[gt({transform:"translate3d(100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},mre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this,l,c,_))._host=h,C._centeringSub=Ve.EMPTY,C._leavingSub=Ve.EMPTY,C}return W(n,[{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Qr(this._host._isCenterPosition(this._host._position))).subscribe(function(h){h&&!c.hasAttached()&&c.attach(c._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){c.detach()})}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Os);return e.\u0275fac=function(t){return new(t||e)(N(Zi),N(Qn),N(Sn(function(){return lJ})),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTabBodyHost",""]],features:[Pe]}),e}(),_re=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dir=n,this._dirChangeSubscription=Ve.EMPTY,this._translateTabComplete=new qe,this._onCentering=new ye,this._beforeCentering=new ye,this._afterLeavingCenter=new ye,this._onCentered=new ye(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(h){c._computePositionAnimationState(h),l.markForCheck()})),this._translateTabComplete.pipe(Xa(function(h,_){return h.fromState===_.fromState&&h.toState===_.toState})).subscribe(function(h){c._isCenterPosition(h.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(h.fromState)&&!c._isCenterPosition(c._position)&&c._afterLeavingCenter.emit()})}return W(a,[{key:"position",set:function(n){this._positionIndex=n,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(n){var l=this._isCenterPosition(n.toState);this._beforeCentering.emit(l),l&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}},{key:"_computePositionAnimationState",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(n){var l=this._getLayoutDirection();return"ltr"==l&&n<=0||"rtl"==l&&n>0?"left-origin-center":"right-origin-center"}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Sr,8),N(Vt))},e.\u0275dir=ve({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),lJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l,c,h)}return n}(_re);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Sr,8),N(Vt))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,n){var l;1&t&&wt(Os,5),2&t&&Ne(l=Le())&&(n._portalHost=l.first)},hostAttrs:[1,"mat-tab-body"],features:[Pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,n){1&t&&(A(0,"div",0,1),ne("@translateTab.start",function(c){return n._onTranslateTabStarted(c)})("@translateTab.done",function(c){return n._translateTabComplete.next(c)}),re(2,nre,0,0,"ng-template",2),E()),2&t&&U("@translateTab",zf(3,ire,n._position,vl(1,rre,n.animationDuration)))},directives:[mre],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[gre.translateTab]}}),e}(),uJ=new Ee("MAT_TABS_CONFIG"),yre=0,bre=function e(){F(this,e)},Cre=Eu(El(function(){return function e(a){F(this,e),this._elementRef=a}}()),"primary"),wre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C,k;return F(this,n),(C=t.call(this,l))._changeDetectorRef=c,C._animationMode=_,C._tabs=new Wo,C._indexToSelect=0,C._tabBodyWrapperHeight=0,C._tabsSubscription=Ve.EMPTY,C._tabLabelSubscription=Ve.EMPTY,C._selectedIndex=null,C.headerPosition="above",C.selectedIndexChange=new ye,C.focusChange=new ye,C.animationDone=new ye,C.selectedTabChange=new ye(!0),C._groupId=yre++,C.animationDuration=h&&h.animationDuration?h.animationDuration:"500ms",C.disablePagination=!(!h||null==h.disablePagination)&&h.disablePagination,C.dynamicHeight=!(!h||null==h.dynamicHeight)&&h.dynamicHeight,C.contentTabIndex=null!==(k=null==h?void 0:h.contentTabIndex)&&void 0!==k?k:null,C}return W(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(c){this._dynamicHeight=it(c)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(c){this._indexToSelect=Di(c,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(c){this._animationDuration=/^\d+$/.test(c)?c+"ms":c}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(c){this._contentTabIndex=Di(c,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(c){var h=this._elementRef.nativeElement;h.classList.remove("mat-background-".concat(this.backgroundColor)),c&&h.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,h=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=h){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(h));var C=this._tabBodyWrapper.nativeElement;C.style.minHeight=C.clientHeight+"px"}Promise.resolve().then(function(){c._tabs.forEach(function(k,D){return k.isActive=D===h}),_||(c.selectedIndexChange.emit(h),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(k,D){k.position=D-h,null!=c._selectedIndex&&0==k.position&&!k.origin&&(k.origin=h-c._selectedIndex)}),this._selectedIndex!==h&&(this._selectedIndex=h,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var c=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(c._clampTabIndex(c._indexToSelect)===c._selectedIndex)for(var _=c._tabs.toArray(),C=0;C<_.length;C++)if(_[C].isActive){c._indexToSelect=c._selectedIndex=C;break}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe(Qr(this._allTabs)).subscribe(function(h){c._tabs.reset(h.filter(function(_){return _._closestTabGroup===c||!_._closestTabGroup})),c._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"focusTab",value:function(c){var h=this._tabHeader;h&&(h.focusIndex=c)}},{key:"_focusChanged",value:function(c){this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var h=new bre;return h.index=c,this._tabs&&this._tabs.length&&(h.tab=this._tabs.toArray()[c]),h}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ot.apply(void 0,At(this._tabs.map(function(h){return h._stateChanges}))).subscribe(function(){return c._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(c){return Math.min(this._tabs.length-1,Math.max(c||0,0))}},{key:"_getTabLabelId",value:function(c){return"mat-tab-label-".concat(this._groupId,"-").concat(c)}},{key:"_getTabContentId",value:function(c){return"mat-tab-content-".concat(this._groupId,"-").concat(c)}},{key:"_setTabBodyWrapperHeight",value:function(c){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var h=this._tabBodyWrapper.nativeElement;h.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(h.style.height=c+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var c=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=c.clientHeight,c.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(c,h,_){c.disabled||(this.selectedIndex=h.focusIndex=_)}},{key:"_getTabIndex",value:function(c,h){return c.disabled?null:this.selectedIndex===h?0:-1}},{key:"_tabFocusChanged",value:function(c,h){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=h)}}]),n}(Cre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(uJ,8),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Pe]}),e}(),Nc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(wre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(uJ,8),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Iu,5),2&t&&Ne(c=Le())&&(n._allTabs=c)},viewQuery:function(t,n){var l;1&t&&(wt(are,5),wt(ore,5)),2&t&&(Ne(l=Le())&&(n._tabBodyWrapper=l.first),Ne(l=Le())&&(n._tabHeader=l.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Xe([{provide:sJ,useExisting:e}]),Pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,n){1&t&&(A(0,"mat-tab-header",0,1),ne("indexFocused",function(c){return n._focusChanged(c)})("selectFocusedIndex",function(c){return n.selectedIndex=c}),re(2,cre,4,14,"div",2),E(),A(3,"div",3,4),re(5,fre,1,9,"mat-tab-body",5),E()),2&t&&(U("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),H(2),U("ngForOf",n._tabs),H(1),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(2),U("ngForOf",n._tabs))},directives:function(){return[Tre,ar,cJ,Ls,OE,Kt,Os,lJ]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),Sre=ra(function(){return function e(){F(this,e)}}()),cJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).elementRef=l,c}return W(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(Sre);return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",!!n.disabled),dt("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[Pe]}),e}(),fJ=tp({passive:!0}),hJ=function(){var e=function(){function a(t,n,l,c,h,_,C){var k=this;F(this,a),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=h,this._platform=_,this._animationMode=C,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ye,this.indexFocused=new ye,h.runOutsideAngular(function(){Tl(t.nativeElement,"mouseleave").pipe(Ht(k._destroyed)).subscribe(function(){k._stopInterval()})})}return W(a,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(n){n=Di(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}},{key:"ngAfterViewInit",value:function(){var n=this;Tl(this._previousPaginator.nativeElement,"touchstart",fJ).pipe(Ht(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),Tl(this._nextPaginator.nativeElement,"touchstart",fJ).pipe(Ht(this._destroyed)).subscribe(function(){n._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var n=this,l=this._dir?this._dir.change:ut("ltr"),c=this._viewportRuler.change(150),h=function(){n.updatePagination(),n._alignInkBarToSelectedTab()};this._keyManager=new ib(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(h):h(),ot(l,c,this._items.changes).pipe(Ht(this._destroyed)).subscribe(function(){n._ngZone.run(function(){return Promise.resolve().then(h)}),n._keyManager.withHorizontalOrientation(n._getLayoutDirection())}),this._keyManager.change.pipe(Ht(this._destroyed)).subscribe(function(_){n.indexFocused.emit(_),n._setTabFocus(_)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(n){if(!Vi(n))switch(n.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n));break;default:this._keyManager.onKeydown(n)}}},{key:"_onContentChanges",value:function(){var n=this,l=this._elementRef.nativeElement.textContent;l!==this._currentTextContent&&(this._currentTextContent=l||"",this._ngZone.run(function(){n.updatePagination(),n._alignInkBarToSelectedTab(),n._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}},{key:"_isValidIndex",value:function(n){if(!this._items)return!0;var l=this._items?this._items.toArray()[n]:null;return!!l&&!l.disabled}},{key:"_setTabFocus",value:function(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();var l=this._tabListContainer.nativeElement,c=this._getLayoutDirection();l.scrollLeft="ltr"==c?0:l.scrollWidth-l.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var n=this.scrollDistance,l="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(l),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(n){this._scrollTo(n)}},{key:"_scrollHeader",value:function(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(n){this._stopInterval(),this._scrollHeader(n)}},{key:"_scrollToLabel",value:function(n){if(!this.disablePagination){var l=this._items?this._items.toArray()[n]:null;if(l){var k,D,c=this._tabListContainer.nativeElement.offsetWidth,h=l.elementRef.nativeElement,_=h.offsetLeft,C=h.offsetWidth;"ltr"==this._getLayoutDirection()?D=(k=_)+C:k=(D=this._tabList.nativeElement.offsetWidth-_)-C;var I=this.scrollDistance,L=this.scrollDistance+c;kL&&(this.scrollDistance+=D-L+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var n=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,l=n?n.elementRef.nativeElement:null;l?this._inkBar.alignToElement(l):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(n,l){var c=this;l&&null!=l.button&&0!==l.button||(this._stopInterval(),K3(650,100).pipe(Ht(ot(this._stopScrolling,this._destroyed))).subscribe(function(){var h=c._scrollHeader(n),C=h.distance;(0===C||C>=h.maxScrollDistance)&&c._stopInterval()}))}},{key:"_scrollTo",value:function(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var l=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(l,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:l,distance:this._scrollDistance}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Sr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),xre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,l,c,h,_,C,k,D))._disableRipple=!1,I}return W(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(c){this._disableRipple=it(c)}},{key:"_itemSelected",value:function(c){c.preventDefault()}}]),n}(hJ);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Sr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disableRipple:"disableRipple"},features:[Pe]}),e}(),Tre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,h,_,C,k,D)}return n}(xre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Sr,8),N(ft),N(en),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-header"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,cJ,4),2&t&&Ne(c=Le())&&(n._items=c)},viewQuery:function(t,n){var l;1&t&&(wt(L5,7),wt(tJ,7),wt(nJ,7),wt(rJ,5),wt(iJ,5)),2&t&&(Ne(l=Le())&&(n._inkBar=l.first),Ne(l=Le())&&(n._tabListContainer=l.first),Ne(l=Le())&&(n._tabList=l.first),Ne(l=Le())&&(n._nextPaginator=l.first),Ne(l=Le())&&(n._previousPaginator=l.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Pe],ngContentSelectors:Lq,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,n){1&t&&(nr(),A(0,"div",0,1),ne("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(c){return n._handlePaginatorPress("before",c)})("touchend",function(){return n._stopInterval()}),me(2,"div",2),E(),A(3,"div",3,4),ne("keydown",function(c){return n._handleKeydown(c)}),A(5,"div",5,6),ne("cdkObserveContent",function(){return n._onContentChanges()}),A(7,"div",7),Wt(8),E(),me(9,"mat-ink-bar"),E(),E(),A(10,"div",8,9),ne("mousedown",function(c){return n._handlePaginatorPress("after",c)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),me(12,"div",2),E()),2&t&&(dt("mat-tab-header-pagination-disabled",n._disableScrollBefore),U("matRippleDisabled",n._disableScrollBefore||n.disableRipple),H(5),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(5),dt("mat-tab-header-pagination-disabled",n._disableScrollAfter),U("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},directives:[Ls,nb,L5],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),Ore=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,Qt,xg,Da,ld,LE],Qt]}),e}();function Ire(e,a){if(1&e){var t=De();A(0,"uds-field-text",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Rre(e,a){if(1&e){var t=De();A(0,"uds-field-textbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Lre(e,a){if(1&e){var t=De();A(0,"uds-field-numeric",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Fre(e,a){if(1&e){var t=De();A(0,"uds-field-password",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Nre(e,a){if(1&e){var t=De();A(0,"uds-field-hidden",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Vre(e,a){if(1&e){var t=De();A(0,"uds-field-choice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Bre(e,a){if(1&e){var t=De();A(0,"uds-field-multichoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Hre(e,a){if(1&e){var t=De();A(0,"uds-field-editlist",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function zre(e,a){if(1&e){var t=De();A(0,"uds-field-checkbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Ure(e,a){if(1&e){var t=De();A(0,"uds-field-imgchoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function Gre(e,a){if(1&e){var t=De();A(0,"uds-field-date",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}function jre(e,a){if(1&e){var t=De();A(0,"uds-field-tags",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&U("field",J().field)}var vJ=function(){function e(){this.changed=new ye,this.udsGuiFieldType=Pl}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,n){1&t&&(A(0,"div",0),re(1,Ire,1,1,"uds-field-text",1),re(2,Rre,1,1,"uds-field-textbox",1),re(3,Lre,1,1,"uds-field-numeric",1),re(4,Fre,1,1,"uds-field-password",1),re(5,Nre,1,1,"uds-field-hidden",1),re(6,Vre,1,1,"uds-field-choice",1),re(7,Bre,1,1,"uds-field-multichoice",1),re(8,Hre,1,1,"uds-field-editlist",1),re(9,zre,1,1,"uds-field-checkbox",1),re(10,Ure,1,1,"uds-field-imgchoice",1),re(11,Gre,1,1,"uds-field-date",1),re(12,jre,1,1,"uds-field-tags",1),E()),2&t&&(U("ngSwitch",n.field.gui.type)("matTooltip",n.field.gui.tooltip),H(1),U("ngSwitchCase",n.udsGuiFieldType.TEXT),H(1),U("ngSwitchCase",n.udsGuiFieldType.TEXTBOX),H(1),U("ngSwitchCase",n.udsGuiFieldType.NUMERIC),H(1),U("ngSwitchCase",n.udsGuiFieldType.PASSWORD),H(1),U("ngSwitchCase",n.udsGuiFieldType.HIDDEN),H(1),U("ngSwitchCase",n.udsGuiFieldType.CHOICE),H(1),U("ngSwitchCase",n.udsGuiFieldType.MULTI_CHOICE),H(1),U("ngSwitchCase",n.udsGuiFieldType.EDITLIST),H(1),U("ngSwitchCase",n.udsGuiFieldType.CHECKBOX),H(1),U("ngSwitchCase",n.udsGuiFieldType.IMAGECHOICE),H(1),U("ngSwitchCase",n.udsGuiFieldType.DATE),H(1),U("ngSwitchCase",n.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),e}();function Wre(e,a){1&e&&K(0),2&e&&ze(" ",J().$implicit," ")}function Yre(e,a){if(1&e){var t=De();A(0,"uds-field",7),ne("changed",function(c){return pe(t),J(3).changed.emit(c)}),E()}2&e&&U("field",a.$implicit)}function qre(e,a){if(1&e&&(A(0,"mat-tab"),re(1,Wre,1,1,"ng-template",4),A(2,"div",5),re(3,Yre,1,1,"uds-field",6),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),U("ngForOf",n.fieldsByTab[t])}}function Xre(e,a){if(1&e&&(A(0,"mat-tab-group",2),re(1,qre,4,1,"mat-tab",3),E()),2&e){var t=J();U("disableRipple",!0)("@.disabled",!0),H(1),U("ngForOf",t.tabs)}}function Zre(e,a){if(1&e){var t=De();A(0,"div"),A(1,"uds-field",7),ne("changed",function(c){return pe(t),J(2).changed.emit(c)}),E(),E()}if(2&e){var n=a.$implicit;H(1),U("field",n)}}function Kre(e,a){1&e&&re(0,Zre,2,1,"div",3),2&e&&U("ngForOf",J().fields)}var Qre=django.gettext("Main"),$re=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){var a=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(t){var n=void 0===t.gui.tab?Qre:t.gui.tab;a.tabs.includes(n)||(a.tabs.push(n),a.fieldsByTab[n]=new Array),a.fieldsByTab[n].push(t)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"]],template:function(t,n){if(1&t&&(re(0,Xre,2,3,"mat-tab-group",0),re(1,Kre,1,1,"ng-template",null,1,ml)),2&t){var l=Nn(2);U("ngIf",n.tabs.length>1)("ngIfElse",l)}},directives:[Kt,Nc,ar,Iu,Fc,vJ],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),e}();function Jre(e,a){if(1&e){var t=De();A(0,"button",10),ne("click",function(){return pe(t),J().customButtonClicked()}),K(1),E()}if(2&e){var n=J();H(1),Pn(n.data.customButton)}}var QS,eie=function(){function e(a,t){this.dialogRef=a,this.data=t,this.onEvent=new ye(!0),this.saving=!1}return e.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},e.prototype.changed=function(a){this.onEvent.emit({type:"changed",data:a,dialog:this.dialogRef})},e.prototype.getFields=function(){var a={},t=[];return this.data.guiFields.forEach(function(n){var l=void 0!==n.values?n.values:n.value;n.gui.required&&0!==l&&(!l||l instanceof Array&&0===l.length)&&t.push(n.gui.label),"number"==typeof l&&(l=l.toString()),a[n.name]=l}),{data:a,errors:t}},e.prototype.save=function(){var a=this.getFields();a.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+a.errors.join(", ")):this.onEvent.emit({data:a.data,type:"save",dialog:this.dialogRef})},e.prototype.customButtonClicked=function(){var a=this.getFields();this.onEvent.emit({data:a.data,type:this.data.customButton,errors:a.errors,dialog:this.dialogRef})},e.\u0275fac=function(t){return new(t||e)(N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),A(2,"mat-dialog-content",null,1),A(4,"form",2),A(5,"uds-form",3),ne("changed",function(c){return n.changed(c)}),E(),E(),E(),A(6,"mat-dialog-actions"),A(7,"div",4),A(8,"div",5),re(9,Jre,2,1,"button",6),E(),A(10,"div",7),A(11,"button",8),ne("click",function(){return n.dialogRef.close()}),A(12,"uds-translate"),K(13,"Discard & close"),E(),E(),A(14,"button",9),ne("click",function(){return n.save()}),A(15,"uds-translate"),K(16,"Save"),E(),E(),E(),E(),E()),2&t&&(U("innerHtml",Gf(1,5,n.data.title),Si),H(5),U("fields",n.data.guiFields),H(4),U("ngIf",void 0!==n.data.customButton),H(2),U("disabled",n.saving),H(3),U("disabled",n.saving))},directives:[jr,Fr,Dq,Nr,Rc,$re,$r,Kt,In,Hn,Ts],pipes:[b5],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),e}(),tie=function(){function e(a){this.gui=a}return e.prototype.modalForm=function(a,t,n,l){void 0===n&&(n=null),t.sort(function(C,k){return C.gui.order>k.gui.order?1:-1});var c=null!=n;n=c?n:{},t.forEach(function(C){(!1===c||void 0===C.gui.rdonly)&&(C.gui.rdonly=!1),C.gui.type===Pl.TEXT&&C.gui.multiline&&(C.gui.type=Pl.TEXTBOX);var k=n[C.name];void 0!==k&&(k instanceof Array?(C.values=new Array,k.forEach(function(D){return C.values.push(D)})):C.value=k)});var h=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(eie,{position:{top:"64px"},width:h,data:{title:a,guiFields:t,customButton:l,gui:this.gui},disableClose:!0}).componentInstance.onEvent},e.prototype.typedForm=function(a,t,n,l,c,h,_){var C=this;_=_||{};var k=new ye,D=n?django.gettext("Test"):void 0,I={},L={},G=function(Y){L.hasOwnProperty(Y.name)&&""!==Y.value&&void 0!==Y.value&&C.executeCallback(a,Y,I)};return _.snack||(_.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),a.table.rest.gui(h).subscribe(function(Y){_.snack.dismiss(),void 0!==l&&l.forEach(function($){Y.push($)}),Y.forEach(function($){I[$.name]=$,void 0!==$.gui.fills&&(L[$.name]=$.gui.fills)}),C.modalForm(t,Y,c,D).subscribe(function($){switch($.data&&($.data.data_type=h),$.type){case D:if($.errors.length>0)return void C.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+$.errors.join(", "));C.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),a.table.rest.test(h,$.data).subscribe(function(Ce){"ok"!==Ce?C.gui.snackbar.open(django.gettext("Test failed:")+" "+Ce,django.gettext("dismiss")):C.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===$.data)for(var ie=0,fe=Y;ie"+l.join(", ")+"";this.gui.yesno(t,h,!0).subscribe(function(_){if(_){var C=c.length,k=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()};c.forEach(function(D){a.table.rest.delete(D).subscribe(function(I){0==--C&&k()},function(I){0==--C&&k()})})}})},e.prototype.executeCallback=function(a,t,n,l){var c=this;void 0===l&&(l={});var h=new Array;t.gui.fills.parameters.forEach(function(_){h.push(_+"="+encodeURIComponent(n[_].value))}),a.table.rest.callback(t.gui.fills.callbackName,h.join("&")).subscribe(function(_){var C=new Array;_.forEach(function(k){var D=n[k.name];void 0!==D&&(void 0!==D.gui.fills&&C.push(D),D.gui.values.length=0,k.values.forEach(function(I){return D.gui.values.push(I)}),D.value||(D.value=k.values.length>0?k.values[0].id:""))}),C.forEach(function(k){void 0===l[k.name]&&(l[k.name]=!0,c.executeCallback(a,k,n,l))})})},e}(),rie=function(){function e(a,t){this.dialog=a,this.snackbar=t,this.forms=new tie(this)}return e.prototype.alert=function(a,t,n,l){void 0===n&&(n=0);var c=l||(window.innerWidth<800?"80%":"40%");return this.dialog.open(k5,{width:c,data:{title:a,body:t,autoclose:n,type:Ou.alert},disableClose:!0}).componentInstance.yesno},e.prototype.yesno=function(a,t,n){void 0===n&&(n=!1);var l=window.innerWidth<800?"80%":"40%";return this.dialog.open(k5,{width:l,data:{title:a,body:t,type:Ou.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},e.prototype.icon=function(a,t){return void 0===t&&(t="24px"),''},e}(),Aa=function(e){return e.NUMERIC="numeric",e.ALPHANUMERIC="alphanumeric",e.DATETIME="datetime",e.DATETIMESEC="datetimesec",e.DATE="date",e.TIME="time",e.ICON="iconType",e.CALLBACK="callback",e.DICTIONARY="dict",e.IMAGE="image",e}({}),Jr=function(e){return e[e.ALWAYS=0]="ALWAYS",e[e.SINGLE_SELECT=1]="SINGLE_SELECT",e[e.MULTI_SELECT=2]="MULTI_SELECT",e[e.ONLY_MENU=3]="ONLY_MENU",e[e.ACCELERATOR=4]="ACCELERATOR",e}({}),mJ="provider",_J="service",Fq="pool",Nq="user",bJ="transport",CJ="osmanager",Vq="calendar",wJ="poolgroup",aie={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Il=function(){function e(a){this.router=a}return e.getGotoButton=function(a,t,n){return{id:a,html:'link'+django.gettext("Go to")+" "+aie[a]+"",type:Jr.ACCELERATOR,acceleratorProperties:[t,n]}},e.prototype.gotoProvider=function(a){this.router.navigate(void 0!==a?["providers",a]:["providers"])},e.prototype.gotoService=function(a,t){this.router.navigate(void 0!==t?["providers",a,"detail",t]:["providers",a,"detail"])},e.prototype.gotoServicePool=function(a){this.router.navigate(["pools","service-pools",a])},e.prototype.gotoServicePoolDetail=function(a){this.router.navigate(["pools","service-pools",a,"detail"])},e.prototype.gotoMetapool=function(a){this.router.navigate(["pools","meta-pools",a])},e.prototype.gotoMetapoolDetail=function(a){this.router.navigate(["pools","meta-pools",a,"detail"])},e.prototype.gotoCalendar=function(a){this.router.navigate(["pools","calendars",a])},e.prototype.gotoCalendarDetail=function(a){this.router.navigate(["pools","calendars",a,"detail"])},e.prototype.gotoAccount=function(a){this.router.navigate(["pools","accounts",a])},e.prototype.gotoAccountDetail=function(a){this.router.navigate(["pools","accounts",a,"detail"])},e.prototype.gotoPoolGroup=function(a){this.router.navigate(["pools","pool-groups",a=a||""])},e.prototype.gotoAuthenticator=function(a){this.router.navigate(["authenticators",a])},e.prototype.gotoAuthenticatorDetail=function(a){this.router.navigate(["authenticators",a,"detail"])},e.prototype.gotoUser=function(a,t){this.router.navigate(["authenticators",a,"detail","users",t])},e.prototype.gotoGroup=function(a,t){this.router.navigate(["authenticators",a,"detail","groups",t])},e.prototype.gotoTransport=function(a){this.router.navigate(["transports",a])},e.prototype.gotoOSManager=function(a){this.router.navigate(["osmanagers",a])},e.prototype.goto=function(a,t,n){var l=function(c){var h=t;if(n[c].split(".").forEach(function(_){return h=h[_]}),!h)throw new Error("not going :)");return h};try{switch(a){case mJ:this.gotoProvider(l(0));break;case _J:this.gotoService(l(0),l(1));break;case Fq:this.gotoServicePool(l(0));break;case"authenticator":this.gotoAuthenticator(l(0));break;case Nq:this.gotoUser(l(0),l(1));break;case"group":this.gotoGroup(l(0),l(1));break;case bJ:this.gotoTransport(l(0));break;case CJ:this.gotoOSManager(l(0));break;case Vq:this.gotoCalendar(l(0));break;case wJ:this.gotoPoolGroup(l(0))}}catch(c){}},e}(),SJ=new Set,kJ=function(){var e=function(){function a(t){F(this,a),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):sie}return W(a,[{key:"matchMedia",value:function(n){return this._platform.WEBKIT&&function(e){if(!SJ.has(e))try{QS||((QS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(QS)),QS.sheet&&(QS.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),SJ.add(e))}catch(a){console.error(a)}}(n),this._matchMedia(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function sie(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var Bq=function(){var e=function(){function a(t,n){F(this,a),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new qe}return W(a,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var l=this;return MJ(Sg(n)).some(function(h){return l._registerQuery(h).mql.matches})}},{key:"observe",value:function(n){var l=this,_=Ry(MJ(Sg(n)).map(function(C){return l._registerQuery(C).observable}));return(_=d1(_.pipe(or(1)),_.pipe(IY(1),mE(0)))).pipe(Be(function(C){var k={matches:!1,breakpoints:{}};return C.forEach(function(D){var I=D.matches,L=D.query;k.matches=k.matches||I,k.breakpoints[L]=I}),k}))}},{key:"_registerQuery",value:function(n){var l=this;if(this._queries.has(n))return this._queries.get(n);var c=this._mediaMatcher.matchMedia(n),_={observable:new gn(function(C){var k=function(I){return l._zone.run(function(){return C.next(I)})};return c.addListener(k),function(){c.removeListener(k)}}).pipe(Qr(c),Be(function(C){return{query:n,matches:C.matches}}),Ht(this._destroySubject)),mql:c};return this._queries.set(n,_),_}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kJ),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(kJ),ce(ft))},token:e,providedIn:"root"}),e}();function MJ(e){return e.map(function(a){return a.split(",")}).reduce(function(a,t){return a.concat(t)}).map(function(a){return a.trim()})}function lie(e,a){if(1&e){var t=De();A(0,"div",1),A(1,"button",2),ne("click",function(){return pe(t),J().action()}),K(2),E(),E()}if(2&e){var n=J();H(2),Pn(n.data.action)}}function uie(e,a){}var TJ=new Ee("MatSnackBarData"),F5=function e(){F(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},cie=Math.pow(2,31)-1,Hq=function(){function e(a,t){var n=this;F(this,e),this._overlayRef=t,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=a,this.onAction().subscribe(function(){return n.dismiss()}),a._onExit.subscribe(function(){return n._finishDismiss()})}return W(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(t,cie))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),fie=function(){var e=function(){function a(t,n){F(this,a),this.snackBarRef=t,this.data=n}return W(a,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Hq),N(TJ))},e.\u0275cmp=ke({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,n){1&t&&(A(0,"span"),K(1),E(),re(2,lie,3,1,"div",0)),2&t&&(H(1),Pn(n.data.message),H(1),U("ngIf",n.hasAction))},directives:[Kt,In],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),die={snackBarState:Ei("state",[Bn("void, hidden",gt({transform:"scale(0.8)",opacity:0})),Bn("visible",gt({transform:"scale(1)",opacity:1})),zn("* => visible",Tn("150ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void, * => hidden",Tn("75ms cubic-bezier(0.4, 0.0, 1, 1)",gt({opacity:0})))])},hie=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._ngZone=l,k._elementRef=c,k._changeDetectorRef=h,k._platform=_,k.snackBarConfig=C,k._announceDelay=150,k._destroyed=!1,k._onAnnounce=new qe,k._onExit=new qe,k._onEnter=new qe,k._animationState="void",k.attachDomPortal=function(D){return k._assertNotAttached(),k._applySnackBarClasses(),k._portalOutlet.attachDomPortal(D)},k._live="assertive"!==C.politeness||C.announcementMessage?"off"===C.politeness?"off":"polite":"assertive",k._platform.FIREFOX&&("polite"===k._live&&(k._role="status"),"assertive"===k._live&&(k._role="alert")),k}return W(n,[{key:"attachComponentPortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(c)}},{key:"onAnimationEnd",value:function(c){var _=c.toState;if(("void"===_&&"void"!==c.fromState||"hidden"===_)&&this._completeExit(),"visible"===_){var C=this._onEnter;this._ngZone.run(function(){C.next(),C.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var c=this;this._ngZone.onMicrotaskEmpty.pipe(or(1)).subscribe(function(){c._onExit.next(),c._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var c=this._elementRef.nativeElement,h=this.snackBarConfig.panelClass;h&&(Array.isArray(h)?h.forEach(function(_){return c.classList.add(_)}):c.classList.add(h)),"center"===this.snackBarConfig.horizontalPosition&&c.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&c.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var c=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){c._announceTimeoutId=setTimeout(function(){var h=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(h&&_){var C=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(C=document.activeElement),h.removeAttribute("aria-hidden"),_.appendChild(h),null==C||C.focus(),c._onAnnounce.next(),c._onAnnounce.complete()}},c._announceDelay)})}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(ft),N(Ue),N(Vt),N(en),N(F5))},e.\u0275cmp=ke({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&mv("@state.done",function(c){return n.onAnimationEnd(c)}),2&t&&Ba("@state",n._animationState)},features:[Pe],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(A(0,"div",0),re(1,uie,0,0,"ng-template",1),E(),me(2,"div")),2&t&&(H(2),Ke("aria-live",n._live)("role",n._role))},directives:[Os],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[die.snackBarState]}}),e}(),DJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[fp,xg,Wa,Ic,Qt],Qt]}),e}(),AJ=new Ee("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new F5}}),vie=function(){var e=function(){function a(t,n,l,c,h,_){F(this,a),this._overlay=t,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=h,this._defaultConfig=_,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=fie,this.snackBarContainerComponent=hie,this.handsetCssClass="mat-snack-bar-handset"}return W(a,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,l){return this._attach(n,l)}},{key:"openFromTemplate",value:function(n,l){return this._attach(n,l)}},{key:"open",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,h=Object.assign(Object.assign({},this._defaultConfig),c);return h.data={message:n,action:l},h.announcementMessage===n&&(h.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,h)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:F5,useValue:l}]}),_=new sd(this.snackBarContainerComponent,l.viewContainerRef,h),C=n.attach(_);return C.instance.snackBarConfig=l,C.instance}},{key:"_attach",value:function(n,l){var c=this,h=Object.assign(Object.assign(Object.assign({},new F5),this._defaultConfig),l),_=this._createOverlay(h),C=this._attachSnackBarContainer(_,h),k=new Hq(C,_);if(n instanceof Xn){var D=new Ps(n,null,{$implicit:h.data,snackBarRef:k});k.instance=C.attachTemplatePortal(D)}else{var I=this._createInjector(h,k),L=new sd(n,void 0,I),G=C.attachComponentPortal(L);k.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ht(_.detachments())).subscribe(function(Y){var $=_.overlayElement.classList;Y.matches?$.add(c.handsetCssClass):$.remove(c.handsetCssClass)}),h.announcementMessage&&C._onAnnounce.subscribe(function(){c._live.announce(h.announcementMessage,h.politeness)}),this._animateSnackBar(k,h),this._openedSnackBarRef=k,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,l){var c=this;n.afterDismissed().subscribe(function(){c._openedSnackBarRef==n&&(c._openedSnackBarRef=null),l.announcementMessage&&c._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),l.duration&&l.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(l.duration)})}},{key:"_createOverlay",value:function(n){var l=new up;l.direction=n.direction;var c=this._overlay.position().global(),h="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!h||"end"===n.horizontalPosition&&h,C=!_&&"center"!==n.horizontalPosition;return _?c.left("0"):C?c.right("0"):c.centerHorizontally(),"top"===n.verticalPosition?c.top("0"):c.bottom("0"),l.positionStrategy=c,this._overlay.create(l)}},{key:"_createInjector",value:function(n,l){return kn.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Hq,useValue:l},{provide:TJ,useValue:n.data}]})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(iS),ce(kn),ce(Bq),ce(e,12),ce(AJ))},e.\u0275prov=We({factory:function(){return new e(ce(Ai),ce(iS),ce(uv),ce(Bq),ce(e,12),ce(AJ))},token:e,providedIn:DJ}),e}(),EJ="dark-theme",PJ="light-theme",Pt=function(){function e(a,t,n,l,c,h){this.http=a,this.router=t,this.dialog=n,this.snackbar=l,this.sanitizer=c,this.dateAdapter=h,this.user=new yW(udsData.profile),this.navigation=new Il(this.router),this.gui=new rie(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(e.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),e.prototype.restPath=function(a){return this.config.urls.rest+a},e.prototype.staticURL=function(a){return this.config.urls.static+a},e.prototype.logout=function(){window.location.href=this.config.urls.logout},e.prototype.gotoUser=function(){window.location.href=this.config.urls.user},e.prototype.putOnStorage=function(a,t){void 0!==typeof Storage&&sessionStorage.setItem(a,t)},e.prototype.getFromStorage=function(a){return void 0!==typeof Storage?sessionStorage.getItem(a):null},e.prototype.safeString=function(a){return this.sanitizer.bypassSecurityTrustHtml(a)},e.prototype.yesno=function(a){return a?django.gettext("yes"):django.gettext("no")},e.prototype.switchTheme=function(a){var t=document.getElementsByTagName("html")[0];[EJ,PJ].forEach(function(n){t.classList.contains(n)&&t.classList.remove(n)}),t.classList.add(a?EJ:PJ)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(dN),ce(Ta),ce(Sb),ce(vie),ce(ed),ce(Ur))},providedIn:"root"}),e}(),gie=function(){function e(a){this.api=a}return e.prototype.canActivate=function(a,t){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Pt))},providedIn:"root"}),e}(),zq=function(e,a){return(zq=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])})(e,a)};function ia(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=e}zq(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}function Uq(e,a,t,n){return new(t||(t=Promise))(function(c,h){function _(D){try{k(n.next(D))}catch(I){h(I)}}function C(D){try{k(n.throw(D))}catch(I){h(I)}}function k(D){D.done?c(D.value):function(c){return c instanceof t?c:new t(function(h){h(c)})}(D.value).then(_,C)}k((n=n.apply(e,a||[])).next())})}var $S=function(e){return e[e.NONE=0]="NONE",e[e.READ=32]="READ",e[e.MANAGEMENT=64]="MANAGEMENT",e[e.ALL=96]="ALL",e}({}),Ea=function(){function e(a,t,n){this.api=a,void 0===n&&(n={}),void 0===n.base&&(n.base=t);var l=function(c,h){return void 0===c?h:c};this.id=t,this.paths={base:n.base,get:l(n.get,n.base),log:l(n.log,n.base),put:l(n.put,n.base),test:l(n.test,n.base+"/test"),delete:l(n.delete,n.base),types:l(n.types,n.base+"/types"),gui:l(n.gui,n.base+"/gui"),tableInfo:l(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Zh).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return e.prototype.get=function(a){return this.doGet(this.getPath(this.paths.get,a))},e.prototype.getLogs=function(a){return this.doGet(this.getPath(this.paths.log,a)+"/log")},e.prototype.overview=function(a){return this.get("overview"+(void 0!==a?"?filter="+a:""))},e.prototype.summary=function(a){return this.get("overview?summarize"+(void 0!==a?"&filter="+a:""))},e.prototype.put=function(a,t){var n=this;return this.api.http.put(this.getPath(this.paths.put,t),a,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l,!0)}))},e.prototype.create=function(a){return this.put(a)},e.prototype.save=function(a,t){return this.put(a,t=void 0!==t?t:a.id)},e.prototype.test=function(a,t){var n=this;return this.api.http.post(this.getPath(this.paths.test,a),t,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l)}))},e.prototype.delete=function(a){var t=this;return this.api.http.delete(this.getPath(this.paths.delete,a),{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.permision=function(){return this.api.user.isAdmin?$S.ALL:$S.NONE},e.prototype.getPermissions=function(a){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+a))},e.prototype.addPermission=function(a,t,n,l){var c=this,h=this.getPath("permissions/"+this.paths.base+"/"+a+"/"+t+"/add/"+n);return this.api.http.put(h,{perm:l},{headers:this.headers}).pipe(_o(function(C){return c.handleError(C)}))},e.prototype.revokePermission=function(a){var t=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:a},{headers:this.headers}).pipe(_o(function(c){return t.handleError(c)}))},e.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},e.prototype.gui=function(a){var t=this.getPath(this.paths.gui+(void 0!==a?"/"+a:""));return this.doGet(t)},e.prototype.callback=function(a,t){var n=this.getPath("gui/callback/"+a+"?"+t);return this.doGet(n)},e.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},e.prototype.detail=function(a,t){return new yie(this,a,t)},e.prototype.invoke=function(a,t){var n=a;return t&&(n=n+"?"+t),this.get(n)},e.prototype.getPath=function(a,t){return this.api.restPath(a+(void 0!==t?"/"+t:""))},e.prototype.doGet=function(a){var t=this;return this.api.http.get(a,{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.handleError=function(a,t){void 0===t&&(t=!1);var n;return n=a.error instanceof ErrorEvent?a.error.message:t?django.gettext("Error saving: ")+a.error:"Error "+a.status+": "+a.error,this.api.gui.alert(t?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),GA(n)},e}(),yie=function(e){function a(t,n,l,c){var h=e.call(this,t.api,[t.paths.base,n,l].join("/"))||this;return h.parentModel=t,h.parentId=n,h.model=l,h.perm=c,h}return ia(a,e),a.prototype.permision=function(){return this.perm||$S.ALL},a}(Ea),bie=function(e){function a(t){var n=e.call(this,t,"providers")||this;return n.api=t,n}return ia(a,e),a.prototype.allServices=function(){return this.get("allservices")},a.prototype.service=function(t){return this.get("service/"+t)},a.prototype.maintenance=function(t){return this.get(t+"/maintenance")},a}(Ea),Cie=function(e){function a(t){var n=e.call(this,t,"authenticators")||this;return n.api=t,n}return ia(a,e),a.prototype.search=function(t,n,l,c){return void 0===c&&(c=12),this.get(t+"/search?type="+encodeURIComponent(n)+"&term="+encodeURIComponent(l)+"&limit="+c)},a}(Ea),wie=function(e){function a(t){var n=e.call(this,t,"osmanagers")||this;return n.api=t,n}return ia(a,e),a}(Ea),Sie=function(e){function a(t){var n=e.call(this,t,"transports")||this;return n.api=t,n}return ia(a,e),a}(Ea),kie=function(e){function a(t){var n=e.call(this,t,"networks")||this;return n.api=t,n}return ia(a,e),a}(Ea),Mie=function(e){function a(t){var n=e.call(this,t,"servicespools")||this;return n.api=t,n}return ia(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a.prototype.actionsList=function(t){return this.get(t+"/actionsList")},a.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},a.prototype.createFromAssignable=function(t,n,l){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(n)+"&assignable_id="+encodeURIComponent(l))},a}(Ea),xie=function(e){function a(t){var n=e.call(this,t,"metapools")||this;return n.api=t,n}return ia(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a}(Ea),Tie=function(e){function a(t){var n=e.call(this,t,"config")||this;return n.api=t,n}return ia(a,e),a}(Ea),Die=function(e){function a(t){var n=e.call(this,t,"gallery/images")||this;return n.api=t,n}return ia(a,e),a}(Ea),Aie=function(e){function a(t){var n=e.call(this,t,"gallery/servicespoolgroups")||this;return n.api=t,n}return ia(a,e),a}(Ea),Eie=function(e){function a(t){var n=e.call(this,t,"system")||this;return n.api=t,n}return ia(a,e),a.prototype.information=function(){return this.get("overview")},a.prototype.stats=function(t,n){var l="stats/"+t;return n&&(l+="/"+n),this.get(l)},a.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},a}(Ea),Pie=function(e){function a(t){var n=e.call(this,t,"reports")||this;return n.api=t,n}return ia(a,e),a.prototype.types=function(){return ut([])},a}(Ea),Oie=function(e){function a(t){var n=e.call(this,t,"calendars")||this;return n.api=t,n}return ia(a,e),a}(Ea),Iie=function(e){function a(t){var n=e.call(this,t,"accounts")||this;return n.api=t,n}return ia(a,e),a.prototype.timemark=function(t){return this.get(t+"/timemark")},a}(Ea),Rie=function(e){function a(t){var n=e.call(this,t,"proxies")||this;return n.api=t,n}return ia(a,e),a}(Ea),Lie=function(e){function a(t){var n=e.call(this,t,"actortokens")||this;return n.api=t,n}return ia(a,e),a}(Ea),Fie=function(e){function a(t){var n=e.call(this,t,"tunneltokens")||this;return n.api=t,n}return ia(a,e),a}(Ea),on=function(){function e(a){this.api=a,this.providers=new bie(a),this.authenticators=new Cie(a),this.osManagers=new wie(a),this.transports=new Sie(a),this.networks=new kie(a),this.servicesPools=new Mie(a),this.metaPools=new xie(a),this.gallery=new Die(a),this.servicesPoolGroups=new Aie(a),this.calendars=new Oie(a),this.accounts=new Iie(a),this.proxy=new Rie(a),this.system=new Eie(a),this.configuration=new Tie(a),this.actorToken=new Lie(a),this.tunnelToken=new Fie(a),this.reports=new Pie(a)}return e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Pt))},providedIn:"root"}),e}(),LJ=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],FJ=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],NJ=function(e){var a=[];return e.forEach(function(t){a.push(t.substr(0,3))}),a},JS=function(e,a,t){return bp(e,a,t)},bp=function(e,a,t,n){n=n||{},a=a||new Date,(t=t||zie).formats=t.formats||{};var l=a.getTime();return(n.utc||"number"==typeof n.timezone)&&(a=Nie(a)),"number"==typeof n.timezone&&(a=new Date(a.getTime()+6e4*n.timezone)),e.replace(/%([-_0]?.)/g,function(c,h){var _,C,k,D,I,L,G,Y;if(k=null,I=null,2===h.length){if("-"===(k=h[0]))I="";else if("_"===k)I=" ";else{if("0"!==k)return c;I="0"}h=h[1]}switch(h){case"A":return t.days[a.getDay()];case"a":return t.shortDays[a.getDay()];case"B":return t.months[a.getMonth()];case"b":return t.shortMonths[a.getMonth()];case"C":return Xo(Math.floor(a.getFullYear()/100),I);case"D":return bp(t.formats.D||"%m/%d/%y",a,t);case"d":return Xo(a.getDate(),I);case"e":return a.getDate();case"F":return bp(t.formats.F||"%Y-%m-%d",a,t);case"H":return Xo(a.getHours(),I);case"h":return t.shortMonths[a.getMonth()];case"I":return Xo(VJ(a),I);case"j":return G=new Date(a.getFullYear(),0,1),_=Math.ceil((a.getTime()-G.getTime())/864e5),Xo(_,3);case"k":return Xo(a.getHours(),void 0===I?" ":I);case"L":return Xo(Math.floor(l%1e3),3);case"l":return Xo(VJ(a),void 0===I?" ":I);case"M":return Xo(a.getMinutes(),I);case"m":return Xo(a.getMonth()+1,I);case"n":return"\n";case"o":return String(a.getDate())+Vie(a.getDate());case"P":case"p":return"";case"R":return bp(t.formats.R||"%H:%M",a,t);case"r":return bp(t.formats.r||"%I:%M:%S %p",a,t);case"S":return Xo(a.getSeconds(),I);case"s":return Math.floor(l/1e3);case"T":return bp(t.formats.T||"%H:%M:%S",a,t);case"t":return"\t";case"U":return Xo(BJ(a,"sunday"),I);case"u":return 0===(C=a.getDay())?7:C;case"v":return bp(t.formats.v||"%e-%b-%Y",a,t);case"W":return Xo(BJ(a,"monday"),I);case"w":return a.getDay();case"Y":return a.getFullYear();case"y":return(Y=String(a.getFullYear())).slice(Y.length-2);case"Z":return n.utc?"GMT":(L=a.toString().match(/\((\w+)\)/))&&L[1]||"";case"z":return n.utc?"+0000":((D="number"==typeof n.timezone?n.timezone:-a.getTimezoneOffset())<0?"-":"+")+Xo(Math.abs(D/60))+Xo(D%60);default:return h}})},Nie=function(e){var a=6e4*(e.getTimezoneOffset()||0);return new Date(e.getTime()+a)},Xo=function(e,a,t){"number"==typeof a&&(t=a,a="0"),a=null==a?"0":a,t=null==t?2:t;var n=String(e);if(a)for(;n.length12&&(a-=12),a},Vie=function(e){var a=e%10,t=e%100;if(t>=11&&t<=13||0===a||a>=4)return"th";switch(a){case 1:return"st";case 2:return"nd";case 3:return"rd"}},BJ=function(e,a){a=a||"sunday";var t=e.getDay();"monday"===a&&(0===t?t=6:t--);var n=new Date(e.getFullYear(),0,1),l=Math.floor((e.getTime()-n.getTime())/864e5);return Math.floor((l+7-t)/7)},HJ=function(e){return e.replace(/./g,function(a){switch(a){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+a;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return a}})},Ru=function(e,a,t){var n;if(void 0===t&&(t=null),"None"===a||null==a)a=7226578800,n=django.gettext("Never");else{var l=django.get_format(e);t&&(l+=t),n=JS(HJ(l),new Date(1e3*a))}return n},Gq=function(e){return"yes"===e||!0===e||"true"===e||1===e},zie={days:LJ,shortDays:NJ(LJ),months:FJ,shortMonths:NJ(FJ),AM:"AM",PM:"PM",am:"am",pm:"pm"},Uie=Dt(79052),ek=Dt.n(Uie),zJ=function(){if("undefined"!=typeof Map)return Map;function e(a,t){var n=-1;return a.some(function(l,c){return l[0]===t&&(n=c,!0)}),n}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(t){var n=e(this.__entries__,t),l=this.__entries__[n];return l&&l[1]},a.prototype.set=function(t,n){var l=e(this.__entries__,t);~l?this.__entries__[l][1]=n:this.__entries__.push([t,n])},a.prototype.delete=function(t){var n=this.__entries__,l=e(n,t);~l&&n.splice(l,1)},a.prototype.has=function(t){return!!~e(this.__entries__,t)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var l=0,c=this.__entries__;l0},e.prototype.connect_=function(){!jq||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!jq||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(a){var t=a.propertyName,n=void 0===t?"":t;qie.some(function(c){return!!~n.indexOf(c)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),UJ=function(a,t){for(var n=0,l=Object.keys(t);n0},e}(),WJ="undefined"!=typeof WeakMap?new WeakMap:new zJ,YJ=function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=Zie.getInstance(),n=new aae(a,t,this);WJ.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){YJ.prototype[e]=function(){var a;return(a=WJ.get(this))[e].apply(a,arguments)}});var sae=void 0!==V5.ResizeObserver?V5.ResizeObserver:YJ,lae=function(){function e(a){F(this,e),this.changes=a}return W(e,[{key:"notEmpty",value:function(t){if(this.changes[t]){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}},{key:"has",value:function(t){return this.changes[t]?ut(this.changes[t].currentValue):Ar}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?ut(this.changes[t].currentValue):Ar}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}}],[{key:"of",value:function(t){return new e(t)}}]),e}(),qJ=new Ee("NGX_ECHARTS_CONFIG"),XJ=function(){var e=function(){function a(t,n,l){F(this,a),this.el=n,this.ngZone=l,this.autoResize=!0,this.loadingType="default",this.chartInit=new ye,this.optionsError=new ye,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=t.echarts}return W(a,[{key:"ngOnChanges",value:function(n){var l=this,c=lae.of(n);c.notFirstAndEmpty("options").subscribe(function(h){return l.onOptionsChange(h)}),c.notFirstAndEmpty("merge").subscribe(function(h){return l.setOption(h)}),c.has("loading").subscribe(function(h){return l.toggleLoading(!!h)}),c.notFirst("theme").subscribe(function(){return l.refreshChart()})}},{key:"ngOnInit",value:function(){var n=this;this.autoResize&&(this.resizeSub=new sae(function(){n.animationFrameID=window.requestAnimationFrame(function(){return n.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var n=this;setTimeout(function(){return n.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(n,l){if(this.chart)try{this.chart.setOption(n,l)}catch(c){console.error(c),this.optionsError.emit(c)}}},{key:"refreshChart",value:function(){return Uq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.dispose(),c.next=3,this.initChart();case 3:case"end":return c.stop()}},n,this)}))}},{key:"createChart",value:function(){var n=this,l=this.el.nativeElement;if(window&&window.getComputedStyle){var c=window.getComputedStyle(l,null).getPropertyValue("height");(!c||"0px"===c)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof n.echarts?n.echarts:function(){return Promise.resolve(n.echarts)})().then(function(_){return(0,_.init)(l,n.theme,n.initOpts)})})}},{key:"initChart",value:function(){return Uq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return c.stop()}},n,this)}))}},{key:"onOptionsChange",value:function(n){return Uq(this,void 0,void 0,ek().mark(function l(){return ek().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(n){h.next=2;break}return h.abrupt("return");case 2:if(!this.chart){h.next=6;break}this.setOption(this.options,!0),h.next=11;break;case 6:return h.next=8,this.createChart();case 8:this.chart=h.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return h.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(xa(function(c){return new gn(function(h){return c.on(n,function(_){return l.ngZone.run(function(){return h.next(_)})}),function(){l.chart&&(l.chart.isDisposed()||c.off(n))}})}))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(qJ),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[an]}),e}(),uae=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n){return{ngModule:a,providers:[{provide:qJ,useValue:n}]}}},{key:"forChild",value:function(){return{ngModule:a}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[]]}),e}();function cae(e,a){if(1&e&&(A(0,"div",21),A(1,"div",11),me(2,"img",3),A(3,"div",12),K(4),E(),E(),A(5,"div",13),A(6,"a",15),A(7,"uds-translate"),K(8,"View service pools"),E(),E(),E(),E()),2&e){var t=J(2);H(2),U("src",t.api.staticURL("admin/img/icons/logs.png"),Gt),H(2),ze(" ",t.data.restrained," ")}}function fae(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",8),A(2,"div",9),A(3,"div",10),A(4,"div",11),me(5,"img",3),A(6,"div",12),K(7),E(),E(),A(8,"div",13),A(9,"a",14),A(10,"uds-translate"),K(11,"View authenticators"),E(),E(),E(),E(),A(12,"div",10),A(13,"div",11),me(14,"img",3),A(15,"div",12),K(16),E(),E(),A(17,"div",13),A(18,"a",15),A(19,"uds-translate"),K(20,"View service pools"),E(),E(),E(),E(),A(21,"div",10),A(22,"div",11),me(23,"img",3),A(24,"div",12),K(25),E(),E(),A(26,"div",13),A(27,"a",15),A(28,"uds-translate"),K(29,"View service pools"),E(),E(),E(),E(),re(30,cae,9,2,"div",16),E(),A(31,"div",17),A(32,"div",18),A(33,"div",19),A(34,"uds-translate"),K(35,"Assigned services chart"),E(),E(),A(36,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("assigned",c)}),E(),E(),A(37,"div",18),A(38,"div",19),A(39,"uds-translate"),K(40,"In use services chart"),E(),E(),A(41,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("inuse",c)}),E(),E(),E(),E(),E()}if(2&e){var n=J();H(5),U("src",n.api.staticURL("admin/img/icons/authenticators.png"),Gt),H(2),ze(" ",n.data.users," "),H(7),U("src",n.api.staticURL("admin/img/icons/pools.png"),Gt),H(2),ze(" ",n.data.pools," "),H(7),U("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(2),ze(" ",n.data.user_services," "),H(5),U("ngIf",n.data.restrained),H(6),U("options",n.assignedChartOpts),H(5),U("options",n.inuseChartOpts)}}function dae(e,a){1&e&&(A(0,"div",22),A(1,"div",23),A(2,"div",24),A(3,"uds-translate"),K(4,"UDS Administration"),E(),E(),A(5,"div",25),A(6,"p"),A(7,"uds-translate"),K(8,"You are accessing UDS Administration as staff member."),E(),E(),A(9,"p"),A(10,"uds-translate"),K(11,"This means that you have restricted access to elements."),E(),E(),A(12,"p"),A(13,"uds-translate"),K(14,"In order to increase your access privileges, please contact your local UDS administrator. "),E(),E(),me(15,"br"),A(16,"p"),A(17,"uds-translate"),K(18,"Thank you."),E(),E(),E(),E(),E())}var hae=function(){function e(a,t){this.api=a,this.rest=t,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return e.prototype.onResize=function(a){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},e.prototype.ngOnInit=function(){var a=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(_){a.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",_.users).replace("#GRP_NUMBER#",_.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",_.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",_.user_services)},_.restrained_services_pools>0&&(a.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",_.restrained_services_pools))});for(var t=function(_){n.rest.system.stats(_).subscribe(function(C){var k={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:C.map(function(D){return Ru("SHORT_DATE_FORMAT",new Date(D.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===_?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:C.map(function(D){return D.value})}]};"assigned"===_?a.assignedChartOpts=k:a.inuseChartOpts=k})},n=this,l=0,c=["assigned","inuse"];l enter",[gt({opacity:0,transform:"translateY(-5px)"}),Tn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),KJ=new Ee("MatHint"),Wr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-label"]]}),e}(),Rae=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-placeholder"]]}),e}(),QJ=new Ee("MatPrefix"),$J=new Ee("MatSuffix"),rk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","matSuffix",""]],features:[Xe([{provide:$J,useExisting:e}])]}),e}(),JJ=0,Fae=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),tee=new Ee("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ik=new Ee("MatFormField"),Mr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._changeDetectorRef=c,L._dir=_,L._defaults=C,L._platform=k,L._ngZone=D,L._outlineGapCalculationNeededImmediately=!1,L._outlineGapCalculationNeededOnStable=!1,L._destroyed=new qe,L._showAlwaysAnimate=!1,L._subscriptAnimationState="",L._hintLabel="",L._hintLabelId="mat-hint-".concat(JJ++),L._labelId="mat-form-field-label-".concat(JJ++),L.floatLabel=L._getDefaultFloatLabelState(),L._animationsEnabled="NoopAnimations"!==I,L.appearance=C&&C.appearance?C.appearance:"legacy",L._hideRequiredMarker=!(!C||null==C.hideRequiredMarker)&&C.hideRequiredMarker,L}return W(n,[{key:"appearance",get:function(){return this._appearance},set:function(c){var h=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&h!==c&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(c){this._hideRequiredMarker=it(c)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(c){this._hintLabel=c,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(c){c!==this._floatLabel&&(this._floatLabel=c||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(c){this._explicitFormFieldControl=c}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var c=this;this._validateControlChild();var h=this._control;h.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(h.controlType)),h.stateChanges.pipe(Qr(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),h.ngControl&&h.ngControl.valueChanges&&h.ngControl.valueChanges.pipe(Ht(this._destroyed)).subscribe(function(){return c._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){c._ngZone.onStable.pipe(Ht(c._destroyed)).subscribe(function(){c._outlineGapCalculationNeededOnStable&&c.updateOutlineGap()})}),ot(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){c._outlineGapCalculationNeededOnStable=!0,c._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Qr(null)).subscribe(function(){c._processHints(),c._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Qr(null)).subscribe(function(){c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ht(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?c._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return c.updateOutlineGap()})}):c.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(c){var h=this._control?this._control.ngControl:null;return h&&h[c]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var c=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Tl(this._label.nativeElement,"transitionend").pipe(or(1)).subscribe(function(){c._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var c=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&c.push.apply(c,At(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var h=this._hintChildren?this._hintChildren.find(function(C){return"start"===C.align}):null,_=this._hintChildren?this._hintChildren.find(function(C){return"end"===C.align}):null;h?c.push(h.id):this._hintLabel&&c.push(this._hintLabelId),_&&c.push(_.id)}else this._errorChildren&&c.push.apply(c,At(this._errorChildren.map(function(C){return C.id})));this._control.setDescribedByIds(c)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var c=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&c&&c.children.length&&c.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var h=0,_=0,C=this._connectionContainerRef.nativeElement,k=C.querySelectorAll(".mat-form-field-outline-start"),D=C.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var I=C.getBoundingClientRect();if(0===I.width&&0===I.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var L=this._getStartEnd(I),G=c.children,Y=this._getStartEnd(G[0].getBoundingClientRect()),$=0,ie=0;ie0?.75*$+10:0}for(var fe=0;fe void",BE("@transformPanel",[$V()],{optional:!0}))]),transformPanel:Ei("transformPanel",[Bn("void",gt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Bn("showing",gt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Bn("showing-multiple",gt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),zn("void => *",Tn("120ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))])},ree=0,aee=new Ee("mat-select-scroll-strategy"),Zae=new Ee("MAT_SELECT_CONFIG"),Kae={provide:aee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Qae=function e(a,t){F(this,e),this.source=a,this.value=t},$ae=El(gp(ra(HS(function(){return function e(a,t,n,l,c){F(this,e),this._elementRef=a,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=l,this.ngControl=c}}())))),oee=new Ee("MatSelectTrigger"),Jae=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-select-trigger"]],features:[Xe([{provide:oee,useExisting:e}])]}),e}(),eoe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,$,ie,fe){var se,be,Ce,je;return F(this,n),(se=t.call(this,C,_,D,I,G))._viewportRuler=l,se._changeDetectorRef=c,se._ngZone=h,se._dir=k,se._parentFormField=L,se._liveAnnouncer=ie,se._defaultOptions=fe,se._panelOpen=!1,se._compareWith=function(Qe,kt){return Qe===kt},se._uid="mat-select-".concat(ree++),se._triggerAriaLabelledBy=null,se._destroy=new qe,se._onChange=function(){},se._onTouched=function(){},se._valueId="mat-select-value-".concat(ree++),se._panelDoneAnimatingStream=new qe,se._overlayPanelClass=(null===(be=se._defaultOptions)||void 0===be?void 0:be.overlayPanelClass)||"",se._focused=!1,se.controlType="mat-select",se._required=!1,se._multiple=!1,se._disableOptionCentering=null!==(je=null===(Ce=se._defaultOptions)||void 0===Ce?void 0:Ce.disableOptionCentering)&&void 0!==je&&je,se.ariaLabel="",se.optionSelectionChanges=Ly(function(){var Qe=se.options;return Qe?Qe.changes.pipe(Qr(Qe),xa(function(){return ot.apply(void 0,At(Qe.map(function(kt){return kt.onSelectionChange})))})):se._ngZone.onStable.pipe(or(1),xa(function(){return se.optionSelectionChanges}))}),se.openedChange=new ye,se._openedStream=se.openedChange.pipe(vr(function(Qe){return Qe}),Be(function(){})),se._closedStream=se.openedChange.pipe(vr(function(Qe){return!Qe}),Be(function(){})),se.selectionChange=new ye,se.valueChange=new ye,se.ngControl&&(se.ngControl.valueAccessor=It(se)),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(se._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),se._scrollStrategyFactory=$,se._scrollStrategy=se._scrollStrategyFactory(),se.tabIndex=parseInt(Y)||0,se.id=se.id,se}return W(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(c){this._disableOptionCentering=it(c)}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){(c!==this._value||this._multiple&&Array.isArray(c))&&(this.options&&this._setSelectionByValue(c),this._value=c)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(c){this._typeaheadDebounceInterval=Di(c)}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var c=this;this._selectionModel=new ip(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Xa(),Ht(this._destroy)).subscribe(function(){return c._panelDoneAnimating(c.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var c=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ht(this._destroy)).subscribe(function(h){h.added.forEach(function(_){return _.select()}),h.removed.forEach(function(_){return _.deselect()})}),this.options.changes.pipe(Qr(null),Ht(this._destroy)).subscribe(function(){c._resetOptions(),c._initializeSelection()})}},{key:"ngDoCheck",value:function(){var c=this._getTriggerAriaLabelledby();if(c!==this._triggerAriaLabelledBy){var h=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?h.setAttribute("aria-labelledby",c):h.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(c){c.disabled&&this.stateChanges.next(),c.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(c){this.value=c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(h){return h.viewValue});return this._isRtl()&&c.reverse(),c.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(c){this.disabled||(this.panelOpen?this._handleOpenKeydown(c):this._handleClosedKeydown(c))}},{key:"_handleClosedKeydown",value:function(c){var h=c.keyCode,_=40===h||38===h||37===h||39===h,C=13===h||32===h,k=this._keyManager;if(!k.isTyping()&&C&&!Vi(c)||(this.multiple||c.altKey)&&_)c.preventDefault(),this.open();else if(!this.multiple){var D=this.selected;k.onKeydown(c);var I=this.selected;I&&D!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(c){var h=this._keyManager,_=c.keyCode,C=40===_||38===_,k=h.isTyping();if(C&&c.altKey)c.preventDefault(),this.close();else if(k||13!==_&&32!==_||!h.activeItem||Vi(c))if(!k&&this._multiple&&65===_&&c.ctrlKey){c.preventDefault();var D=this.options.some(function(L){return!L.disabled&&!L.selected});this.options.forEach(function(L){L.disabled||(D?L.select():L.deselect())})}else{var I=h.activeItemIndex;h.onKeydown(c),this._multiple&&C&&c.shiftKey&&h.activeItem&&h.activeItemIndex!==I&&h.activeItem._selectViaInteraction()}else c.preventDefault(),h.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var c=this;this._overlayDir.positionChange.pipe(or(1)).subscribe(function(){c._changeDetectorRef.detectChanges(),c._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value),c.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(c){var h=this;if(this._selectionModel.selected.forEach(function(C){return C.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&c)Array.isArray(c),c.forEach(function(C){return h._selectValue(C)}),this._sortValues();else{var _=this._selectValue(c);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(c){var h=this,_=this.options.find(function(C){if(h._selectionModel.isSelected(C))return!1;try{return null!=C.value&&h._compareWith(C.value,c)}catch(k){return!1}});return _&&this._selectionModel.select(_),_}},{key:"_initKeyManager",value:function(){var c=this;this._keyManager=new wE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ht(this._destroy)).subscribe(function(){c.panelOpen&&(!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction(),c.focus(),c.close())}),this._keyManager.change.pipe(Ht(this._destroy)).subscribe(function(){c._panelOpen&&c.panel?c._scrollOptionIntoView(c._keyManager.activeItemIndex||0):!c._panelOpen&&!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var c=this,h=ot(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ht(h)).subscribe(function(_){c._onSelect(_.source,_.isUserInput),_.isUserInput&&!c.multiple&&c._panelOpen&&(c.close(),c.focus())}),ot.apply(void 0,At(this.options.map(function(_){return _._stateChanges}))).pipe(Ht(h)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,h){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),h&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),h&&this.focus())):(c.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(c.value)),_!==this._selectionModel.isSelected(c)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;if(this.multiple){var h=this.options.toArray();this._selectionModel.sort(function(_,C){return c.sortComparator?c.sortComparator(_,C,h):h.indexOf(_)-h.indexOf(C)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var h;h=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.valueChange.emit(h),this._onChange(h),this.selectionChange.emit(this._getChangeEvent(h)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var c;return!this._panelOpen&&!this.disabled&&(null===(c=this.options)||void 0===c?void 0:c.length)>0}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_getPanelAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}},{key:"_panelDoneAnimating",value:function(c){this.openedChange.emit(c)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}($ae);return e.\u0275fac=function(t){return new(t||e)(N(yo),N(Vt),N(ft),N(dd),N(Ue),N(Sr,8),N(Rc,8),N(yp,8),N(ik,8),N(Ut,10),Ci("tabindex"),N(aee),N(iS),N(Zae,8))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Nae,5),wt(Vae,5),wt(PV,5)),2&t&&(Ne(l=Le())&&(n.trigger=l.first),Ne(l=Le())&&(n.panel=l.first),Ne(l=Le())&&(n._overlayDir=l.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Pe,an]}),e}(),Qa=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._scrollTop=0,l._triggerFontSize=0,l._transformOrigin="top",l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l}return W(n,[{key:"_calculateOverlayScroll",value:function(c,h,_){var C=this._getItemHeight();return Math.min(Math.max(0,C*c-h+C/2),_)}},{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Ht(this._destroy)).subscribe(function(){c.panelOpen&&(c._triggerRect=c.trigger.nativeElement.getBoundingClientRect(),c._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var c=this;Ie(Oe(n.prototype),"_canOpen",this).call(this)&&(Ie(Oe(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._triggerFontSize&&c._overlayDir.overlayRef&&c._overlayDir.overlayRef.overlayElement&&(c._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(c._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(c){var h=jS(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===h?0:Cb((c+h)*_,_,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(c){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Ie(Oe(n.prototype),"_panelDoneAnimating",this).call(this,c)}},{key:"_getChangeEvent",value:function(c){return new Qae(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var k,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),h=this._viewportRuler.getViewportSize(),_=this._isRtl(),C=this.multiple?56:32;if(this.multiple)k=40;else if(this.disableOptionCentering)k=16;else{var D=this._selectionModel.selected[0]||this.options.first;k=D&&D.group?32:16}_||(k*=-1);var I=0-(c.left+k-(_?C:0)),L=c.right+k-h.width+(_?0:C);I>0?k+=I+8:L>0&&(k-=L+8),this._overlayDir.offsetX=Math.round(k),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(c,h,_){var I,C=this._getItemHeight(),k=(C-this._triggerRect.height)/2,D=Math.floor(256/C);return this.disableOptionCentering?0:(I=0===this._scrollTop?c*C:this._scrollTop===_?(c-(this._getItemCount()-D))*C+(C-(this._getItemCount()*C-256)%C):h-C/2,Math.round(-1*I-k))}},{key:"_checkOverlayWithinViewport",value:function(c){var h=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),C=this._triggerRect.top-8,k=_.height-this._triggerRect.bottom-8,D=Math.abs(this._offsetY),L=Math.min(this._getItemCount()*h,256)-D-this._triggerRect.height;L>k?this._adjustPanelUp(L,k):D>C?this._adjustPanelDown(D,C,c):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(c,h){var _=Math.round(c-h);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(c,h,_){var C=Math.round(c-h);if(this._scrollTop+=C,this._offsetY+=C,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var D,c=this._getItemHeight(),h=this._getItemCount(),_=Math.min(h*c,256),k=h*c-_;D=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),D+=jS(D,this.options,this.optionGroups);var I=_/2;this._scrollTop=this._calculateOverlayScroll(D,I,k),this._offsetY=this._calculateOverlayOffsetY(D,I,k),this._checkOverlayWithinViewport(k)}},{key:"_getOriginBasedOnOption",value:function(){var c=this._getItemHeight(),h=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-h+c/2;return"50% ".concat(_,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(eoe);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-select"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,oee,5),Zt(l,Bi,5),Zt(l,GS,5)),2&t&&(Ne(c=Le())&&(n.customTrigger=c.first),Ne(c=Le())&&(n.options=c),Ne(c=Le())&&(n.optionGroups=c))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&t&&(Ke("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),dt("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Xe([{provide:nk,useExisting:e},{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:Wae,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,n){if(1&t&&(nr(jae),A(0,"div",0,1),ne("click",function(){return n.toggle()}),A(3,"div",2),re(4,Bae,2,1,"span",3),re(5,Uae,3,2,"span",4),E(),A(6,"div",5),me(7,"div",6),E(),E(),re(8,Gae,4,14,"ng-template",7),ne("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&t){var l=Nn(1);Ke("aria-owns",n.panelOpen?n.id+"-panel":null),H(3),U("ngSwitch",n.empty),Ke("id",n._valueId),H(1),U("ngSwitchCase",!0),H(1),U("ngSwitchCase",!1),H(3),U("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[EY,bu,Cu,PV,ED,Ts],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[nee.transformPanelWrap,nee.transformPanel]},changeDetection:0}),e}(),see=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Kae],imports:[[Wa,fp,WS,Qt],lp,z5,WS,Qt]}),e}(),toe={tooltipState:Ei("state",[Bn("initial, void, hidden",gt({opacity:0,transform:"scale(0)"})),Bn("visible",gt({transform:"scale(1)"})),zn("* => visible",Tn("200ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0)",offset:0}),gt({opacity:.5,transform:"scale(0.99)",offset:.5}),gt({opacity:1,transform:"scale(1)",offset:1})]))),zn("* => hidden",Tn("100ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:0})))])},lee="tooltip-panel",uee=tp({passive:!0}),cee=new Ee("mat-tooltip-scroll-strategy"),aoe={provide:cee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},ooe=new Ee("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),loe=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L,G){var Y=this;F(this,a),this._overlay=t,this._elementRef=n,this._scrollDispatcher=l,this._viewContainerRef=c,this._ngZone=h,this._platform=_,this._ariaDescriber=C,this._focusMonitor=k,this._dir=I,this._defaultOptions=L,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._handleKeydown=function($){Y._isTooltipVisible()&&27===$.keyCode&&!Vi($)&&($.preventDefault(),$.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=D,this._document=G,L&&(L.position&&(this.position=L.position),L.touchGestures&&(this.touchGestures=L.touchGestures)),I.change.pipe(Ht(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),h.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return W(a,[{key:"position",get:function(){return this._position},set:function(n){var l;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(l=this._tooltipInstance)||void 0===l||l.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(n){var l=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){l._ariaDescriber.describe(l._elementRef.nativeElement,l.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ht(this._destroyed)).subscribe(function(l){l?"keyboard"===l&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),n.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(l){var c=cr(l,2);n.removeEventListener(c[0],c[1],uee)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach(),this._portal=this._portal||new sd(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=c.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ht(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(l)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var n=this;if(this._overlayRef)return this._overlayRef;var l=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),c=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(l);return c.positionChanges.pipe(Ht(this._destroyed)).subscribe(function(h){n._updateCurrentPositionClass(h.connectionPair),n._tooltipInstance&&h.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:c,panelClass:"".concat(this._cssClassPrefix,"-").concat(lee),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ht(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(Ht(this._destroyed)).subscribe(function(){var h;return null===(h=n._tooltipInstance)||void 0===h?void 0:h._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var l=n.getConfig().positionStrategy,c=this._getOrigin(),h=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),h.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),h.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l||"below"==l?c={originX:"center",originY:"above"==l?"top":"bottom"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={originX:"start",originY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={originX:"end",originY:"center"});var h=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:h.x,originY:h.y}}}},{key:"_getOverlayPosition",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l?c={overlayX:"center",overlayY:"bottom"}:"below"==l?c={overlayX:"center",overlayY:"top"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={overlayX:"end",overlayY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={overlayX:"start",overlayY:"center"});var h=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:h.x,overlayY:h.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(or(1),Ht(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,l){return"above"===this.position||"below"===this.position?"top"===l?l="bottom":"bottom"===l&&(l="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:l}}},{key:"_updateCurrentPositionClass",value:function(n){var _,l=n.overlayY,c=n.originX;if((_="center"===l?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===l&&"top"===n.originY?"above":"below")!==this._currentPosition){var C=this._overlayRef;if(C){var k="".concat(this._cssClassPrefix,"-").concat(lee,"-");C.removePanelClass(k+this._currentPosition),C.addPanelClass(k+_)}this._currentPosition=_}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var l,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var c=[];if(this._platformSupportsMouseEvents())c.push(["mouseleave",function(){return n.hide()}],["wheel",function(_){return n._wheelListener(_)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var h=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",h],["touchcancel",h])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var h=cr(c,2);l._elementRef.nativeElement.addEventListener(h[0],h[1],uee)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var l=this._document.elementFromPoint(n.clientX,n.clientY),c=this._elementRef.nativeElement;l!==c&&!c.contains(l)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var l=this._elementRef.nativeElement,c=l.style;("on"===n||"INPUT"!==l.nodeName&&"TEXTAREA"!==l.nodeName)&&(c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none"),("on"===n||!l.draggable)&&(c.webkitUserDrag="none"),c.touchAction="none",c.webkitTapHighlightColor="transparent"}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N(Qn),N(ft),N(en),N(FV),N(na),N(void 0),N(Sr),N(void 0),N(lt))},e.\u0275dir=ve({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),fee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,$){var ie;return F(this,n),(ie=t.call(this,l,c,h,_,C,k,D,I,L,G,Y,$))._tooltipComponent=coe,ie}return n}(loe);return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N(Qn),N(ft),N(en),N(FV),N(na),N(cee),N(Sr,8),N(ooe,8),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Pe]}),e}(),uoe=function(){var e=function(){function a(t){F(this,a),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new qe}return W(a,[{key:"show",value:function(n){var l=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){l._visibility="visible",l._showTimeoutId=void 0,l._onShow(),l._markForCheck()},n)}},{key:"hide",value:function(n){var l=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){l._visibility="hidden",l._hideTimeoutId=void 0,l._markForCheck()},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(n){var l=n.toState;"hidden"===l&&!this.isVisible()&&this._onHide.next(),("visible"===l||"hidden"===l)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt))},e.\u0275dir=ve({type:e}),e}(),coe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._breakpointObserver=c,h._isHandset=h._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),h}return n}(uoe);return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Bq))},e.\u0275cmp=ke({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,n){2&t&&zr("zoom","visible"===n._visibility?1:null)},features:[Pe],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,n){var l;1&t&&(A(0,"div",0),ne("@state.start",function(){return n._animationStart()})("@state.done",function(h){return n._animationDone(h)}),Uf(1,"async"),K(2),E()),2&t&&(dt("mat-tooltip-handset",null==(l=Gf(1,5,n._isHandset))?null:l.matches),U("ngClass",n.tooltipClass)("@state",n._visibility),H(2),Pn(n.message))},directives:[Ts],pipes:[Zw],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[toe.tooltipState]},changeDetection:0}),e}(),dee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[aoe],imports:[[LE,Wa,fp,Qt],Qt,lp]}),e}();function foe(e,a){if(1&e&&(A(0,"mat-option",19),K(1),E()),2&e){var t=a.$implicit;U("value",t),H(1),ze(" ",t," ")}}function doe(e,a){if(1&e){var t=De();A(0,"mat-form-field",16),A(1,"mat-select",17),ne("selectionChange",function(c){return pe(t),J(2)._changePageSize(c.value)}),re(2,foe,2,2,"mat-option",18),E(),E()}if(2&e){var n=J(2);U("appearance",n._formFieldAppearance)("color",n.color),H(1),U("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),H(1),U("ngForOf",n._displayedPageSizeOptions)}}function hoe(e,a){if(1&e&&(A(0,"div",20),K(1),E()),2&e){var t=J(2);H(1),Pn(t.pageSize)}}function poe(e,a){if(1&e&&(A(0,"div",12),A(1,"div",13),K(2),E(),re(3,doe,3,6,"mat-form-field",14),re(4,hoe,2,1,"div",15),E()),2&e){var t=J();H(2),ze(" ",t._intl.itemsPerPageLabel," "),H(1),U("ngIf",t._displayedPageSizeOptions.length>1),H(1),U("ngIf",t._displayedPageSizeOptions.length<=1)}}function voe(e,a){if(1&e){var t=De();A(0,"button",21),ne("click",function(){return pe(t),J().firstPage()}),pa(),A(1,"svg",7),me(2,"path",22),E(),E()}if(2&e){var n=J();U("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),Ke("aria-label",n._intl.firstPageLabel)}}function goe(e,a){if(1&e){var t=De();pa(),t0(),A(0,"button",23),ne("click",function(){return pe(t),J().lastPage()}),pa(),A(1,"svg",7),me(2,"path",24),E(),E()}if(2&e){var n=J();U("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),Ke("aria-label",n._intl.lastPageLabel)}}var kb=function(){var e=function a(){F(this,a),this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,n,l){if(0==l||0==n)return"0 of ".concat(l);var c=t*n,h=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(h," of ").concat(l)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),_oe={provide:kb,deps:[[new oi,new Fo,kb]],useFactory:function(e){return e||new kb}},boe=new Ee("MAT_PAGINATOR_DEFAULT_OPTIONS"),Coe=ra(o5(function(){return function e(){F(this,e)}}())),woe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;if(F(this,n),(_=t.call(this))._intl=l,_._changeDetectorRef=c,_._pageIndex=0,_._length=0,_._pageSizeOptions=[],_._hidePageSize=!1,_._showFirstLastButtons=!1,_.page=new ye,_._intlChanges=l.changes.subscribe(function(){return _._changeDetectorRef.markForCheck()}),h){var C=h.pageSize,k=h.pageSizeOptions,D=h.hidePageSize,I=h.showFirstLastButtons;null!=C&&(_._pageSize=C),null!=k&&(_._pageSizeOptions=k),null!=D&&(_._hidePageSize=D),null!=I&&(_._showFirstLastButtons=I)}return _}return W(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(c){this._pageIndex=Math.max(Di(c),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(c){this._length=Di(c),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(c){this._pageSize=Math.max(Di(c),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(c){this._pageSizeOptions=(c||[]).map(function(h){return Di(h)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(c){this._hidePageSize=it(c)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(c){this._showFirstLastButtons=it(c)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex++,this._emitPageEvent(c)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex--,this._emitPageEvent(c)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=0,this._emitPageEvent(c)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(c)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var c=this.getNumberOfPages()-1;return this.pageIndex=D.length&&(I=0),D[I]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Doe);return e.\u0275fac=function(t){return new(t||e)(N(Toe,8))},e.\u0275dir=ve({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Pe,an]}),e}(),Ug=j9.ENTERING+" "+G9.STANDARD_CURVE,ok={indicator:Ei("indicator",[Bn("active-asc, asc",gt({transform:"translateY(0px)"})),Bn("active-desc, desc",gt({transform:"translateY(10px)"})),zn("active-asc <=> active-desc",Tn(Ug))]),leftPointer:Ei("leftPointer",[Bn("active-asc, asc",gt({transform:"rotate(-45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),rightPointer:Ei("rightPointer",[Bn("active-asc, asc",gt({transform:"rotate(45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(-45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),arrowOpacity:Ei("arrowOpacity",[Bn("desc-to-active, asc-to-active, active",gt({opacity:1})),Bn("desc-to-hint, asc-to-hint, hint",gt({opacity:.54})),Bn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",gt({opacity:0})),zn("* => asc, * => desc, * => active, * => hint, * => void",Tn("0ms")),zn("* <=> *",Tn(Ug))]),arrowPosition:Ei("arrowPosition",[zn("* => desc-to-hint, * => desc-to-active",Tn(Ug,Dl([gt({transform:"translateY(-25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-desc, * => active-to-desc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(25%)"})]))),zn("* => asc-to-hint, * => asc-to-active",Tn(Ug,Dl([gt({transform:"translateY(25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-asc, * => active-to-asc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(-25%)"})]))),Bn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",gt({transform:"translateY(0)"})),Bn("hint-to-desc, active-to-desc, desc",gt({transform:"translateY(-25%)"})),Bn("hint-to-asc, active-to-asc, asc",gt({transform:"translateY(25%)"}))]),allowChildren:Ei("allowChildren",[zn("* <=> *",[BE("@*",$V(),{optional:!0})])])},j5=function(){var e=function a(){F(this,a),this.changes=new qe};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Poe={provide:j5,deps:[[new oi,new Fo,j5]],useFactory:function(e){return e||new j5}},Ooe=ra(function(){return function e(){F(this,e)}}()),hee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._intl=l,D._changeDetectorRef=c,D._sort=h,D._columnDef=_,D._focusMonitor=C,D._elementRef=k,D._showIndicatorHint=!1,D._viewState={},D._arrowDirection="",D._disableViewStateAnimation=!1,D.arrowPosition="after",D._handleStateChanges(),D}return W(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=it(c)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){var _=!!h;_!==c._showIndicatorHint&&(c._setIndicatorHintVisible(_),c._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(c){!this._isDisabled()&&(32===c.keyCode||13===c.keyCode)&&(c.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var c=this._viewState.fromState;return(c?"".concat(c,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var c=this;this._rerenderSubscription=ot(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){c._isSorted()&&(c._updateArrowDirection(),("hint"===c._viewState.toState||"active"===c._viewState.toState)&&(c._disableViewStateAnimation=!0),c._setAnimationTransitionState({fromState:c._arrowDirection,toState:"active"}),c._showIndicatorHint=!1),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),c._changeDetectorRef.markForCheck()})}}]),n}(Ooe);return e.\u0275fac=function(t){return new(t||e)(N(j5),N(Vt),N(DP,8),N("MAT_SORT_HEADER_COLUMN_DEF",8),N(na),N(Ue))},e.\u0275cmp=ke({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,n){1&t&&ne("click",function(){return n._handleClick()})("keydown",function(c){return n._handleKeydown(c)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&t&&(Ke("aria-sort",n._getAriaSortAttribute()),dt("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Pe],attrs:koe,ngContentSelectors:xoe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,n){1&t&&(nr(),A(0,"div",0),A(1,"div",1),Wt(2),E(),re(3,Moe,6,6,"div",2),E()),2&t&&(dt("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"==n.arrowPosition),Ke("tabindex",n._isDisabled()?null:0),H(3),U("ngIf",n._renderArrow()))},directives:[Kt],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[ok.indicator,ok.leftPointer,ok.rightPointer,ok.arrowOpacity,ok.arrowPosition,ok.allowChildren]},changeDetection:0}),e}(),Ioe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Poe],imports:[[Wa,Qt]]}),e}(),Roe=[[["caption"]],[["colgroup"],["col"]]],Loe=["caption","colgroup, col"];function Wq(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],h=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],_=arguments.length>6?arguments[6]:void 0;F(this,e),this._isNativeHtmlTable=a,this._stickCellCss=t,this.direction=n,this._coalescedStyleScheduler=l,this._isBrowser=c,this._needsPositionStickyOnElement=h,this._positionListener=_,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return W(e,[{key:"clearStickyPositioning",value:function(t,n){var _,l=this,c=[],h=tn(t);try{for(h.s();!(_=h.n()).done;){var C=_.value;if(C.nodeType===C.ELEMENT_NODE){c.push(C);for(var k=0;k3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(n.some(function(Y){return Y})||l.some(function(Y){return Y}))){var _=t[0],C=_.children.length,k=this._getCellWidths(_,h),D=this._getStickyStartColumnPositions(k,n),I=this._getStickyEndColumnPositions(k,l),L=n.lastIndexOf(!0),G=l.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var se,Y="rtl"===c.direction,$=Y?"right":"left",ie=Y?"left":"right",fe=tn(t);try{for(fe.s();!(se=fe.n()).done;)for(var be=se.value,Ce=0;Ce1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var l=[],c=t.children,h=0;h0;h--)n[h]&&(l[h]=c,c+=t[h]);return l}}]),e}(),eX=new Ee("CDK_SPL"),X5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(Qn),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","rowOutlet",""]]}),e}(),Z5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(Qn),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),K5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(Qn),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),Q5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(Qn),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),$5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this._differs=t,this._changeDetectorRef=n,this._elementRef=l,this._dir=h,this._platform=C,this._viewRepeater=k,this._coalescedStyleScheduler=D,this._viewportRuler=I,this._stickyPositioningListener=L,this._onDestroy=new qe,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ye,this.viewChange=new Ma({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return W(a,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=it(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=it(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(l,c){return n.trackBy?n.trackBy(c.dataIndex,c.data):c}),this._viewportRuler.change().pipe(Ht(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var l=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||l,this._forceRecalculateCellWidths=l,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Y1(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var l=this._dataDiffer.diff(this._renderRows);if(!l)return this._updateNoDataRow(),void this.contentChanged.next();var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(l,c,function(h,_,C){return n._getEmbeddedViewArgs(h.item,C)},function(h){return h.item.data},function(h){1===h.operation&&h.context&&n._renderCellTemplateForItem(h.record.item.rowDef,h.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(h){c.get(h.currentIndex).context.$implicit=h.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=n.length?"":"none");var h=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,h,"top"),this._headerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=n.length?"":"none");var h=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,h,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,h),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),h=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(At(l),At(c),At(h)),["left","right"]),this._stickyColumnStylesNeedReset=!1),l.forEach(function(_,C){n._addStickyColumnStyles([_],n._headerRowDefs[C])}),this._rowDefs.forEach(function(_){for(var C=[],k=0;k0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(l,c){return n._renderRow(n._headerRowOutlet,l,c)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(l,c){return n._renderRow(n._footerRowOutlet,l,c)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,l){var c=this,h=Array.from(l.columns||[]).map(function(k){return c._columnDefsByName.get(k)}),_=h.map(function(k){return k.sticky}),C=h.map(function(k){return k.stickyEnd});this._stickyStyler.updateStickyColumns(n,_,C,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var l=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},_=n.viewContainer.createEmbeddedView(l.template,h,c);return this._renderCellTemplateForItem(l,h),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var h,c=tn(this._getCellTemplates(n));try{for(c.s();!(h=c.n()).done;)wp.mostRecentCellOutlet&&wp.mostRecentCellOutlet._viewContainer.createEmbeddedView(h.value,l)}catch(C){c.e(C)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,l=0,c=n.length;l0&&void 0!==arguments[0]?arguments[0]:[];return F(this,t),(n=a.call(this))._renderData=new Ma([]),n._filter=new Ma(""),n._internalPageChanges=new qe,n._renderChangesSubscription=null,n.sortingDataAccessor=function(c,h){var _=c[h];if(U3(_)){var C=Number(_);return CL?$=1:I0)){var _=Math.ceil(h.length/h.pageSize)-1||0,C=Math.min(h.pageIndex,_);C!==h.pageIndex&&(h.pageIndex=C,c._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var l;null===(l=this._renderChangesSubscription)||void 0===l||l.unsubscribe(),this._renderChangesSubscription=null}}]),t}(qA));function lse(e){return e instanceof Date&&!isNaN(+e)}function aH(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg,t=lse(e),n=t?+e-a.now():Math.abs(e);return function(l){return l.lift(new use(n,a))}}var use=function(){function e(a,t){F(this,e),this.delay=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new cse(t,this.delay,this.scheduler))}}]),e}(),cse=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).delay=l,h.scheduler=c,h.queue=[],h.active=!1,h.errored=!1,h}return W(t,[{key:"_schedule",value:function(l){this.active=!0,this.destination.add(l.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:l}))}},{key:"scheduleNotification",value:function(l){if(!0!==this.errored){var c=this.scheduler,h=new fse(c.now()+this.delay,l);this.queue.push(h),!1===this.active&&this._schedule(c)}}},{key:"_next",value:function(l){this.scheduleNotification(qy.createNext(l))}},{key:"_error",value:function(l){this.errored=!0,this.queue=[],this.destination.error(l),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(qy.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(l){for(var c=l.source,h=c.queue,_=l.scheduler,C=l.destination;h.length>0&&h[0].time-_.now()<=0;)h.shift().notification.observe(C);if(h.length>0){var k=Math.max(0,h[0].time-_.now());this.schedule(l,k)}else this.unsubscribe(),c.active=!1}}]),t}(Ze),fse=function e(a,t){F(this,e),this.time=a,this.notification=t},bee=tp({passive:!0}),Cee=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return W(a,[{key:"monitor",value:function(n){var l=this;if(!this._platform.isBrowser)return Ar;var c=yc(n),h=this._monitoredElements.get(c);if(h)return h.subject;var _=new qe,C="cdk-text-field-autofilled",k=function(I){"cdk-text-field-autofill-start"!==I.animationName||c.classList.contains(C)?"cdk-text-field-autofill-end"===I.animationName&&c.classList.contains(C)&&(c.classList.remove(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!1})})):(c.classList.add(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",k,bee),c.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(c,{subject:_,unlisten:function(){c.removeEventListener("animationstart",k,bee)}}),_}},{key:"stopMonitoring",value:function(n){var l=yc(n),c=this._monitoredElements.get(l);c&&(c.unlisten(),c.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(l,c){return n.stopMonitoring(c)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft))},token:e,providedIn:"root"}),e}(),wee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep]]}),e}(),See=new Ee("MAT_INPUT_VALUE_ACCESSOR"),hse=["button","checkbox","file","hidden","image","radio","range","reset","submit"],pse=0,vse=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),aa=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G){var Y;F(this,n),(Y=t.call(this,k,_,C,h))._elementRef=l,Y._platform=c,Y._autofillMonitor=I,Y._formField=G,Y._uid="mat-input-".concat(pse++),Y.focused=!1,Y.stateChanges=new qe,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(fe){return j1().has(fe)});var $=Y._elementRef.nativeElement,ie=$.nodeName.toLowerCase();return Y._inputValueAccessor=D||$,Y._previousNativeValue=Y.value,Y.id=Y.id,c.IOS&&L.runOutsideAngular(function(){l.nativeElement.addEventListener("keyup",function(fe){var se=fe.target;!se.value&&0===se.selectionStart&&0===se.selectionEnd&&(se.setSelectionRange(1,1),se.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===ie,Y._isTextarea="textarea"===ie,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=$.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return W(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"type",get:function(){return this._type},set:function(c){this._type=c||"text",this._validateType(),!this._isTextarea&&j1().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(c){c!==this.value&&(this._inputValueAccessor.value=c,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(c){this._readonly=it(c)}},{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(h){c.autofilled=h.isAutofilled,c.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_focusChanged",value:function(c){c!==this.focused&&(this.focused=c,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var c,h,_=(null===(h=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===h?void 0:h.call(c))?null:this.placeholder;if(_!==this._previousPlaceholder){var C=this._elementRef.nativeElement;this._previousPlaceholder=_,_?C.setAttribute("placeholder",_):C.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var c=this._elementRef.nativeElement.value;this._previousNativeValue!==c&&(this._previousNativeValue=c,this.stateChanges.next())}},{key:"_validateType",value:function(){hse.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var c=this._elementRef.nativeElement.validity;return c&&c.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var c=this._elementRef.nativeElement,h=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&h&&h.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(c){c.length?this._elementRef.nativeElement.setAttribute("aria-describedby",c.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(vse);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(Ut,10),N(Rc,8),N(yp,8),N(dd),N(See,10),N(Cee),N(ft),N(ik,8))},e.\u0275dir=ve({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,n){1&t&&ne("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Xi("disabled",n.disabled)("required",n.required),Ke("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),dt("mat-input-server",n._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Xe([{provide:nk,useExisting:e}]),Pe,an]}),e}(),gse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd],imports:[[wee,z5,Qt],wee,z5]}),e}(),mse=["searchSelectInput"],_se=["innerSelectSearch"];function yse(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){return pe(t),J()._reset(!0)}),A(1,"i",7),K(2,"close"),E(),E()}}var bse=function(e){return{"mat-select-search-inner-multiple":e}},Vc=function(){function e(a,t){this.matSelect=a,this.changeDetectorRef=t,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new ye,this.overlayClassSet=!1,this.change=new ye,this._onDestroy=new qe}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var a=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matSelect.openedChange.pipe(aH(1),Ht(this._onDestroy)).subscribe(function(n){n?(a.getWidth(),a.disableInitialFocus||a._focus()):a.clearSearchInput&&a._reset()}),this.matSelect.openedChange.pipe(or(1)).pipe(Ht(this._onDestroy)).subscribe(function(){a._options=a.matSelect.options,a._options.changes.pipe(Ht(a._onDestroy)).subscribe(function(){var n=a.matSelect._keyManager;n&&a.matSelect.panelOpen&&setTimeout(function(){n.setFirstItemActive(),a.getWidth()},1)})}),this.change.pipe(Ht(this._onDestroy)).subscribe(function(){a.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){a.setOverlayClass()}),this.matSelect.openedChange.pipe(or(1),Ht(this._onDestroy)).subscribe(function(){a.matSelect.options.changes.pipe(Ht(a._onDestroy)).subscribe(function(){a.changeDetectorRef.markForCheck()})})},e.prototype._handleKeydown=function(a){(a.key&&1===a.key.length||a.keyCode>=65&&a.keyCode<=90||a.keyCode>=48&&a.keyCode<=57||32===a.keyCode)&&a.stopPropagation()},e.prototype.writeValue=function(a){a!==this._value&&(this._value=a,this.change.emit(a))},e.prototype.onInputChange=function(a){a.value!==this._value&&(this.initMultiSelectedValues(),this._value=a.value,this.changed.emit(a.value),this.change.emit(a.value))},e.prototype.onBlur=function(a){this.writeValue(a.value)},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var a=this.matSelect.panel.nativeElement,t=a.scrollTop;this.searchSelectInput.nativeElement.focus(),a.scrollTop=t}},e.prototype._reset=function(a){!this.searchSelectInput||(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),a&&this._focus())},e.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(a){return a.selected}).map(function(a){return a.value}))},e.prototype.setOverlayClass=function(){var a=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Ht(this._onDestroy)).subscribe(function(n){if(n){for(var l=a.searchSelectInput.nativeElement,c=void 0;l=l.parentElement;)if(l.classList.contains("cdk-overlay-pane")){c=l;break}c&&c.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},e.prototype.initMultipleHandling=function(){var a=this;this.matSelect.valueChange.pipe(Ht(this._onDestroy)).subscribe(function(t){if(a.matSelect.multiple){var n=!1;if(a._value&&a._value.length&&a.previousSelectedValues&&Array.isArray(a.previousSelectedValues)){(!t||!Array.isArray(t))&&(t=[]);var l=a.matSelect.options.map(function(c){return c.value});a.previousSelectedValues.forEach(function(c){-1===t.indexOf(c)&&-1===l.indexOf(c)&&(t.push(c),n=!0)})}n&&a.matSelect._onChange(t),a.previousSelectedValues=t}})},e.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,a=this.innerSelectSearch.nativeElement;a=a.parentElement;)if(a.classList.contains("mat-select-panel")){t=a;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},e.\u0275fac=function(t){return new(t||e)(N(Qa),N(Vt))},e.\u0275cmp=ke({type:e,selectors:[["uds-mat-select-search"]],viewQuery:function(t,n){if(1&t&&(wt(mse,7,Ue),wt(_se,7,Ue)),2&t){var l=void 0;Ne(l=Le())&&(n.searchSelectInput=l.first),Ne(l=Le())&&(n.innerSelectSearch=l.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[Xe([{provide:s,useExisting:Sn(function(){return e}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(me(0,"input",0),A(1,"div",1,2),A(3,"input",3,4),ne("keydown",function(c){return n._handleKeydown(c)})("input",function(c){return n.onInputChange(c.target)})("blur",function(c){return n.onBlur(c.target)}),E(),re(5,yse,3,0,"button",5),E()),2&t&&(H(1),U("ngClass",vl(3,bse,n.matSelect.multiple)),H(2),U("placeholder",n.placeholderLabel),H(2),U("ngIf",n.value))},directives:[aa,Ts,Kt,In],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),e}();function Cse(e,a){1&e&&(A(0,"uds-translate"),K(1,"New user permission for"),E())}function wse(e,a){1&e&&(A(0,"uds-translate"),K(1,"New group permission for"),E())}function Sse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),Pn(t.text)}}function kse(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",12),ne("changed",function(l){return pe(t),J().filterUser=l}),E()}}function Mse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),Pn(t.text)}}function xse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),Pn(t.text)}}var Tse=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new ye(!0)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"50%";return a.gui.dialog.open(e,{width:l,data:{type:t,item:n},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){t.forEach(function(n){a.authenticators.push({id:n.id,text:n.name})})})},e.prototype.changeAuth=function(a){var t=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(a,this.data.type+"s").summary().subscribe(function(n){n.forEach(function(l){t.entities.push({id:l.id,text:l.name})})})},e.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},e.prototype.filteredEntities=function(){var a=this,t=new Array;return this.entities.forEach(function(n){(!a.filterUser||n.text.toLocaleLowerCase().includes(a.filterUser.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.getFieldLabel=function(a){return"user"===a?django.gettext("User"):"group"===a?django.gettext("Group"):"auth"===a?django.gettext("Authenticator"):django.gettext("Permission")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Cse,2,0,"uds-translate",1),me(2,"b",2),re(3,wse,2,0,"ng-template",null,3,ml),E(),A(5,"mat-dialog-content"),A(6,"div",4),A(7,"mat-form-field"),A(8,"mat-select",5),ne("valueChange",function(h){return n.changeAuth(h)})("ngModelChange",function(h){return n.authenticator=h}),re(9,Sse,2,2,"mat-option",6),E(),E(),A(10,"mat-form-field"),A(11,"mat-select",7),ne("ngModelChange",function(h){return n.entity=h}),re(12,kse,1,0,"uds-mat-select-search",8),re(13,Mse,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-select",7),ne("ngModelChange",function(h){return n.permission=h}),re(16,xse,2,2,"mat-option",6),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",9),A(19,"uds-translate"),K(20,"Cancel"),E(),E(),A(21,"button",10),ne("click",function(){return n.save()}),A(22,"uds-translate"),K(23,"Ok"),E(),E(),E()),2&t){var l=Nn(4);H(1),U("ngIf","user"===n.data.type)("ngIfElse",l),H(1),U("innerHTML",n.data.item.name,Si),H(6),U("placeholder",n.getFieldLabel("auth"))("ngModel",n.authenticator),H(1),U("ngForOf",n.authenticators),H(2),U("placeholder",n.getFieldLabel(n.data.type))("ngModel",n.entity),H(1),U("ngIf",n.entities.length>10),H(1),U("ngForOf",n.filteredEntities()),H(2),U("placeholder",n.getFieldLabel("perm"))("ngModel",n.permission),H(1),U("ngForOf",n.permissions)}},directives:[jr,Kt,Fr,Mr,Qa,xt,kr,ar,$r,In,Lr,Hn,Bi,Vc],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Dse(e,a){if(1&e){var t=De();A(0,"div",11),A(1,"div",12),K(2),E(),A(3,"div",13),K(4),A(5,"a",14),ne("click",function(){var h=pe(t).$implicit;return J(2).revokePermission(h)}),A(6,"i",15),K(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),Cv(" ",n.entity_name,"@",n.auth_name," "),H(2),ze(" ",n.perm_name," \xa0")}}function Ase(e,a){if(1&e){var t=De();A(0,"div",7),A(1,"div",8),A(2,"div",9),ne("click",function(c){var _=pe(t).$implicit;return J().newPermission(_),c.preventDefault()}),A(3,"uds-translate"),K(4,"New permission..."),E(),E(),re(5,Dse,8,3,"div",10),E(),E()}if(2&e){var n=a.$implicit;H(5),U("ngForOf",n)}}var Ese=function(e,a){return[e,a]},Pse=function(){function e(a,t,n){this.api=a,this.dialogRef=t,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return e.launch=function(a,t,n){var l=window.innerWidth<800?"90%":"60%";a.gui.dialog.open(e,{width:l,data:{rest:t,item:n},disableClose:!1})},e.prototype.ngOnInit=function(){this.reload()},e.prototype.reload=function(){var a=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(t){a.updatePermissions(t)})},e.prototype.updatePermissions=function(a){var t=this;this.userPermissions.length=0,this.groupPermissions.length=0,a.forEach(function(n){"user"===n.type?t.userPermissions.push(n):t.groupPermissions.push(n)})},e.prototype.revokePermission=function(a){var t=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+a.entity_name+"@"+a.auth_name+" "+a.perm_name+"").subscribe(function(n){n&&t.data.rest.revokePermission([a.id]).subscribe(function(l){t.reload()})})},e.prototype.newPermission=function(a){var t=this,n=a===this.userPermissions?"user":"group";Tse.launch(this.api,n,this.data.item).subscribe(function(l){t.data.rest.addPermission(t.data.item.id,n+"s",l.entity,l.permissision).subscribe(function(c){t.reload()})})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Permissions for"),E(),K(3,"\xa0"),me(4,"b",1),E(),A(5,"mat-dialog-content"),A(6,"div",2),A(7,"uds-translate",3),K(8,"Users"),E(),A(9,"uds-translate",3),K(10,"Groups"),E(),E(),A(11,"div",4),re(12,Ase,6,1,"div",5),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",6),A(15,"uds-translate"),K(16,"Ok"),E(),E(),E()),2&t&&(H(4),U("innerHTML",n.data.item.name,Si),H(8),U("ngForOf",zf(2,Ese,n.userPermissions,n.groupPermissions)))},directives:[jr,Hn,Fr,ar,$r,In,Lr],styles:['.titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),oX=Dt(99595),xee=function(e){return void 0!==e.changingThisBreaksApplicationSecurity&&(e=e.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(e=""+e).replace('"','""')+'"'},Tee=function(e){var a="";e.columns.forEach(function(n){a+=xee(n.title)+","}),a=a.slice(0,-1)+"\r\n",e.dataSource.data.forEach(function(n){e.columns.forEach(function(l){var c=n[l.name];switch(l.type){case Aa.DATE:c=Ru("SHORT_DATE_FORMAT",c);break;case Aa.DATETIME:c=Ru("SHORT_DATETIME_FORMAT",c);break;case Aa.DATETIMESEC:c=Ru("SHORT_DATE_FORMAT",c," H:i:s");break;case Aa.TIME:c=Ru("TIME_FORMAT",c)}a+=xee(c)+","}),a=a.slice(0,-1)+"\r\n"});var t=new Blob([a],{type:"text/csv"});setTimeout(function(){(0,oX.saveAs)(t,e.title+".csv")},100)},Ise=function(){function e(a,t){F(this,e),this._document=t;var n=this._textarea=this._document.createElement("textarea"),l=n.style;l.position="fixed",l.top=l.opacity="0",l.left="-999em",n.setAttribute("aria-hidden","true"),n.value=a,this._document.body.appendChild(n)}return W(e,[{key:"copy",value:function(){var t=this._textarea,n=!1;try{if(t){var l=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),n=this._document.execCommand("copy"),l&&l.focus()}}catch(c){}return n}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),e}(),Dee=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"copy",value:function(n){var l=this.beginCopy(n),c=l.copy();return l.destroy(),c}},{key:"beginCopy",value:function(n){return new Ise(n,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),Fse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function Nse(e,a){if(1&e&&(pa(),me(0,"circle",3)),2&e){var t=J();zr("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}function Vse(e,a){if(1&e&&(pa(),me(0,"circle",3)),2&e){var t=J();zr("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}var Use=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),Eee=new Ee("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Pee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;F(this,n),(k=t.call(this,l))._document=h,k._diameter=100,k._value=0,k._fallbackAnimation=!1,k.mode="determinate";var D=n._diameters;return k._spinnerAnimationLabel=k._getSpinnerAnimationLabel(),D.has(h.head)||D.set(h.head,new Set([100])),k._fallbackAnimation=c.EDGE||c.TRIDENT,k._noopAnimations="NoopAnimations"===_&&!!C&&!C._forceAnimations,C&&(C.diameter&&(k.diameter=C.diameter),C.strokeWidth&&(k.strokeWidth=C.strokeWidth)),k}return W(n,[{key:"diameter",get:function(){return this._diameter},set:function(c){this._diameter=Di(c),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(c){this._strokeWidth=Di(c)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(c){this._value=Math.max(0,Math.min(100,Di(c)))}},{key:"ngOnInit",value:function(){var c=this._elementRef.nativeElement;this._styleRoot=W1(c)||this._document.head,this._attachStyleNode();var h="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");c.classList.add(h)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var c=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(c," ").concat(c)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var c=this._styleRoot,h=this._diameter,_=n._diameters,C=_.get(c);if(!C||!C.has(h)){var k=this._document.createElement("style");k.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),k.textContent=this._getAnimationText(),c.appendChild(k),C||(C=new Set,_.set(c,C)),C.add(h)}}},{key:"_getAnimationText",value:function(){var c=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*c)).replace(/END_VALUE/g,"".concat(.2*c)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(Use);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt,8),N(Un,8),N(Eee))},e.\u0275cmp=ke({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,n){2&t&&(Ke("aria-valuemin","determinate"===n.mode?0:null)("aria-valuemax","determinate"===n.mode?100:null)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),zr("width",n.diameter,"px")("height",n.diameter,"px"),dt("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Pe],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,n){1&t&&(pa(),A(0,"svg",0),re(1,Nse,1,9,"circle",1),re(2,Vse,1,7,"circle",2),E()),2&t&&(zr("width",n.diameter,"px")("height",n.diameter,"px"),U("ngSwitch","indeterminate"===n.mode),Ke("viewBox",n._getViewBox()),H(1),U("ngSwitchCase",!0),H(1),U("ngSwitchCase",!1))},directives:[bu,Cu],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),Wse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qt,Wa],Qt]}),e}(),Yse=["mat-menu-item",""];function qse(e,a){1&e&&(pa(),A(0,"svg",2),me(1,"polygon",3),E())}var Oee=["*"];function Xse(e,a){if(1&e){var t=De();A(0,"div",0),ne("keydown",function(c){return pe(t),J()._handleKeydown(c)})("click",function(){return pe(t),J().closed.emit("click")})("@transformMenu.start",function(c){return pe(t),J()._onAnimationStart(c)})("@transformMenu.done",function(c){return pe(t),J()._onAnimationDone(c)}),A(1,"div",1),Wt(2),E(),E()}if(2&e){var n=J();U("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var oH={transformMenu:Ei("transformMenu",[Bn("void",gt({opacity:0,transform:"scale(0.8)"})),zn("void => enter",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:1,transform:"scale(1)"}))),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))]),fadeInItems:Ei("fadeInItems",[Bn("showing",gt({opacity:1})),zn("void => *",[gt({opacity:0}),Tn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Iee=new Ee("MatMenuContent"),Zse=function(){var e=function(){function a(t,n,l,c,h,_,C){F(this,a),this._template=t,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=h,this._document=_,this._changeDetectorRef=C,this._attached=new qe}return W(a,[{key:"attach",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Ps(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new tE(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var l=this._template.elementRef.nativeElement;l.parentNode.insertBefore(this._outlet.outletElement,l),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,n),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Xn),N(Zi),N(sc),N(kn),N(Qn),N(lt),N(Vt))},e.\u0275dir=ve({type:e,selectors:[["ng-template","matMenuContent",""]],features:[Xe([{provide:Iee,useExisting:e}])]}),e}(),lX=new Ee("MAT_MENU_PANEL"),Kse=El(ra(function(){return function e(){F(this,e)}}())),PP=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._elementRef=l,k._focusMonitor=h,k._parentMenu=_,k._changeDetectorRef=C,k.role="menuitem",k._hovered=new qe,k._focused=new qe,k._highlighted=!1,k._triggersSubmenu=!1,_&&_.addItem&&_.addItem(It(k)),k}return W(n,[{key:"focus",value:function(c,h){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(c){this.disabled&&(c.preventDefault(),c.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var c,h,_=this._elementRef.nativeElement.cloneNode(!0),C=_.querySelectorAll("mat-icon, .material-icons"),k=0;k0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(or(1)).subscribe(function(){return n._focusFirstItem(l)}):this._focusFirstItem(l)}},{key:"_focusFirstItem",value:function(n){var l=this._keyManager;if(l.setFocusOrigin(n).setFirstItemActive(),!l.activeItem&&this._directDescendantItems.length)for(var c=this._directDescendantItems.first._getHostElement().parentElement;c;){if("menu"===c.getAttribute("role")){c.focus();break}c=c.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(n){var l=this,c=Math.min(this._baseElevation+n,24),h="".concat(this._elevationPrefix).concat(c),_=Object.keys(this._classList).find(function(C){return C.startsWith(l._elevationPrefix)});(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[h]=!0,this._previousElevation=h)}},{key:"setPositionClasses",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,c=this._classList;c["mat-menu-before"]="before"===n,c["mat-menu-after"]="after"===n,c["mat-menu-above"]="above"===l,c["mat-menu-below"]="below"===l}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(n){this._animationDone.next(n),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var n=this;this._allItems.changes.pipe(Qr(this._allItems)).subscribe(function(l){n._directDescendantItems.reset(l.filter(function(c){return c._parentMenu===n})),n._directDescendantItems.notifyOnChanges()})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Ree))},e.\u0275dir=ve({type:e,contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Iee,5),Zt(l,PP,5),Zt(l,PP,4)),2&t&&(Ne(c=Le())&&(n.lazyContent=c.first),Ne(c=Le())&&(n._allItems=c),Ne(c=Le())&&(n.items=c))},viewQuery:function(t,n){var l;1&t&&wt(Xn,5),2&t&&Ne(l=Le())&&(n.templateRef=l.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),Lee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l,c,h))._elevationPrefix="mat-elevation-z",_._baseElevation=4,_}return n}(OP);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Ree))},e.\u0275cmp=ke({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,n){2&t&&Ke("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Xe([{provide:lX,useExisting:e}]),Pe],ngContentSelectors:Oee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,n){1&t&&(nr(),re(0,Xse,3,6,"ng-template"))},directives:[Ts],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[oH.transformMenu,oH.fadeInItems]},changeDetection:0}),e}(),Fee=new Ee("mat-menu-scroll-strategy"),Nee={provide:Fee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Bee=tp({passive:!0}),Hee=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this._overlay=t,this._element=n,this._viewContainerRef=l,this._menuItemInstance=_,this._dir=C,this._focusMonitor=k,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ve.EMPTY,this._hoverSubscription=Ve.EMPTY,this._menuCloseSubscription=Ve.EMPTY,this._handleTouchStart=function(I){AE(I)||(D._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ye,this.onMenuOpen=this.menuOpened,this.menuClosed=new ye,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=h instanceof OP?h:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Bee),_&&(_._triggersSubmenu=this.triggersSubmenu())}return W(a,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(n){this.menu=n}},{key:"menu",get:function(){return this._menu},set:function(n){var l=this;n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(function(c){l._destroyMenu(c),("click"===c||"tab"===c)&&l._parentMaterialMenu&&l._parentMaterialMenu.closed.emit(c)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Bee),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var n=this;if(!this._menuOpen){this._checkMenu();var l=this._createOverlay(),c=l.getConfig();this._setPosition(c.positionStrategy),c.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,l.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return n.closeMenu()}),this._initMenu(),this.menu instanceof OP&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(n,l){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,l):this._element.nativeElement.focus(l)}},{key:"updatePosition",value:function(){var n;null===(n=this._overlayRef)||void 0===n||n.updatePosition()}},{key:"_destroyMenu",value:function(n){var l=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof OP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(vr(function(h){return"void"===h.toState}),or(1),Ht(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return l._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c.lazyContent&&c.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var n=0,l=this.menu.parentMenu;l;)n++,l=l.parentMenu;this.menu.setElevation(n)}}},{key:"_setIsMenuOpen",value:function(n){this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var n=this._getOverlayConfig();this._subscribeToPositions(n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new up({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(n){var l=this;this.menu.setPositionClasses&&n.positionChanges.subscribe(function(c){l.menu.setPositionClasses("start"===c.connectionPair.overlayX?"after":"before","top"===c.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(n){var c=cr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),h=c[0],_=c[1],k=cr("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),D=k[0],I=k[1],L=D,G=I,Y=h,$=_,ie=0;this.triggersSubmenu()?($=h="before"===this.menu.xPosition?"start":"end",_=Y="end"===h?"start":"end",ie="bottom"===D?8:-8):this.menu.overlapTrigger||(L="top"===D?"bottom":"top",G="top"===I?"bottom":"top"),n.withPositions([{originX:h,originY:L,overlayX:Y,overlayY:D,offsetY:ie},{originX:_,originY:L,overlayX:$,overlayY:D,offsetY:ie},{originX:h,originY:G,overlayX:Y,overlayY:I,offsetY:-ie},{originX:_,originY:G,overlayX:$,overlayY:I,offsetY:-ie}])}},{key:"_menuClosingActions",value:function(){var n=this,l=this._overlayRef.backdropClick(),c=this._overlayRef.detachments();return ot(l,this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(vr(function(C){return C!==n._menuItemInstance}),vr(function(){return n._menuOpen})):ut(),c)}},{key:"_handleMousedown",value:function(n){ab(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;(13===l||32===l)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===l&&"ltr"===this.dir||37===l&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var n=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(vr(function(l){return l===n._menuItemInstance&&!l.disabled}),aH(0,BA)).subscribe(function(){n._openedBy="mouse",n.menu instanceof OP&&n.menu._isAnimating?n.menu._animationDone.pipe(or(1),aH(0,BA),Ht(n._parentMaterialMenu._hovered())).subscribe(function(){return n.openMenu()}):n.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ps(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(Qn),N(Fee),N(lX,8),N(PP,10),N(Sr,8),N(na))},e.\u0275dir=ve({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,n){1&t&&ne("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)})("click",function(c){return n._handleClick(c)}),2&t&&Ke("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),zee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Nee],imports:[Qt]}),e}(),ele=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Nee],imports:[[Wa,Qt,Da,fp,zee],lp,Qt,zee]}),e}(),tle=function(){var e=function(){function a(){F(this,a),this._vertical=!1,this._inset=!1}return W(a,[{key:"vertical",get:function(){return this._vertical},set:function(n){this._vertical=it(n)}},{key:"inset",get:function(){return this._inset},set:function(n){this._inset=it(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){2&t&&(Ke("aria-orientation",n.vertical?"vertical":"horizontal"),dt("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),nle=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qt],Qt]}),e}(),rle=function(){function e(){}return e.prototype.transform=function(a,t){return a.sort(void 0===t?function(l,c){return l>c?1:-1}:function(l,c){return l[t]>c[t]?1:-1})},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ui({name:"sort",type:e,pure:!0}),e}(),ile=["trigger"];function ale(e,a){1&e&&me(0,"img",36),2&e&&U("src",J().icon,Gt)}function ole(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(5);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(5);U("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function sle(e,a){if(1&e&&(vt(0),A(1,"button",42),K(2),E(),A(3,"mat-menu",43,44),re(5,ole,1,1,"button",45),Uf(6,"sort"),E(),xn()),2&e){var t=a.$implicit,n=Nn(4);H(1),U("matMenuTriggerFor",n),H(1),Pn(t.key),H(1),U("overlapTrigger",!1),H(2),U("ngForOf",iw(6,4,t.value,"name"))}}function lle(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,sle,7,7,"ng-container",39),Uf(4,"keyvalue"),E(),A(5,"a",40),A(6,"i",17),K(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),K(10,"New"),E(),E(),A(11,"i",17),K(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Nn(2),n=J(3);H(1),U("overlapTrigger",!1),H(2),U("ngForOf",Gf(4,3,n.grpTypes)),H(2),U("matMenuTriggerFor",t)}}function ule(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(4);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(4);U("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function cle(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,ule,1,1,"button",45),Uf(4,"sort"),E(),A(5,"a",40),A(6,"i",17),K(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),K(10,"New"),E(),E(),A(11,"i",17),K(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Nn(2),n=J(3);H(1),U("overlapTrigger",!1),H(2),U("ngForOf",iw(4,3,n.oTypes,"name")),H(2),U("matMenuTriggerFor",t)}}function fle(e,a){if(1&e&&(vt(0),re(1,lle,13,5,"ng-container",8),re(2,cle,13,6,"ng-container",8),xn()),2&e){var t=J(2);H(1),U("ngIf",t.newGrouped),H(1),U("ngIf",!t.newGrouped)}}function dle(e,a){if(1&e){var t=De();vt(0),A(1,"a",47),ne("click",function(){pe(t);var l=J(2);return l.newAction.emit({param:void 0,table:l})}),A(2,"i",17),K(3,"insert_drive_file"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"New"),E(),E(),E(),xn()}}function hle(e,a){if(1&e&&(vt(0),re(1,fle,3,2,"ng-container",8),re(2,dle,7,0,"ng-container",8),xn()),2&e){var t=J();H(1),U("ngIf",void 0!==t.oTypes&&0!==t.oTypes.length),H(1),U("ngIf",void 0!==t.oTypes&&0===t.oTypes.length)}}function ple(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.editAction)}),A(2,"i",17),K(3,"edit"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Edit"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),U("disabled",1!==n.selection.selected.length)}}function vle(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){return pe(t),J().permissions()}),A(2,"i",17),K(3,"perm_identity"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Permissions"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),U("disabled",1!==n.selection.selected.length)}}function gle(e,a){if(1&e){var t=De();A(0,"a",50),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;U("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function mle(e,a){if(1&e&&(vt(0),re(1,gle,1,2,"a",49),xn()),2&e){var t=J();H(1),U("ngForOf",t.getcustomButtons())}}function _le(e,a){if(1&e){var t=De();vt(0),A(1,"a",51),ne("click",function(){return pe(t),J().export()}),A(2,"i",17),K(3,"import_export"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Export"),E(),E(),E(),xn()}}function yle(e,a){if(1&e){var t=De();vt(0),A(1,"a",52),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.deleteAction,!0)}),A(2,"i",17),K(3,"delete_forever"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Delete"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),U("disabled",n.selection.isEmpty())}}function ble(e,a){if(1&e){var t=De();A(0,"button",53),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",17),K(2,"close"),E(),E()}}function Cle(e,a){1&e&&me(0,"mat-header-cell")}function wle(e,a){1&e&&(A(0,"i",17),K(1,"check_box"),E())}function Sle(e,a){1&e&&(A(0,"i",17),K(1,"check_box_outline_blank"),E())}function kle(e,a){if(1&e){var t=De();A(0,"mat-cell",56),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)}),re(1,wle,2,0,"i",57),re(2,Sle,2,0,"ng-template",null,58,ml),E()}if(2&e){var n=a.$implicit,l=Nn(3),c=J(2);H(1),U("ngIf",c.selection.isSelected(n))("ngIfElse",l)}}function Mle(e,a){1&e&&(vt(0,54),re(1,Cle,1,0,"mat-header-cell",22),re(2,kle,4,2,"mat-cell",55),xn())}function xle(e,a){1&e&&me(0,"mat-header-cell")}function Tle(e,a){if(1&e){var t=De();A(0,"mat-cell"),A(1,"div",59),ne("click",function(l){var h=pe(t).$implicit,_=J();return _.detailAction.emit({param:h,table:_}),l.stopPropagation()}),A(2,"i",17),K(3,"subdirectory_arrow_right"),E(),E(),E()}}function Dle(e,a){if(1&e&&(A(0,"mat-header-cell",63),K(1),E()),2&e){var t=J().$implicit;H(1),Pn(t.title)}}function Ale(e,a){if(1&e){var t=De();A(0,"mat-cell",64),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)})("contextmenu",function(_){var k=pe(t).$implicit,D=J().$implicit;return J().onContextMenu(k,D,_)}),me(1,"div",65),E()}if(2&e){var n=a.$implicit,l=J().$implicit,c=J();H(1),U("innerHtml",c.getRowColumn(n,l),Si)}}function Ele(e,a){1&e&&(vt(0,60),re(1,Dle,2,1,"mat-header-cell",61),re(2,Ale,2,1,"mat-cell",62),xn()),2&e&&il("matColumnDef",a.$implicit.name)}function Ple(e,a){1&e&&me(0,"mat-header-row")}function Ole(e,a){if(1&e&&me(0,"mat-row",66),2&e){var t=a.$implicit;U("ngClass",J().rowClass(t))}}function Ile(e,a){if(1&e&&(A(0,"div",67),K(1),A(2,"uds-translate"),K(3,"Selected items"),E(),E()),2&e){var t=J();H(1),ze(" ",t.selection.selected.length," ")}}function Rle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).copyToClipboard()}),A(1,"i",72),K(2,"content_copy"),E(),A(3,"uds-translate"),K(4,"Copy"),E(),E()}}function Lle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J().item,c=J();return c.detailAction.emit({param:l,table:c})}),A(1,"i",72),K(2,"subdirectory_arrow_right"),E(),A(3,"uds-translate"),K(4,"Detail"),E(),E()}}function Fle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.editAction)}),A(1,"i",72),K(2,"edit"),E(),A(3,"uds-translate"),K(4,"Edit"),E(),E()}}function Nle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).permissions()}),A(1,"i",72),K(2,"perm_identity"),E(),A(3,"uds-translate"),K(4,"Permissions"),E(),E()}}function Vle(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;U("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function Ble(e,a){if(1&e){var t=De();A(0,"button",74),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.deleteAction)}),A(1,"i",72),K(2,"delete_forever"),E(),A(3,"uds-translate"),K(4,"Delete"),E(),E()}}function Hle(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(3).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;U("disabled",J(3).isCustomDisabled(n))("innerHTML",n.html,Si)}}function zle(e,a){if(1&e&&(vt(0),me(1,"mat-divider"),re(2,Hle,1,2,"button",69),xn()),2&e){var t=J(2);H(2),U("ngForOf",t.getCustomAccelerators())}}function Ule(e,a){if(1&e&&(re(0,Rle,5,0,"button",68),re(1,Lle,5,0,"button",68),re(2,Fle,5,0,"button",68),re(3,Nle,5,0,"button",68),re(4,Vle,1,2,"button",69),re(5,Ble,5,0,"button",70),re(6,zle,3,1,"ng-container",8)),2&e){var t=J();U("ngIf",!0===t.allowCopy),H(1),U("ngIf",t.detailAction.observers.length>0),H(1),U("ngIf",t.editAction.observers.length>0),H(1),U("ngIf",!0===t.hasPermissions),H(1),U("ngForOf",t.getCustomMenu()),H(1),U("ngIf",t.deleteAction.observers.length>0),H(1),U("ngIf",t.hasAccelerators)}}var Gle=function(){return[5,10,25,100,1e3]},Yr=function(){function e(a,t){this.api=a,this.clipboard=t,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new ye,this.rowSelected=new ye,this.newAction=new ye,this.editAction=new ye,this.deleteAction=new ye,this.customButtonAction=new ye,this.detailAction=new ye,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new yee([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return e.prototype.ngOnInit=function(){var a=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(n,l){if(!(l in n))return"";var c=n[l];return"number"==typeof c?c:"string"==typeof c?c.toLocaleLowerCase():(null===c&&(c=7226578800),c.changingThisBreaksApplicationSecurity&&(c=c.changingThisBreaksApplicationSecurity),(""+c).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(n,l){try{a.columns.forEach(function(c){if((""+n[c.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(l))throw Error()})}catch(c){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new ip(!0===this.multiSelect,[]);var t=this.rest.permision();0==(t&$S.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),t!==$S.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(n){a.rest.tableInfo().subscribe(function(l){a.initialize(l,n)})})},e.prototype.initialize=function(a,t){var n=this;this.oTypes=t,this.types=new Map,this.grpTypes=new Map,t.forEach(function(c){n.types.set(c.type,c),void 0!==c.group&&(n.grpTypes.has(c.group)||n.grpTypes.set(c.group,[]),n.grpTypes.get(c.group).push(c))}),this.rowStyleInfo=void 0!==a["row-style"]&&void 0!==a["row-style"].field?a["row-style"]:null,this.title=a.title,this.subtitle=a.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var l=[];a.fields.forEach(function(c){for(var h in c)if(c.hasOwnProperty(h)){var _=c[h];l.push({name:h,title:_.title,type:void 0===_.type?Aa.ALPHANUMERIC:_.type,dict:_.dict}),(void 0===_.visible||_.visible)&&n.displayedColumns.push(h)}}),this.columns=l,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},e.prototype.overview=function(){var a=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(t){a.loading=!1,void 0!==a.onItem&&t.forEach(function(n){a.onItem(n)}),a.dataSource.data=t,a.loaded.emit({param:a.firstLoad,table:a}),a.firstLoad=!1},function(t){a.loading=!1}))},e.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ONLY_MENU&&a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type===Jr.ACCELERATOR}):[]},e.prototype.getRowColumn=function(a,t){var n=a[t.name];switch(t.type){case Aa.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case Aa.DATE:n=Ru("SHORT_DATE_FORMAT",n);break;case Aa.DATETIME:n=Ru("SHORT_DATETIME_FORMAT",n);break;case Aa.TIME:n=Ru("TIME_FORMAT",n);break;case Aa.DATETIMESEC:n=Ru("SHORT_DATE_FORMAT",n," H:i:s");break;case Aa.ICON:try{n=this.api.gui.icon(this.types.get(a.type).icon)+n}catch(l){}return this.api.safeString(n);case Aa.CALLBACK:break;case Aa.DICTIONARY:try{n=t.dict[n]}catch(l){n=""}}return n},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage(this.tableId+"sort-column",a.active),this.api.putOnStorage(this.tableId+"sort-direction",a.direction)},e.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},e.prototype.rowClass=function(a){var t=[];return this.selection.isSelected(a)&&t.push("selected"),null!==this.rowStyleInfo&&t.push(this.rowStyleInfo.prefix+a[this.rowStyleInfo.field]),t},e.prototype.emitIfSelection=function(a,t){void 0===t&&(t=!1);var n=this.selection.selected.length;n>0&&(!0===t||1===n)&&a.emit({table:this,param:n})},e.prototype.isCustomDisabled=function(a){switch(a.type){case void 0:case Jr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===a.disabled;case Jr.MULTI_SELECT:return this.selection.isEmpty()||!0===a.disabled;default:return!1}},e.prototype.emitCustom=function(a){!this.selection.selected.length&&a.type!==Jr.ALWAYS||(a.type===Jr.ACCELERATOR?this.api.navigation.goto(a.id,this.selection.selected[0],a.acceleratorProperties):this.customButtonAction.emit({param:a,table:this}))},e.prototype.clickRow=function(a,t){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-t.x)<16&&Math.abs(this.lastClickInfo.y-t.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(a),void(this.detailAction.observers.length?this.detailAction.emit({param:a,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:t.x,y:t.y},this.doSelect(a,t)},e.prototype.doSelect=function(a,t){if(t.ctrlKey)this.lastSel=a,this.selection.toggle(a);else if(t.shiftKey){if(this.selection.isEmpty())this.selection.toggle(a);else if(this.selection.clear(),this.lastSel!==a)for(var n=!1,c=0,h=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);c/,"")),this.clipValue=""+l,this.hasActions&&(this.selection.clear(),this.selection.select(a),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:a},this.contextMenu.openMenu())},e.prototype.selectElement=function(a,t){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(c,h){if(c[a]===t){var _=Math.floor(h/n.paginator.pageSize);n.selection.select(c),n.paginator.pageIndex=_,n.paginator.page.next({pageIndex:_,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},e.prototype.export=function(){Tee(this)},e.prototype.permissions=function(){!this.selection.selected.length||Pse.launch(this.api,this.rest,this.selection.selected[0])},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(Dee))},e.\u0275cmp=ke({type:e,selectors:[["uds-table"]],viewQuery:function(t,n){if(1&t&&(wt(ile,7),wt(G5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.contextMenu=l.first),Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,n){if(1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),re(3,ale,1,1,"img",3),K(4),E(),A(5,"div",4),K(6),E(),E(),A(7,"div",5),A(8,"div",6),A(9,"div",7),re(10,hle,3,2,"ng-container",8),re(11,ple,7,1,"ng-container",8),re(12,vle,7,1,"ng-container",8),re(13,mle,2,1,"ng-container",8),re(14,_le,7,0,"ng-container",8),re(15,yle,7,1,"ng-container",8),E(),A(16,"div",9),A(17,"div",10),A(18,"uds-translate"),K(19,"Filter"),E(),K(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",11),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(h){return n.filterText=h}),E(),re(23,ble,3,0,"button",12),E(),E(),A(24,"div",13),me(25,"mat-paginator",14),E(),A(26,"div",15),A(27,"a",16),ne("click",function(){return n.overview()}),A(28,"i",17),K(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(h){return n.keyDown(h)}),A(31,"mat-table",19),ne("matSortChange",function(h){return n.sortChanged(h)}),re(32,Mle,3,0,"ng-container",20),vt(33,21),re(34,xle,1,0,"mat-header-cell",22),re(35,Tle,4,0,"mat-cell",23),xn(),re(36,Ele,3,1,"ng-container",24),re(37,Ple,1,0,"mat-header-row",25),re(38,Ole,1,1,"mat-row",26),E(),A(39,"div",27),A(40,"div",28),me(41,"mat-progress-spinner",29),E(),E(),E(),A(42,"div",30),K(43," \xa0 "),re(44,Ile,4,1,"div",31),E(),E(),me(45,"div",32,33),A(47,"mat-menu",null,34),re(49,Ule,7,7,"ng-template",35),E(),E()),2&t){var l=Nn(48);H(3),U("ngIf",void 0!==n.icon),H(1),ze(" ",n.title," "),H(2),ze(" ",n.subtitle," "),H(4),U("ngIf",n.newAction.observers.length>0),H(1),U("ngIf",n.editAction.observers.length>0),H(1),U("ngIf",!0===n.hasPermissions),H(1),U("ngIf",n.hasCustomButtons),H(1),U("ngIf",!0===n.allowExport),H(1),U("ngIf",n.deleteAction.observers.length>0),H(7),U("ngModel",n.filterText),H(1),U("ngIf",n.filterText),H(2),U("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(27,Gle))("showFirstLastButtons",!0),H(6),U("dataSource",n.dataSource),H(1),U("ngIf",n.hasButtons),H(4),U("ngForOf",n.columns),H(1),U("matHeaderRowDef",n.displayedColumns),H(1),U("matRowDefColumns",n.displayedColumns),H(1),U("hidden",!n.loading),H(5),U("ngIf",n.hasButtons&&n.selection.selected.length>0),H(1),zr("left",n.contextMenuPosition.x)("top",n.contextMenuPosition.y),U("matMenuTriggerFor",l)}},directives:[Kt,Hn,Mr,aa,g,xt,kr,G5,mp,tX,DP,nH,tH,eH,ar,nX,rX,Pee,Hee,Lee,Zse,PP,In,rk,rH,iH,hee,iX,aX,Ts,tle],pipes:[ID,rle],styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em} .dark-theme .mat-paginator-container{background-color:#303030} .dark-theme .buttons .mat-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}']}),e}(),Uee='pause'+django.gettext("Maintenance")+"",jle='pause'+django.gettext("Exit maintenance mode")+"",Wle='pause'+django.gettext("Enter maintenance mode")+"",Gee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"maintenance",html:Uee,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New provider"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit provider"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete provider"))},e.prototype.onMaintenance=function(a){var t=this,n=a.table.selection.selected[0],l=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,l).subscribe(function(c){c&&t.rest.providers.maintenance(n.id).subscribe(function(){a.table.overview()})})},e.prototype.onRowSelect=function(a){var t=a.table;this.customButtons[0].html=t.selection.selected.length>1||0===t.selection.selected.length?Uee:t.selection.selected[0].maintenance_mode?jle:Wle},e.prototype.onDetail=function(a){this.api.navigation.gotoService(a.param.id)},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onMaintenance(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("rowSelected",function(c){return n.onRowSelect(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&U("rest",n.rest.providers)("onItem",n.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-services_count, .mat-column-user_services_count, .mat-column-maintenance_state{max-width:7rem;justify-content:center}"]}),e}(),Mb=function(){function e(a,t,n,l){this.title=a,this.data=t,this.columns=n,this.id=l,this.columnsDefinition=Array.from(n,function(c){var h={};return h[c.field]={visible:!0,title:c.title,type:void 0===c.type?Aa.ALPHANUMERIC:c.type},h})}return e.prototype.get=function(a){return Ar},e.prototype.getLogs=function(a){return Ar},e.prototype.overview=function(a){return"function"==typeof this.data?this.data():ut([])},e.prototype.summary=function(a){return this.overview()},e.prototype.put=function(a,t){return Ar},e.prototype.create=function(a){return Ar},e.prototype.save=function(a,t){return Ar},e.prototype.test=function(a,t){return Ar},e.prototype.delete=function(a){return Ar},e.prototype.permision=function(){return $S.ALL},e.prototype.getPermissions=function(a){return Ar},e.prototype.addPermission=function(a,t,n,l){return Ar},e.prototype.revokePermission=function(a){return Ar},e.prototype.types=function(){return ut([])},e.prototype.gui=function(a){return Ar},e.prototype.callback=function(a,t){return Ar},e.prototype.tableInfo=function(){return ut({fields:this.columnsDefinition,title:this.title})},e.prototype.detail=function(a,t){return null},e.prototype.invoke=function(a,t){return Ar},e}();function Yle(e,a){if(1&e){var t=De();A(0,"button",24),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",8),K(2,"close"),E(),E()}}function qle(e,a){if(1&e&&(A(0,"mat-header-cell",28),K(1),E()),2&e){var t=J().$implicit;H(1),Pn(t)}}function Xle(e,a){if(1&e&&(A(0,"mat-cell"),me(1,"div",29),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J();H(1),U("innerHtml",l.getRowColumn(t,n),Si)}}function Zle(e,a){1&e&&(vt(0,25),re(1,qle,2,1,"mat-header-cell",26),re(2,Xle,2,1,"mat-cell",27),xn()),2&e&&U("matColumnDef",a.$implicit)}function Kle(e,a){1&e&&me(0,"mat-header-row")}function Qle(e,a){if(1&e&&me(0,"mat-row",30),2&e){var t=a.$implicit;U("ngClass",J().rowClass(t))}}var $le=function(){return[5,10,25,100,1e3]},ck=function(){function e(a){this.api=a,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new yee([]),this.selection=new ip}return e.prototype.ngOnInit=function(){var a=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(t){a.columns.push({name:t,title:t,type:"date"===t?Aa.DATETIMESEC:Aa.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},e.prototype.overview=function(){var a=this;this.rest.getLogs(this.itemId).subscribe(function(t){a.dataSource.data=t})},e.prototype.selectElement=function(a,t){},e.prototype.getRowColumn=function(a,t){var n=a[t];return"date"===t?n=Ru("SHORT_DATE_FORMAT",n," H:i:s"):"level"===t&&(n=function(e){return{1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[e]||"OTHER"}(n)),n},e.prototype.rowClass=function(a){return["level-"+a.level]},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage("logs-sort-column",a.active),this.api.putOnStorage("logs-sort-direction",a.direction)},e.prototype.export=function(){Tee(this)},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-logs-table"]],viewQuery:function(t,n){if(1&t&&(wt(G5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),me(3,"img",3),K(4," \xa0"),A(5,"uds-translate"),K(6,"Logs"),E(),E(),E(),A(7,"div",4),A(8,"div",5),A(9,"div",6),A(10,"a",7),ne("click",function(){return n.export()}),A(11,"i",8),K(12,"import_export"),E(),A(13,"span",9),A(14,"uds-translate"),K(15,"Export"),E(),E(),E(),E(),A(16,"div",10),A(17,"div",11),A(18,"uds-translate"),K(19,"Filter"),E(),K(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",12),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(c){return n.filterText=c}),E(),re(23,Yle,3,0,"button",13),E(),E(),A(24,"div",14),me(25,"mat-paginator",15),E(),A(26,"div",16),A(27,"a",17),ne("click",function(){return n.overview()}),A(28,"i",8),K(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(c){return n.keyDown(c)}),A(31,"mat-table",19),ne("matSortChange",function(c){return n.sortChanged(c)}),re(32,Zle,3,1,"ng-container",20),re(33,Kle,1,0,"mat-header-row",21),re(34,Qle,1,1,"mat-row",22),E(),E(),me(35,"div",23),E(),E()),2&t&&(H(3),U("src",n.api.staticURL("admin/img/icons/logs.png"),Gt),H(19),U("ngModel",n.filterText),H(1),U("ngIf",n.filterText),H(2),U("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(11,$le))("showFirstLastButtons",!0),H(6),U("dataSource",n.dataSource),H(1),U("ngForOf",n.displayedColumns),H(1),U("matHeaderRowDef",n.displayedColumns),H(1),U("matRowDefColumns",n.displayedColumns))},directives:[Hn,mp,Mr,aa,g,xt,kr,Kt,G5,tX,DP,ar,nX,rX,In,rk,nH,tH,eH,rH,hee,iH,iX,aX,Ts],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),e}();function Jle(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services pools"),E())}function eue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}var tue=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],nue=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.customButtons=[Il.getGotoButton(Fq,"id")],this.services=l.services,this.service=l.service}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:n,services:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.servicePools=new Mb(django.gettext("Service pools"),function(){return a.services.invoke(a.service.id+"/servicesPools")},tue,this.service.id+"infopsls")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),A(6,"mat-tab"),re(7,Jle,2,0,"ng-template",1),me(8,"uds-table",2),E(),A(9,"mat-tab"),re(10,eue,2,0,"ng-template",1),A(11,"div",3),me(12,"uds-logs-table",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),K(16,"Ok"),E(),E(),E()),2&t&&(H(3),ze(" ",n.service.name,"\n"),H(5),U("rest",n.servicePools)("customButtons",n.customButtons)("pageSize",6),H(4),U("rest",n.services)("itemId",n.service.id)("tableId","serviceInfo-d-log"+n.service.id)("pageSize",5))},directives:[jr,Hn,Fr,Nc,Iu,Fc,Yr,ck,$r,In,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),e}();function rue(e,a){if(1&e&&(A(0,"div",3),me(1,"div",4),me(2,"div",5),E()),2&e){var t=a.$implicit;H(1),U("innerHTML",t.gui.label,Si),H(1),U("innerHTML",t.value,Si)}}var sH=function(){function e(a){this.api=a,this.displayables=null}return e.prototype.ngOnInit=function(){this.processFields()},e.prototype.processFields=function(){var a=this;if(!this.gui||!this.value)return[];var t=this.gui.filter(function(n){return n.gui.type!==Pl.HIDDEN});t.forEach(function(n){var l=a.value[n.name];switch(n.gui.type){case Pl.CHECKBOX:n.value=l?django.gettext("Yes"):django.gettext("No");break;case Pl.PASSWORD:n.value=django.gettext("(hidden)");break;case Pl.CHOICE:var c=M5.locateChoice(l,n);n.value=c.text;break;case Pl.MULTI_CHOICE:n.value=django.gettext("Selected items :")+l.length;break;case Pl.IMAGECHOICE:c=M5.locateChoice(l,n),n.value=a.api.safeString(a.api.gui.icon(c.img)+" "+c.text);break;default:n.value=l}(""===n.value||null==n.value)&&(n.value="(empty)")}),this.displayables=t},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),re(2,rue,3,2,"div",2),E(),me(3,"div"),E()),2&t&&(H(2),U("ngForOf",n.displayables))},directives:[ar],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:bold;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),e}();function iue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function aue(e,a){if(1&e&&me(0,"uds-information",15),2&e){var t=J(2);U("value",t.provider)("gui",t.gui)}}function oue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services"),E())}function sue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Usage"),E())}function lue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function uue(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,iue,2,0,"ng-template",9),A(5,"div",10),re(6,aue,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,oue,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewService(c)})("editAction",function(c){return pe(t),J().onEditService(c)})("deleteAction",function(c){return pe(t),J().onDeleteService(c)})("customButtonAction",function(c){return pe(t),J().onInformation(c)})("loaded",function(c){return pe(t),J().onLoad(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,sue,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,lue,2,0,"ng-template",9),A(17,"div",10),me(18,"uds-logs-table",14),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),U("ngIf",n.provider&&n.gui),H(4),U("rest",n.services)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-services"+n.provider.id),H(4),U("rest",n.usage)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-usage"+n.provider.id),H(4),U("rest",n.services.parentModel)("itemId",n.provider.id)("tableId","providers-d-log"+n.provider.id)}}var cue=function(e){return["/providers",e]},jee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.provider=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).subscribe(function(n){a.provider=n,a.services.parentModel.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onInformation=function(a){nue.launch(this.api,this.services,a.table.selection.selected[0])},e.prototype.onNewService=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New service"),!1)},e.prototype.onEditService=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit service"),!1)},e.prototype.onDeleteService=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service"))},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user service"))},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("service");if(void 0!==t){this.selectedTab=1;var n=a.table;n.dataSource.data.forEach(function(l){l.id===t&&n.selection.select(l)})}}},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,uue,19,17,"div",5),E()),2&t&&(H(2),U("routerLink",vl(4,cue,n.services.parentId)),H(4),U("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(1),ze(" \xa0",null==n.provider?null:n.provider.name," "),H(1),U("ngIf",null!==n.provider))},directives:[xl,Kt,Nc,Iu,Fc,Yr,ck,Hn,sH],styles:[""]}),e}(),Wee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},e.prototype.onDetail=function(a){this.api.navigation.gotoAuthenticatorDetail(a.param.id)},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Authenticator"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Authenticator"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Authenticator"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible)},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),fue=["panel"];function due(e,a){if(1&e&&(A(0,"div",0,1),Wt(2),E()),2&e){var t=a.id,n=J();U("id",n.id)("ngClass",n._classList),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}var hue=["*"],pue=0,vue=function e(a,t){F(this,e),this.source=a,this.option=t},gue=El(function(){return function e(){F(this,e)}}()),Yee=new Ee("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),_ue=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this))._changeDetectorRef=l,C._elementRef=c,C._activeOptionChanges=Ve.EMPTY,C.showPanel=!1,C._isOpen=!1,C.displayWith=null,C.optionSelected=new ye,C.opened=new ye,C.closed=new ye,C.optionActivated=new ye,C._classList={},C.id="mat-autocomplete-".concat(pue++),C.inertGroups=(null==_?void 0:_.SAFARI)||!1,C._autoActiveFirstOption=!!h.autoActiveFirstOption,C}return W(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(c){this._autoActiveFirstOption=it(c)}},{key:"classList",set:function(c){this._classList=c&&c.length?G3(c).reduce(function(h,_){return h[_]=!0,h},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new wE(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(h){c.optionActivated.emit({source:c,option:c.options.toArray()[h]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(c){this.panel&&(this.panel.nativeElement.scrollTop=c)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(c){var h=new vue(this,c);this.optionSelected.emit(h)}},{key:"_getPanelAriaLabelledby",value:function(c){return this.ariaLabel?null:this.ariaLabelledby?(c?c+" ":"")+this.ariaLabelledby:c}},{key:"_setVisibilityClasses",value:function(c){c[this._visibleClass]=this.showPanel,c[this._hiddenClass]=!this.showPanel}}]),n}(gue);return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Ue),N(Yee),N(en))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Xn,7),wt(fue,5)),2&t&&(Ne(l=Le())&&(n.template=l.first),Ne(l=Le())&&(n.panel=l.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Pe]}),e}(),qee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",l._hiddenClass="mat-autocomplete-hidden",l}return n}(_ue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,GS,5),Zt(l,Bi,5)),2&t&&(Ne(c=Le())&&(n.optionGroups=c),Ne(c=Le())&&(n.options=c))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Xe([{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:hue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,n){1&t&&(nr(),re(0,due,3,4,"ng-template"))},directives:[Ts],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),e}(),Xee=new Ee("mat-autocomplete-scroll-strategy"),Cue={provide:Xee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},wue={provide:s,useExisting:Sn(function(){return uX}),multi:!0},Sue=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){var G=this;F(this,a),this._element=t,this._overlay=n,this._viewContainerRef=l,this._zone=c,this._changeDetectorRef=h,this._dir=C,this._formField=k,this._document=D,this._viewportRuler=I,this._defaults=L,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ve.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,this._windowBlurHandler=function(){G._canOpenOnNextFocus=G._document.activeElement!==G._element.nativeElement||G.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Ly(function(){return G.autocomplete&&G.autocomplete.options?ot.apply(void 0,At(G.autocomplete.options.map(function(Y){return Y.onSelectionChange}))):G._zone.onStable.pipe(or(1),xa(function(){return G.optionSelections}))}),this._scrollStrategy=_}return W(a,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(n){this._autocompleteDisabled=it(n)}},{key:"ngAfterViewInit",value:function(){var n=this,l=this._getWindow();void 0!==l&&this._zone.runOutsideAngular(function(){return l.addEventListener("blur",n._windowBlurHandler)})}},{key:"ngOnChanges",value:function(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var n=this._getWindow();void 0!==n&&n.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var n=this;return ot(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(vr(function(){return n._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(vr(function(){return n._overlayAttached})):ut()).pipe(Be(function(l){return l instanceof d5?l:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var n=this;return ot(Tl(this._document,"click"),Tl(this._document,"auxclick"),Tl(this._document,"touchend")).pipe(vr(function(l){var c=rp(l),h=n._formField?n._formField._elementRef.nativeElement:null,_=n.connectedTo?n.connectedTo.elementRef.nativeElement:null;return n._overlayAttached&&c!==n._element.nativeElement&&(!h||!h.contains(c))&&(!_||!_.contains(c))&&!!n._overlayRef&&!n._overlayRef.overlayElement.contains(c)}))}},{key:"writeValue",value:function(n){var l=this;Promise.resolve(null).then(function(){return l._setTriggerValue(n)})}},{key:"registerOnChange",value:function(n){this._onChange=n}},{key:"registerOnTouched",value:function(n){this._onTouched=n}},{key:"setDisabledState",value:function(n){this._element.nativeElement.disabled=n}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;if(27===l&&!Vi(n)&&n.preventDefault(),this.activeOption&&13===l&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){var c=this.autocomplete._keyManager.activeItem,h=38===l||40===l;this.panelOpen||9===l?this.autocomplete._keyManager.onKeydown(n):h&&this._canOpen()&&this.openPanel(),(h||this.autocomplete._keyManager.activeItem!==c)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(n){var l=n.target,c=l.value;"number"===l.type&&(c=""==c?null:parseFloat(c)),this._previousValue!==c&&(this._previousValue=c,this._onChange(c),this._canOpen()&&this._document.activeElement===n.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(n?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var n=this;return ot(this._zone.onStable.pipe(or(1)),this.autocomplete.options.changes.pipe(Ya(function(){return n._positionStrategy.reapplyLastPosition()}),aH(0))).pipe(xa(function(){var h=n.panelOpen;return n._resetActiveItem(),n.autocomplete._setVisibility(),n.panelOpen&&(n._overlayRef.updatePosition(),h!==n.panelOpen&&n.autocomplete.opened.emit()),n.panelClosingActions}),or(1)).subscribe(function(h){return n._setValueAndClose(h)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(n){var l=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n,c=null!=l?l:"";this._formField?this._formField._control.value=c:this._element.nativeElement.value=c,this._previousValue=c}},{key:"_setValueAndClose",value:function(n){n&&n.source&&(this._clearPreviousSelectedOption(n.source),this._setTriggerValue(n.source.value),this._onChange(n.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(n.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(n){this.autocomplete.options.forEach(function(l){l!==n&&l.selected&&l.deselect()})}},{key:"_attachOverlay",value:function(){var l,n=this,c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new Ps(this.autocomplete.template,this._viewContainerRef,{id:null===(l=this._formField)||void 0===l?void 0:l.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,c.keydownEvents().subscribe(function(_){(27===_.keyCode&&!Vi(_)||38===_.keyCode&&Vi(_,"altKey"))&&(n._resetActiveItem(),n._closeKeyEventStream.next(),_.stopPropagation(),_.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){n.panelOpen&&c&&c.updateSize({width:n._getPanelWidth()})})),c&&!c.hasAttached()&&(c.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var h=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&h!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var n;return new up({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(n=this._defaults)||void 0===n?void 0:n.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}},{key:"_setStrategyPositions",value:function(n){var _,l=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass,h=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?h:"below"===this.position?l:[].concat(l,h),n.withPositions(_)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var n=this.autocomplete;n.autoActiveFirstOption?n._keyManager.setFirstItemActive():n._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var n=this._element.nativeElement;return!n.readOnly&&!n.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var n;return(null===(n=this._document)||void 0===n?void 0:n.defaultView)||window}},{key:"_scrollToOption",value:function(n){var l=this.autocomplete,c=jS(n,l.options,l.optionGroups);if(0===n&&1===c)l._setScrollTop(0);else if(l.panel){var h=l.options.toArray()[n];if(h){var _=h._getHostElement(),C=Cb(_.offsetTop,_.offsetHeight,l._getScrollTop(),l.panel.nativeElement.offsetHeight);l._setScrollTop(C)}}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N(Qn),N(ft),N(Vt),N(Xee),N(Sr,8),N(ik,9),N(lt,8),N(yo),N(Yee,8))},e.\u0275dir=ve({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[an]}),e}(),uX=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",l}return n}(Sue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,n){1&t&&ne("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(c){return n._handleInput(c)})("keydown",function(c){return n._handleKeydown(c)}),2&t&&Ke("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",!n.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[Xe([wue]),Pe]}),e}(),kue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Cue],imports:[[fp,WS,Qt,Wa],lp,WS,Qt]}),e}();function Mue(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),K(2,"Edit user"),E(),K(3),E()),2&e){var t=J();H(3),ze(" ",t.user.name," ")}}function xue(e,a){1&e&&(A(0,"uds-translate"),K(1,"New user"),E())}function Tue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",19),ne("ngModelChange",function(c){return pe(t),J().user.name=c}),E(),E()}if(2&e){var n=J();H(2),ze(" ",n.authenticator.type_info.userNameLabel," "),H(1),U("ngModel",n.user.name)("disabled",n.user.id)}}function Due(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function Aue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",20),ne("ngModelChange",function(h){return pe(t),J().user.name=h})("input",function(h){return pe(t),J().filterUser(h)}),E(),A(4,"mat-autocomplete",null,21),re(6,Due,2,3,"mat-option",16),E(),E()}if(2&e){var n=Nn(5),l=J();H(2),ze(" ",l.authenticator.type_info.userNameLabel," "),H(1),U("ngModel",l.user.name)("matAutocomplete",n),H(3),U("ngForOf",l.users)}}function Eue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",23),ne("ngModelChange",function(c){return pe(t),J().user.password=c}),E(),E()}if(2&e){var n=J();H(2),ze(" ",n.authenticator.type_info.passwordLabel," "),H(1),U("ngModel",n.user.password)}}function Pue(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}var Zee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.users=[],this.authenticator=l.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==l.user&&(this.user.id=l.user.id,this.user.name=l.user.name)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,user:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(t){a.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(t){a.user=t,a.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},function(t){a.dialogRef.close()})},e.prototype.roleChanged=function(a){this.user.is_admin="admin"===a,this.user.staff_member="admin"===a||"staff"===a},e.prototype.filterUser=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"user",a.target.value,100).subscribe(function(l){t.users.length=0,l.forEach(function(c){t.users.push(c)})})},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Mue,4,1,"div",1),re(2,xue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Tue,4,3,"mat-form-field",4),re(7,Aue,7,4,"mat-form-field",4),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),K(11,"Real name"),E(),E(),A(12,"input",5),ne("ngModelChange",function(h){return n.user.real_name=h}),E(),E(),A(13,"mat-form-field"),A(14,"mat-label"),A(15,"uds-translate"),K(16,"Comments"),E(),E(),A(17,"input",6),ne("ngModelChange",function(h){return n.user.comments=h}),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),K(21,"State"),E(),E(),A(22,"mat-select",7),ne("ngModelChange",function(h){return n.user.state=h}),A(23,"mat-option",8),A(24,"uds-translate"),K(25,"Enabled"),E(),E(),A(26,"mat-option",9),A(27,"uds-translate"),K(28,"Disabled"),E(),E(),A(29,"mat-option",10),A(30,"uds-translate"),K(31,"Blocked"),E(),E(),E(),E(),A(32,"mat-form-field"),A(33,"mat-label"),A(34,"uds-translate"),K(35,"Role"),E(),E(),A(36,"mat-select",11),ne("ngModelChange",function(h){return n.user.role=h})("valueChange",function(h){return n.roleChanged(h)}),A(37,"mat-option",12),A(38,"uds-translate"),K(39,"Admin"),E(),E(),A(40,"mat-option",13),A(41,"uds-translate"),K(42,"Staff member"),E(),E(),A(43,"mat-option",14),A(44,"uds-translate"),K(45,"User"),E(),E(),E(),E(),re(46,Eue,4,2,"mat-form-field",4),A(47,"mat-form-field"),A(48,"mat-label"),A(49,"uds-translate"),K(50,"Groups"),E(),E(),A(51,"mat-select",15),ne("ngModelChange",function(h){return n.user.groups=h}),re(52,Pue,2,2,"mat-option",16),E(),E(),E(),E(),A(53,"mat-dialog-actions"),A(54,"button",17),A(55,"uds-translate"),K(56,"Cancel"),E(),E(),A(57,"button",18),ne("click",function(){return n.save()}),A(58,"uds-translate"),K(59,"Ok"),E(),E(),E()),2&t){var l=Nn(3);H(1),U("ngIf",n.user.id)("ngIfElse",l),H(5),U("ngIf",!1===n.authenticator.type_info.canSearchUsers||n.user.id),H(1),U("ngIf",!0===n.authenticator.type_info.canSearchUsers&&!n.user.id),H(5),U("ngModel",n.user.real_name),H(5),U("ngModel",n.user.comments),H(5),U("ngModel",n.user.state),H(14),U("ngModel",n.user.role),H(10),U("ngIf",n.authenticator.type_info.needsPassword),H(5),U("ngModel",n.user.groups),H(1),U("ngForOf",n.groups)}},directives:[jr,Kt,Fr,Mr,Wr,Hn,aa,g,xt,kr,Qa,Bi,ar,$r,In,Lr,uX,qee],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Oue=["thumbContainer"],Iue=["toggleBar"],Rue=["input"],Lue=function(a){return{enterDuration:a}},Fue=["*"],Nue=new Ee("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),Vue=0,Bue={provide:s,useExisting:Sn(function(){return fk}),multi:!0},Hue=function e(a,t){F(this,e),this.source=a,this.checked=t},zue=gp(Eu(El(ra(function(){return function e(a){F(this,e),this._elementRef=a}}())))),fk=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._focusMonitor=c,D._changeDetectorRef=h,D.defaults=C,D._onChange=function(I){},D._onTouched=function(){},D._uniqueId="mat-slide-toggle-".concat(++Vue),D._required=!1,D._checked=!1,D.name=null,D.id=D._uniqueId,D.labelPosition="after",D.ariaLabel=null,D.ariaLabelledby=null,D.change=new ye,D.toggleChange=new ye,D.tabIndex=parseInt(_)||0,D.color=D.defaultColor=C.color||"accent",D._noopAnimations="NoopAnimations"===k,D}return W(n,[{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"checked",get:function(){return this._checked},set:function(c){this._checked=it(c),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){"keyboard"===h||"program"===h?c._inputElement.nativeElement.focus():h||Promise.resolve().then(function(){return c._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(c){c.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(c){c.stopPropagation()}},{key:"writeValue",value:function(c){this.checked=!!c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(c,h){h?this._focusMonitor.focusVia(this._inputElement,h,c):this._inputElement.nativeElement.focus(c)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new Hue(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(zue);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(na),N(Vt),Ci("tabindex"),N(Nue),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,n){var l;1&t&&(wt(Oue,5),wt(Iue,5),wt(Rue,5)),2&t&&(Ne(l=Le())&&(n._thumbEl=l.first),Ne(l=Le())&&(n._thumbBarEl=l.first),Ne(l=Le())&&(n._inputElement=l.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,n){2&t&&(Xi("id",n.id),Ke("tabindex",n.disabled?null:-1)("aria-label",null)("aria-labelledby",null),dt("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Xe([Bue]),Pe],ngContentSelectors:Fue,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,n){if(1&t&&(nr(),A(0,"label",0,1),A(2,"div",2,3),A(4,"input",4,5),ne("change",function(_){return n._onChangeEvent(_)})("click",function(_){return n._onInputClick(_)}),E(),A(6,"div",6,7),me(8,"div",8),A(9,"div",9),me(10,"div",10),E(),E(),E(),A(11,"span",11,12),ne("cdkObserveContent",function(){return n._onLabelTextChange()}),A(13,"span",13),K(14,"\xa0"),E(),Wt(15),E(),E()),2&t){var l=Nn(1),c=Nn(12);Ke("for",n.inputId),H(2),dt("mat-slide-toggle-bar-no-side-margin",!c.textContent||!c.textContent.trim()),H(2),U("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),Ke("name",n.name)("aria-checked",n.checked.toString())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),H(5),U("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",vl(18,Lue,n._noopAnimations?0:150))}},directives:[Ls,nb],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e}(),Uue={provide:b,useExisting:Sn(function(){return Kee}),multi:!0},Kee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(R5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Xe([Uue]),Pe]}),e}(),Qee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Gue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qee,Da,Qt,ld],Qee,Qt]}),e}();function jue(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),K(2,"Edit group"),E(),K(3),E()),2&e){var t=J();H(3),ze(" ",t.group.name," ")}}function Wue(e,a){1&e&&(A(0,"uds-translate"),K(1,"New group"),E())}function Yue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",13),ne("ngModelChange",function(c){return pe(t),J(2).group.name=c}),E(),E()}if(2&e){var n=J(2);H(2),ze(" ",n.authenticator.type_info.groupNameLabel," "),H(1),U("ngModel",n.group.name)("disabled",n.group.id)}}function que(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function Xue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",14),ne("ngModelChange",function(h){return pe(t),J(2).group.name=h})("input",function(h){return pe(t),J(2).filterGroup(h)}),E(),A(4,"mat-autocomplete",null,15),re(6,que,2,3,"mat-option",16),E(),E()}if(2&e){var n=Nn(5),l=J(2);H(2),ze(" ",l.authenticator.type_info.groupNameLabel," "),H(1),U("ngModel",l.group.name)("matAutocomplete",n),H(3),U("ngForOf",l.fltrGroup)}}function Zue(e,a){if(1&e&&(vt(0),re(1,Yue,4,3,"mat-form-field",12),re(2,Xue,7,4,"mat-form-field",12),xn()),2&e){var t=J();H(1),U("ngIf",!1===t.authenticator.type_info.canSearchGroups||t.group.id),H(1),U("ngIf",!0===t.authenticator.type_info.canSearchGroups&&!t.group.id)}}function Kue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),A(2,"uds-translate"),K(3,"Meta group name"),E(),E(),A(4,"input",13),ne("ngModelChange",function(c){return pe(t),J().group.name=c}),E(),E()}if(2&e){var n=J();H(4),U("ngModel",n.group.name)("disabled",n.group.id)}}function Que(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function $ue(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Service Pools"),E(),E(),A(5,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.pools=c}),re(6,Que,2,2,"mat-option",16),E(),E(),xn()}if(2&e){var n=J();H(5),U("ngModel",n.group.pools),H(1),U("ngForOf",n.servicePools)}}function Jue(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=J().$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function ece(e,a){if(1&e&&(vt(0),re(1,Jue,2,2,"mat-option",22),xn()),2&e){var t=a.$implicit;H(1),U("ngIf","group"===t.type)}}function tce(e,a){if(1&e){var t=De();A(0,"div",19),A(1,"span",20),A(2,"uds-translate"),K(3,"Match mode"),E(),E(),A(4,"mat-slide-toggle",6),ne("ngModelChange",function(c){return pe(t),J().group.meta_if_any=c}),K(5),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Selected Groups"),E(),E(),A(10,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.groups=c}),re(11,ece,2,1,"ng-container",21),E(),E()}if(2&e){var n=J();H(4),U("ngModel",n.group.meta_if_any),H(1),ze(" ",n.getMatchValue()," "),H(5),U("ngModel",n.group.groups),H(1),U("ngForOf",n.groups)}}var $ee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.fltrGroup=[],this.authenticator=l.authenticator,this.group={id:void 0,type:l.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==l.group&&(this.group.id=l.group.id,this.group.type=l.group.type,this.group.name=l.group.name)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,groupType:n,group:l},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&t.get(this.group.id).subscribe(function(n){a.group=n},function(n){a.dialogRef.close()}),"meta"===this.group.type?t.summary().subscribe(function(n){return a.groups=n}):this.rest.servicesPools.summary().subscribe(function(n){return a.servicePools=n})},e.prototype.filterGroup=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"group",a.target.value,100).subscribe(function(l){t.fltrGroup.length=0,l.forEach(function(c){t.fltrGroup.push(c)})})},e.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,jue,4,1,"div",1),re(2,Wue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Zue,3,2,"ng-container",1),re(7,Kue,5,2,"ng-template",null,4,ml),A(9,"mat-form-field"),A(10,"mat-label"),A(11,"uds-translate"),K(12,"Comments"),E(),E(),A(13,"input",5),ne("ngModelChange",function(C){return n.group.comments=C}),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),K(17,"State"),E(),E(),A(18,"mat-select",6),ne("ngModelChange",function(C){return n.group.state=C}),A(19,"mat-option",7),A(20,"uds-translate"),K(21,"Enabled"),E(),E(),A(22,"mat-option",8),A(23,"uds-translate"),K(24,"Disabled"),E(),E(),E(),E(),re(25,$ue,7,2,"ng-container",1),re(26,tce,12,4,"ng-template",null,9,ml),E(),E(),A(28,"mat-dialog-actions"),A(29,"button",10),A(30,"uds-translate"),K(31,"Cancel"),E(),E(),A(32,"button",11),ne("click",function(){return n.save()}),A(33,"uds-translate"),K(34,"Ok"),E(),E(),E()),2&t){var l=Nn(3),c=Nn(8),h=Nn(27);H(1),U("ngIf",n.group.id)("ngIfElse",l),H(5),U("ngIf","group"===n.group.type)("ngIfElse",c),H(7),U("ngModel",n.group.comments),H(5),U("ngModel",n.group.state),H(7),U("ngIf","group"===n.group.type)("ngIfElse",h)}},directives:[jr,Kt,Fr,Mr,Wr,Hn,aa,g,xt,kr,Qa,Bi,$r,In,Lr,uX,qee,ar,fk],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function nce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function rce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,nce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),U("rest",t.group)("pageSize",6)}}function ice(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services Pools"),E())}function ace(e,a){if(1&e&&(A(0,"mat-tab"),re(1,ice,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),U("rest",t.servicesPools)("pageSize",6)}}function oce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned Services"),E())}function sce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,oce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),U("rest",t.userServices)("pageSize",6)}}var lce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],uce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],cce=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],fce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.users=l.users,this.user=l.user}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:t,user:n},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(t){a.group=new Mb(django.gettext("Groups"),function(){return a.rest.authenticators.detail(a.users.parentId,"groups").overview().pipe(Be(function(h){return h.filter(function(_){return t.groups.includes(_.id)})}))},lce,a.user.id+"infogrp"),a.servicesPools=new Mb(django.gettext("Services Pools"),function(){return a.users.invoke(a.user.id+"/servicesPools")},uce,a.user.id+"infopool"),a.userServices=new Mb(django.gettext("Assigned services"),function(){return a.users.invoke(a.user.id+"/userServices").pipe(Be(function(h){return h.map(function(_){return _.in_use=a.api.yesno(_.in_use),_})}))},cce,a.user.id+"userservpool")})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),re(6,rce,3,2,"mat-tab",1),re(7,ace,3,2,"mat-tab",1),re(8,sce,3,2,"mat-tab",1),E(),E(),A(9,"mat-dialog-actions"),A(10,"button",2),A(11,"uds-translate"),K(12,"Ok"),E(),E(),E()),2&t&&(H(3),ze(" ",n.user.name,"\n"),H(3),U("ngIf",n.group),H(1),U("ngIf",n.servicesPools),H(1),U("ngIf",n.userServices))},directives:[jr,Hn,Fr,Nc,Kt,$r,In,Lr,Iu,Fc,Yr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function dce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services Pools"),E())}function hce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,dce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),U("rest",t.servicesPools)("pageSize",6)}}function pce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Users"),E())}function vce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,pce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),U("rest",t.users)("pageSize",6)}}function gce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function mce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,gce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),U("rest",t.groups)("pageSize",6)}}var _ce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],yce=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:Aa.DATETIME}],bce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],Cce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:n,groups:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new Mb(django.gettext("Service pools"),function(){return t.invoke(a.data.group.id+"/servicesPools")},_ce,this.data.group.id+"infopls"),this.users=new Mb(django.gettext("Users"),function(){return t.invoke(a.data.group.id+"/users").pipe(Be(function(h){return h.map(function(_){return _.state="A"===_.state?django.gettext("Enabled"):"I"===_.state?django.gettext("Disabled"):django.gettext("Blocked"),_})}))},yce,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new Mb(django.gettext("Groups"),function(){return t.overview().pipe(Be(function(h){return h.filter(function(_){return a.data.group.groups.includes(_.id)})}))},bce,this.data.group.id+"infogrps"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),E(),A(3,"mat-dialog-content"),A(4,"mat-tab-group"),re(5,hce,3,2,"mat-tab",1),re(6,vce,3,2,"mat-tab",1),re(7,mce,3,2,"mat-tab",1),E(),E(),A(8,"mat-dialog-actions"),A(9,"button",2),A(10,"uds-translate"),K(11,"Ok"),E(),E(),E()),2&t&&(H(5),U("ngIf",n.servicesPools),H(1),U("ngIf",n.users),H(1),U("ngIf",n.groups))},directives:[jr,Hn,Fr,Nc,Kt,$r,In,Lr,Iu,Fc,Yr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function wce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function Sce(e,a){if(1&e&&me(0,"uds-information",16),2&e){var t=J(2);U("value",t.authenticator)("gui",t.gui)}}function kce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Users"),E())}function Mce(e,a){if(1&e){var t=De();A(0,"uds-table",17),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("newAction",function(c){return pe(t),J(2).onNewUser(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);U("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function xce(e,a){if(1&e){var t=De();A(0,"uds-table",18),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);U("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Tce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Dce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Ace(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,wce,2,0,"ng-template",9),A(5,"div",10),re(6,Sce,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,kce,2,0,"ng-template",9),A(9,"div",10),re(10,Mce,1,6,"uds-table",12),re(11,xce,1,6,"uds-table",13),E(),E(),A(12,"mat-tab"),re(13,Tce,2,0,"ng-template",9),A(14,"div",10),A(15,"uds-table",14),ne("loaded",function(c){return pe(t),J().onLoad(c)})("newAction",function(c){return pe(t),J().onNewGroup(c)})("editAction",function(c){return pe(t),J().onEditGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)})("customButtonAction",function(c){return pe(t),J().onGroupInformation(c)}),E(),E(),E(),A(16,"mat-tab"),re(17,Dce,2,0,"ng-template",9),A(18,"div",10),me(19,"uds-logs-table",15),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),U("ngIf",n.authenticator&&n.gui),H(4),U("ngIf",n.authenticator.type_info.canCreateUsers),H(1),U("ngIf",!n.authenticator.type_info.canCreateUsers),H(4),U("rest",n.groups)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("tableId","authenticators-d-groups"+n.authenticator.id)("pageSize",n.api.config.admin.page_size),H(4),U("rest",n.rest.authenticators)("itemId",n.authenticator.id)("tableId","authenticators-d-log"+n.authenticator.id)}}var Ece=function(e){return["/authenticators",e]},cX=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).subscribe(function(n){a.authenticator=n,a.rest.authenticators.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");a.table.selectElement("id",t||n)}},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onNewUser=function(a){Zee.launch(this.api,this.authenticator).subscribe(function(t){return a.table.overview()})},e.prototype.onEditUser=function(a){Zee.launch(this.api,this.authenticator,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteUser=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user"))},e.prototype.onNewGroup=function(a){$ee.launch(this.api,this.authenticator,a.param.type).subscribe(function(t){return a.table.overview()})},e.prototype.onEditGroup=function(a){$ee.launch(this.api,this.authenticator,a.param.type,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete group"))},e.prototype.onUserInformation=function(a){fce.launch(this.api,this.users,a.table.selection.selected[0])},e.prototype.onGroupInformation=function(a){Cce.launch(this.api,this.groups,a.table.selection.selected[0])},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Ace,20,14,"div",5),E()),2&t&&(H(2),U("routerLink",vl(4,Ece,n.authenticator?n.authenticator.id:"")),H(4),U("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(1),ze(" \xa0",null==n.authenticator?null:n.authenticator.name," "),H(1),U("ngIf",n.authenticator))},directives:[xl,Kt,Nc,Iu,Fc,Yr,ck,Hn,sH],styles:[""]}),e}(),Jee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New OS Manager"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit OS Manager"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete OS Manager"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),ete=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Transport"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Transport"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Transport"))},e.prototype.processElement=function(a){try{a.allowed_oss=a.allowed_oss.map(function(t){return t.id}).join(", ")}catch(t){a.allowed_oss=""}},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),e}(),tte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Network"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Network"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Network"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),nte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Proxy"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Proxy"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Proxy"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),rte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(mJ,"provider_id"),Il.getGotoButton(_J,"provider_id","service_id"),Il.getGotoButton(CJ,"osmanager_id"),Il.getGotoButton(wJ,"pool_group_id")],this.editing=!1}return e.prototype.ngOnInit=function(){},e.prototype.onChange=function(a){var t=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===a.on||"service_id"===a.on.field.name){if(""===a.all.service_id.value)return a.all.osmanager_id.gui.values.length=0,void n.forEach(function(l){return a.all[l].gui.rdonly=!0});this.rest.providers.service(a.all.service_id.value).subscribe(function(l){a.all.allow_users_reset.gui.rdonly=!l.info.can_reset,a.all.osmanager_id.gui.values.length=0,t.editing||(a.all.osmanager_id.gui.rdonly=!l.info.needs_manager),!0===l.info.needs_manager?t.rest.osManagers.overview().subscribe(function(c){c.forEach(function(h){h.servicesTypes.forEach(function(_){l.info.servicesTypeProvided.includes(_)&&a.all.osmanager_id.gui.values.push({id:h.id,text:h.name})})}),a.all.osmanager_id.value=a.all.osmanager_id.gui.values.length>0?a.all.osmanager_id.value||a.all.osmanager_id.gui.values[0].id:""}):(a.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),a.all.osmanager_id.value=""),n.forEach(function(c){return a.all[c].gui.rdonly=!l.info.uses_cache}),a.all.cache_l2_srvs.gui.rdonly=!1===l.info.uses_cache||!1===l.info.uses_cache_l2,a.all.publish_on_save&&(a.all.publish_on_save.gui.rdonly=!l.info.needs_publication)}),n.forEach(function(l){a.all[l].gui.rdonly=!0})}},e.prototype.onNew=function(a){var t=this;this.editing=!1,this.api.gui.forms.typedNewForm(a,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Pl.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(n){return t.onChange(n)})},e.prototype.onEdit=function(a){var t=this;this.editing=!0,this.api.gui.forms.typedEditForm(a,django.gettext("Edit Service Pool"),!1).subscribe(function(n){return t.onChange(n)})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service pool"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.show_transports=this.api.yesno(a.show_transports),a.restrained?(a.name='warning '+this.api.gui.icon(a.info.icon)+a.name,a.state="T"):(a.name=this.api.gui.icon(a.info.icon)+a.name,a.meta_member.length>0&&(a.state="V")),a.name=this.api.safeString(a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onDetail=function(a){this.api.navigation.gotoServicePoolDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&U("rest",n.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),e}();function Pce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function Oce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function Ice(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}var ite=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=l.userService,this.userServices=l.userServices}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,userServices:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){(""===a.userFilter||n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Change owner of assigned service"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Authenticator"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(10,Pce,2,2,"mat-option",3),E(),E(),A(11,"mat-form-field"),A(12,"mat-label"),A(13,"uds-translate"),K(14,"User"),E(),E(),A(15,"mat-select",4),ne("ngModelChange",function(c){return n.userId=c}),re(16,Oce,1,0,"uds-mat-select-search",5),re(17,Ice,2,2,"mat-option",3),E(),E(),E(),E(),A(18,"mat-dialog-actions"),A(19,"button",6),A(20,"uds-translate"),K(21,"Cancel"),E(),E(),A(22,"button",7),ne("click",function(){return n.save()}),A(23,"uds-translate"),K(24,"Ok"),E(),E(),E()),2&t&&(H(9),U("ngModel",n.authId),H(1),U("ngForOf",n.auths),H(5),U("ngModel",n.userId),H(1),U("ngIf",n.users.length>10),H(1),U("ngForOf",n.filteredUsers()))},directives:[jr,Hn,Fr,Mr,Wr,Qa,xt,kr,ar,Kt,$r,In,Lr,Bi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Rce(e,a){1&e&&(A(0,"uds-translate"),K(1,"New access rule for"),E())}function Lce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit access rule for"),E())}function Fce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Default fallback access for"),E())}function Nce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J(2).calendarsFilter=l}),E()}}function Vce(e,a){if(1&e&&(A(0,"mat-option",12),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function Bce(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Priority"),E(),E(),A(5,"input",8),ne("ngModelChange",function(c){return pe(t),J().accessRule.priority=c}),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Calendar"),E(),E(),A(10,"mat-select",3),ne("ngModelChange",function(c){return pe(t),J().accessRule.calendarId=c}),re(11,Nce,1,0,"uds-mat-select-search",9),re(12,Vce,2,2,"mat-option",10),E(),E(),xn()}if(2&e){var n=J();H(5),U("ngModel",n.accessRule.priority),H(5),U("ngModel",n.accessRule.calendarId),H(1),U("ngIf",n.calendars.length>10),H(1),U("ngForOf",n.filtered(n.calendars,n.calendarsFilter))}}var lH=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.calendarsFilter="",this.pool=l.pool,this.model=l.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},l.accessRule&&(this.accessRule.id=l.accessRule.id)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n,accessRule:l},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.calendars.summary().subscribe(function(t){a.calendars=t}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(t){a.accessRule=t}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(t){return a.accessRule.access=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this,t=function(){a.dialogRef.close(),a.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(t)},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,Rce,2,0,"uds-translate",1),re(2,Lce,2,0,"uds-translate",1),re(3,Fce,2,0,"uds-translate",1),K(4),E(),A(5,"mat-dialog-content"),A(6,"div",2),re(7,Bce,13,4,"ng-container",1),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),K(11,"Action"),E(),E(),A(12,"mat-select",3),ne("ngModelChange",function(c){return n.accessRule.access=c}),A(13,"mat-option",4),K(14," ALLOW "),E(),A(15,"mat-option",5),K(16," DENY "),E(),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",6),A(19,"uds-translate"),K(20,"Cancel"),E(),E(),A(21,"button",7),ne("click",function(){return n.save()}),A(22,"uds-translate"),K(23,"Ok"),E(),E(),E()),2&t&&(H(1),U("ngIf",void 0===n.accessRule.id),H(1),U("ngIf",void 0!==n.accessRule.id&&-1!==n.accessRule.id),H(1),U("ngIf",-1===n.accessRule.id),H(1),ze(" ",n.pool.name,"\n"),H(3),U("ngIf",-1!==n.accessRule.id),H(5),U("ngModel",n.accessRule.access))},directives:[jr,Kt,Fr,Mr,Wr,Hn,Qa,xt,kr,Bi,$r,In,Lr,aa,zg,g,ar,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Hce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function zce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().groupFilter=l}),E()}}function Uce(e,a){if(1&e&&(vt(0),K(1),xn()),2&e){var t=J().$implicit;H(1),ze(" (",t.comments,")")}}function Gce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),re(2,Uce,2,1,"ng-container",10),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name,""),H(1),U("ngIf",t.comments)}}var ate=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=l.pool,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.groupId="",this.authChanged()},e.prototype.filteredGroups=function(){var a=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(t){return t.name.toLocaleLowerCase().includes(a.groupFilter.toLocaleLowerCase())})},e.prototype.save=function(){var a=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},e.prototype.authChanged=function(){var a=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(t){a.groups=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New group for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Authenticator"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(11,Hce,2,2,"mat-option",3),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Group"),E(),E(),A(16,"mat-select",4),ne("ngModelChange",function(c){return n.groupId=c}),re(17,zce,1,0,"uds-mat-select-search",5),re(18,Gce,3,3,"mat-option",3),E(),E(),E(),E(),A(19,"mat-dialog-actions"),A(20,"button",6),A(21,"uds-translate"),K(22,"Cancel"),E(),E(),A(23,"button",7),ne("click",function(){return n.save()}),A(24,"uds-translate"),K(25,"Ok"),E(),E(),E()),2&t&&(H(3),ze(" ",n.pool.name,"\n"),H(7),U("ngModel",n.authId),H(1),U("ngForOf",n.auths),H(5),U("ngModel",n.groupId),H(1),U("ngIf",n.groups.length>10),H(1),U("ngForOf",n.filteredGroups()))},directives:[jr,Hn,Fr,Mr,Wr,Qa,xt,kr,ar,Kt,$r,In,Lr,Bi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function jce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",7),ne("changed",function(l){return pe(t),J().transportsFilter=l}),E()}}function Wce(e,a){if(1&e&&(vt(0),K(1),xn()),2&e){var t=J().$implicit;H(1),ze(" (",t.comments,")")}}function Yce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),re(2,Wce,2,1,"ng-container",9),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name,""),H(1),U("ngIf",t.comments)}}var qce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.transports.summary().subscribe(function(t){a.transports=t.filter(function(n){return a.servicePool.info.allowedProtocols.includes(n.protocol)})})},e.prototype.filteredTransports=function(){var a=this;return this.transportsFilter?this.transports.filter(function(t){return t.name.toLocaleLowerCase().includes(a.transportsFilter.toLocaleLowerCase())}):this.transports},e.prototype.save=function(){var a=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New transport for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Transport"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.transportId=c}),re(11,jce,1,0,"uds-mat-select-search",3),re(12,Yce,3,3,"mat-option",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),K(16,"Cancel"),E(),E(),A(17,"button",6),ne("click",function(){return n.save()}),A(18,"uds-translate"),K(19,"Ok"),E(),E(),E()),2&t&&(H(3),ze(" ",n.servicePool.name,"\n"),H(7),U("ngModel",n.transportId),H(1),U("ngIf",n.transports.length>10),H(1),U("ngForOf",n.filteredTransports()))},directives:[jr,Hn,Fr,Mr,Wr,Qa,xt,kr,Kt,ar,$r,In,Lr,Vc,Bi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Xce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.reason="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){},e.prototype.save=function(){var a=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New publication for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Comments"),E(),E(),A(10,"input",2),ne("ngModelChange",function(c){return n.reason=c}),E(),E(),E(),E(),A(11,"mat-dialog-actions"),A(12,"button",3),A(13,"uds-translate"),K(14,"Cancel"),E(),E(),A(15,"button",4),ne("click",function(){return n.save()}),A(16,"uds-translate"),K(17,"Ok"),E(),E(),E()),2&t&&(H(3),ze(" ",n.servicePool.name,"\n"),H(7),U("ngModel",n.reason))},directives:[jr,Hn,Fr,Mr,Wr,aa,g,xt,kr,$r,In,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Zce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1})},e.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Changelog of"),E(),K(3),E(),A(4,"mat-dialog-content"),me(5,"uds-table",1,2),E(),A(7,"mat-dialog-actions"),A(8,"button",3),A(9,"uds-translate"),K(10,"Ok"),E(),E(),E()),2&t&&(H(3),ze(" ",n.servicePool.name,"\n"),H(2),U("rest",n.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+n.servicePool.id))},directives:[jr,Hn,Fr,Yr,$r,In,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Kce(e,a){1&e&&(vt(0),A(1,"uds-translate"),K(2,"Edit action for"),E(),xn())}function Qce(e,a){1&e&&(A(0,"uds-translate"),K(1,"New action for"),E())}function $ce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J().calendarsFilter=l}),E()}}function Jce(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function efe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.description," ")}}function tfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).transportsFilter=l}),E()}}function nfe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function rfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Transport"),E(),E(),A(5,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(6,tfe,1,0,"uds-mat-select-search",5),re(7,nfe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),U("ngModel",n.paramValue),H(1),U("ngIf",n.transports.length>10),H(1),U("ngForOf",n.filtered(n.transports,n.transportsFilter))}}function ife(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function afe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).groupsFilter=l}),E()}}function ofe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;U("value",J(2).authenticator+"@"+t.id),H(1),ze(" ",t.name," ")}}function sfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Authenticator"),E(),E(),A(5,"mat-select",10),ne("ngModelChange",function(c){return pe(t),J().authenticator=c})("valueChange",function(c){return pe(t),J().changedAuthenticator(c)}),re(6,ife,2,2,"mat-option",6),E(),E(),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),K(10,"Group"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(12,afe,1,0,"uds-mat-select-search",5),re(13,ofe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),U("ngModel",n.authenticator),H(1),U("ngForOf",n.authenticators),H(5),U("ngModel",n.paramValue),H(1),U("ngIf",n.groups.length>10),H(1),U("ngForOf",n.filtered(n.groups,n.groupsFilter))}}function lfe(e,a){if(1&e){var t=De();vt(0),A(1,"div",8),A(2,"span",16),K(3),E(),K(4,"\xa0 "),A(5,"mat-slide-toggle",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),Pn(n.parameter.description),H(2),U("ngModel",n.paramValue)}}function ufe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",17),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),ze(" ",n.parameter.description," "),H(1),U("type",n.parameter.type)("ngModel",n.paramValue)}}var cfe=function(){return["transport","group","bool"]},ote=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=l.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==l.scheduledAction&&(this.scheduledAction.id=l.scheduledAction.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t,scheduledAction:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){return a.authenticators=t}),this.rest.transports.summary().subscribe(function(t){return a.transports=t}),this.rest.calendars.summary().subscribe(function(t){return a.calendars=t}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(t){a.actionList=t,a.actionList.forEach(function(n){a.paramsDict[n.id]=n.params[0]}),void 0!==a.scheduledAction.id&&a.rest.servicesPools.detail(a.servicePool.id,"actions").get(a.scheduledAction.id).subscribe(function(n){a.scheduledAction=n,a.changedAction(a.scheduledAction.action)})})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.changedAction=function(a){if(this.parameter=this.paramsDict[a],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var t=this.paramValue.split("@");2!==t.length&&(t=["",""]),this.authenticator=t[0],this.changedAuthenticator(this.authenticator)}},e.prototype.changedAuthenticator=function(a){var t=this;!a||this.rest.authenticators.detail(a,"groups").summary().subscribe(function(n){return t.groups=n})},e.prototype.save=function(){var a=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Kce,3,0,"ng-container",1),re(2,Qce,2,0,"ng-template",null,2,ml),K(4),E(),A(5,"mat-dialog-content"),A(6,"div",3),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),K(10,"Calendar"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(h){return n.scheduledAction.calendarId=h}),re(12,$ce,1,0,"uds-mat-select-search",5),re(13,Jce,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),K(17,"Events offset (minutes)"),E(),E(),A(18,"input",7),ne("ngModelChange",function(h){return n.scheduledAction.eventsOffset=h}),E(),E(),A(19,"div",8),A(20,"span",9),A(21,"uds-translate"),K(22,"At the beginning of the interval?"),E(),E(),A(23,"mat-slide-toggle",4),ne("ngModelChange",function(h){return n.scheduledAction.atStart=h}),K(24),E(),E(),A(25,"mat-form-field"),A(26,"mat-label"),A(27,"uds-translate"),K(28,"Action"),E(),E(),A(29,"mat-select",10),ne("ngModelChange",function(h){return n.scheduledAction.action=h})("valueChange",function(h){return n.changedAction(h)}),re(30,efe,2,2,"mat-option",6),E(),E(),re(31,rfe,8,3,"ng-container",11),re(32,sfe,14,5,"ng-container",11),re(33,lfe,6,2,"ng-container",11),re(34,ufe,5,3,"ng-container",11),E(),E(),A(35,"mat-dialog-actions"),A(36,"button",12),A(37,"uds-translate"),K(38,"Cancel"),E(),E(),A(39,"button",13),ne("click",function(){return n.save()}),A(40,"uds-translate"),K(41,"Ok"),E(),E(),E()),2&t){var l=Nn(3);H(1),U("ngIf",void 0!==n.scheduledAction.id)("ngIfElse",l),H(3),ze(" ",n.servicePool.name,"\n"),H(7),U("ngModel",n.scheduledAction.calendarId),H(1),U("ngIf",n.calendars.length>10),H(1),U("ngForOf",n.filtered(n.calendars,n.calendarsFilter)),H(5),U("ngModel",n.scheduledAction.eventsOffset),H(5),U("ngModel",n.scheduledAction.atStart),H(1),ze(" ",n.api.yesno(n.scheduledAction.atStart)," "),H(5),U("ngModel",n.scheduledAction.action),H(1),U("ngForOf",n.actionList),H(1),U("ngIf","transport"===(null==n.parameter?null:n.parameter.type)),H(1),U("ngIf","group"===(null==n.parameter?null:n.parameter.type)),H(1),U("ngIf","bool"===(null==n.parameter?null:n.parameter.type)),H(1),U("ngIf",(null==n.parameter?null:n.parameter.type)&&!rw(15,cfe).includes(n.parameter.type))}},directives:[jr,Kt,Fr,Mr,Wr,Hn,Qa,xt,kr,ar,aa,zg,g,fk,$r,In,Lr,Vc,Bi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}(),fX=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.userService=l.userService,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,model:n},disableClose:!1})},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Logs of"),E(),K(3),E(),A(4,"mat-dialog-content"),me(5,"uds-logs-table",1),E(),A(6,"mat-dialog-actions"),A(7,"button",2),A(8,"uds-translate"),K(9,"Ok"),E(),E(),E()),2&t&&(H(3),ze(" ",n.userService.name,"\n"),H(2),U("rest",n.model)("itemId",n.userService.id)("tableId","servicePools-d-uslog"+n.userService.id))},directives:[jr,Hn,Fr,ck,$r,In,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function ffe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().assignablesServicesFilter=l}),E()}}function dfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.text," ")}}function hfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}function pfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function vfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}var gfe=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(t){a.assignablesServices=t})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.filteredAssignables=function(){var a=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var t=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(a.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Assign service to user manually"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Service"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.serviceId=c}),re(10,ffe,1,0,"uds-mat-select-search",3),re(11,dfe,2,2,"mat-option",4),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Authenticator"),E(),E(),A(16,"mat-select",5),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(17,hfe,2,2,"mat-option",4),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),K(21,"User"),E(),E(),A(22,"mat-select",2),ne("ngModelChange",function(c){return n.userId=c}),re(23,pfe,1,0,"uds-mat-select-search",3),re(24,vfe,2,2,"mat-option",4),E(),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",6),A(27,"uds-translate"),K(28,"Cancel"),E(),E(),A(29,"button",7),ne("click",function(){return n.save()}),A(30,"uds-translate"),K(31,"Ok"),E(),E(),E()),2&t&&(H(9),U("ngModel",n.serviceId),H(1),U("ngIf",n.assignablesServices.length>10),H(1),U("ngForOf",n.filteredAssignables()),H(5),U("ngModel",n.authId),H(1),U("ngForOf",n.auths),H(5),U("ngModel",n.userId),H(1),U("ngIf",n.users.length>10),H(1),U("ngForOf",n.filteredUsers()))},directives:[jr,Hn,Fr,Mr,Wr,Qa,xt,kr,Kt,ar,$r,In,Lr,Vc,Bi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),mfe=function(){function e(a){this.rest=a,this.chart=null}return e.prototype.onResize=function(a){this.chart&&this.chart.resize()},e.prototype.ngOnInit=function(){var a=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(t){a.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(function(n){return Ru("SHORT_DATETIME_FORMAT",new Date(n.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(function(n){return n.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(function(n){return n.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(function(n){return n.value})}]}})},e.prototype.chartInit=function(a){this.chart=a},e.\u0275fac=function(t){return new(t||e)(N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,n){1&t&&ne("resize",function(c){return n.onResize(c)},!1,A0)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),ne("chartInit",function(c){return n.chartInit(c)}),E(),E()),2&t&&(H(1),U("options",n.options))},directives:[XJ],styles:[""]}),e}();function _fe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function yfe(e,a){if(1&e&&me(0,"uds-information",21),2&e){var t=J(2);U("value",t.servicePool)("gui",t.gui)}}function bfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned services"),E())}function Cfe(e,a){if(1&e){var t=De();A(0,"uds-table",22),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);U("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function wfe(e,a){if(1&e){var t=De();A(0,"uds-table",23),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("newAction",function(c){return pe(t),J(2).onNewAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);U("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Sfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Cache"),E())}function kfe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,Sfe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",24),ne("customButtonAction",function(c){return pe(t),J(2).onCustomCached(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteCache(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),U("rest",n.cache)("multiSelect",!0)("allowExport",!0)("onItem",n.processsCacheElement)("tableId","servicePools-d-cache"+n.servicePool.id)("customButtons",n.customButtonsCachedServices)("pageSize",n.api.config.admin.page_size)}}function Mfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function xfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Transports"),E())}function Tfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Publications"),E())}function Dfe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,Tfe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",25),ne("customButtonAction",function(c){return pe(t),J(2).onCustomPublication(c)})("newAction",function(c){return pe(t),J(2).onNewPublication(c)})("rowSelected",function(c){return pe(t),J(2).onPublicationRowSelect(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),U("rest",n.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+n.servicePool.id)("customButtons",n.customButtonsPublication)("pageSize",n.api.config.admin.page_size)}}function Afe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Scheduled actions"),E())}function Efe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Access calendars"),E())}function Pfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Charts"),E())}function Ofe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Ife(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(h){return pe(t),J().selectedTab=h}),A(3,"mat-tab"),re(4,_fe,2,0,"ng-template",9),A(5,"div",10),re(6,yfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,bfe,2,0,"ng-template",9),A(9,"div",10),re(10,Cfe,1,7,"uds-table",12),re(11,wfe,1,7,"ng-template",null,13,ml),E(),E(),re(13,kfe,4,7,"mat-tab",14),A(14,"mat-tab"),re(15,Mfe,2,0,"ng-template",9),A(16,"div",10),A(17,"uds-table",15),ne("newAction",function(h){return pe(t),J().onNewGroup(h)})("deleteAction",function(h){return pe(t),J().onDeleteGroup(h)}),E(),E(),E(),A(18,"mat-tab"),re(19,xfe,2,0,"ng-template",9),A(20,"div",10),A(21,"uds-table",16),ne("newAction",function(h){return pe(t),J().onNewTransport(h)})("deleteAction",function(h){return pe(t),J().onDeleteTransport(h)}),E(),E(),E(),re(22,Dfe,4,6,"mat-tab",14),A(23,"mat-tab"),re(24,Afe,2,0,"ng-template",9),A(25,"div",10),A(26,"uds-table",17),ne("customButtonAction",function(h){return pe(t),J().onCustomScheduleAction(h)})("newAction",function(h){return pe(t),J().onNewScheduledAction(h)})("editAction",function(h){return pe(t),J().onEditScheduledAction(h)})("deleteAction",function(h){return pe(t),J().onDeleteScheduledAction(h)}),E(),E(),E(),A(27,"mat-tab"),re(28,Efe,2,0,"ng-template",9),A(29,"div",10),A(30,"uds-table",18),ne("newAction",function(h){return pe(t),J().onNewAccessCalendar(h)})("editAction",function(h){return pe(t),J().onEditAccessCalendar(h)})("deleteAction",function(h){return pe(t),J().onDeleteAccessCalendar(h)})("loaded",function(h){return pe(t),J().onAccessCalendarLoad(h)}),E(),E(),E(),A(31,"mat-tab"),re(32,Pfe,2,0,"ng-template",9),A(33,"div",10),me(34,"uds-service-pools-charts",19),E(),E(),A(35,"mat-tab"),re(36,Ofe,2,0,"ng-template",9),A(37,"div",10),me(38,"uds-logs-table",20),E(),E(),E(),E(),E()}if(2&e){var n=Nn(12),l=J();H(2),U("selectedIndex",l.selectedTab)("@.disabled",!0),H(4),U("ngIf",l.servicePool&&l.gui),H(4),U("ngIf",!1===l.servicePool.info.must_assign_manually)("ngIfElse",n),H(3),U("ngIf",l.cache),H(4),U("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsGroups)("tableId","servicePools-d-groups"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(4),U("rest",l.transports)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsTransports)("tableId","servicePools-d-transports"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(1),U("ngIf",l.publications),H(4),U("rest",l.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+l.servicePool.id)("customButtons",l.customButtonsScheduledAction)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),U("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonAccessCalendars)("tableId","servicePools-d-access"+l.servicePool.id)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),U("poolUuid",l.servicePool.id),H(4),U("rest",l.rest.servicesPools)("itemId",l.servicePool.id)("tableId","servicePools-d-log"+l.servicePool.id)("pageSize",l.api.config.admin.page_size)}}var Rfe=function(e){return["/pools","service-pools",e]},dX='event'+django.gettext("Logs")+"",Lfe='computer'+django.gettext("VNC")+"",Ffe='schedule'+django.gettext("Launch now")+"",ste='perm_identity'+django.gettext("Change owner")+"",Nfe='perm_identity'+django.gettext("Assign service")+"",Vfe='cancel'+django.gettext("Cancel")+"",Bfe='event'+django.gettext("Changelog")+"",lte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:Ffe,type:Jr.SINGLE_SELECT},Il.getGotoButton(Vq,"calendarId")],this.customButtonAccessCalendars=[Il.getGotoButton(Vq,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:dX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Nq,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:dX,type:Jr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Vfe,type:Jr.SINGLE_SELECT},{id:"changelog",html:Bfe,type:Jr.ALWAYS}],this.customButtonsGroups=[Il.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Il.getGotoButton(bJ,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return e.cleanInvalidSelections=function(a){return a.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(t){return a.table.selection.deselect(t)}),a.table.selection.isEmpty()},e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access"),this.rest.servicesPools.get(t).subscribe(function(n){a.servicePool=n,a.cache=a.servicePool.info.uses_cache?a.rest.servicesPools.detail(t,"cache"):null,a.publications=a.servicePool.info.needs_publication?a.rest.servicesPools.detail(t,"publications"):null,a.api.config.admin.vnc_userservices&&a.customButtonsAssignedServices.push({id:"vnc",html:Lfe,type:Jr.ONLY_MENU}),a.servicePool.info.can_list_assignables&&a.customButtonsAssignedServices.push({id:"assign-service",html:Nfe,type:Jr.ALWAYS}),a.rest.servicesPools.gui().subscribe(function(l){a.gui=l.filter(function(c){return!(!1===a.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(c.name)||!1===a.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===c.name||!1===a.servicePool.info.needs_manager&&"osmanager_id"===c.name)})})})},e.prototype.onNewAssigned=function(a){},e.prototype.vnc=function(a){var n=new Blob(["[connection]\nhost="+a.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,oX.saveAs)(n,a.ip+".vnc")},100)},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.assignedServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id?fX.launch(this.api,t,this.assignedServices):"assign-service"===a.param.id?gfe.launch(this.api,this.servicePool).subscribe(function(n){return a.table.overview()}):"vnc"===a.param.id&&this.vnc(t)},e.prototype.onCustomCached=function(a){"log"===a.param.id&&fX.launch(this.api,a.table.selection.selected[0],this.cache)},e.prototype.processsAssignedElement=function(a){a.in_use=this.api.yesno(a.in_use),a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onDeleteAssigned=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onDeleteCache=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete cached service"))},e.prototype.processsCacheElement=function(a){a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.servicePool,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewTransport=function(a){qce.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteTransport=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned transport"))},e.prototype.onNewPublication=function(a){Xce.launch(this.api,this.servicePool).subscribe(function(t){a.table.overview()})},e.prototype.onPublicationRowSelect=function(a){1===a.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(a.table.selection.selected[0].state))},e.prototype.onCustomPublication=function(a){var t=this;"cancel-publication"===a.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&t.publications.invoke(a.table.selection.selected[0].id+"/cancel").subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})}):"changelog"===a.param.id&&Zce.launch(this.api,this.servicePool)},e.prototype.onNewScheduledAction=function(a){ote.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onEditScheduledAction=function(a){ote.launch(this.api,this.servicePool,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteScheduledAction=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete scheduled action"))},e.prototype.onCustomScheduleAction=function(a){var t=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&t.scheduledActions.invoke(a.table.selection.selected[0].id+"/execute").subscribe(function(){t.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onNewAccessCalendar=function(a){lH.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){lH.launch(this.api,this.servicePool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processsCalendarOrScheduledElement=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Ife,39,38,"div",5),E()),2&t&&(H(2),U("routerLink",vl(4,Rfe,n.servicePool?n.servicePool.id:"")),H(4),U("src",n.api.staticURL("admin/img/icons/pools.png"),Gt),H(1),ze(" \xa0",null==n.servicePool?null:n.servicePool.name," "),H(1),U("ngIf",null!==n.servicePool))},directives:[xl,Kt,Nc,Iu,Fc,Yr,mfe,ck,Hn,sH],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-creation_date, .mat-column-state_date, .mat-column-publish_date, .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),e}(),ute=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New meta pool"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit meta pool"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete meta pool"))},e.prototype.onDetail=function(a){this.api.navigation.gotoMetapoolDetail(a.param.id)},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.name=this.api.safeString(this.api.gui.icon(a.thumb)+a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("detailAction",function(c){return n.onDetail(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),e}();function Hfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"New member pool"),E())}function zfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit member pool"),E())}function Ufe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J().servicePoolsFilter=l}),E()}}function Gfe(e,a){if(1&e&&(A(0,"mat-option",12),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.name," ")}}var cte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=l.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},l.memberPool&&(this.memberPool.id=l.memberPool.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:n,model:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.servicesPools.summary().subscribe(function(t){return a.servicePools=t}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(t){return a.memberPool=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,Hfe,2,0,"uds-translate",1),re(2,zfe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Priority"),E(),E(),A(9,"input",3),ne("ngModelChange",function(c){return n.memberPool.priority=c}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),K(13,"Service pool"),E(),E(),A(14,"mat-select",4),ne("ngModelChange",function(c){return n.memberPool.pool_id=c}),re(15,Ufe,1,0,"uds-mat-select-search",5),re(16,Gfe,2,2,"mat-option",6),E(),E(),A(17,"div",7),A(18,"span",8),A(19,"uds-translate"),K(20,"Enabled?"),E(),E(),A(21,"mat-slide-toggle",4),ne("ngModelChange",function(c){return n.memberPool.enabled=c}),K(22),E(),E(),E(),E(),A(23,"mat-dialog-actions"),A(24,"button",9),A(25,"uds-translate"),K(26,"Cancel"),E(),E(),A(27,"button",10),ne("click",function(){return n.save()}),A(28,"uds-translate"),K(29,"Ok"),E(),E(),E()),2&t&&(H(1),U("ngIf",!(null!=n.memberPool&&n.memberPool.id)),H(1),U("ngIf",null==n.memberPool?null:n.memberPool.id),H(7),U("ngModel",n.memberPool.priority),H(5),U("ngModel",n.memberPool.pool_id),H(1),U("ngIf",n.servicePools.length>10),H(1),U("ngForOf",n.filtered(n.servicePools,n.servicePoolsFilter)),H(5),U("ngModel",n.memberPool.enabled),H(1),ze(" ",n.api.yesno(n.memberPool.enabled)," "))},directives:[jr,Kt,Fr,Mr,Wr,Hn,aa,zg,g,xt,kr,Qa,ar,fk,$r,In,Lr,Vc,Bi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function jfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function Wfe(e,a){if(1&e&&me(0,"uds-information",17),2&e){var t=J(2);U("value",t.metaPool)("gui",t.gui)}}function Yfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Service pools"),E())}function qfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned services"),E())}function Xfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Zfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Access calendars"),E())}function Kfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Qfe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,jfe,2,0,"ng-template",9),A(5,"div",10),re(6,Wfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Yfe,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewMemberPool(c)})("editAction",function(c){return pe(t),J().onEditMemberPool(c)})("deleteAction",function(c){return pe(t),J().onDeleteMemberPool(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,qfe,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("customButtonAction",function(c){return pe(t),J().onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J().onDeleteAssigned(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,Xfe,2,0,"ng-template",9),A(17,"div",10),A(18,"uds-table",14),ne("newAction",function(c){return pe(t),J().onNewGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)}),E(),E(),E(),A(19,"mat-tab"),re(20,Zfe,2,0,"ng-template",9),A(21,"div",10),A(22,"uds-table",15),ne("newAction",function(c){return pe(t),J().onNewAccessCalendar(c)})("editAction",function(c){return pe(t),J().onEditAccessCalendar(c)})("deleteAction",function(c){return pe(t),J().onDeleteAccessCalendar(c)})("loaded",function(c){return pe(t),J().onAccessCalendarLoad(c)}),E(),E(),E(),A(23,"mat-tab"),re(24,Kfe,2,0,"ng-template",9),A(25,"div",10),me(26,"uds-logs-table",16),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),U("ngIf",n.metaPool&&n.gui),H(4),U("rest",n.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("customButtons",n.customButtons)("tableId","metaPools-d-members"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),U("rest",n.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+n.metaPool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size),H(4),U("rest",n.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),U("rest",n.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)("onItem",n.processsCalendarItem),H(4),U("rest",n.rest.metaPools)("itemId",n.metaPool.id)("tableId","metaPools-d-log"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)}}var $fe=function(e){return["/pools","meta-pools",e]},Jfe=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(Fq,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:dX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Nq,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(t).subscribe(function(n){a.metaPool=n,a.rest.metaPools.gui().subscribe(function(l){a.gui=l}),a.memberPools=a.rest.metaPools.detail(t,"pools"),a.memberUserServices=a.rest.metaPools.detail(t,"services"),a.groups=a.rest.metaPools.detail(t,"groups"),a.accessCalendars=a.rest.metaPools.detail(t,"access")})},e.prototype.onNewMemberPool=function(a){cte.launch(this.api,this.memberPools).subscribe(function(){return a.table.overview()})},e.prototype.onEditMemberPool=function(a){cte.launch(this.api,this.memberPools,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteMemberPool=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Remove member pool"))},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.memberUserServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id&&fX.launch(this.api,t,this.memberUserServices)},e.prototype.onDeleteAssigned=function(a){lte.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.metaPool.id,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewAccessCalendar=function(a){lH.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){lH.launch(this.api,this.metaPool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){console.log("ID",a.table.selection.selected[0].id),-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processElement=function(a){a.enabled=this.api.yesno(a.enabled)},e.prototype.processsCalendarItem=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Qfe,27,31,"div",5),E()),2&t&&(H(2),U("routerLink",vl(4,$fe,n.metaPool?n.metaPool.id:"")),H(4),U("src",n.api.staticURL("admin/img/icons/metas.png"),Gt),H(1),ze(" ",null==n.metaPool?null:n.metaPool.name," "),H(1),U("ngIf",n.metaPool))},directives:[xl,Kt,Nc,Iu,Fc,Yr,ck,Hn,sH],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),e}(),fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete pool group"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&U("rest",n.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),e}(),dte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New calendar"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit calendar"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar"))},e.prototype.onDetail=function(a){this.api.navigation.gotoCalendarDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&U("rest",n.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[""]}),e}(),ede=["mat-calendar-body",""];function tde(e,a){if(1&e&&(A(0,"tr",2),A(1,"td",3),K(2),E(),E()),2&e){var t=J();H(1),zr("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t.numCols),H(1),ze(" ",t.label," ")}}function nde(e,a){if(1&e&&(A(0,"td",3),K(1),E()),2&e){var t=J(2);zr("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t._firstRowOffset),H(1),ze(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function rde(e,a){if(1&e){var t=De();A(0,"td",7),ne("click",function(C){var D=pe(t).$implicit;return J(2)._cellClicked(D,C)}),A(1,"div",8),K(2),E(),me(3,"div",9),E()}if(2&e){var n=a.$implicit,l=a.index,c=J().index,h=J();zr("width",h._cellWidth)("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),dt("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",h._isActiveCell(c,l))("mat-calendar-body-range-start",h._isRangeStart(n.compareValue))("mat-calendar-body-range-end",h._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",h._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",h._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",h._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",h._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",h._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",h._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",h._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",h._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",h._isInPreview(n.compareValue)),U("ngClass",n.cssClasses)("tabindex",h._isActiveCell(c,l)?0:-1),Ke("data-mat-row",c)("data-mat-col",l)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",h._isSelected(n.compareValue)),H(1),dt("mat-calendar-body-selected",h._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",h._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",h.todayValue===n.compareValue),H(1),ze(" ",n.displayValue," ")}}function ide(e,a){if(1&e&&(A(0,"tr",4),re(1,nde,2,6,"td",5),re(2,rde,4,46,"td",6),E()),2&e){var t=a.$implicit,n=a.index,l=J();H(1),U("ngIf",0===n&&l._firstRowOffset),H(1),U("ngForOf",t)}}function ade(e,a){if(1&e&&(A(0,"th",5),A(1,"abbr",6),K(2),E(),E()),2&e){var t=a.$implicit;Ke("aria-label",t.long),H(1),Ke("title",t.long),H(1),Pn(t.narrow)}}var hte=["*"];function ode(e,a){}function sde(e,a){if(1&e){var t=De();A(0,"mat-month-view",5),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("_userSelection",function(c){return pe(t),J()._dateSelected(c)}),E()}if(2&e){var n=J();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function lde(e,a){if(1&e){var t=De();A(0,"mat-year-view",6),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("monthSelected",function(c){return pe(t),J()._monthSelectedInYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"month")}),E()}if(2&e){var n=J();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function ude(e,a){if(1&e){var t=De();A(0,"mat-multi-year-view",7),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("yearSelected",function(c){return pe(t),J()._yearSelectedInMultiYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"year")}),E()}if(2&e){var n=J();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function cde(e,a){}var fde=["button"];function dde(e,a){1&e&&(pa(),A(0,"svg",3),me(1,"path",4),E())}var hde=[[["","matDatepickerToggleIcon",""]]],pde=["[matDatepickerToggleIcon]"],IP=function(){var e=function(){function a(){F(this,a),this.changes=new qe,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return W(a,[{key:"formatYearRange",value:function(n,l){return"".concat(n," \u2013 ").concat(l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),hX=function e(a,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:a,_=arguments.length>6?arguments[6]:void 0;F(this,e),this.value=a,this.displayValue=t,this.ariaLabel=n,this.enabled=l,this.cssClasses=c,this.compareValue=h,this.rawValue=_},dk=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ye,this.previewChange=new ye,this._enterHandler=function(c){if(l._skipNextFocus&&"focus"===c.type)l._skipNextFocus=!1;else if(c.target&&l.isRange){var h=l._getCellFromElement(c.target);h&&l._ngZone.run(function(){return l.previewChange.emit({value:h.enabled?h:null,event:c})})}},this._leaveHandler=function(c){null!==l.previewEnd&&l.isRange&&c.target&&pX(c.target)&&l._ngZone.run(function(){return l.previewChange.emit({value:null,event:c})})},n.runOutsideAngular(function(){var c=t.nativeElement;c.addEventListener("mouseenter",l._enterHandler,!0),c.addEventListener("focus",l._enterHandler,!0),c.addEventListener("mouseleave",l._leaveHandler,!0),c.addEventListener("blur",l._leaveHandler,!0)})}return W(a,[{key:"_cellClicked",value:function(n,l){n.enabled&&this.selectedValueChange.emit({value:n.value,event:l})}},{key:"_isSelected",value:function(n){return this.startValue===n||this.endValue===n}},{key:"ngOnChanges",value:function(n){var l=n.numCols,c=this.rows,h=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?h-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/h,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/h,"%"))}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;n.removeEventListener("mouseenter",this._enterHandler,!0),n.removeEventListener("focus",this._enterHandler,!0),n.removeEventListener("mouseleave",this._leaveHandler,!0),n.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(n,l){var c=n*this.numCols+l;return n&&(c-=this._firstRowOffset),c==this.activeCell}},{key:"_focusActiveCell",value:function(){var n=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.pipe(or(1)).subscribe(function(){var c=n._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(l||(n._skipNextFocus=!0),c.focus())})})}},{key:"_isRangeStart",value:function(n){return vX(n,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(n){return gX(n,this.startValue,this.endValue)}},{key:"_isInRange",value:function(n){return mX(n,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(n){return vX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(n,l,c){if(!this._isComparisonStart(n)||this._isRangeStart(n)||!this._isInRange(n))return!1;var h=this.rows[l][c-1];if(!h){var _=this.rows[l-1];h=_&&_[_.length-1]}return h&&!this._isRangeEnd(h.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var h=this.rows[l][c+1];if(!h){var _=this.rows[l+1];h=_&&_[0]}return h&&!this._isRangeStart(h.compareValue)}},{key:"_isComparisonEnd",value:function(n){return gX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(n){return mX(n,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(n){return this.comparisonStart===this.comparisonEnd&&n===this.comparisonStart}},{key:"_isPreviewStart",value:function(n){return vX(n,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(n){return gX(n,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(n){return mX(n,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(n){var l;if(pX(n)?l=n:pX(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),h=l.getAttribute("data-mat-col");if(c&&h)return this.rows[parseInt(c)][parseInt(h)]}return null}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft))},e.\u0275cmp=ke({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[an],attrs:ede,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,n){1&t&&(re(0,tde,3,6,"tr",0),re(1,ide,3,2,"tr",1)),2&t&&(U("ngIf",n._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),e}();function pX(e){return"TD"===e.nodeName}function vX(e,a,t){return null!==t&&a!==t&&e=a&&e===t}function mX(e,a,t,n){return n&&null!==a&&null!==t&&a!==t&&e>=a&&e<=t}var wo=function e(a,t){F(this,e),this.start=a,this.end=t},Gg=function(){var e=function(){function a(t,n){F(this,a),this.selection=t,this._adapter=n,this._selectionChanged=new qe,this.selectionChanged=this._selectionChanged,this.selection=t}return W(a,[{key:"updateSelection",value:function(n,l){var c=this.selection;this.selection=n,this._selectionChanged.next({selection:n,source:l,oldValue:c})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(n){return this._adapter.isDateInstance(n)&&this._adapter.isValid(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(void 0),ce(Ur))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),_de=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,null,l)}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"updateSelection",this).call(this,c,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var c=new n(this._adapter);return c.updateSelection(this.selection,this),c}}]),n}(Gg);return e.\u0275fac=function(t){return new(t||e)(ce(Ur))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),pte={provide:Gg,deps:[[new oi,new Fo,Gg],Ur],useFactory:function(e,a){return e||new _de(a)}},uH=new Ee("MAT_DATE_RANGE_SELECTION_STRATEGY"),vte=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=h,this._rerenderSubscription=Ve.EMPTY,this.selectedChange=new ye,this._userSelection=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),this._hasSameMonthAndYear(l,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qr(null)).subscribe(function(){return n._init()})}},{key:"ngOnChanges",value:function(n){var l=n.comparisonStart||n.comparisonEnd;l&&!l.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(n){var C,k,l=n.value,c=this._dateAdapter.getYear(this.activeDate),h=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,h,l);this._selected instanceof wo?(C=this._getDateInCurrentMonth(this._selected.start),k=this._getDateInCurrentMonth(this._selected.end)):C=k=this._getDateInCurrentMonth(this._selected),(C!==l||k!==l)&&this.selectedChange.emit(_),this._userSelection.emit({value:_,event:n.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&n.preventDefault());case 27:return void(null!=this._previewEnd&&!Vi(n)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:n}),n.preventDefault(),n.stopPropagation()));default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(n)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(n){this._matCalendarBody._focusActiveCell(n)}},{key:"_previewChanged",value:function(n){var c=n.value;if(this._rangeStrategy){var _=this._rangeStrategy.createPreview(c?c.rawValue:null,this.selected,n.event);this._previewStart=this._getCellCompareValue(_.start),this._previewEnd=this._getCellCompareValue(_.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var n=this._dateAdapter.getFirstDayOfWeek(),l=this._dateAdapter.getDayOfWeekNames("narrow"),h=this._dateAdapter.getDayOfWeekNames("long").map(function(_,C){return{long:_,narrow:l[C]}});this._weekdays=h.slice(n).concat(h.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,h=this._firstWeekOffset;c=0)&&(!this.maxDate||this._dateAdapter.compareDate(n,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(n))}},{key:"_getDateInCurrentMonth",value:function(n){return n&&this._hasSameMonthAndYear(n,this.activeDate)?this._dateAdapter.getDate(n):null}},{key:"_hasSameMonthAndYear",value:function(n,l){return!(!n||!l||this._dateAdapter.getMonth(n)!=this._dateAdapter.getMonth(l)||this._dateAdapter.getYear(n)!=this._dateAdapter.getYear(l))}},{key:"_getCellCompareValue",value:function(n){if(n){var l=this._dateAdapter.getYear(n),c=this._dateAdapter.getMonth(n),h=this._dateAdapter.getDate(n);return new Date(l,c,h).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(n){n instanceof wo?(this._rangeStart=this._getCellCompareValue(n.start),this._rangeEnd=this._getCellCompareValue(n.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(n),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"_canSelect",value:function(n){return!this.dateFilter||this.dateFilter(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Pu,8),N(Ur,8),N(Sr,8),N(uH,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-month-view"]],viewQuery:function(t,n){var l;1&t&&wt(dk,5),2&t&&Ne(l=Le())&&(n._matCalendarBody=l.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[an],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,n){1&t&&(A(0,"table",0),A(1,"thead",1),A(2,"tr"),re(3,ade,3,3,"th",2),E(),A(4,"tr"),me(5,"th",3),E(),E(),A(6,"tbody",4),ne("selectedValueChange",function(c){return n._dateSelected(c)})("previewChange",function(c){return n._previewChanged(c)})("keyup",function(c){return n._handleCalendarBodyKeyup(c)})("keydown",function(c){return n._handleCalendarBodyKeydown(c)}),E(),E()),2&t&&(H(3),U("ngForOf",n._weekdays),H(3),U("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},directives:[ar,dk],encapsulation:2,changeDetection:0}),e}(),gte=function(){var e=function(){function a(t,n,l){F(this,a),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=l,this._rerenderSubscription=Ve.EMPTY,this.selectedChange=new ye,this.yearSelected=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),mte(this._dateAdapter,l,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setSelectedYear(n)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qr(null)).subscribe(function(){return n._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var n=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var c=this._dateAdapter.getYear(this._activeDate)-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var h=0,_=[];h<24;h++)_.push(c+h),4==_.length&&(this._years.push(_.map(function(C){return n._createCellForYear(C)})),_=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(n){var l=n.value;this.yearSelected.emit(this._dateAdapter.createDate(l,0,1));var c=this._dateAdapter.getMonth(this.activeDate),h=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),h)))}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_getActiveCell",value:function(){return RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(n){var l=this._dateAdapter.createDate(n,0,1),c=this._dateAdapter.getYearName(l),h=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new hX(n,c,c,this._shouldEnableYear(n),h)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>h}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),h=this._dateAdapter.getMonth(this.minDate);return n enter-dropdown",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(1, 0.8)"}),gt({opacity:1,transform:"scale(1, 1)"})]))),zn("void => enter-dialog",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0.7)"}),gt({transform:"none",opacity:1})]))),zn("* => void",Tn("100ms linear",gt({opacity:0})))]),fadeInCalendar:Ei("fadeInCalendar",[Bn("void",gt({opacity:0})),Bn("enter",gt({opacity:1})),zn("void => *",Tn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Ade=0,Cte=new Ee("mat-datepicker-scroll-strategy"),Pde={provide:Cte,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ode=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),Ide=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._changeDetectorRef=c,D._globalModel=h,D._dateAdapter=_,D._rangeSelectionStrategy=C,D._subscriptions=new Ve,D._animationDone=new qe,D._actionsPortal=null,D._closeButtonText=k.closeCalendarLabel,D}return W(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var c=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){c._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(c){var h=this._model.selection,_=c.value,C=h instanceof wo;if(C&&this._rangeSelectionStrategy){var k=this._rangeSelectionStrategy.selectionFinished(_,h,c.event);this._model.updateSelection(k,this)}else _&&(C||!this._dateAdapter.sameDate(_,h))&&this._model.add(_);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(Ode);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Gg),N(Ur),N(uH,8),N(IP))},e.\u0275cmp=ke({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,n){var l;1&t&&wt(bX,5),2&t&&Ne(l=Le())&&(n._calendar=l.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,n){1&t&&mv("@transformPanel.done",function(){return n._animationDone.next()}),2&t&&(Ba("@transformPanel",n._animationState),dt("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Pe],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"mat-calendar",1),ne("yearSelected",function(c){return n.datepicker._selectYear(c)})("monthSelected",function(c){return n.datepicker._selectMonth(c)})("viewChanged",function(c){return n.datepicker._viewChanged(c)})("_userSelection",function(c){return n._handleUserSelection(c)}),E(),re(2,cde,0,0,"ng-template",2),A(3,"button",3),ne("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),K(4),E(),E()),2&t&&(dt("mat-datepicker-content-container-with-actions",n._actionsPortal),H(1),U("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),H(1),U("cdkPortalOutlet",n._actionsPortal),H(1),dt("cdk-visually-hidden",!n._closeButtonFocused),U("color",n.color||"primary"),H(1),Pn(n._closeButtonText))},directives:[UV,bX,Ts,Os,In],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[bte.transformPanel,bte.fadeInCalendar]},changeDetection:0}),e}(),xb=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){F(this,a),this._overlay=n,this._ngZone=l,this._viewContainerRef=c,this._dateAdapter=_,this._dir=C,this._model=D,this._inputStateChanges=Ve.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ye,this.monthSelected=new ye,this.viewChanged=new ye(!0),this.openedStream=new ye,this.closedStream=new ye,this._opened=!1,this.id="mat-datepicker-".concat(Ade++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new qe,this._scrollStrategy=h}return W(a,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(n){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(n){this._color=n}},{key:"touchUi",get:function(){return this._touchUi},set:function(n){this._touchUi=it(n)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(n){var l=it(n);l!==this._disabled&&(this._disabled=l,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(n){this._restoreFocus=it(n)}},{key:"panelClass",get:function(){return this._panelClass},set:function(n){this._panelClass=G3(n)}},{key:"opened",get:function(){return this._opened},set:function(n){it(n)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(n){var l=n.xPosition||n.yPosition;if(l&&!l.firstChange&&this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;c instanceof hE&&(this._setConnectedPositions(c),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(n){this._model.add(n)}},{key:"_selectYear",value:function(n){this.yearSelected.emit(n)}},{key:"_selectMonth",value:function(n){this.monthSelected.emit(n)}},{key:"_viewChanged",value:function(n){this.viewChanged.emit(n)}},{key:"registerInput",value:function(n){var l=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=n,this._inputStateChanges=n.stateChanges.subscribe(function(){return l.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(n){this._actionsPortal=n}},{key:"removeActions",value:function(n){n===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ky(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var n=this;if(this._opened){if(this._componentRef){var l=this._componentRef.instance;l._startExitAnimation(),l._animationDone.pipe(or(1)).subscribe(function(){return n._destroyOverlay()})}var c=function(){n._opened&&(n._opened=!1,n.closedStream.emit(),n._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(c)):c()}}},{key:"_applyPendingSelection",value:function(){var n,l;null===(l=null===(n=this._componentRef)||void 0===n?void 0:n.instance)||void 0===l||l._applyPendingSelection()}},{key:"_forwardContentValues",value:function(n){n.datepicker=this,n.color=this.color,n._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var n=this;this._destroyOverlay();var l=this.touchUi,c=this.datepickerInput.getOverlayLabelId(),h=new sd(Ide,this._viewContainerRef),_=this._overlayRef=this._overlay.create(new up({positionStrategy:l?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[l?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:l?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(l?"dialog":"popup")})),C=_.overlayElement;C.setAttribute("role","dialog"),c&&C.setAttribute("aria-labelledby",c),l&&C.setAttribute("aria-modal","true"),this._getCloseStream(_).subscribe(function(k){k&&k.preventDefault(),n.close()}),this._componentRef=_.attach(h),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(or(1)).subscribe(function(){return _.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(n)}},{key:"_setConnectedPositions",value:function(n){var l="end"===this.xPosition?"end":"start",c="start"===l?"end":"start",h="above"===this.yPosition?"bottom":"top",_="top"===h?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:h},{originX:l,originY:h,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:h},{originX:c,originY:h,overlayX:c,overlayY:_}])}},{key:"_getCloseStream",value:function(n){var l=this;return ot(n.backdropClick(),n.detachments(),n.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!Vi(c)||l.datepickerInput&&Vi(c,"altKey")&&38===c.keyCode})))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N(ft),N(Qn),N(Cte),N(Ur,8),N(Sr,8),N(lt,8),N(Gg))},e.\u0275dir=ve({type:e,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[an]}),e}(),wte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(xb);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Xe([pte,{provide:xb,useExisting:e}]),Pe],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0}),e}(),cH=function e(a,t){F(this,e),this.target=a,this.targetElement=t,this.value=this.target.value},Ste=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dateAdapter=n,this._dateFormats=l,this.dateChange=new ye,this.dateInput=new ye,this.stateChanges=new qe,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=Ve.EMPTY,this._localeSubscription=Ve.EMPTY,this._parseValidator=function(){return c._lastValueValid?null:{matDatepickerParse:{text:c._elementRef.nativeElement.value}}},this._filterValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMinDate();return!C||!_||c._dateAdapter.compareDate(C,_)<=0?null:{matDatepickerMin:{min:C,actual:_}}},this._maxValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMaxDate();return!C||!_||c._dateAdapter.compareDate(C,_)>=0?null:{matDatepickerMax:{max:C,actual:_}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){c._assignValueProgrammatically(c.value)})}return W(a,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(n){this._assignValueProgrammatically(n)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(n){var l=it(n),c=this._elementRef.nativeElement;this._disabled!==l&&(this._disabled=l,this.stateChanges.next(void 0)),l&&this._isInitialized&&c.blur&&c.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(n){var l=this;this._model=n,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){if(l._shouldHandleChangeEvent(c)){var h=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(h),l._cvaOnChange(h),l._onTouched(),l._formatValue(h),l.dateInput.emit(new cH(l,l._elementRef.nativeElement)),l.dateChange.emit(new cH(l,l._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(n){(function(e,a){for(var n=0,l=Object.keys(e);n2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!this.multiple&&this.selected&&!n.checked&&(this.selected.checked=!1),this._selectionModel?l?this._selectionModel.select(n):this._selectionModel.deselect(n):_=!0,_?Promise.resolve().then(function(){return c._updateModelValue(h)}):this._updateModelValue(h)}},{key:"_isSelected",value:function(n){return this._selectionModel&&this._selectionModel.isSelected(n)}},{key:"_isPrechecked",value:function(n){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(l){return null!=n.value&&l===n.value}):n.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(n){var l=this;this._rawValue=n,this._buttonToggles&&(this.multiple&&n?(Array.isArray(n),this._clearSelection(),n.forEach(function(c){return l._selectValue(c)})):(this._clearSelection(),this._selectValue(n)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(n){return n.checked=!1})}},{key:"_selectValue",value:function(n){var l=this._buttonToggles.find(function(c){return null!=c.value&&c.value===n});l&&(l.checked=!0,this._selectionModel.select(l))}},{key:"_updateModelValue",value:function(n){n&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Tte,8))},e.\u0275dir=ve({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Ote,5),2&t&&Ne(c=Le())&&(n._buttonToggles=c)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",n.disabled),dt("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Xe([jde,{provide:Dte,useExisting:e}])]}),e}(),Wde=El(function(){return function e(){F(this,e)}}()),Ote=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;F(this,n),(D=t.call(this))._changeDetectorRef=c,D._elementRef=h,D._focusMonitor=_,D._isSingleSelector=!1,D._checked=!1,D.ariaLabelledby=null,D._disabled=!1,D.change=new ye;var I=Number(C);return D.tabIndex=I||0===I?I:null,D.buttonToggleGroup=l,D.appearance=k&&k.appearance?k.appearance:"standard",D}return W(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(c){this._appearance=c}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(c){var h=it(c);h!==this._checked&&(this._checked=h,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(c){this._disabled=it(c)}},{key:"ngOnInit",value:function(){var c=this.buttonToggleGroup;this._isSingleSelector=c&&!c.multiple,this.id=this.id||"mat-button-toggle-".concat(Ate++),this._isSingleSelector&&(this.name=c.name),c&&(c._isPrechecked(this)?this.checked=!0:c._isSelected(this)!==this._checked&&c._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var c=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),c&&c._isSelected(this)&&c._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(c){this._buttonElement.nativeElement.focus(c)}},{key:"_onButtonClick",value:function(){var c=!!this._isSingleSelector||!this._checked;c!==this._checked&&(this._checked=c,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Ete(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(Wde);return e.\u0275fac=function(t){return new(t||e)(N(Dte,8),N(Vt),N(Ue),N(na),Ci("tabindex"),N(Tte,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){var l;1&t&&wt(Ude,5),2&t&&Ne(l=Le())&&(n._buttonElement=l.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()}),2&t&&(Ke("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),dt("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Pe],ngContentSelectors:Gde,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){if(1&t&&(nr(),A(0,"button",0,1),ne("click",function(){return n._onButtonClick()}),A(2,"span",2),Wt(3),E(),E(),me(4,"span",3),me(5,"span",4)),2&t){var l=Nn(1);U("id",n.buttonId)("disabled",n.disabled||null),Ke("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n.name||null)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),H(5),U("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)}},directives:[Ls],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),e}(),Yde=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qt,Da],Qt]}),e}();function qde(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit rule"),E())}function Xde(e,a){1&e&&(A(0,"uds-translate"),K(1,"New rule"),E())}function Zde(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.value," ")}}function Kde(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.value," ")}}function Qde(e,a){if(1&e&&(A(0,"mat-button-toggle",22),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.value," ")}}function $de(e,a){if(1&e){var t=De();A(0,"div",23),A(1,"span",24),A(2,"uds-translate"),K(3,"Weekdays"),E(),E(),A(4,"mat-button-toggle-group",25),ne("ngModelChange",function(c){return pe(t),J().wDays=c}),re(5,Qde,2,2,"mat-button-toggle",8),E(),E()}if(2&e){var n=J();H(4),U("ngModel",n.wDays),H(1),U("ngForOf",n.weekDays)}}function Jde(e,a){if(1&e){var t=De();A(0,"mat-form-field",9),A(1,"mat-label"),A(2,"uds-translate"),K(3,"Repeat every"),E(),E(),A(4,"input",6),ne("ngModelChange",function(c){return pe(t),J().rule.interval=c}),E(),A(5,"div",26),K(6),E(),E()}if(2&e){var n=J();H(4),U("ngModel",n.rule.interval),H(2),ze("\xa0",n.frequency(),"")}}var hH={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},pH={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},Ite=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Rte=function(e,a){void 0===a&&(a=!1);for(var t=new Array,n=0;n<7;n++)1&e&&t.push(Ite[n].substr(0,a?100:3)),e>>=1;return t.length?t.join(", "):django.gettext("(no days)")},Lte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.dunits=Object.keys(pH).map(function(c){return{id:c,value:pH[c]}}),this.freqs=Object.keys(hH).map(function(c){return{id:c,value:hH[c][2]}}),this.weekDays=Ite.map(function(c,h){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+pH[this.rule.duration_unit]:django.gettext("with no duration")}return a.replace("$FIELD",n)},e.prototype.save=function(){var a=this;this.rules.save(this.rule).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,qde,2,0,"uds-translate",1),re(2,Xde,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(_){return n.rule.name=_}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),K(13,"Comments"),E(),E(),A(14,"input",3),ne("ngModelChange",function(_){return n.rule.comments=_}),E(),E(),A(15,"h3"),A(16,"uds-translate"),K(17,"Event"),E(),E(),A(18,"mat-form-field",4),A(19,"mat-label"),A(20,"uds-translate"),K(21,"Start time"),E(),E(),A(22,"input",5),ne("ngModelChange",function(_){return n.startTime=_}),E(),E(),A(23,"mat-form-field",4),A(24,"mat-label"),A(25,"uds-translate"),K(26,"Duration"),E(),E(),A(27,"input",6),ne("ngModelChange",function(_){return n.rule.duration=_}),E(),E(),A(28,"mat-form-field",4),A(29,"mat-label"),A(30,"uds-translate"),K(31,"Duration units"),E(),E(),A(32,"mat-select",7),ne("ngModelChange",function(_){return n.rule.duration_unit=_}),re(33,Zde,2,2,"mat-option",8),E(),E(),A(34,"h3"),K(35," Repetition "),E(),A(36,"mat-form-field",9),A(37,"mat-label"),A(38,"uds-translate"),K(39," Start date "),E(),E(),A(40,"input",10),ne("ngModelChange",function(_){return n.startDate=_}),E(),me(41,"mat-datepicker-toggle",11),me(42,"mat-datepicker",null,12),E(),A(44,"mat-form-field",9),A(45,"mat-label"),A(46,"uds-translate"),K(47," Repeat until date "),E(),E(),A(48,"input",13),ne("ngModelChange",function(_){return n.endDate=_}),E(),me(49,"mat-datepicker-toggle",11),me(50,"mat-datepicker",null,14),E(),A(52,"div",15),A(53,"mat-form-field",9),A(54,"mat-label"),A(55,"uds-translate"),K(56,"Frequency"),E(),E(),A(57,"mat-select",16),ne("ngModelChange",function(_){return n.rule.frequency=_})("valueChange",function(){return n.rule.interval=1}),re(58,Kde,2,2,"mat-option",8),E(),E(),re(59,$de,6,2,"div",17),re(60,Jde,7,2,"mat-form-field",18),E(),A(61,"h3"),A(62,"uds-translate"),K(63,"Summary"),E(),E(),A(64,"div",19),K(65),E(),E(),E(),A(66,"mat-dialog-actions"),A(67,"button",20),A(68,"uds-translate"),K(69,"Cancel"),E(),E(),A(70,"button",21),ne("click",function(){return n.save()}),A(71,"uds-translate"),K(72,"Ok"),E(),E(),E()),2&t){var l=Nn(43),c=Nn(51);H(1),U("ngIf",n.rule.id),H(1),U("ngIf",!n.rule.id),H(7),U("ngModel",n.rule.name),H(5),U("ngModel",n.rule.comments),H(8),U("ngModel",n.startTime),H(5),U("ngModel",n.rule.duration),H(5),U("ngModel",n.rule.duration_unit),H(1),U("ngForOf",n.dunits),H(7),U("matDatepicker",l)("ngModel",n.startDate),H(1),U("for",l),H(7),U("matDatepicker",c)("ngModel",n.endDate)("placeholder",n.FOREVER_STRING),H(1),U("for",c),H(8),U("ngModel",n.rule.frequency),H(1),U("ngForOf",n.freqs),H(1),U("ngIf","WEEKDAYS"===n.rule.frequency),H(1),U("ngIf","WEEKDAYS"!==n.rule.frequency),H(5),ze(" ",n.summary()," "),H(5),U("disabled",null!==n.updateRuleData()||""===n.rule.name)}},directives:[jr,Kt,Fr,Mr,Wr,Hn,aa,g,xt,kr,zg,Qa,ar,fH,Mte,rk,wte,$r,In,Lr,Bi,Pte,Ote],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),e}();function the(e,a){1&e&&(A(0,"uds-translate"),K(1,"Rules"),E())}function nhe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,the,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("newAction",function(c){return pe(t),J().onNewRule(c)})("editAction",function(c){return pe(t),J().onEditRule(c)})("deleteAction",function(c){return pe(t),J().onDeleteRule(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),U("@.disabled",!0),H(4),U("rest",n.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","calendars-d-rules"+n.calendar.id)("pageSize",n.api.config.admin.page_size)}}var rhe=function(e){return["/pools","calendars",e]},ihe=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(t).subscribe(function(n){a.calendar=n,a.calendarRules=a.rest.calendars.detail(n.id,"rules")})},e.prototype.onNewRule=function(a){Lte.launch(this.api,this.calendarRules).subscribe(function(){return a.table.overview()})},e.prototype.onEditRule=function(a){Lte.launch(this.api,this.calendarRules,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteRule=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar rule"))},e.prototype.processElement=function(a){!function(e){e.interval="WEEKDAYS"===e.frequency?Rte(e.interval):e.interval+" "+hH[e.frequency][django.pluralidx(e.interval)],e.duration=e.duration+" "+pH[e.duration_unit]}(a)},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,nhe,7,7,"div",5),E()),2&t&&(H(2),U("routerLink",vl(4,rhe,n.calendar?n.calendar.id:"")),H(4),U("src",n.api.staticURL("admin/img/icons/calendars.png"),Gt),H(1),ze(" ",null==n.calendar?null:n.calendar.name," "),H(1),U("ngIf",n.calendar))},directives:[xl,Kt,Nc,Iu,Fc,Yr,Hn],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),e}(),ahe='event'+django.gettext("Set time mark")+"",Fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"timemark",html:ahe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New account"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit account"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account"))},e.prototype.onTimeMark=function(a){var t=this,n=a.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(l){l&&t.rest.accounts.timemark(n.id).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onDetail=function(a){this.api.navigation.gotoAccountDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},e.prototype.processElement=function(a){a.time_mark=78793200===a.time_mark?django.gettext("No time mark"):Ru("SHORT_DATE_FORMAT",a.time_mark)},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onTimeMark(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&U("rest",n.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("onItem",n.processElement)},directives:[Yr],styles:[""]}),e}();function ohe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Account usage"),E())}function she(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,ohe,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),U("@.disabled",!0),H(4),U("rest",n.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","account-d-usage"+n.account.id)}}var lhe=function(e){return["/pools","accounts",e]},uhe=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(t).subscribe(function(n){a.account=n,a.accountUsage=a.rest.accounts.detail(n.id,"usage")})},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account usage"))},e.prototype.processElement=function(a){a.running=this.api.yesno(a.running)},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,she,7,6,"div",5),E()),2&t&&(H(2),U("routerLink",vl(4,lhe,n.account?n.account.id:"")),H(4),U("src",n.api.staticURL("admin/img/icons/accounts.png"),Gt),H(1),ze(" ",null==n.account?null:n.account.name," "),H(1),U("ngIf",n.account))},directives:[xl,Kt,Nc,Iu,Fc,Yr,Hn],styles:[""]}),e}();function che(e,a){1&e&&(A(0,"uds-translate"),K(1,"New image for"),E())}function fhe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit for"),E())}var Nte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.preview="",this.image={id:void 0,data:"",name:""},l.image&&(this.image.id=l.image.id)}return e.launch=function(a,t){void 0===t&&(t=null);var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:t},disableClose:!0}).componentInstance.onSave},e.prototype.onFileChanged=function(a){var t=this,n=a.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var l=new FileReader;l.onload=function(c){var h=l.result;t.preview=h,t.image.data=h.substr(h.indexOf("base64,")+7),t.image.name||(t.image.name=n.name)},l.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},e.prototype.ngOnInit=function(){var a=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(t){switch(a.image=t,a.image.data.substr(2)){case"iV":a.preview="data:image/png;base64,"+a.image.data;break;case"/9":a.preview="data:image/jpeg;base64,"+a.image.data;break;default:a.preview="data:image/gif;base64,"+a.image.data}})},e.prototype.background=function(){var a=this.api.config.image_size[0],t=this.api.config.image_size[1],n={"width.px":a,"height.px":t,"background-size":a+"px "+t+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},e.prototype.save=function(){var a=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){if(1&t){var l=De();A(0,"h4",0),re(1,che,2,0,"uds-translate",1),re(2,fhe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Image name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(h){return n.image.name=h}),E(),E(),A(10,"input",4,5),ne("change",function(h){return n.onFileChanged(h)}),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Image (click to change)"),E(),E(),A(16,"input",6),ne("click",function(){return pe(l),Nn(11).click()}),E(),A(17,"div",7),ne("click",function(){return pe(l),Nn(11).click()}),me(18,"div",8),E(),E(),A(19,"div",9),A(20,"uds-translate"),K(21,' For optimal results, use "squared" images. '),E(),A(22,"uds-translate"),K(23," The image will be resized on upload to "),E(),K(24),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",10),A(27,"uds-translate"),K(28,"Cancel"),E(),E(),A(29,"button",11),ne("click",function(){return n.save()}),A(30,"uds-translate"),K(31,"Ok"),E(),E(),E()}2&t&&(H(1),U("ngIf",!n.image.id),H(1),U("ngIf",n.image.id),H(7),U("ngModel",n.image.name),H(7),U("hidden",!0),H(2),U("ngStyle",n.background()),H(6),Cv(" ",n.api.config.image_size[0],"x",n.api.config.image_size[1]," "))},directives:[jr,Kt,Fr,Mr,Wr,Hn,aa,g,xt,kr,NF,$r,In,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),e}(),Vte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){Nte.launch(this.api).subscribe(function(){return a.table.overview()})},e.prototype.onEdit=function(a){Nte.launch(this.api,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete image"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},e.\u0275fac=function(t){return new(t||e)(N(wr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&U("rest",n.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),e}(),dhe='assessment'+django.gettext("Generate report")+"",Bte=function(){function e(a,t){this.rest=a,this.api=t,this.customButtons=[{id:"genreport",html:dhe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},e.prototype.generateReport=function(a){var t=this,n=new ye;n.subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Generating report...")),t.rest.reports.save(l,a.table.selection.selected[0].id).subscribe(function(c){for(var h=c.encoded?window.atob(c.data):c.data,_=h.length,C=new Uint8Array(_),k=0;k<_;k++)C[k]=h.charCodeAt(k);var D=new Blob([C],{type:c.mime_type});t.api.gui.snackbar.open(django.gettext("Report finished"),django.gettext("dismiss"),{duration:2e3}),setTimeout(function(){(0,oX.saveAs)(D,c.filename)},100)})}),this.api.gui.forms.typedForm(a,django.gettext("Generate report"),!1,[],void 0,a.table.selection.selected[0].id,{save:n})},e.\u0275fac=function(t){return new(t||e)(N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.generateReport(c)}),E()),2&t&&U("rest",n.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]}),e}();function hhe(e,a){1&e&&K(0),2&e&&ze(" ",J().$implicit," ")}function phe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",18),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Pn(n),H(1),U("type",c.config[l][n].crypt?"password":"text")("ngModel",c.config[l][n].value)}}function vhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"textarea",19),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Pn(n),H(1),U("ngModel",c.config[l][n].value)}}function ghe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",20),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Pn(n),H(1),U("ngModel",c.config[l][n].value)}}function mhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",21),A(2,"span",22),K(3),E(),A(4,"mat-slide-toggle",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),K(5),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Pn(n),H(1),U("ngModel",c.config[l][n].value),H(1),ze(" ",c.api.yesno(c.config[l][n].value)," ")}}function _he(e,a){if(1&e&&(A(0,"mat-option",25),K(1),E()),2&e){var t=a.$implicit;U("value",t),H(1),ze(" ",t," ")}}function yhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"mat-select",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),re(5,_he,2,2,"mat-option",24),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),ze(" ",n," "),H(1),U("ngModel",c.config[l][n].value),H(1),U("ngForOf",c.config[l][n].params)}}function bhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",26),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Pn(n),H(1),U("ngModel",c.config[l][n].value)}}function Che(e,a){1&e&&un(0)}function whe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",27),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Pn(n),H(1),U("ngModel",c.config[l][n].value)}}function She(e,a){if(1&e&&(vt(0,15),re(1,phe,5,3,"div",16),re(2,vhe,5,2,"div",16),re(3,ghe,5,2,"div",16),re(4,mhe,6,3,"div",16),re(5,yhe,6,3,"div",16),re(6,bhe,5,2,"div",16),re(7,Che,1,0,"ng-container",16),re(8,whe,5,2,"div",17),xn()),2&e){var t=J().$implicit,n=J().$implicit;U("ngSwitch",J(2).config[n][t].type),H(1),U("ngSwitchCase",0),H(1),U("ngSwitchCase",1),H(1),U("ngSwitchCase",2),H(1),U("ngSwitchCase",3),H(1),U("ngSwitchCase",4),H(1),U("ngSwitchCase",5),H(1),U("ngSwitchCase",6)}}function khe(e,a){if(1&e&&(A(0,"div",13),re(1,She,9,8,"ng-container",14),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J(2);H(1),U("ngIf",l.config[n][t])}}function Mhe(e,a){if(1&e&&(A(0,"mat-tab"),re(1,hhe,1,1,"ng-template",10),A(2,"div",11),re(3,khe,2,1,"div",12),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),U("ngForOf",n.configElements(t))}}function xhe(e,a){if(1&e){var t=De();A(0,"div",4),A(1,"div",5),A(2,"mat-tab-group",6),re(3,Mhe,4,1,"mat-tab",7),E(),A(4,"div",8),A(5,"button",9),ne("click",function(){return pe(t),J().save()}),A(6,"uds-translate"),K(7,"Save"),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),U("@.disabled",!0),H(1),U("ngForOf",n.sections())}}var Hte=["UDS","Security"],zte=["UDS ID"],Ehe=[{path:"",canActivate:[gie],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:hae},{path:"providers",component:Gee},{path:"providers/:provider/detail",component:jee},{path:"providers/:provider",component:Gee},{path:"providers/:provider/detail/:service",component:jee},{path:"authenticators",component:Wee},{path:"authenticators/:authenticator/detail",component:cX},{path:"authenticators/:authenticator",component:Wee},{path:"authenticators/:authenticator/detail/groups/:group",component:cX},{path:"authenticators/:authenticator/detail/users/:user",component:cX},{path:"osmanagers",component:Jee},{path:"osmanagers/:osmanager",component:Jee},{path:"transports",component:ete},{path:"transports/:transport",component:ete},{path:"networks",component:tte},{path:"networks/:network",component:tte},{path:"proxies",component:nte},{path:"proxies/:proxy",component:nte},{path:"pools/service-pools",component:rte},{path:"pools/service-pools/:pool",component:rte},{path:"pools/service-pools/:pool/detail",component:lte},{path:"pools/meta-pools",component:ute},{path:"pools/meta-pools/:metapool",component:ute},{path:"pools/meta-pools/:metapool/detail",component:Jfe},{path:"pools/pool-groups",component:fte},{path:"pools/pool-groups/:poolgroup",component:fte},{path:"pools/calendars",component:dte},{path:"pools/calendars/:calendar",component:dte},{path:"pools/calendars/:calendar/detail",component:ihe},{path:"pools/accounts",component:Fte},{path:"pools/accounts/:account",component:Fte},{path:"pools/accounts/:account/detail",component:uhe},{path:"tools/gallery",component:Vte},{path:"tools/gallery/:image",component:Vte},{path:"tools/reports",component:Bte},{path:"tools/reports/:report",component:Bte},{path:"tools/configuration",component:function(){function e(a,t){this.rest=a,this.api=t}return e.prototype.ngOnInit=function(){var a=this;this.rest.configuration.overview().subscribe(function(t){for(var n in a.config=t,a.config)if(a.config.hasOwnProperty(n))for(var l in a.config[n])if(a.config[n].hasOwnProperty(l)){var c=a.config[n][l];c.crypt?c.value='\u20acfa{}#42123~#||23|\xdf\xf0\u0111\xe6"':3===c.type&&(c.value=!!["1",1,!0].includes(c.value)),c.original_value=c.value}})},e.prototype.sections=function(){var a=[];for(var t in this.config)this.config.hasOwnProperty(t)&&!Hte.includes(t)&&a.push(t);return(a=a.sort(function(n,l){return n.localeCompare(l)})).unshift.apply(a,Hte),a},e.prototype.configElements=function(a){var t=[],n=this.config[a];if(n)for(var l in n)n.hasOwnProperty(l)&&("UDS"!==a||!zte.includes(l))&&t.push(l);return t=t.sort(function(c,h){return c.localeCompare(h)}),"UDS"===a&&t.unshift.apply(t,zte),t},e.prototype.save=function(){var a=this,t={};for(var n in this.config)if(this.config.hasOwnProperty(n))for(var l in this.config[n])if(this.config[n].hasOwnProperty(l)){var c=this.config[n][l];if(c.original_value!==c.value){c.original_value=c.value,t[n]||(t[n]={});var h=c.value;3===c.type&&(h=["1",1,!0].includes(c.value)?"1":"0"),t[n][l]={value:h}}}this.rest.configuration.save(t).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})},e.\u0275fac=function(t){return new(t||e)(N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"type","ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"slider-label"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),me(2,"img",2),K(3,"\xa0"),A(4,"uds-translate"),K(5,"UDS Configuration"),E(),E(),re(6,xhe,8,2,"div",3),E()),2&t&&(H(2),U("src",n.api.staticURL("admin/img/icons/configuration.png"),Gt),H(4),U("ngIf",n.config))},directives:[Hn,Kt,Nc,ar,In,Iu,Fc,bu,Cu,ED,Mr,Wr,aa,g,xt,kr,zg,fk,Qa,Bi],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),e}()},{path:"tools/tokens/actor",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}()},{path:"tools/tokens/tunnel",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(wr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),U("rest",n.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}()}]},{path:"**",redirectTo:"summary"}],Phe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[FA.forRoot(Ehe,{relativeLinkResolution:"legacy"})],FA]}),e}(),jte=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Ghe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Da,Qt,ld,jte],Qt,jte]}),e}(),jhe=["*"],Wte=new Ee("MatChipRemove"),Yte=new Ee("MatChipAvatar"),qte=new Ee("MatChipTrailingIcon"),Yhe=gp(Eu(El(function e(a){F(this,e),this._elementRef=a}),"primary"),-1),vH=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._ngZone=c,L._changeDetectorRef=C,L._hasFocus=!1,L.chipListSelectable=!0,L._chipListMultiple=!1,L._chipListDisabled=!1,L._selected=!1,L._selectable=!0,L._disabled=!1,L._removable=!0,L._onFocus=new qe,L._onBlur=new qe,L.selectionChange=new ye,L.destroyed=new ye,L.removed=new ye,L._addHostClassName(),L._chipRippleTarget=k.createElement("div"),L._chipRippleTarget.classList.add("mat-chip-ripple"),L._elementRef.nativeElement.appendChild(L._chipRippleTarget),L._chipRipple=new gP(It(L),c,L._chipRippleTarget,h),L._chipRipple.setupTriggerEvents(l),L.rippleConfig=_||{},L._animationsDisabled="NoopAnimations"===D,L.tabIndex=null!=I&&parseInt(I)||-1,L}return W(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(c){var h=it(c);h!==this._selected&&(this._selected=h,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(c){this._value=c}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(c){this._selectable=it(c)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(c){this._disabled=it(c)}},{key:"removable",get:function(){return this._removable},set:function(c){this._removable=it(c)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var c="mat-basic-chip",h=this._elementRef.nativeElement;h.hasAttribute(c)||h.tagName.toLowerCase()===c?h.classList.add(c):h.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(c),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(c){this.disabled?c.preventDefault():c.stopPropagation()}},{key:"_handleKeydown",value:function(c){if(!this.disabled)switch(c.keyCode){case 46:case 8:this.remove(),c.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),c.preventDefault()}}},{key:"_blur",value:function(){var c=this;this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._ngZone.run(function(){c._hasFocus=!1,c._onBlur.next({chip:c})})})}},{key:"_dispatchSelectionChange",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:c,selected:this._selected})}}]),n}(Yhe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Vt),N(lt),N(Un,8),Ci("tabindex"))},e.\u0275dir=ve({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Yte,5),Zt(l,qte,5),Zt(l,Wte,5)),2&t&&(Ne(c=Le())&&(n.avatar=c.first),Ne(c=Le())&&(n.trailingIcon=c.first),Ne(c=Le())&&(n.removeIcon=c.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&t&&(Ke("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),dt("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Pe]}),e}(),Xte=function(){var e=function(){function a(t,n){F(this,a),this._parentChip=t,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return W(a,[{key:"_handleClick",value:function(n){var l=this._parentChip;l.removable&&!l.disabled&&l.remove(),n.stopPropagation()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(vH),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})},features:[Xe([{provide:Wte,useExisting:e}])]}),e}(),Zte=new Ee("mat-chips-default-options"),Zhe=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),Khe=0,Qhe=function e(a,t){F(this,e),this.source=a,this.value=t},Kte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,k,_,C,D))._elementRef=l,I._changeDetectorRef=c,I._dir=h,I.controlType="mat-chip-list",I._lastDestroyedChipIndex=null,I._destroyed=new qe,I._uid="mat-chip-list-".concat(Khe++),I._tabIndex=0,I._userTabIndex=null,I._onTouched=function(){},I._onChange=function(){},I._multiple=!1,I._compareWith=function(L,G){return L===G},I._required=!1,I._disabled=!1,I.ariaOrientation="horizontal",I._selectable=!0,I.change=new ye,I.valueChange=new ye,I.ngControl&&(I.ngControl.valueAccessor=It(I)),I}return W(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this.writeValue(c),this._value=c}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(c){var h=this;this._selectable=it(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=h._selectable})}},{key:"tabIndex",set:function(c){this._userTabIndex=c,this._tabIndex=c}},{key:"chipSelectionChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c._onFocus})))}},{key:"chipBlurChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c.destroyed})))}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new ib(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ht(this._destroyed)).subscribe(function(h){return c._keyManager.withHorizontalOrientation(h)}),this._keyManager.tabOut.pipe(Ht(this._destroyed)).subscribe(function(){c._allowFocusEscape()}),this.chips.changes.pipe(Qr(null),Ht(this._destroyed)).subscribe(function(){c.disabled&&Promise.resolve().then(function(){c._syncChipsState()}),c._resetChips(),c._initializeSelection(),c._updateTabIndex(),c._updateFocusForDestroyedChips(),c.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new ip(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(c){this._chipInput=c,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",c.id)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"writeValue",value:function(c){this.chips&&this._setSelectionByValue(c,!1)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this.stateChanges.next()}},{key:"onContainerClick",value:function(c){this._originatesFromChip(c)||this.focus()}},{key:"focus",value:function(c){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(c),this.stateChanges.next()))}},{key:"_focusInput",value:function(c){this._chipInput&&this._chipInput.focus(c)}},{key:"_keydown",value:function(c){var h=c.target;h&&h.classList.contains("mat-chip")&&(this._keyManager.onKeydown(c),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var c=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(c)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(c){return c>=0&&c1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(k){return k.deselect()}),Array.isArray(c))c.forEach(function(k){return h._selectValue(k,_)}),this._sortValues();else{var C=this._selectValue(c,_);C&&_&&this._keyManager.setActiveItem(C)}}},{key:"_selectValue",value:function(c){var h=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],C=this.chips.find(function(k){return null!=k.value&&h._compareWith(k.value,c)});return C&&(_?C.selectViaInteraction():C.select(),this._selectionModel.select(C)),C}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){(c.ngControl||c._value)&&(c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value,!1),c.stateChanges.next())})}},{key:"_clearSelection",value:function(c){this._selectionModel.clear(),this.chips.forEach(function(h){h!==c&&h.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(h){h.selected&&c._selectionModel.select(h)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var h;h=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.change.emit(new Qhe(this,h)),this.valueChange.emit(h),this._onChange(h),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var c=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){c.focused||c._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var c=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){c._tabIndex=c._userTabIndex||0,c._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var c=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(h){h.source.selected?c._selectionModel.select(h.source):c._selectionModel.deselect(h.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),h.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(h){var _=c.chips.toArray().indexOf(h.chip);c._isValidIndex(_)&&c._keyManager.updateActiveItem(_),c.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){c._blur(),c.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var c=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(h){var _=h.chip,C=c.chips.toArray().indexOf(h.chip);c._isValidIndex(C)&&_._hasFocus&&(c._lastDestroyedChipIndex=C)})}},{key:"_originatesFromChip",value:function(c){for(var h=c.target;h&&h!==this._elementRef.nativeElement;){if(h.classList.contains("mat-chip"))return!0;h=h.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(c){return c._hasFocus})}},{key:"_syncChipsState",value:function(){var c=this;this.chips&&this.chips.forEach(function(h){h._chipListDisabled=c._disabled,h._chipListMultiple=c.multiple})}}]),n}(Zhe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Sr,8),N(Rc,8),N(yp,8),N(dd),N(Ut,10))},e.\u0275cmp=ke({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,vH,5),2&t&&Ne(c=Le())&&(n.chips=c)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(c){return n._keydown(c)}),2&t&&(Xi("id",n._uid),Ke("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),dt("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Xe([{provide:nk,useExisting:e}]),Pe],ngContentSelectors:jhe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,n){1&t&&(nr(),A(0,"div",0),Wt(1),E())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),$he=0,Qte=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new ye,this.placeholder="",this.id="mat-chip-list-input-".concat($he++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return W(a,[{key:"chipList",set:function(n){n&&(this._chipList=n,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(n){this._addOnBlur=it(n)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(n){this._disabled=it(n)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(n){if(n){if(9===n.keyCode&&!Vi(n,"shiftKey")&&this._chipList._allowFocusEscape(),8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}},{key:"_keyup",value:function(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(n){!this.inputElement.value&&!!n&&this._chipList._keydown(n),(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==n||n.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(n){this.inputElement.focus(n)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(n){return!Vi(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Zte))},e.\u0275dir=ve({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._keydown(c)})("keyup",function(c){return n._keyup(c)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&t&&(Xi("id",n.id),Ke("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[an]}),e}(),Jhe={separatorKeyCodes:[13]},epe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd,{provide:Zte,useValue:Jhe}],imports:[[Qt]]}),e}(),ope=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Cpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,Qt,ope,xg]]}),e}(),wpe=["*",[["mat-toolbar-row"]]],Spe=["*","mat-toolbar-row"],kpe=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),Mpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),xpe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l))._platform=c,_._document=h,_}return W(n,[{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return c._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(kpe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt))},e.\u0275cmp=ke({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Mpe,5),2&t&&Ne(c=Le())&&(n._toolbarRows=c)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Pe],ngContentSelectors:Spe,decls:2,vars:0,template:function(t,n){1&t&&(nr(wpe),Wt(0),Wt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),Tpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Qt],Qt]}),e}(),Dpe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:tee,useValue:{floatLabel:"always"}},{provide:hP,useValue:udsData.language}],imports:[Wa,Jne,ere,Tpe,Ic,ele,dee,Cpe,m5,z5,gse,see,zde,eq,ase,Soe,Ioe,Wse,Ghe,Ore,epe,Yde,Gue,kue,DJ,nle,Fse]}),e}();function Ape(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){var h=pe(t).$implicit;return J().changeLang(h)}),K(1),E()}if(2&e){var n=a.$implicit;H(1),Pn(n.name)}}function Epe(e,a){if(1&e&&(A(0,"button",12),A(1,"i",7),K(2,"face"),E(),K(3),E()),2&e){var t=J();U("matMenuTriggerFor",Nn(7)),H(3),Pn(t.api.user.user)}}function Ppe(e,a){if(1&e&&(A(0,"button",18),K(1),A(2,"i",7),K(3,"arrow_drop_down"),E(),E()),2&e){var t=J();U("matMenuTriggerFor",Nn(7)),H(1),ze("",t.api.user.user," ")}}var Ope=function(){function e(a){this.api=a,this.isNavbarCollapsed=!0;var t=a.config.language;this.langs=[];for(var n=0,l=a.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']}),e}();function Npe(e,a){1&e&&me(0,"div",1),2&e&&U("innerHTML",J().messages,Si)}var Vpe=function(){function e(a){this.api=a,this.messages="",this.visible=!1}return e.prototype.ngOnInit=function(){var a=this;if(this.api.notices.length>0){var n='
';this.messages='
'+n+this.api.notices.map(function(l){return l.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){a.visible=!0})}},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,n){1&t&&re(0,Npe,1,1,"div",0),2&t&&U("ngIf",n.visible)},directives:[Kt],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),e}(),Bpe=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,n){1&t&&(A(0,"div"),K(1,"\xa9 2012-2020 "),A(2,"a",0),K(3,"Virtual Cable S.L.U."),E(),E())},styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']}),e}(),Hpe=function(){function e(a){this.api=a,this.title="UDS Admin",this.blackTheme=!1}return e.prototype.handleKeyboardEvent=function(a){a.altKey&&a.ctrlKey&&"b"===a.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))},e.prototype.ngOnInit=function(){this.api.switchTheme(this.blackTheme)},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-root"]],hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n.handleKeyboardEvent(c)},!1,E0)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,n){1&t&&(me(0,"uds-navbar"),me(1,"uds-sidebar"),A(2,"div",0),A(3,"div",1),me(4,"uds-notices"),me(5,"router-outlet"),E(),A(6,"div",2),me(7,"uds-footer"),E(),E())},directives:[Ope,Fpe,Vpe,Wy,Bpe],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),e}(),zpe=function(e){function a(){var t=e.call(this)||this;return t.itemsPerPageLabel=django.gettext("Items per page"),t}return ia(a,e),a.\u0275prov=We({token:a,factory:a.\u0275fac=function(n){return new(n||a)}}),a}(kb),Upe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("autocomplete","new-"+n.field.name))},directives:[Mr,Wr,aa,g,xt,kr,Lc,Rq],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Gpe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly))},directives:[Mr,Wr,aa,zg,g,xt,kr,Lc],styles:[""]}),e}(),jpe=function(){function e(){this.changed=new ye,this.passwordType="password"}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),A(4,"a",2),ne("click",function(){return n.passwordType="text"===n.passwordType?"password":"text"}),A(5,"i",3),K(6,"remove_red_eye"),E(),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("type",n.passwordType))},directives:[Mr,Wr,aa,g,xt,kr,Lc,mp,rk],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Wpe=function(){function e(){}return e.prototype.ngOnInit=function(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,n){},styles:[""]}),e}(),Ype=function(){function e(){}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"textarea",1),ne("ngModelChange",function(c){return n.field.value=c}),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",n.field.gui.required)("readonly",n.field.gui.rdonly))},directives:[Mr,Wr,aa,g,xt,kr,Lc],styles:[""]}),e}();function qpe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function Xpe(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.text," ")}}var Zpe=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.value=c})("valueChange",function(){return n.changed.emit(n)}),re(4,qpe,1,0,"uds-mat-select-search",1),re(5,Xpe,2,2,"mat-option",2),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),U("ngIf",n.field.gui.values.length>10),H(1),U("ngForOf",n.filteredValues()))},directives:[Mr,Wr,Qa,xt,kr,Lc,Kt,ar,Vc,Bi],styles:[""]}),e}();function Kpe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function Qpe(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;U("value",t.id),H(1),ze(" ",t.text," ")}}var $pe=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(a,t,n){n[t]=""+a.id}):this.field.values=new Array},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.values=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Kpe,1,0,"uds-mat-select-search",1),re(5,Qpe,2,2,"mat-option",2),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("ngModel",n.field.values)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),U("ngIf",n.field.gui.values.length>10),H(1),U("ngForOf",n.filteredValues()))},directives:[Mr,Wr,Qa,xt,kr,Lc,Kt,ar,Vc,Bi],styles:[""]}),e}();function Jpe(e,a){if(1&e){var t=De();A(0,"div",12),A(1,"div",13),K(2),E(),A(3,"div",14),K(4," \xa0"),A(5,"a",15),ne("click",function(){var h=pe(t).index;return J().removeElement(h)}),A(6,"i",16),K(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),ze(" ",n," ")}}var eve=function(){function e(a,t,n,l){var c=this;this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.values=[],this.input="",this.onSave=new ye(!0),this.data.values.forEach(function(h){return c.values.push(h)})}return e.launch=function(a,t,n){var l=window.innerWidth<800?"50%":"30%";return a.gui.dialog.open(e,{width:l,data:{title:t,values:n},disableClose:!0}).componentInstance.onSave},e.prototype.addElements=function(){var a=this;this.input.split(",").forEach(function(t){a.values.push(t)}),this.input=""},e.prototype.checkKey=function(a){"Enter"===a.code&&this.addElements()},e.prototype.removeAll=function(){this.values.length=0},e.prototype.removeElement=function(a){this.values.splice(a,1)},e.prototype.save=function(){var a=this;this.data.values.length=0,this.values.forEach(function(t){return a.data.values.push(t)}),this.onSave.emit(this.values),this.dialogRef.close()},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(Gr))},e.\u0275cmp=ke({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),K(1),E(),A(2,"mat-dialog-content"),A(3,"div",1),A(4,"div",2),re(5,Jpe,8,1,"div",3),E(),A(6,"div",4),A(7,"button",5),ne("click",function(){return n.removeAll()}),A(8,"uds-translate"),K(9,"Remove all"),E(),E(),E(),A(10,"div",6),A(11,"mat-form-field",7),A(12,"input",8),ne("keyup",function(c){return n.checkKey(c)})("ngModelChange",function(c){return n.input=c}),E(),A(13,"button",9),ne("click",function(){return n.addElements()}),A(14,"uds-translate"),K(15,"Add"),E(),E(),E(),E(),E(),E(),A(16,"mat-dialog-actions"),A(17,"button",10),A(18,"uds-translate"),K(19,"Cancel"),E(),E(),A(20,"button",11),ne("click",function(){return n.save()}),A(21,"uds-translate"),K(22,"Ok"),E(),E(),E()),2&t&&(H(1),ze(" ",n.data.title,"\n"),H(4),U("ngForOf",n.values),H(7),U("ngModel",n.input))},directives:[jr,Fr,ar,In,Hn,Mr,aa,g,xt,kr,rk,$r,Lr],styles:['.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),tve=function(){function e(a){this.api=a,this.changed=new ye}return e.prototype.ngOnInit=function(){},e.prototype.launch=function(){var a=this;void 0===this.field.values&&(this.field.values=[]),eve.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(t){a.changed.emit({field:a.field})})},e.prototype.getValue=function(){if(void 0===this.field.values)return"";var a=this.field.values.filter(function(t,n,l){return n<5}).join(", ");return this.field.values.length>5&&(a+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),a},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("click",function(){return n.launch()}),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("readonly",!0)("value",n.getValue())("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly))},directives:[Mr,Wr,aa],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),nve=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=function(e){return""===e||null==e}(this.field.value)?Gq(this.field.gui.defvalue):Gq(this.field.value)},e.prototype.getValue=function(){return Gq(this.field.value)?django.gettext("Yes"):django.gettext("No")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"span",1),K(2),E(),A(3,"mat-slide-toggle",2),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),K(4),E(),E()),2&t&&(H(2),Pn(n.field.gui.label),H(1),U("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),ze(" ",n.getValue()," "))},directives:[fk,Kee,xt,kr,Lc],styles:[".label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function rve(e,a){if(1&e&&me(0,"div",5),2&e){var t=J().$implicit;U("innerHTML",J().asIcon(t),Si)}}function ive(e,a){if(1&e&&(A(0,"div"),re(1,rve,1,1,"div",4),E()),2&e){var t=a.$implicit,n=J();H(1),U("ngIf",t.id==n.field.value)}}function ave(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",6),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function ove(e,a){if(1&e&&(A(0,"mat-option",7),me(1,"div",5),E()),2&e){var t=a.$implicit,n=J();U("value",t.id),H(1),U("innerHTML",n.asIcon(t),Si)}}var sve=function(){function e(a){this.api=a,this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},e.prototype.asIcon=function(a){return this.api.safeString(this.api.gui.icon(a.img)+a.text)},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("valueChange",function(){return n.changed.emit(n)})("ngModelChange",function(c){return n.field.value=c}),A(4,"mat-select-trigger"),re(5,ive,2,1,"div",1),E(),re(6,ave,1,0,"uds-mat-select-search",2),re(7,ove,2,2,"mat-option",3),E(),E()),2&t&&(H(2),ze(" ",n.field.gui.label," "),H(1),U("placeholder",n.field.gui.tooltip)("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(2),U("ngForOf",n.field.gui.values),H(1),U("ngIf",n.field.gui.values.length>10),H(1),U("ngForOf",n.filteredValues()))},directives:[Mr,Wr,Qa,xt,kr,Lc,Jae,ar,Kt,Vc,Bi],styles:[""]}),e}(),lve=function(){function e(){this.changed=new ye,this.value=new Date}return Object.defineProperty(e.prototype,"date",{get:function(){return this.value},set:function(a){this.value!==a&&(this.value=a,this.field.value=JS("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=JS("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=JS("%Y-12-31"));var a=this.field.value.split("-");3===a.length&&(this.value=new Date(+a[0],+a[1]-1,+a[2]))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(h){return n.date=h}),E(),me(4,"mat-datepicker-toggle",2),me(5,"mat-datepicker",null,3),E()),2&t){var l=Nn(6);H(2),ze(" ",n.field.gui.label," "),H(1),U("matDatepicker",l)("ngModel",n.date)("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly),H(1),U("for",l)}},directives:[Mr,Wr,aa,fH,g,xt,kr,Mte,rk,wte],styles:[""]}),e}();function uve(e,a){if(1&e){var t=De();A(0,"mat-chip",5),ne("removed",function(){var _=pe(t).$implicit;return J().remove(_)}),K(1),A(2,"i",6),K(3,"cancel"),E(),E()}if(2&e){var n=a.$implicit,l=J();U("selectable",!1)("removable",!0!==l.field.gui.rdonly),H(1),ze(" ",n," ")}}var a,t,n,cve=function(){function e(){this.changed=new ye,this.separatorKeysCodes=[13,188]}return e.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(a,t,n){""===a.trim()&&n.splice(t,1)})},e.prototype.add=function(a){var t=a.input,n=a.value;(n||"").trim()&&this.field.values.push(n.trim()),t&&(t.value="")},e.prototype.remove=function(a){var t=this.field.values.indexOf(a);t>=0&&this.field.values.splice(t,1)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"mat-chip-list",1,2),ne("change",function(){return n.changed.emit(n)}),re(5,uve,4,3,"mat-chip",3),A(6,"input",4),ne("matChipInputTokenEnd",function(h){return n.add(h)}),E(),E(),E()),2&t){var l=Nn(4);H(2),ze(" ",n.field.gui.label," "),H(1),U("selectable",!1)("disabled",!0===n.field.gui.rdonly),H(2),U("ngForOf",n.field.values),H(1),U("placeholder",n.field.gui.tooltip)("matChipInputFor",l)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[Mr,Wr,Kte,ar,Qte,vH,Xte],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),e}(),fve=(Dt(41419),function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e,bootstrap:[Hpe]}),e.\u0275inj=pt({providers:[Pt,on,{provide:kb,useClass:zpe}],imports:[[$D,kN,Phe,H9,Dpe,uae.forRoot({echarts:function(){return Promise.resolve().then(Dt.bind(Dt,38175))}})]]}),e}());a=[bu,fee,Cu,Upe,Ype,Gpe,jpe,Wpe,Zpe,$pe,tve,nve,sve,lve,cve],t=[],(n=vJ.\u0275cmp).directiveDefs=function(){return a.map(Vl)},n.pipeDefs=function(){return t.map(xk)},function(){if(ac)throw new Error("Cannot enable prod mode after platform setup.");XT=!1}(),hj().bootstrapModule(fve).catch(function(e){return console.log(e)})},79052:function(Zo,sr,Dt){Zo.exports=Dt(45579)}},function(Zo){Zo(Zo.s=65686)}]); \ No newline at end of file +(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[179],{98255:function(Zo){function sr(Dt){return Promise.resolve().then(function(){var Oe=new Error("Cannot find module '"+Dt+"'");throw Oe.code="MODULE_NOT_FOUND",Oe})}sr.keys=function(){return[]},sr.resolve=sr,sr.id=98255,Zo.exports=sr},38175:function(Zo,sr,Dt){"use strict";Dt.r(sr),Dt.d(sr,{Axis:function(){return _l},ChartView:function(){return Vn},ComponentModel:function(){return qt},ComponentView:function(){return un},List:function(){return Ga},Model:function(){return Nn},PRIORITY:function(){return lT},SeriesModel:function(){return vt},color:function(){return Ie},connect:function(){return G8},dataTool:function(){return q8},dependencies:function(){return F8},disConnect:function(){return O2},disconnect:function(){return AZ},dispose:function(){return j8},env:function(){return Ze},extendChartView:function(){return EU},extendComponentModel:function(){return VZ},extendComponentView:function(){return BZ},extendSeriesModel:function(){return AU},format:function(){return It},getCoordinateSystemDimensions:function(){return W8},getInstanceByDom:function(){return I2},getInstanceById:function(){return R2},getMap:function(){return Y8},graphic:function(){return Gn},helper:function(){return _t},init:function(){return DZ},innerDrawElementOnCanvas:function(){return tT},matrix:function(){return ko},number:function(){return ae},parseGeoJSON:function(){return b2},parseGeoJson:function(){return b2},registerAction:function(){return pl},registerCoordinateSystem:function(){return B2},registerLayout:function(){return H2},registerLoading:function(){return mT},registerLocale:function(){return LM},registerMap:function(){return _T},registerPostInit:function(){return N2},registerPostUpdate:function(){return V2},registerPreprocessor:function(){return L2},registerProcessor:function(){return F2},registerTheme:function(){return $C},registerTransform:function(){return U2},registerUpdateLifecycle:function(){return vT},registerVisual:function(){return Bf},setCanvasCreator:function(){return EZ},throttle:function(){return Wt},time:function(){return xr},use:function(){return Ot},util:function(){return Vu},vector:function(){return Ui},version:function(){return M2},zrUtil:function(){return Oe},zrender:function(){return W}});var Oe={};Dt.r(Oe),Dt.d(Oe,{$override:function(){return mk},HashMap:function(){return qP},assert:function(){return Oa},bind:function(){return Ye},clone:function(){return rt},concatArray:function(){return Bb},createCanvas:function(){return md},createHashMap:function(){return et},createObject:function(){return Mp},curry:function(){return St},defaults:function(){return tt},each:function(){return q},eqNaN:function(){return Uu},extend:function(){return Se},filter:function(){return Yn},find:function(){return UP},guid:function(){return qe},hasOwn:function(){return Ae},indexOf:function(){return Rt},inherits:function(){return kp},isArray:function(){return we},isArrayLike:function(){return Pa},isBuiltInObject:function(){return GP},isDom:function(){return Xr},isFunction:function(){return An},isGradientObject:function(){return jP},isImagePatternObject:function(){return WP},isNumber:function(){return yk},isObject:function(){return at},isPrimitive:function(){return Zg},isRegExp:function(){return SH},isString:function(){return yt},isStringSafe:function(){return Gc},isTypedArray:function(){return Ii},keys:function(){return _n},logError:function(){return Ns},map:function(){return Te},merge:function(){return He},mergeAll:function(){return Lb},mixin:function(){return qr},noop:function(){return Mo},normalizeCssArray:function(){return Nb},reduce:function(){return zu},retrieve:function(){return ni},retrieve2:function(){return ot},retrieve3:function(){return Qo},setAsPrimitive:function(){return Vb},slice:function(){return Fb},trim:function(){return jc}});var Ui={};Dt.r(Ui),Dt.d(Ui,{add:function(){return dr},applyTransform:function(){return _i},clone:function(){return Gu},copy:function(){return ua},create:function(){return _d},dist:function(){return Vs},distSquare:function(){return Xc},distance:function(){return qc},distanceSquare:function(){return wk},div:function(){return KP},dot:function(){return xH},len:function(){return zb},lenSquare:function(){return ZP},length:function(){return We},lengthSquare:function(){return pt},lerp:function(){return Cd},max:function(){return ju},min:function(){return Ia},mul:function(){return Yc},negate:function(){return yn},normalize:function(){return bd},scale:function(){return Ub},scaleAndAdd:function(){return Ck},set:function(){return Ja},sub:function(){return yd}});var Ie={};Dt.r(Ie),Dt.d(Ie,{fastLerp:function(){return Wb},fastMapToColor:function(){return FX},lerp:function(){return IH},lift:function(){return lO},lum:function(){return qb},mapToColor:function(){return cO},modifyAlpha:function(){return Yb},modifyHSL:function(){return Qc},parse:function(){return La},random:function(){return Ad},stringify:function(){return zl},toHex:function(){return uO}});var ko={};Dt.r(ko),Dt.d(ko,{clone:function(){return lm},copy:function(){return Po},create:function(){return no},identity:function(){return Wu},invert:function(){return Gl},mul:function(){return Jo},rotate:function(){return Od},scale:function(){return $b},translate:function(){return Oo}});var W={};Dt.r(W),Dt.d(W,{dispose:function(){return GH},disposeAll:function(){return kO},getInstance:function(){return MO},init:function(){return Hp},registerPainter:function(){return xO},version:function(){return jH}});var F={};Dt.r(F),Dt.d(F,{Arc:function(){return i_},BezierCurve:function(){return c_},BoundingRect:function(){return Ft},Circle:function(){return sl},CompoundPath:function(){return Nx},Ellipse:function(){return yC},Group:function(){return ct},Image:function(){return si},IncrementalDisplayable:function(){return Tv},Line:function(){return Ti},LinearGradient:function(){return xv},OrientedBoundingRect:function(){return TC},Path:function(){return Nt},Point:function(){return Tt},Polygon:function(){return ya},Polyline:function(){return br},RadialGradient:function(){return MC},Rect:function(){return sn},Ring:function(){return Mv},Sector:function(){return ir},Text:function(){return fn},applyTransform:function(){return ul},clipPointsByRect:function(){return Gx},clipRectByRect:function(){return YR},createIcon:function(){return cl},extendPath:function(){return UR},extendShape:function(){return Bx},getShapeClass:function(){return Hx},getTransform:function(){return Lf},groupTransition:function(){return Dv},initProps:function(){return yr},isElementRemoved:function(){return ev},lineLineIntersect:function(){return jx},linePolygonIntersect:function(){return v_},makeImage:function(){return GR},makePath:function(){return DC},mergePath:function(){return ba},registerShape:function(){return ll},removeElement:function(){return Cf},removeElementWithFadeOut:function(){return Fm},resizePath:function(){return Ux},setTooltipConfig:function(){return Av},subPixelOptimize:function(){return Rf},subPixelOptimizeLine:function(){return a8},subPixelOptimizeRect:function(){return jR},transformDirection:function(){return AC},updateProps:function(){return ln}});var _t={};Dt.r(_t),Dt.d(_t,{createDimensions:function(){return $2},createList:function(){return gU},createScale:function(){return mU},createSymbol:function(){return Ir},createTextStyle:function(){return bL},dataStack:function(){return _L},enableHoverEmphasis:function(){return qn},getECData:function(){return ht},getLayoutRect:function(){return li},mixinAxisModelCommonMethods:function(){return yL}});var ae={};Dt.r(ae),Dt.d(ae,{MAX_SAFE_INTEGER:function(){return Up},asc:function(){return io},getPercentWithPrecision:function(){return TO},getPixelPrecision:function(){return o0},getPrecision:function(){return ns},getPrecisionSafe:function(){return qk},isNumeric:function(){return of},isRadianAroundZero:function(){return hm},linearMap:function(){return bn},nice:function(){return pm},numericToNumber:function(){return Fa},parseDate:function(){return ao},quantile:function(){return Ci},quantity:function(){return Fd},quantityExponent:function(){return Xt},reformIntervals:function(){return af},remRadian:function(){return Ld},round:function(){return hi}});var xr={};Dt.r(xr),Dt.d(xr,{format:function(){return iu},parse:function(){return ao}});var Gn={};Dt.r(Gn),Dt.d(Gn,{Arc:function(){return i_},BezierCurve:function(){return c_},BoundingRect:function(){return Ft},Circle:function(){return sl},CompoundPath:function(){return Nx},Ellipse:function(){return yC},Group:function(){return ct},Image:function(){return si},IncrementalDisplayable:function(){return Tv},Line:function(){return Ti},LinearGradient:function(){return xv},Polygon:function(){return ya},Polyline:function(){return br},RadialGradient:function(){return MC},Rect:function(){return sn},Ring:function(){return Mv},Sector:function(){return ir},Text:function(){return fn},clipPointsByRect:function(){return Gx},clipRectByRect:function(){return YR},createIcon:function(){return cl},extendPath:function(){return UR},extendShape:function(){return Bx},getShapeClass:function(){return Hx},getTransform:function(){return Lf},initProps:function(){return yr},makeImage:function(){return GR},makePath:function(){return DC},mergePath:function(){return ba},registerShape:function(){return ll},resizePath:function(){return Ux},updateProps:function(){return ln}});var It={};Dt.r(It),Dt.d(It,{addCommas:function(){return UM},capitalFirst:function(){return zz},encodeHTML:function(){return Bo},formatTime:function(){return Hz},formatTpl:function(){return Wm},getTextRect:function(){return CL},getTooltipMarker:function(){return SI},normalizeCssArray:function(){return lh},toCamelCase:function(){return Na},truncateText:function(){return eM}});var Vu={};Dt.r(Vu),Dt.d(Vu,{bind:function(){return Ye},clone:function(){return rt},curry:function(){return St},defaults:function(){return tt},each:function(){return q},extend:function(){return Se},filter:function(){return Yn},indexOf:function(){return Rt},inherits:function(){return kp},isArray:function(){return we},isFunction:function(){return An},isObject:function(){return at},isString:function(){return yt},map:function(){return Te},merge:function(){return He},reduce:function(){return zu}});var ue=function(o,i){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(r[u]=s[u])})(o,i)};function he(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=o}ue(o,i),o.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}var ei=function(){return(ei=Object.assign||function(i){for(var r,s=1,u=arguments.length;s18),d&&(r.weChat=!0),i.canvasSupported=!!document.createElement("canvas").getContext,i.svgSupported="undefined"!=typeof SVGRect,i.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,i.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),i.domSupported="undefined"!=typeof document;var p=document.documentElement.style;i.transform3dSupported=(r.ie&&"transition"in p||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in p)&&!("OTransition"in p),i.transformSupported=i.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,fr);var Ze=fr,Fs={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},HP={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Sp=Object.prototype.toString,Uc=Array.prototype,Ob=Uc.forEach,AX=Uc.filter,Ib=Uc.slice,gn=Uc.map,gk=function(){}.constructor,Rb=gk?gk.prototype:null,Hu={};function mk(o,i){Hu[o]=i}var zP=2311;function qe(){return zP++}function Ns(){for(var o=[],i=0;i>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[v]+":0",u[g]+":0",s[1-v]+":auto",u[1-g]+":auto",""].join("!important;"),o.appendChild(d),r.push(d)}return r}(i,f),f,u);if(p)return p(o,r,s),!0}return!1}function nr(o){return"CANVAS"===o.nodeName.toUpperCase()}var Dp="undefined"!=typeof window&&!!window.addEventListener,Mk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qg=[];function Gb(o,i,r,s){return r=r||{},s||!Ze.canvasSupported?eO(o,i,r):Ze.browser.firefox&&null!=i.layerX&&i.layerX!==i.offsetX?(r.zrX=i.layerX,r.zrY=i.layerY):null!=i.offsetX?(r.zrX=i.offsetX,r.zrY=i.offsetY):eO(o,i,r),r}function eO(o,i,r){if(Ze.domSupported&&o.getBoundingClientRect){var s=i.clientX,u=i.clientY;if(nr(o)){var f=o.getBoundingClientRect();return r.zrX=s-f.left,void(r.zrY=u-f.top)}if(JP(Qg,o,s,u))return r.zrX=Qg[0],void(r.zrY=Qg[1])}r.zrX=r.zrY=0}function zs(o){return o||window.event}function ca(o,i,r){if(null!=(i=zs(i)).zrX)return i;var s=i.type;if(s&&s.indexOf("touch")>=0){var d="touchend"!==s?i.targetTouches[0]:i.changedTouches[0];d&&Gb(o,d,i,r)}else{Gb(o,i,i,r);var f=function(o){var i=o.wheelDelta;if(i)return i;var r=o.deltaX,s=o.deltaY;return null==r||null==s?i:3*Math.abs(0!==s?s:r)*(s>0?-1:s<0?1:r>0?-1:1)}(i);i.zrDelta=f?f/120:-(i.detail||0)/3}var p=i.button;return null==i.which&&void 0!==p&&Mk.test(i.type)&&(i.which=1&p?1:2&p?3:4&p?2:0),i}function ke(o,i,r,s){Dp?o.addEventListener(i,r,s):o.attachEvent("on"+i,r)}function tO(o,i,r,s){Dp?o.removeEventListener(i,r,s):o.detachEvent("on"+i,r)}var Vl=Dp?function(o){o.preventDefault(),o.stopPropagation(),o.cancelBubble=!0}:function(o){o.returnValue=!1,o.cancelBubble=!0};function xk(o){return 2===o.which||3===o.which}var bt=function(){function o(){this._track=[]}return o.prototype.recognize=function(i,r,s){return this._doTrack(i,r,s),this._recognize(i)},o.prototype.clear=function(){return this._track.length=0,this},o.prototype._doTrack=function(i,r,s){var u=i.touches;if(u){for(var f={points:[],touches:[],target:r,event:i},d=0,p=u.length;d1&&u&&u.length>1){var d=nO(u)/nO(f);!isFinite(d)&&(d=1),r.pinchScale=d;var p=[((o=u)[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2];return r.pinchX=p[0],r.pinchY=p[1],{type:"pinch",target:i[0].target,event:r}}}}};function Kc(){Vl(this.event)}var wd=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.handler=null,r}return Ln(i,o),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Bs),fa=function(i,r){this.x=i,this.y=r},AH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xo=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d._hovered=new fa(0,0),d.storage=r,d.painter=s,d.painterRoot=f,u=u||new wd,d.proxy=null,d.setHandlerProxy(u),d._draggingMgr=new $g(d),d}return Ln(i,o),i.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(q(AH,function(s){r.on&&r.on(s,this[s],this)},this),r.handler=this),this.proxy=r},i.prototype.mousemove=function(r){var s=r.zrX,u=r.zrY,f=mn(this,s,u),d=this._hovered,p=d.target;p&&!p.__zr&&(p=(d=this.findHover(d.x,d.y)).target);var v=this._hovered=f?new fa(s,u):this.findHover(s,u),g=v.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),p&&g!==p&&this.dispatchToElement(d,"mouseout",r),this.dispatchToElement(v,"mousemove",r),g&&g!==p&&this.dispatchToElement(v,"mouseover",r)},i.prototype.mouseout=function(r){var s=r.zrEventControl;"only_globalout"!==s&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==s&&this.trigger("globalout",{type:"globalout",event:r})},i.prototype.resize=function(){this._hovered=new fa(0,0)},i.prototype.dispatch=function(r,s){var u=this[r];u&&u.call(this,s)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(r){var s=this.proxy;s.setCursor&&s.setCursor(r)},i.prototype.dispatchToElement=function(r,s,u){var f=(r=r||{}).target;if(!f||!f.silent){for(var d="on"+s,p=function(o,i,r){return{type:o,event:r,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Kc}}(s,r,u);f&&(f[d]&&(p.cancelBubble=!!f[d].call(f,p)),f.trigger(s,p),f=f.__hostTarget?f.__hostTarget:f.parent,!p.cancelBubble););p.cancelBubble||(this.trigger(s,p),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(v){"function"==typeof v[d]&&v[d].call(v,p),v.trigger&&v.trigger(s,p)}))}},i.prototype.findHover=function(r,s,u){for(var f=this.storage.getDisplayList(),d=new fa(r,s),p=f.length-1;p>=0;p--){var v=void 0;if(f[p]!==u&&!f[p].ignore&&(v=st(f[p],r,s))&&(!d.topTarget&&(d.topTarget=f[p]),"silent"!==v)){d.target=f[p];break}}return d},i.prototype.processGesture=function(r,s){this._gestureMgr||(this._gestureMgr=new bt);var u=this._gestureMgr;"start"===s&&u.clear();var f=u.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===s&&u.clear(),f){var d=f.type;r.gestureEvent=d;var p=new fa;p.target=f.target,this.dispatchToElement(p,d,f.event)}},i}(Bs);function st(o,i,r){if(o[o.rectHover?"rectContain":"contain"](i,r)){for(var s=o,u=void 0,f=!1;s;){if(s.ignoreClip&&(f=!0),!f){var d=s.getClipPath();if(d&&!d.contain(i,r))return!1;s.silent&&(u=!0)}s=s.__hostTarget||s.parent}return!u||"silent"}return!1}function mn(o,i,r){var s=o.painter;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){xo.prototype[o]=function(i){var f,d,r=i.zrX,s=i.zrY,u=mn(this,r,s);if(("mouseup"!==o||!u)&&(d=(f=this.findHover(r,s)).target),"mousedown"===o)this._downEl=d,this._downPoint=[i.zrX,i.zrY],this._upEl=d;else if("mouseup"===o)this._upEl=d;else if("click"===o){if(this._downEl!==this._upEl||!this._downPoint||Vs(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(f,o,i)}});var Pr=xo;function Zr(o,i,r,s){var u=i+1;if(u===r)return 1;if(s(o[u++],o[i])<0){for(;u=0;)u++;return u-i}function kd(o,i,r,s,u){for(s===i&&s++;s>>1])<0?p=v:d=v+1;var g=s-d;switch(g){case 3:o[d+3]=o[d+2];case 2:o[d+2]=o[d+1];case 1:o[d+1]=o[d];break;default:for(;g>0;)o[d+g]=o[d+g-1],g--}o[d]=f}}function rn(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])>0){for(p=s-u;v0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}else{for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}for(d++;d>>1);f(o,i[r+m])>0?d=m+1:v=m}return v}function Ap(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])<0){for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}else{for(p=s-u;v=0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}for(d++;d>>1);f(o,i[r+m])<0?v=m:d=m+1}return v}function em(o,i,r,s){r||(r=0),s||(s=o.length);var u=s-r;if(!(u<2)){var f=0;if(u<32)return void kd(o,r,s,r+(f=Zr(o,r,s,i)),i);var d=function(o,i){var d,p,r=7,v=0,g=[];function w(x){var T=d[x],P=p[x],O=d[x+1],R=p[x+1];p[x]=P+R,x===v-3&&(d[x+1]=d[x+2],p[x+1]=p[x+2]),v--;var V=Ap(o[O],o,T,P,0,i);T+=V,0!=(P-=V)&&0!==(R=rn(o[T+P-1],o,O,R,R-1,i))&&(P<=R?function(x,T,P,O){var R=0;for(R=0;R=7||Z>=7);if($)break;j<0&&(j=0),j+=2}if((r=j)<1&&(r=1),1===T){for(R=0;R=0;R--)o[X+R]=o[j+R];if(0===T){ee=!0;break}}if(o[U--]=g[B--],1==--O){ee=!0;break}if(0!=(te=O-rn(o[V],g,0,O,O-1,i))){for(O-=te,X=1+(U-=te),j=1+(B-=te),R=0;R=7||te>=7);if(ee)break;Z<0&&(Z=0),Z+=2}if((r=Z)<1&&(r=1),1===O){for(X=1+(U-=T),j=1+(V-=T),R=T-1;R>=0;R--)o[X+R]=o[j+R];o[U]=g[B]}else{if(0===O)throw new Error;for(j=U-(O-1),R=0;R=0;R--)o[X+R]=o[j+R];o[U]=g[B]}else for(j=U-(O-1),R=0;R1;){var x=v-2;if(x>=1&&p[x-1]<=p[x]+p[x+1]||x>=2&&p[x-2]<=p[x]+p[x-1])p[x-1]p[x+1])break;w(x)}},forceMergeRuns:function(){for(;v>1;){var x=v-2;x>0&&p[x-1]=32;)i|=1&o,o>>=1;return o+i}(u);do{if((f=Zr(o,r,s,i))p&&(v=p),kd(o,r,r+v,r+f,i),f=v}d.pushRun(r,f),d.mergeRuns(),u-=f,r+=f}while(0!==u);d.forceMergeRuns()}}var Md=!1;function To(){Md||(Md=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hr(o,i){return o.zlevel===i.zlevel?o.z===i.z?o.z2-i.z2:o.z-i.z:o.zlevel-i.zlevel}var PH=function(){function o(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hr}return o.prototype.traverse=function(i,r){for(var s=0;s0&&(m.__clipPaths=[]),isNaN(m.z)&&(To(),m.z=0),isNaN(m.z2)&&(To(),m.z2=0),isNaN(m.zlevel)&&(To(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var y=i.getDecalElement&&i.getDecalElement();y&&this._updateAndAddDisplayable(y,r,s);var b=i.getTextGuideLine();b&&this._updateAndAddDisplayable(b,r,s);var w=i.getTextContent();w&&this._updateAndAddDisplayable(w,r,s)}},o.prototype.addRoot=function(i){i.__zr&&i.__zr.storage===this||this._roots.push(i)},o.prototype.delRoot=function(i){if(i instanceof Array)for(var r=0,s=i.length;r=0&&this._roots.splice(u,1)}},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}(),nm="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)},$c={linear:function(i){return i},quadraticIn:function(i){return i*i},quadraticOut:function(i){return i*(2-i)},quadraticInOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)},cubicIn:function(i){return i*i*i},cubicOut:function(i){return--i*i*i+1},cubicInOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)},quarticIn:function(i){return i*i*i*i},quarticOut:function(i){return 1- --i*i*i*i},quarticInOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)},quinticIn:function(i){return i*i*i*i*i},quinticOut:function(i){return--i*i*i*i*i+1},quinticInOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)},sinusoidalIn:function(i){return 1-Math.cos(i*Math.PI/2)},sinusoidalOut:function(i){return Math.sin(i*Math.PI/2)},sinusoidalInOut:function(i){return.5*(1-Math.cos(Math.PI*i))},exponentialIn:function(i){return 0===i?0:Math.pow(1024,i-1)},exponentialOut:function(i){return 1===i?1:1-Math.pow(2,-10*i)},exponentialInOut:function(i){return 0===i?0:1===i?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(2-Math.pow(2,-10*(i-1)))},circularIn:function(i){return 1-Math.sqrt(1-i*i)},circularOut:function(i){return Math.sqrt(1- --i*i)},circularInOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)},elasticIn:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),-s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4))},elasticOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),s*Math.pow(2,-10*i)*Math.sin((i-r)*(2*Math.PI)/.4)+1)},elasticInOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),(i*=2)<1?s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*-.5:s*Math.pow(2,-10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*.5+1)},backIn:function(i){var r=1.70158;return i*i*((r+1)*i-r)},backOut:function(i){var r=1.70158;return--i*i*((r+1)*i+r)+1},backInOut:function(i){var r=2.5949095;return(i*=2)<1?i*i*((r+1)*i-r)*.5:.5*((i-=2)*i*((r+1)*i+r)+2)},bounceIn:function(i){return 1-$c.bounceOut(1-i)},bounceOut:function(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},bounceInOut:function(i){return i<.5?.5*$c.bounceIn(2*i):.5*$c.bounceOut(2*i-1)+.5}},jb=$c,da=function(){function o(i){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=i.life||1e3,this._delay=i.delay||0,this.loop=null!=i.loop&&i.loop,this.gap=i.gap||0,this.easing=i.easing||"linear",this.onframe=i.onframe,this.ondestroy=i.ondestroy,this.onrestart=i.onrestart}return o.prototype.step=function(i,r){if(this._initialized||(this._startTime=i+this._delay,this._initialized=!0),!this._paused){var s=(i-this._startTime-this._pausedTime)/this._life;s<0&&(s=0),s=Math.min(s,1);var u=this.easing,f="string"==typeof u?jb[u]:u,d="function"==typeof f?f(s):s;if(this.onframe&&this.onframe(d),1===s){if(!this.loop)return!0;this._restart(i),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=r},o.prototype._restart=function(i){this._startTime=i-(i-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},o.prototype.pause=function(){this._paused=!0},o.prototype.resume=function(){this._paused=!1},o}(),iO=function(i){this.value=i},Hl=function(){function o(){this._len=0}return o.prototype.insert=function(i){var r=new iO(i);return this.insertEntry(r),r},o.prototype.insertEntry=function(i){this.head?(this.tail.next=i,i.prev=this.tail,i.next=null,this.tail=i):this.head=this.tail=i,this._len++},o.prototype.remove=function(i){var r=i.prev,s=i.next;r?r.next=s:this.head=s,s?s.prev=r:this.tail=r,i.next=i.prev=null,this._len--},o.prototype.len=function(){return this._len},o.prototype.clear=function(){this.head=this.tail=null,this._len=0},o}(),Td=function(){function o(i){this._list=new Hl,this._maxSize=10,this._map={},this._maxSize=i}return o.prototype.put=function(i,r){var s=this._list,u=this._map,f=null;if(null==u[i]){var d=s.len(),p=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var v=s.head;s.remove(v),delete u[v.key],f=v.value,this._lastRemovedEntry=v}p?p.value=r:p=new iO(r),p.key=i,s.insertEntry(p),u[i]=p}return f},o.prototype.get=function(i){var r=this._map[i],s=this._list;if(null!=r)return r!==s.tail&&(s.remove(r),s.insertEntry(r)),r.value},o.prototype.clear=function(){this._list.clear(),this._map={}},o.prototype.len=function(){return this._list.len()},o}(),rm={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function to(o){return(o=Math.round(o))<0?0:o>255?255:o}function im(o){return o<0?0:o>1?1:o}function aO(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?to(parseFloat(i)/100*255):to(parseInt(i,10))}function Pp(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?im(parseFloat(i)/100):im(parseFloat(i))}function Tk(o,i,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?o+(i-o)*r*6:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o}function Dd(o,i,r){return o+(i-o)*r}function Ws(o,i,r,s,u){return o[0]=i,o[1]=r,o[2]=s,o[3]=u,o}function oO(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o}var OH=new Td(20),Dk=null;function am(o,i){Dk&&oO(Dk,i),Dk=OH.put(o,Dk||i.slice())}function La(o,i){if(o){i=i||[];var r=OH.get(o);if(r)return oO(i,r);var s=(o+="").replace(/ /g,"").toLowerCase();if(s in rm)return oO(i,rm[s]),am(o,i),i;var f,u=s.length;if("#"===s.charAt(0))return 4===u||5===u?(f=parseInt(s.slice(1,4),16))>=0&&f<=4095?(Ws(i,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,5===u?parseInt(s.slice(4),16)/15:1),am(o,i),i):void Ws(i,0,0,0,1):7===u||9===u?(f=parseInt(s.slice(1,7),16))>=0&&f<=16777215?(Ws(i,(16711680&f)>>16,(65280&f)>>8,255&f,9===u?parseInt(s.slice(7),16)/255:1),am(o,i),i):void Ws(i,0,0,0,1):void 0;var d=s.indexOf("("),p=s.indexOf(")");if(-1!==d&&p+1===u){var v=s.substr(0,d),g=s.substr(d+1,p-(d+1)).split(","),m=1;switch(v){case"rgba":if(4!==g.length)return 3===g.length?Ws(i,+g[0],+g[1],+g[2],1):Ws(i,0,0,0,1);m=Pp(g.pop());case"rgb":return 3!==g.length?void Ws(i,0,0,0,1):(Ws(i,aO(g[0]),aO(g[1]),aO(g[2]),m),am(o,i),i);case"hsla":return 4!==g.length?void Ws(i,0,0,0,1):(g[3]=Pp(g[3]),sO(g,i),am(o,i),i);case"hsl":return 3!==g.length?void Ws(i,0,0,0,1):(sO(g,i),am(o,i),i);default:return}}Ws(i,0,0,0,1)}}function sO(o,i){var r=(parseFloat(o[0])%360+360)%360/360,s=Pp(o[1]),u=Pp(o[2]),f=u<=.5?u*(s+1):u+s-u*s,d=2*u-f;return Ws(i=i||[],to(255*Tk(d,f,r+1/3)),to(255*Tk(d,f,r)),to(255*Tk(d,f,r-1/3)),1),4===o.length&&(i[3]=o[3]),i}function lO(o,i){var r=La(o);if(r){for(var s=0;s<3;s++)r[s]=i<0?r[s]*(1-i)|0:(255-r[s])*i+r[s]|0,r[s]>255?r[s]=255:r[s]<0&&(r[s]=0);return zl(r,4===r.length?"rgba":"rgb")}}function uO(o){var i=La(o);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function Wb(o,i,r){if(i&&i.length&&o>=0&&o<=1){r=r||[];var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=i[u],p=i[f],v=s-u;return r[0]=to(Dd(d[0],p[0],v)),r[1]=to(Dd(d[1],p[1],v)),r[2]=to(Dd(d[2],p[2],v)),r[3]=im(Dd(d[3],p[3],v)),r}}var FX=Wb;function IH(o,i,r){if(i&&i.length&&o>=0&&o<=1){var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=La(i[u]),p=La(i[f]),v=s-u,g=zl([to(Dd(d[0],p[0],v)),to(Dd(d[1],p[1],v)),to(Dd(d[2],p[2],v)),im(Dd(d[3],p[3],v))],"rgba");return r?{color:g,leftIndex:u,rightIndex:f,value:s}:g}}var cO=IH;function Qc(o,i,r,s){var u=La(o);if(o)return u=function(o){if(o){var v,g,i=o[0]/255,r=o[1]/255,s=o[2]/255,u=Math.min(i,r,s),f=Math.max(i,r,s),d=f-u,p=(f+u)/2;if(0===d)v=0,g=0;else{g=p<.5?d/(f+u):d/(2-f-u);var m=((f-i)/6+d/2)/d,y=((f-r)/6+d/2)/d,b=((f-s)/6+d/2)/d;i===f?v=b-y:r===f?v=1/3+m-b:s===f&&(v=2/3+y-m),v<0&&(v+=1),v>1&&(v-=1)}var w=[360*v,g,p];return null!=o[3]&&w.push(o[3]),w}}(u),null!=i&&(u[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(i)),null!=r&&(u[1]=Pp(r)),null!=s&&(u[2]=Pp(s)),zl(sO(u),"rgba")}function Yb(o,i){var r=La(o);if(r&&null!=i)return r[3]=im(i),zl(r,"rgba")}function zl(o,i){if(o&&o.length){var r=o[0]+","+o[1]+","+o[2];return("rgba"===i||"hsva"===i||"hsla"===i)&&(r+=","+o[3]),i+"("+r+")"}}function qb(o,i){var r=La(o);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*i:0}function Ad(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var Xb=Array.prototype.slice;function an(o,i,r){return(i-o)*r+o}function dO(o,i,r,s){for(var u=i.length,f=0;fd)s.length=d;else for(var v=f;v=2&&this.interpolable&&this.maxTime>0},o.prototype.getAdditiveTrack=function(){return this._additiveTrack},o.prototype.addKeyframe=function(i,r){i>=this.maxTime?this.maxTime=i:this._needsSort=!0;var s=this.keyframes,u=s.length;if(this.interpolable)if(Pa(r)){var f=function(o){return Pa(o&&o[0])?2:1}(r);if(u>0&&this.arrDim!==f)return void(this.interpolable=!1);if(1===f&&"number"!=typeof r[0]||2===f&&"number"!=typeof r[0][0])return void(this.interpolable=!1);if(u>0){var d=s[u-1];this._isAllValueEqual&&(1===f&&Zb(r,d.value)||(this._isAllValueEqual=!1))}this.arrDim=f}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof r){var p=La(r);p?(r=p,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof r||isNaN(r))return void(this.interpolable=!1);this._isAllValueEqual&&u>0&&(d=s[u-1],(this.isValueColor&&!Zb(d.value,r)||d.value!==r)&&(this._isAllValueEqual=!1))}var v={time:i,value:r,percent:0};return this.keyframes.push(v),v},o.prototype.prepare=function(i){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var s=this.arrDim,u=r.length,f=r[u-1],d=0;d0&&d!==u-1&&LH(r[d].value,f.value,s);if(i&&this.needsAnimate()&&i.needsAnimate()&&s===i.arrDim&&this.isValueColor===i.isValueColor&&!i._finished){this._additiveTrack=i;var p=r[0].value;for(d=0;d=0&&!(f[m].percent<=r);m--);m=Math.min(m,d-2)}else{for(m=this._lastFrame;mr);m++);m=Math.min(m-1,d-2)}var b=f[m+1],w=f[m];if(w&&b){this._lastFrame=m,this._lastFramePercent=r;var S=b.percent-w.percent;if(0!==S){var M=(r-w.percent)/S,x=s?this._additiveValue:g?Pd:i[p];if((v>0||g)&&!x&&(x=this._additiveValue=[]),this.useSpline){var T=f[m][u],P=f[0===m?m:m-1][u],O=f[m>d-2?d-1:m+1][u],R=f[m>d-3?d-1:m+2][u];if(v>0)1===v?Do(x,P,T,O,R,M,M*M,M*M*M):function(o,i,r,s,u,f,d,p){for(var v=i.length,g=i[0].length,m=0;m0?1===v?dO(x,w[u],b[u],M):function(o,i,r,s){for(var u=i.length,f=u&&i[0].length,d=0;d.5?i:o}(w[u],b[u],M),s?this._additiveValue=V:i[p]=V);s&&this._addToTarget(i)}}}},o.prototype._addToTarget=function(i){var r=this.arrDim,s=this.propName,u=this._additiveValue;0===r?this.isValueColor?(La(i[s],Pd),om(Pd,Pd,u,1),i[s]=Ed(Pd)):i[s]=i[s]+u:1===r?om(i[s],i[s],u,1):2===r&&Ak(i[s],i[s],u,1)},o}(),Pk=function(){function o(i,r,s){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=i,this._loop=r,r&&s?Ns("Can' use additive animation on looped animation."):this._additiveAnimators=s}return o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(i){this._target=i},o.prototype.when=function(i,r){return this.whenWithKeys(i,r,_n(r))},o.prototype.whenWithKeys=function(i,r,s){for(var u=this._tracks,f=0;f0)){this._started=1;for(var s=this,u=[],f=0;f1){var p=d.pop();f.addKeyframe(p.time,i[u]),f.prepare(f.getAdditiveTrack())}}}},o}(),NH=function(o){function i(r){var s=o.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,s.stage=(r=r||{}).stage||{},s.onframe=r.onframe||function(){},s}return Ln(i,o),i.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._clipsHead?(this._clipsTail.next=r,r.prev=this._clipsTail,r.next=null,this._clipsTail=r):this._clipsHead=this._clipsTail=r,r.animation=this},i.prototype.addAnimator=function(r){r.animation=this;var s=r.getClip();s&&this.addClip(s)},i.prototype.removeClip=function(r){if(r.animation){var s=r.prev,u=r.next;s?s.next=u:this._clipsHead=u,u?u.prev=s:this._clipsTail=s,r.next=r.prev=r.animation=null}},i.prototype.removeAnimator=function(r){var s=r.getClip();s&&this.removeClip(s),r.animation=null},i.prototype.update=function(r){for(var s=(new Date).getTime()-this._pausedTime,u=s-this._time,f=this._clipsHead;f;){var d=f.next;f.step(s,u)&&(f.ondestroy&&f.ondestroy(),this.removeClip(f)),f=d}this._time=s,r||(this.onframe(u),this.trigger("frame",u),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){var r=this;this._running=!0,nm(function s(){r._running&&(nm(s),!r._paused&&r.update())})},i.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var r=this._clipsHead;r;){var s=r.next;r.prev=r.next=r.animation=null,r=s}this._clipsHead=this._clipsTail=null},i.prototype.isFinished=function(){return null==this._clipsHead},i.prototype.animate=function(r,s){s=s||{},this.start();var u=new Pk(r,s.loop);return this.addAnimator(u),u},i}(Bs),Ok=Ze.domSupported,vO=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:o=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Te(o,function(u){var f=u.replace("mouse","pointer");return r.hasOwnProperty(f)?f:u})}),sm_mouse=["mousemove","mouseup"],sm_pointer=["pointermove","pointerup"],Ao=!1;function Ik(o){var i=o.pointerType;return"pen"===i||"touch"===i}function Jc(o){o&&(o.zrByTouch=!0)}function Lk(o,i){for(var r=i,s=!1;r&&9!==r.nodeType&&!(s=r.domBelongToZr||r!==i&&r===o.painterRoot);)r=r.parentNode;return s}var Fk=function(i,r){this.stopPropagation=Mo,this.stopImmediatePropagation=Mo,this.preventDefault=Mo,this.type=r.type,this.target=this.currentTarget=i.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY},Ys={mousedown:function(i){i=ca(this.dom,i),this.__mayPointerCapture=[i.zrX,i.zrY],this.trigger("mousedown",i)},mousemove:function(i){i=ca(this.dom,i);var r=this.__mayPointerCapture;r&&(i.zrX!==r[0]||i.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",i)},mouseup:function(i){i=ca(this.dom,i),this.__togglePointerCapture(!1),this.trigger("mouseup",i)},mouseout:function(i){Lk(this,(i=ca(this.dom,i)).toElement||i.relatedTarget)||(this.__pointerCapturing&&(i.zrEventControl="no_globalout"),this.trigger("mouseout",i))},wheel:function(i){Ao=!0,i=ca(this.dom,i),this.trigger("mousewheel",i)},mousewheel:function(i){Ao||(i=ca(this.dom,i),this.trigger("mousewheel",i))},touchstart:function(i){Jc(i=ca(this.dom,i)),this.__lastTouchMoment=new Date,this.handler.processGesture(i,"start"),Ys.mousemove.call(this,i),Ys.mousedown.call(this,i)},touchmove:function(i){Jc(i=ca(this.dom,i)),this.handler.processGesture(i,"change"),Ys.mousemove.call(this,i)},touchend:function(i){Jc(i=ca(this.dom,i)),this.handler.processGesture(i,"end"),Ys.mouseup.call(this,i),+new Date-+this.__lastTouchMoment<300&&Ys.click.call(this,i)},pointerdown:function(i){Ys.mousedown.call(this,i)},pointermove:function(i){Ik(i)||Ys.mousemove.call(this,i)},pointerup:function(i){Ys.mouseup.call(this,i)},pointerout:function(i){Ik(i)||Ys.mouseout.call(this,i)}};q(["click","dblclick","contextmenu"],function(o){Ys[o]=function(i){i=ca(this.dom,i),this.trigger(o,i)}});var Ul={pointermove:function(i){Ik(i)||Ul.mousemove.call(this,i)},pointerup:function(i){Ul.mouseup.call(this,i)},mousemove:function(i){this.trigger("mousemove",i)},mouseup:function(i){var r=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",i),r&&(i.zrEventControl="only_globalout",this.trigger("mouseout",i))}};function Lt(o,i,r,s){o.mounted[i]=r,o.listenerOpts[i]=s,ke(o.domTarget,i,r,s)}function mO(o){var i=o.mounted;for(var r in i)i.hasOwnProperty(r)&&tO(o.domTarget,r,i[r],o.listenerOpts[r]);o.mounted={}}var _O=function(i,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=i,this.domHandlers=r},BH=function(o){function i(r,s){var u=o.call(this)||this;return u.__pointerCapturing=!1,u.dom=r,u.painterRoot=s,u._localHandlerScope=new _O(r,Ys),Ok&&(u._globalHandlerScope=new _O(document,Ul)),function(o,i){var r=i.domHandlers;Ze.pointerEventsSupported?q(vO.pointer,function(s){Lt(i,s,function(u){r[s].call(o,u)})}):(Ze.touchEventsSupported&&q(vO.touch,function(s){Lt(i,s,function(u){r[s].call(o,u),function(o){o.touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(i)})}),q(vO.mouse,function(s){Lt(i,s,function(u){u=zs(u),i.touching||r[s].call(o,u)})}))}(u,u._localHandlerScope),u}return Ln(i,o),i.prototype.dispose=function(){mO(this._localHandlerScope),Ok&&mO(this._globalHandlerScope)},i.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},i.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Ok&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var s=this._globalHandlerScope;r?function(o,i){function r(s){Lt(i,s,function(f){f=zs(f),Lk(o,f.target)||(f=function(o,i){return ca(o.dom,new Fk(o,i),!0)}(o,f),i.domHandlers[s].call(o,f))},{capture:!0})}Ze.pointerEventsSupported?q(sm_pointer,r):Ze.touchEventsSupported||q(sm_mouse,r)}(this,s):mO(s)}},i}(Bs),Vk=1;"undefined"!=typeof window&&(Vk=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kb=Vk,En="#333",pe="#ccc";function no(){return[1,0,0,1,0,0]}function Wu(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function Po(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4],o[5]=i[5],o}function Jo(o,i,r){var u=i[1]*r[0]+i[3]*r[1],f=i[0]*r[2]+i[2]*r[3],d=i[1]*r[2]+i[3]*r[3],p=i[0]*r[4]+i[2]*r[5]+i[4],v=i[1]*r[4]+i[3]*r[5]+i[5];return o[0]=i[0]*r[0]+i[2]*r[1],o[1]=u,o[2]=f,o[3]=d,o[4]=p,o[5]=v,o}function Oo(o,i,r){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4]+r[0],o[5]=i[5]+r[1],o}function Od(o,i,r){var s=i[0],u=i[2],f=i[4],d=i[1],p=i[3],v=i[5],g=Math.sin(r),m=Math.cos(r);return o[0]=s*m+d*g,o[1]=-s*g+d*m,o[2]=u*m+p*g,o[3]=-u*g+m*p,o[4]=m*f+g*v,o[5]=m*v-g*f,o}function $b(o,i,r){var s=r[0],u=r[1];return o[0]=i[0]*s,o[1]=i[1]*u,o[2]=i[2]*s,o[3]=i[3]*u,o[4]=i[4]*s,o[5]=i[5]*u,o}function Gl(o,i){var r=i[0],s=i[2],u=i[4],f=i[1],d=i[3],p=i[5],v=r*d-f*s;return v?(o[0]=d*(v=1/v),o[1]=-f*v,o[2]=-s*v,o[3]=r*v,o[4]=(s*p-d*u)*v,o[5]=(f*u-r*p)*v,o):null}function lm(o){var i=[1,0,0,1,0,0];return Po(i,o),i}var ha=Wu;function Ip(o){return o>5e-5||o<-5e-5}var Zs,zr,es=[],ro=[],Bk=[1,0,0,1,0,0],Qb=Math.abs,HH=function(){function o(){}return o.prototype.getLocalTransform=function(i){return o.getLocalTransform(this,i)},o.prototype.setPosition=function(i){this.x=i[0],this.y=i[1]},o.prototype.setScale=function(i){this.scaleX=i[0],this.scaleY=i[1]},o.prototype.setSkew=function(i){this.skewX=i[0],this.skewY=i[1]},o.prototype.setOrigin=function(i){this.originX=i[0],this.originY=i[1]},o.prototype.needLocalTransform=function(){return Ip(this.rotation)||Ip(this.x)||Ip(this.y)||Ip(this.scaleX-1)||Ip(this.scaleY-1)},o.prototype.updateTransform=function(){var i=this.parent&&this.parent.transform,r=this.needLocalTransform(),s=this.transform;r||i?(s=s||[1,0,0,1,0,0],r?this.getLocalTransform(s):ha(s),i&&(r?Jo(s,i,s):Po(s,i)),this.transform=s,this._resolveGlobalScaleRatio(s)):s&&ha(s)},o.prototype._resolveGlobalScaleRatio=function(i){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(es);var s=es[0]<0?-1:1,u=es[1]<0?-1:1,f=((es[0]-s)*r+s)/es[0]||0,d=((es[1]-u)*r+u)/es[1]||0;i[0]*=f,i[1]*=f,i[2]*=d,i[3]*=d}this.invTransform=this.invTransform||[1,0,0,1,0,0],Gl(this.invTransform,i)},o.prototype.getComputedTransform=function(){for(var i=this,r=[];i;)r.push(i),i=i.parent;for(;i=r.pop();)i.updateTransform();return this.transform},o.prototype.setLocalTransform=function(i){if(i){var r=i[0]*i[0]+i[1]*i[1],s=i[2]*i[2]+i[3]*i[3],u=Math.atan2(i[1],i[0]),f=Math.PI/2+u-Math.atan2(i[3],i[2]);s=Math.sqrt(s)*Math.cos(f),r=Math.sqrt(r),this.skewX=f,this.skewY=0,this.rotation=-u,this.x=+i[4],this.y=+i[5],this.scaleX=r,this.scaleY=s,this.originX=0,this.originY=0}},o.prototype.decomposeTransform=function(){if(this.transform){var i=this.parent,r=this.transform;i&&i.transform&&(Jo(ro,i.invTransform,r),r=ro);var s=this.originX,u=this.originY;(s||u)&&(Bk[4]=s,Bk[5]=u,Jo(ro,r,Bk),ro[4]-=s,ro[5]-=u,r=ro),this.setLocalTransform(r)}},o.prototype.getGlobalScale=function(i){var r=this.transform;return i=i||[],r?(i[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),i[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(i[0]=-i[0]),r[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},o.prototype.transformCoordToLocal=function(i,r){var s=[i,r],u=this.invTransform;return u&&_i(s,s,u),s},o.prototype.transformCoordToGlobal=function(i,r){var s=[i,r],u=this.transform;return u&&_i(s,s,u),s},o.prototype.getLineScale=function(){var i=this.transform;return i&&Qb(i[0]-1)>1e-10&&Qb(i[3]-1)>1e-10?Math.sqrt(Qb(i[0]*i[3]-i[2]*i[1])):1},o.prototype.copyTransform=function(i){for(var s=0;sS&&(S=O,Tt.set(Fp,MS&&(S=R,Tt.set(Fp,0,T=s.x&&i<=s.x+s.width&&r>=s.y&&r<=s.y+s.height},o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height)},o.prototype.copy=function(i){o.copy(this,i)},o.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},o.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},o.prototype.isZero=function(){return 0===this.width||0===this.height},o.create=function(i){return new o(i.x,i.y,i.width,i.height)},o.copy=function(i,r){i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height},o.applyTransform=function(i,r,s){if(s){if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var u=s[0],f=s[3],p=s[5];return i.x=r.x*u+s[4],i.y=r.y*f+p,i.width=r.width*u,i.height=r.height*f,i.width<0&&(i.x+=i.width,i.width=-i.width),void(i.height<0&&(i.y+=i.height,i.height=-i.height))}ef.x=tf.x=r.x,ef.y=nf.y=r.y,jl.x=nf.x=r.x+r.width,jl.y=tf.y=r.y+r.height,ef.transform(s),nf.transform(s),jl.transform(s),tf.transform(s),i.x=Rp(ef.x,jl.x,tf.x,nf.x),i.y=Rp(ef.y,jl.y,tf.y,nf.y);var v=Jb(ef.x,jl.x,tf.x,nf.x),g=Jb(ef.y,jl.y,tf.y,nf.y);i.width=v-i.x,i.height=g-i.y}else i!==r&&o.copy(i,r)},o}(),bO={},ri="12px sans-serif",zk_measureText=function(o,i){return Zs||(Zs=md().getContext("2d")),zr!==i&&(zr=Zs.font=i||ri),Zs.measureText(o)};function Io(o,i){var r=bO[i=i||ri];r||(r=bO[i]=new Td(500));var s=r.get(o);return null==s&&(s=zk_measureText(o,i).width,r.put(o,s)),s}function CO(o,i,r,s){var u=Io(o,i),f=Id(i),d=rf(0,u,r),p=Yu(0,f,s);return new Ft(d,p,u,f)}function um(o,i,r,s){var u=((o||"")+"").split("\n");if(1===u.length)return CO(u[0],i,r,s);for(var d=new Ft(0,0,0,0),p=0;p=0?parseFloat(o)/100*i:parseFloat(o):o}function n0(o,i,r){var s=i.position||"inside",u=null!=i.distance?i.distance:5,f=r.height,d=r.width,p=f/2,v=r.x,g=r.y,m="left",y="top";if(s instanceof Array)v+=Ro(s[0],r.width),g+=Ro(s[1],r.height),m=null,y=null;else switch(s){case"left":v-=u,g+=p,m="right",y="middle";break;case"right":v+=u+d,g+=p,y="middle";break;case"top":v+=d/2,g-=u,m="center",y="bottom";break;case"bottom":v+=d/2,g+=f+u,m="center";break;case"inside":v+=d/2,g+=p,m="center",y="middle";break;case"insideLeft":v+=u,g+=p,y="middle";break;case"insideRight":v+=d-u,g+=p,m="right",y="middle";break;case"insideTop":v+=d/2,g+=u,m="center";break;case"insideBottom":v+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":v+=u,g+=u;break;case"insideTopRight":v+=d-u,g+=u,m="right";break;case"insideBottomLeft":v+=u,g+=f-u,y="bottom";break;case"insideBottomRight":v+=d-u,g+=f-u,m="right",y="bottom"}return(o=o||{}).x=v,o.y=g,o.align=m,o.verticalAlign=y,o}var Wl="__zr_normal__",Rd=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],zH={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Np={},cm=new Ft(0,0,0,0),fm=function(){function o(i){this.id=qe(),this.animators=[],this.currentStates=[],this.states={},this._init(i)}return o.prototype._init=function(i){this.attr(i)},o.prototype.drift=function(i,r,s){switch(this.draggable){case"horizontal":r=0;break;case"vertical":i=0}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=i,u[5]+=r,this.decomposeTransform(),this.markRedraw()},o.prototype.beforeUpdate=function(){},o.prototype.afterUpdate=function(){},o.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},o.prototype.updateInnerText=function(i){var r=this._textContent;if(r&&(!r.ignore||i)){this.textConfig||(this.textConfig={});var s=this.textConfig,u=s.local,f=r.innerTransformable,d=void 0,p=void 0,v=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(r),null!=s.position){var m=cm;m.copy(s.layoutRect?s.layoutRect:this.getBoundingRect()),u||m.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Np,s,m):n0(Np,s,m),f.x=Np.x,f.y=Np.y,d=Np.align,p=Np.verticalAlign;var y=s.origin;if(y&&null!=s.rotation){var b=void 0,w=void 0;"center"===y?(b=.5*m.width,w=.5*m.height):(b=Ro(y[0],m.width),w=Ro(y[1],m.height)),g=!0,f.originX=-f.x+b+(u?0:m.x),f.originY=-f.y+w+(u?0:m.y)}}null!=s.rotation&&(f.rotation=s.rotation);var S=s.offset;S&&(f.x+=S[0],f.y+=S[1],g||(f.originX=-S[0],f.originY=-S[1]));var M=null==s.inside?"string"==typeof s.position&&s.position.indexOf("inside")>=0:s.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),T=void 0,P=void 0,O=void 0;M&&this.canBeInsideText()?(P=s.insideStroke,(null==(T=s.insideFill)||"auto"===T)&&(T=this.getInsideTextFill()),(null==P||"auto"===P)&&(P=this.getInsideTextStroke(T),O=!0)):(P=s.outsideStroke,(null==(T=s.outsideFill)||"auto"===T)&&(T=this.getOutsideFill()),(null==P||"auto"===P)&&(P=this.getOutsideStroke(T),O=!0)),((T=T||"#000")!==x.fill||P!==x.stroke||O!==x.autoStroke||d!==x.align||p!==x.verticalAlign)&&(v=!0,x.fill=T,x.stroke=P,x.autoStroke=O,x.align=d,x.verticalAlign=p,r.setDefaultTextStyle(x)),r.__dirty|=1,v&&r.dirtyStyle(!0)}},o.prototype.canBeInsideText=function(){return!0},o.prototype.getInsideTextFill=function(){return"#fff"},o.prototype.getInsideTextStroke=function(i){return"#000"},o.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pe:En},o.prototype.getOutsideStroke=function(i){var r=this.__zr&&this.__zr.getBackgroundColor(),s="string"==typeof r&&La(r);s||(s=[255,255,255,1]);for(var u=s[3],f=this.__zr.isDarkMode(),d=0;d<3;d++)s[d]=s[d]*u+(f?0:255)*(1-u);return s[3]=1,zl(s,"rgba")},o.prototype.traverse=function(i,r){},o.prototype.attrKV=function(i,r){"textConfig"===i?this.setTextConfig(r):"textContent"===i?this.setTextContent(r):"clipPath"===i?this.setClipPath(r):"extra"===i?(this.extra=this.extra||{},Se(this.extra,r)):this[i]=r},o.prototype.hide=function(){this.ignore=!0,this.markRedraw()},o.prototype.show=function(){this.ignore=!1,this.markRedraw()},o.prototype.attr=function(i,r){if("string"==typeof i)this.attrKV(i,r);else if(at(i))for(var u=_n(i),f=0;f0},o.prototype.getState=function(i){return this.states[i]},o.prototype.ensureState=function(i){var r=this.states;return r[i]||(r[i]={}),r[i]},o.prototype.clearStates=function(i){this.useState(Wl,!1,i)},o.prototype.useState=function(i,r,s,u){var f=i===Wl;if(this.hasState()||!f){var p=this.currentStates,v=this.stateTransition;if(!(Rt(p,i)>=0)||!r&&1!==p.length){var g;if(this.stateProxy&&!f&&(g=this.stateProxy(i)),g||(g=this.states&&this.states[i]),!g&&!f)return void Ns("State "+i+" not exists.");f||this.saveCurrentToNormalState(g);var m=!!(g&&g.hoverLayer||u);m&&this._toggleHoverLayerFlag(!0),this._applyStateObj(i,g,this._normalState,r,!s&&!this.__inHover&&v&&v.duration>0,v);var y=this._textContent,b=this._textGuide;return y&&y.useState(i,r,s,m),b&&b.useState(i,r,s,m),f?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(i):this.currentStates=[i],this._updateAnimationTargets(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),g}}},o.prototype.useStates=function(i,r,s){if(i.length){var u=[],f=this.currentStates,d=i.length,p=d===f.length;if(p)for(var v=0;v0,S);var M=this._textContent,x=this._textGuide;M&&M.useStates(i,r,b),x&&x.useStates(i,r,b),this._updateAnimationTargets(),this.currentStates=i.slice(),this.markRedraw(),!b&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},o.prototype._updateAnimationTargets=function(){for(var i=0;i=0){var s=this.currentStates.slice();s.splice(r,1),this.useStates(s)}},o.prototype.replaceState=function(i,r,s){var u=this.currentStates.slice(),f=Rt(u,i),d=Rt(u,r)>=0;f>=0?d?u.splice(f,1):u[f]=r:s&&!d&&u.push(r),this.useStates(u)},o.prototype.toggleState=function(i,r){r?this.useState(i,!0):this.removeState(i)},o.prototype._mergeStates=function(i){for(var s,r={},u=0;u=0&&f.splice(d,1)}),this.animators.push(i),s&&s.animation.addAnimator(i),s&&s.wakeUp()},o.prototype.updateDuringAnimation=function(i){this.markRedraw()},o.prototype.stopAnimation=function(i,r){for(var s=this.animators,u=s.length,f=[],d=0;d8)&&(u("position","_legacyPos","x","y"),u("scale","_legacyScale","scaleX","scaleY"),u("origin","_legacyOrigin","originX","originY"))}(),o}();function Uk(o,i,r,s,u){var f=[];dm(o,"",o,i,r=r||{},s,f,u);var d=f.length,p=!1,v=r.done,g=r.aborted,m=function(){p=!0,--d<=0&&(p?v&&v():g&&g())},y=function(){--d<=0&&(p?v&&v():g&&g())};d||v&&v(),f.length>0&&r.during&&f[0].during(function(S,M){r.during(M)});for(var b=0;b0||u.force&&!d.length){for(var O=o.animators,R=[],V=0;V=0&&(u.splice(f,0,r),this._doAdd(r))}return this},i.prototype.replace=function(r,s){var u=Rt(this._children,r);return u>=0&&this.replaceAt(s,u),this},i.prototype.replaceAt=function(r,s){var u=this._children,f=u[s];if(r&&r!==this&&r.parent!==this&&r!==f){u[s]=r,f.parent=null;var d=this.__zr;d&&f.removeSelfFromZr(d),this._doAdd(r)}return this},i.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var s=this.__zr;s&&s!==r.__zr&&r.addSelfToZr(s),s&&s.refresh()},i.prototype.remove=function(r){var s=this.__zr,u=this._children,f=Rt(u,r);return f<0||(u.splice(f,1),r.parent=null,s&&r.removeSelfFromZr(s),s&&s.refresh()),this},i.prototype.removeAll=function(){for(var r=this._children,s=this.__zr,u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},o.prototype.setSleepAfterStill=function(i){this._sleepAfterStill=i},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.addHover=function(i){},o.prototype.removeHover=function(i){},o.prototype.clearHover=function(){},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(i){this.painter.resize((i=i||{}).width,i.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.pathToImage=function(i,r){if(this.painter.pathToImage)return this.painter.pathToImage(i,r)},o.prototype.setCursorStyle=function(i){this.handler.setCursorStyle(i)},o.prototype.findHover=function(i,r){return this.handler.findHover(i,r)},o.prototype.on=function(i,r,s){return this.handler.on(i,r,s),this},o.prototype.off=function(i,r){this.handler.off(i,r)},o.prototype.trigger=function(i,r){this.handler.trigger(i,r)},o.prototype.clear=function(){for(var i=this.storage.getRoots(),r=0;r0){if(o<=u)return d;if(o>=f)return p}else{if(o>=u)return d;if(o<=f)return p}else{if(o===u)return d;if(o===f)return p}return(o-u)/v*g+d}function Fe(o,i){switch(o){case"center":case"middle":o="50%";break;case"left":case"top":o="0%";break;case"right":case"bottom":o="100%"}return"string"==typeof o?function(o){return o.replace(/^\s+|\s+$/g,"")}(o).match(/%$/)?parseFloat(o)/100*i:parseFloat(o):null==o?NaN:+o}function hi(o,i,r){return null==i&&(i=10),i=Math.min(Math.max(0,i),20),o=(+o).toFixed(i),r?o:+o}function io(o){return o.sort(function(i,r){return i-r}),o}function ns(o){if(o=+o,isNaN(o))return 0;if(o>1e-14)for(var i=1,r=0;r<15;r++,i*=10)if(Math.round(o*i)/i===o)return r;return qk(o)}function qk(o){var i=o.toString().toLowerCase(),r=i.indexOf("e"),s=r>0?+i.slice(r+1):0,u=r>0?r:i.length,f=i.indexOf(".");return Math.max(0,(f<0?0:u-1-f)-s)}function o0(o,i){var r=Math.log,s=Math.LN10,u=Math.floor(r(o[1]-o[0])/s),f=Math.round(r(Math.abs(i[1]-i[0]))/s),d=Math.min(Math.max(-u+f,0),20);return isFinite(d)?d:20}function TO(o,i,r){if(!o[i])return 0;var s=zu(o,function(S,M){return S+(isNaN(M)?0:M)},0);if(0===s)return 0;for(var u=Math.pow(10,r),f=Te(o,function(S){return(isNaN(S)?0:S)/s*u*100}),d=100*u,p=Te(f,function(S){return Math.floor(S)}),v=zu(p,function(S,M){return S+M},0),g=Te(f,function(S,M){return S-p[M]});vm&&(m=g[b],y=b);++p[y],g[y]=0,++v}return p[i]/u}function WH(o,i){var r=Math.max(ns(o),ns(i)),s=o+i;return r>20?s:hi(s,r)}var Up=9007199254740991;function Ld(o){var i=2*Math.PI;return(o%i+i)%i}function hm(o){return o>-1e-4&&o<1e-4}var DO=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ao(o){if(o instanceof Date)return o;if("string"==typeof o){var i=DO.exec(o);if(!i)return new Date(NaN);if(i[8]){var r=+i[4]||0;return"Z"!==i[8].toUpperCase()&&(r-=+i[8].slice(0,3)),new Date(Date.UTC(+i[1],+(i[2]||1)-1,+i[3]||1,r,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0))}return new Date(+i[1],+(i[2]||1)-1,+i[3]||1,+i[4]||0,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0)}return null==o?new Date(NaN):new Date(Math.round(o))}function Fd(o){return Math.pow(10,Xt(o))}function Xt(o){if(0===o)return 0;var i=Math.floor(Math.log(o)/Math.LN10);return o/Math.pow(10,i)>=10&&i++,i}function pm(o,i){var r=Xt(o),s=Math.pow(10,r),u=o/s;return o=(i?u<1.5?1:u<2.5?2:u<4?3:u<7?5:10:u<1?1:u<2?2:u<3?3:u<5?5:10)*s,r>=-20?+o.toFixed(r<0?-r:0):o}function Ci(o,i){var r=(o.length-1)*i+1,s=Math.floor(r),u=+o[s-1],f=r-s;return f?u+f*(o[s]-u):u}function af(o){o.sort(function(v,g){return p(v,g,0)?-1:1});for(var i=-1/0,r=1,s=0;s=0||f&&Rt(f,v)<0)){var g=s.getShallow(v,i);null!=g&&(d[o[p][0]]=g)}}return d}}var rz=Hd([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),$k=function(){function o(){}return o.prototype.getAreaStyle=function(i,r){return rz(this,i,r)},o}(),Qk=new Td(50);function Jk(o){if("string"==typeof o){var i=Qk.get(o);return i&&i.image}return o}function zd(o,i,r,s,u){if(o){if("string"==typeof o){if(i&&i.__zrImageSrc===o||!r)return i;var f=Qk.get(o),d={hostEl:r,cb:s,cbPayload:u};return f?!g0(i=f.image)&&f.pending.push(d):((i=new Image).onload=i.onerror=v0,Qk.put(o,i.__cachedImgObj={image:i,pending:[d]}),i.src=i.__zrImageSrc=o),i}return o}return i}function v0(){var o=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i=d;v++)p-=d;var g=Io(r,i);return g>p&&(r="",g=0),p=o-g,u.ellipsis=r,u.ellipsisWidth=g,u.contentWidth=p,u.containerWidth=o,u}function uf(o,i){var r=i.containerWidth,s=i.font,u=i.contentWidth;if(!r)return"";var f=Io(o,s);if(f<=r)return o;for(var d=0;;d++){if(f<=u||d>=i.maxIterations){o+=i.ellipsis;break}var p=0===d?_m(o,u,i.ascCharWidth,i.cnCharWidth):f>0?Math.floor(o.length*u/f):0;f=Io(o=o.substr(0,p),s)}return""===o&&(o=i.placeholder),o}function _m(o,i,r,s){for(var u=0,f=0,d=o.length;f0&&S+s.accumWidth>s.width&&(m=i.split("\n"),g=!0),s.accumWidth=S}else{var M=rM(i,v,s.width,s.breakAll,s.accumWidth);s.accumWidth=M.accumWidth+w,y=M.linesWidths,m=M.lines}}else m=i.split("\n");for(var x=0;x=33&&i<=255}(o)||!!Fo[o]}function rM(o,i,r,s,u){for(var f=[],d=[],p="",v="",g=0,m=0,y=0;yr:u+m+w>r)?m?(p||v)&&(S?(p||(p=v,v="",m=g=0),f.push(p),d.push(m-g),v+=b,p="",m=g+=w):(v&&(p+=v,m+=g,v="",g=0),f.push(p),d.push(m),p=b,m=w)):S?(f.push(v),d.push(g),v=b,g=w):(f.push(b),d.push(w)):(m+=w,S?(v+=b,g+=w):(v&&(p+=v,v="",g=0),p+=b))}else v&&(p+=v,m+=g),f.push(p),d.push(m),p="",v="",g=0,m=0}return!f.length&&!p&&(p=o,v="",g=0),v&&(p+=v),p&&(f.push(p),d.push(m)),1===f.length&&(m+=u),{accumWidth:m,lines:f,linesWidths:d}}var ym="__zr_style_"+Math.round(10*Math.random()),Xl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xl[ym]=!0;var OO=["z","z2","invisible"],lz=["invisible"],Wp=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype._init=function(r){for(var s=_n(r),u=0;u-1e-8&&o<1e-8}function uz(o){return o>1e-8||o<-1e-8}function pr(o,i,r,s,u){var f=1-u;return f*f*(f*o+3*u*i)+u*u*(u*s+3*f*r)}function b0(o,i,r,s,u){var f=1-u;return 3*(((i-o)*f+2*(r-i)*u)*f+(s-r)*u*u)}function C0(o,i,r,s,u,f){var d=s+3*(i-r)-o,p=3*(r-2*i+o),v=3*(i-o),g=o-u,m=p*p-3*d*v,y=p*v-9*d*g,b=v*v-3*p*g,w=0;if(cf(m)&&cf(y))cf(p)?f[0]=0:(S=-v/p)>=0&&S<=1&&(f[w++]=S);else{var M=y*y-4*m*b;if(cf(M)){var x=y/m,T=-x/2;(S=-p/d+x)>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T)}else if(M>0){var P=Gd(M),O=m*p+1.5*d*(-y+P),R=m*p+1.5*d*(-y-P);(S=(-p-((O=O<0?-_0(-O,jd):_0(O,jd))+(R=R<0?-_0(-R,jd):_0(R,jd))))/(3*d))>=0&&S<=1&&(f[w++]=S)}else{var V=(2*m*p-3*d*y)/(2*Gd(m*m*m)),B=Math.acos(V)/3,U=Gd(m),j=Math.cos(B),S=(-p-2*U*j)/(3*d),X=(T=(-p+U*(j+RO*Math.sin(B)))/(3*d),(-p+U*(j-RO*Math.sin(B)))/(3*d));S>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T),X>=0&&X<=1&&(f[w++]=X)}}return w}function aM(o,i,r,s,u){var f=6*r-12*i+6*o,d=9*i+3*s-3*o-9*r,p=3*i-3*o,v=0;if(cf(d))uz(f)&&(g=-p/f)>=0&&g<=1&&(u[v++]=g);else{var m=f*f-4*d*p;if(cf(m))u[0]=-f/(2*d);else if(m>0){var g,y=Gd(m),b=(-f-y)/(2*d);(g=(-f+y)/(2*d))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}function Xu(o,i,r,s,u,f){var d=(i-o)*u+o,p=(r-i)*u+i,v=(s-r)*u+r,g=(p-d)*u+d,m=(v-p)*u+p,y=(m-g)*u+g;f[0]=o,f[1]=d,f[2]=g,f[3]=y,f[4]=y,f[5]=m,f[6]=v,f[7]=s}function ff(o,i,r,s,u,f,d,p,v,g,m){var y,S,M,x,T,b=.005,w=1/0;os[0]=v,os[1]=g;for(var P=0;P<1;P+=.05)ji[0]=pr(o,r,u,d,P),ji[1]=pr(i,s,f,p,P),(x=Xc(os,ji))=0&&x=0&&w1e-4)return p[0]=o-r,p[1]=i-s,v[0]=o+r,void(v[1]=i+s);if(Cm[0]=lM(u)*r+o,Cm[1]=sM(u)*s+i,w0[0]=lM(f)*r+o,w0[1]=sM(f)*s+i,g(p,Cm,w0),m(v,Cm,w0),(u%=Wd)<0&&(u+=Wd),(f%=Wd)<0&&(f+=Wd),u>f&&!d?f+=Wd:uu&&(S0[0]=lM(w)*r+o,S0[1]=sM(w)*s+i,g(p,S0,p),m(v,S0,v))}var Fn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},df=[],hf=[],$s=[],pf=[],Kl=[],$l=[],Yd=Math.min,qd=Math.max,Zu=Math.cos,Xd=Math.sin,k0=Math.sqrt,Ql=Math.abs,uM=Math.PI,vf=2*uM,cM="undefined"!=typeof Float32Array,km=[];function M0(o){return Math.round(o/uM*1e8)/1e8%2*uM}function Mm(o,i){var r=M0(o[0]);r<0&&(r+=vf);var u=o[1];u+=r-o[0],!i&&u-r>=vf?u=r+vf:i&&r-u>=vf?u=r-vf:!i&&r>u?u=r+(vf-M0(r-u)):i&&r0&&(this._ux=Ql(s/Kb/i)||0,this._uy=Ql(s/Kb/r)||0)},o.prototype.setDPR=function(i){this.dpr=i},o.prototype.setContext=function(i){this._ctx=i},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(i,r){return this._drawPendingPt(),this.addData(Fn.M,i,r),this._ctx&&this._ctx.moveTo(i,r),this._x0=i,this._y0=r,this._xi=i,this._yi=r,this},o.prototype.lineTo=function(i,r){var s=Ql(i-this._xi),u=Ql(r-this._yi),f=s>this._ux||u>this._uy;if(this.addData(Fn.L,i,r),this._ctx&&f&&(this._needsDash?this._dashedLineTo(i,r):this._ctx.lineTo(i,r)),f)this._xi=i,this._yi=r,this._pendingPtDist=0;else{var d=s*s+u*u;d>this._pendingPtDist&&(this._pendingPtX=i,this._pendingPtY=r,this._pendingPtDist=d)}return this},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){return this._drawPendingPt(),this.addData(Fn.C,i,r,s,u,f,d),this._ctx&&(this._needsDash?this._dashedBezierTo(i,r,s,u,f,d):this._ctx.bezierCurveTo(i,r,s,u,f,d)),this._xi=f,this._yi=d,this},o.prototype.quadraticCurveTo=function(i,r,s,u){return this._drawPendingPt(),this.addData(Fn.Q,i,r,s,u),this._ctx&&(this._needsDash?this._dashedQuadraticTo(i,r,s,u):this._ctx.quadraticCurveTo(i,r,s,u)),this._xi=s,this._yi=u,this},o.prototype.arc=function(i,r,s,u,f,d){return this._drawPendingPt(),km[0]=u,km[1]=f,Mm(km,d),this.addData(Fn.A,i,r,s,s,u=km[0],(f=km[1])-u,0,d?0:1),this._ctx&&this._ctx.arc(i,r,s,u,f,d),this._xi=Zu(f)*s+i,this._yi=Xd(f)*s+r,this},o.prototype.arcTo=function(i,r,s,u,f){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(i,r,s,u,f),this},o.prototype.rect=function(i,r,s,u){return this._drawPendingPt(),this._ctx&&this._ctx.rect(i,r,s,u),this.addData(Fn.R,i,r,s,u),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(Fn.Z);var i=this._ctx,r=this._x0,s=this._y0;return i&&(this._needsDash&&this._dashedLineTo(r,s),i.closePath()),this._xi=r,this._yi=s,this},o.prototype.fill=function(i){i&&i.fill(),this.toStatic()},o.prototype.stroke=function(i){i&&i.stroke(),this.toStatic()},o.prototype.setLineDash=function(i){if(i instanceof Array){this._lineDash=i,this._dashIdx=0;for(var r=0,s=0;sm.length&&(this._expandData(),m=this.data);for(var y=0;y0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var i=[],r=0;r0&&b<=i||g<0&&b>=i||0===g&&(m>0&&w<=r||m<0&&w>=r);)b+=g*(M=u[x=this._dashIdx]),w+=m*M,this._dashIdx=(x+1)%S,!(g>0&&bp||m>0&&wv)&&f[x%2?"moveTo":"lineTo"](g>=0?Yd(b,i):qd(b,i),m>=0?Yd(w,r):qd(w,r));this._dashOffset=-k0((g=b-i)*g+(m=w-r)*m)},o.prototype._dashedBezierTo=function(i,r,s,u,f,d){var x,T,P,O,R,p=this._ctx,v=this._dashSum,g=this._dashOffset,m=this._lineDash,y=this._xi,b=this._yi,w=0,S=this._dashIdx,M=m.length,V=0;for(g<0&&(g=v+g),g%=v,x=0;x<1;x+=.1)T=pr(y,i,s,f,x+.1)-pr(y,i,s,f,x),P=pr(b,r,u,d,x+.1)-pr(b,r,u,d,x),w+=k0(T*T+P*P);for(;Sg);S++);for(x=(V-g)/w;x<=1;)O=pr(y,i,s,f,x),R=pr(b,r,u,d,x),S%2?p.moveTo(O,R):p.lineTo(O,R),x+=m[S]/w,S=(S+1)%M;S%2!=0&&p.lineTo(f,d),this._dashOffset=-k0((T=f-O)*T+(P=d-R)*P)},o.prototype._dashedQuadraticTo=function(i,r,s,u){var f=s,d=u;s=(s+2*i)/3,u=(u+2*r)/3,this._dashedBezierTo(i=(this._xi+2*i)/3,r=(this._yi+2*r)/3,s,u,f,d)},o.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var i=this.data;i instanceof Array&&(i.length=this._len,cM&&this._len>11&&(this.data=new Float32Array(i)))}},o.prototype.getBoundingRect=function(){$s[0]=$s[1]=Kl[0]=Kl[1]=Number.MAX_VALUE,pf[0]=pf[1]=$l[0]=$l[1]=-Number.MAX_VALUE;var d,i=this.data,r=0,s=0,u=0,f=0;for(d=0;ds||Ql(O)>u||b===r-1)&&(M=Math.sqrt(P*P+O*O),f=x,d=T);break;case Fn.C:var R=i[b++],V=i[b++],T=(x=i[b++],i[b++]),B=i[b++],U=i[b++];M=cz(f,d,R,V,x,T,B,U,10),f=B,d=U;break;case Fn.Q:M=FO(f,d,R=i[b++],V=i[b++],x=i[b++],T=i[b++],10),f=x,d=T;break;case Fn.A:var j=i[b++],X=i[b++],Z=i[b++],$=i[b++],te=i[b++],ee=i[b++],le=ee+te;b+=1,b++,S&&(p=Zu(te)*Z+j,v=Xd(te)*$+X),M=qd(Z,$)*Yd(vf,Math.abs(ee)),f=Zu(le)*Z+j,d=Xd(le)*$+X;break;case Fn.R:p=f=i[b++],v=d=i[b++],M=2*i[b++]+2*i[b++];break;case Fn.Z:var P=p-f;O=v-d,M=Math.sqrt(P*P+O*O),f=p,d=v}M>=0&&(g[y++]=M,m+=M)}return this._pathLen=m,m},o.prototype.rebuildPath=function(i,r){var p,v,g,m,y,b,S,P,R,V,s=this.data,u=this._ux,f=this._uy,d=this._len,w=r<1,x=0,T=0,O=0;if(!w||(this._pathSegLen||this._calculateLength(),S=this._pathSegLen,P=r*this._pathLen))e:for(var B=0;B0&&(i.lineTo(R,V),O=0),U){case Fn.M:p=g=s[B++],v=m=s[B++],i.moveTo(g,m);break;case Fn.L:y=s[B++],b=s[B++];var X=Ql(y-g),Z=Ql(b-m);if(X>u||Z>f){if(w){if(x+($=S[T++])>P){i.lineTo(g*(1-(te=(P-x)/$))+y*te,m*(1-te)+b*te);break e}x+=$}i.lineTo(y,b),g=y,m=b,O=0}else{var ee=X*X+Z*Z;ee>O&&(R=y,V=b,O=ee)}break;case Fn.C:var le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],_e=s[B++],xe=s[B++];if(w){if(x+($=S[T++])>P){Xu(g,le,de,_e,te=(P-x)/$,df),Xu(m,oe,ge,xe,te,hf),i.bezierCurveTo(df[1],hf[1],df[2],hf[2],df[3],hf[3]);break e}x+=$}i.bezierCurveTo(le,oe,de,ge,_e,xe),g=_e,m=xe;break;case Fn.Q:if(le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],w){if(x+($=S[T++])>P){Wi(g,le,de,te=(P-x)/$,df),Wi(m,oe,ge,te,hf),i.quadraticCurveTo(df[1],hf[1],df[2],hf[2]);break e}x+=$}i.quadraticCurveTo(le,oe,de,ge),g=de,m=ge;break;case Fn.A:var Me=s[B++],ze=s[B++],Je=s[B++],mt=s[B++],Qt=s[B++],zt=s[B++],xt=s[B++],Yt=!s[B++],Ut=Je>mt?Je:mt,Wn=Ql(Je-mt)>.001,ur=Qt+zt,fi=!1;if(w&&(x+($=S[T++])>P&&(ur=Qt+zt*(P-x)/$,fi=!0),x+=$),Wn&&i.ellipse?i.ellipse(Me,ze,Je,mt,xt,Qt,ur,Yt):i.arc(Me,ze,Ut,Qt,ur,Yt),fi)break e;j&&(p=Zu(Qt)*Je+Me,v=Xd(Qt)*mt+ze),g=Zu(ur)*Je+Me,m=Xd(ur)*mt+ze;break;case Fn.R:p=g=s[B],v=m=s[B+1],y=s[B++],b=s[B++];var Mt=s[B++],Nr=s[B++];if(w){if(x+($=S[T++])>P){var gr=P-x;i.moveTo(y,b),i.lineTo(y+Yd(gr,Mt),b),(gr-=Mt)>0&&i.lineTo(y+Mt,b+Yd(gr,Nr)),(gr-=Nr)>0&&i.lineTo(y+qd(Mt-gr,0),b+Nr),(gr-=Mt)>0&&i.lineTo(y,b+qd(Nr-gr,0));break e}x+=$}i.rect(y,b,Mt,Nr);break;case Fn.Z:if(w){var $;if(x+($=S[T++])>P){var te;i.lineTo(g*(1-(te=(P-x)/$))+p*te,m*(1-te)+v*te);break e}x+=$}i.closePath(),g=p,m=v}}},o.prototype.clone=function(){var i=new o,r=this.data;return i.data=r.slice?r.slice():Array.prototype.slice.call(r),i._len=this._len,i},o.CMD=Fn,o.initDefaultProps=((i=o.prototype)._saveData=!0,i._needsDash=!1,i._dashOffset=0,i._dashIdx=0,i._dashSum=0,i._ux=0,i._uy=0,i._pendingPtDist=0,void(i._version=0)),o;var i}();function gf(o,i,r,s,u,f,d){if(0===u)return!1;var v,p=u;if(d>i+p&&d>s+p||do+p&&f>r+p||fi+y&&m>s+y&&m>f+y&&m>p+y||mo+y&&g>r+y&&g>u+y&&g>d+y||gi+g&&v>s+g&&v>f+g||vo+g&&p>r+g&&p>u+g||pr||m+gu&&(u+=qp);var b=Math.atan2(v,p);return b<0&&(b+=qp),b>=s&&b<=u||b+qp>=s&&b+qp<=u}function Ku(o,i,r,s,u,f){if(f>i&&f>s||fu?p:0}var mf=Qs.CMD,Zd=2*Math.PI,lo=[-1,-1,-1],ga=[-1,-1];function ls(){var o=ga[0];ga[0]=ga[1],ga[1]=o}function fM(o,i,r,s,u,f,d,p,v,g){if(g>i&&g>s&&g>f&&g>p||g1&&ls(),w=pr(i,s,f,p,ga[0]),b>1&&(S=pr(i,s,f,p,ga[1]))),y+=2===b?xi&&p>s&&p>f||p=0&&g<=1&&(u[v++]=g);else{var m=d*d-4*f*p;if(cf(m))(g=-d/(2*f))>=0&&g<=1&&(u[v++]=g);else if(m>0){var g,y=Gd(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}(i,s,f,p,lo);if(0===v)return 0;var g=LO(i,s,f);if(g>=0&&g<=1){for(var m=0,y=Fi(i,s,f,g),b=0;br||p<-r)return 0;var v=Math.sqrt(r*r-p*p);lo[0]=-v,lo[1]=v;var g=Math.abs(s-u);if(g<1e-4)return 0;if(g>=Zd-1e-4){s=0,u=Zd;var m=f?1:-1;return d>=lo[0]+o&&d<=lo[1]+o?m:0}if(s>u){var y=s;s=u,u=y}s<0&&(s+=Zd,u+=Zd);for(var b=0,w=0;w<2;w++){var S=lo[w];if(S+o>d){var M=Math.atan2(p,S);m=f?1:-1,M<0&&(M=Zd+M),(M>=s&&M<=u||M+Zd>=s&&M+Zd<=u)&&(M>Math.PI/2&&M<1.5*Math.PI&&(m=-m),b+=m)}}return b}function Yi(o,i,r,s,u){for(var b,w,f=o.data,d=o.len(),p=0,v=0,g=0,m=0,y=0,S=0;S1&&(r||(p+=Ku(v,g,m,y,s,u))),x&&(m=v=f[S],y=g=f[S+1]),M){case mf.M:v=m=f[S++],g=y=f[S++];break;case mf.L:if(r){if(gf(v,g,f[S],f[S+1],i,s,u))return!0}else p+=Ku(v,g,f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.C:if(r){if(ss(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=fM(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.Q:if(r){if(Si(v,g,f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=UO(v,g,f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.A:var T=f[S++],P=f[S++],O=f[S++],R=f[S++],V=f[S++],B=f[S++];S+=1;var U=!!(1-f[S++]);b=Math.cos(V)*O+T,w=Math.sin(V)*R+P,x?(m=b,y=w):p+=Ku(v,g,b,w,s,u);var j=(s-T)*R/O+T;if(r){if(hz(T,P,R,V,V+B,U,i,j,u))return!0}else p+=GO(T,P,R,V,V+B,U,j,u);v=Math.cos(V+B)*O+T,g=Math.sin(V+B)*R+P;break;case mf.R:if(m=v=f[S++],y=g=f[S++],b=m+f[S++],w=y+f[S++],r){if(gf(m,y,b,y,i,s,u)||gf(b,y,b,w,i,s,u)||gf(b,w,m,w,i,s,u)||gf(m,w,m,y,i,s,u))return!0}else p+=Ku(b,y,b,w,s,u),p+=Ku(m,w,m,y,s,u);break;case mf.Z:if(r){if(gf(v,g,m,y,i,s,u))return!0}else p+=Ku(v,g,m,y,s,u);v=m,g=y}}return!r&&!function(o,i){return Math.abs(o-i)<1e-4}(g,y)&&(p+=Ku(v,g,m,y,s,u)||0),0!==p}var jO=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xl),vz={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bm.style)},x0=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Nt=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.update=function(){var r=this;o.prototype.update.call(this);var s=this.style;if(s.decal){var u=this._decalEl=this._decalEl||new i;u.buildPath===i.prototype.buildPath&&(u.buildPath=function(v){r.buildPath(v,r.shape)}),u.silent=!0;var f=u.style;for(var d in s)f[d]!==s[d]&&(f[d]=s[d]);f.fill=s.fill?s.decal:null,f.decal=null,f.shadowColor=null,s.strokeFirst&&(f.stroke=null);for(var p=0;p.5?En:s>.2?"#eee":pe}if(r)return pe}return En},i.prototype.getInsideTextStroke=function(r){var s=this.style.fill;if(yt(s)){var u=this.__zr;if(!(!u||!u.isDarkMode())==qb(r,0)<.4)return s}},i.prototype.buildPath=function(r,s,u){},i.prototype.pathUpdated=function(){this.__dirty&=-5},i.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},i.prototype.createPathProxy=function(){this.path=new Qs(!1)},i.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return!(null==s||"none"===s||!(r.lineWidth>0))},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.getBoundingRect=function(){var r=this._rect,s=this.style,u=!r;if(u){var f=!1;this.path||(f=!0,this.createPathProxy());var d=this.path;(f||4&this.__dirty)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),r=d.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var p=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||u){p.copy(r);var v=s.strokeNoScale?this.getLineScale():1,g=s.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}v>1e-10&&(p.width+=g/v,p.height+=g/v,p.x-=g/v/2,p.y-=g/v/2)}return p}return r},i.prototype.contain=function(r,s){var u=this.transformCoordToLocal(r,s),f=this.getBoundingRect(),d=this.style;if(f.contain(r=u[0],s=u[1])){var p=this.path;if(this.hasStroke()){var v=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(v=Math.max(v,this.strokeContainThreshold)),function(o,i,r,s){return Yi(o,i,!0,r,s)}(p,v/g,r,s)))return!0}if(this.hasFill())return function(o,i,r){return Yi(o,0,!1,i,r)}(p,r,s)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(r){return this.animate("shape",r)},i.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(r,s){"shape"===r?this.setShape(s):o.prototype.attrKV.call(this,r,s)},i.prototype.setShape=function(r,s){var u=this.shape;return u||(u=this.shape={}),"string"==typeof r?u[r]=s:Se(u,r),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(4&this.__dirty)},i.prototype.createStyle=function(r){return Mp(jO,r)},i.prototype._innerSaveToNormal=function(r){o.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;r.shape&&!s.shape&&(s.shape=Se({},this.shape))},i.prototype._applyStateObj=function(r,s,u,f,d,p){o.prototype._applyStateObj.call(this,r,s,u,f,d,p);var g,v=!(s&&f);if(s&&s.shape?d?f?g=s.shape:(g=Se({},u.shape),Se(g,s.shape)):(g=Se({},f?this.shape:u.shape),Se(g,s.shape)):v&&(g=u.shape),g)if(d){this.shape=Se({},this.shape);for(var m={},y=_n(g),b=0;b0},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.createStyle=function(r){return Mp(mz,r)},i.prototype.setBoundingRect=function(r){this._rect=r},i.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var s=r.text;null!=s?s+="":s="";var u=um(s,r.font,r.textAlign,r.textBaseline);if(u.x+=r.x||0,u.y+=r.y||0,this.hasStroke()){var f=r.lineWidth;u.x-=f/2,u.y-=f/2,u.width+=f,u.height+=f}this._rect=u}return this._rect},i.initDefaultProps=void(i.prototype.dirtyRectTolerance=10),i}(as);hM.prototype.type="tspan";var Xp=hM,_z=tt({x:0,y:0},Xl),yz={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bm.style)},T0=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Ln(i,o),i.prototype.createStyle=function(r){return Mp(_z,r)},i.prototype._getSize=function(r){var s=this.style,u=s[r];if(null!=u)return u;var f=function(o){return!!(o&&"string"!=typeof o&&o.width&&o.height)}(s.image)?s.image:this.__image;if(!f)return 0;var d="width"===r?"height":"width",p=s[d];return null==p?f[r]:f[r]/f[d]*p},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return yz},i.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ft(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},i}(as);T0.prototype.type="image";var si=T0,Tm=Math.round;function pM(o,i,r){if(i){var s=i.x1,u=i.x2,f=i.y1,d=i.y2;o.x1=s,o.x2=u,o.y1=f,o.y2=d;var p=r&&r.lineWidth;return p&&(Tm(2*s)===Tm(2*u)&&(o.x1=o.x2=Kd(s,p,!0)),Tm(2*f)===Tm(2*d)&&(o.y1=o.y2=Kd(f,p,!0))),o}}function Dm(o,i,r){if(i){var s=i.x,u=i.y,f=i.width,d=i.height;o.x=s,o.y=u,o.width=f,o.height=d;var p=r&&r.lineWidth;return p&&(o.x=Kd(s,p,!0),o.y=Kd(u,p,!0),o.width=Math.max(Kd(s+f,p,!1)-o.x,0===f?0:1),o.height=Math.max(Kd(u+d,p,!1)-o.y,0===d?0:1)),o}}function Kd(o,i,r){if(!i)return o;var s=Tm(2*o);return(s+Tm(i))%2==0?s/2:(s+(r?1:-1))/2}var Cz=function(){this.x=0,this.y=0,this.width=0,this.height=0},$d={},YO=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultShape=function(){return new Cz},i.prototype.buildPath=function(r,s){var u,f,d,p;if(this.subPixelOptimize){var v=Dm($d,s,this.style);u=v.x,f=v.y,d=v.width,p=v.height,v.r=s.r,s=v}else u=s.x,f=s.y,d=s.width,p=s.height;s.r?function(o,i){var p,v,g,m,y,r=i.x,s=i.y,u=i.width,f=i.height,d=i.r;u<0&&(r+=u,u=-u),f<0&&(s+=f,f=-f),"number"==typeof d?p=v=g=m=d:d instanceof Array?1===d.length?p=v=g=m=d[0]:2===d.length?(p=g=d[0],v=m=d[1]):3===d.length?(p=d[0],v=m=d[1],g=d[2]):(p=d[0],v=d[1],g=d[2],m=d[3]):p=v=g=m=0,p+v>u&&(p*=u/(y=p+v),v*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),v+g>f&&(v*=f/(y=v+g),g*=f/y),p+m>f&&(p*=f/(y=p+m),m*=f/y),o.moveTo(r+p,s),o.lineTo(r+u-v,s),0!==v&&o.arc(r+u-v,s+v,v,-Math.PI/2,0),o.lineTo(r+u,s+f-g),0!==g&&o.arc(r+u-g,s+f-g,g,0,Math.PI/2),o.lineTo(r+m,s+f),0!==m&&o.arc(r+m,s+f-m,m,Math.PI/2,Math.PI),o.lineTo(r,s+p),0!==p&&o.arc(r+p,s+p,p,Math.PI,1.5*Math.PI)}(r,s):r.rect(u,f,d,p)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(Nt);YO.prototype.type="rect";var sn=YO,qO={fill:"#000"},wz={style:tt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},bm.style)},D0=function(o){function i(r){var s=o.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=qO,s.attr(r),s}return Ln(i,o),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){o.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;rb&&v){var w=Math.floor(b/p);m=m.slice(0,w)}var S=b,M=g;if(s&&(S+=s[0]+s[2],null!=M&&(M+=s[1]+s[3])),o&&f&&null!=M)for(var x=tM(g,u,i.ellipsis,{minChar:i.truncateMinChar,placeholder:i.placeholder}),T=0;T0,$=null!=r.width&&("truncate"===r.overflow||"break"===r.overflow||"breakAll"===r.overflow),te=d.calculatedLineHeight,ee=0;eep&&oi(r,o.substring(p,g),i,d),oi(r,v[2],i,d,v[1]),p=ce.lastIndex}pu){V>0?(P.tokens=P.tokens.slice(0,V),x(P,R,O),r.lines=r.lines.slice(0,T+1)):r.lines=r.lines.slice(0,T);break e}var te=U.width,ee=null==te||"auto"===te;if("string"==typeof te&&"%"===te.charAt(te.length-1))B.percentWidth=te,m.push(B),B.contentWidth=Io(B.text,Z);else{if(ee){var le=U.backgroundColor,oe=le&&le.image;oe&&g0(oe=Jk(oe))&&(B.width=Math.max(B.width,oe.width*$/oe.height))}var de=S&&null!=s?s-R:null;null!=de&&de=0&&"right"===(le=B[ee]).align;)this._placeToken(le,r,j,T,te,"right",O),X-=le.width,te-=le.width,ee--;for($+=(f-($-x)-(P-te)-X)/2;Z<=ee;)this._placeToken(le=B[Z],r,j,T,$+le.width/2,"center",O),$+=le.width,Z++;T+=j}},i.prototype._placeToken=function(r,s,u,f,d,p,v){var g=s.rich[r.styleName]||{};g.text=r.text;var m=r.verticalAlign,y=f+u/2;"top"===m?y=f+r.height/2:"bottom"===m&&(y=f+u-r.height/2),!r.isLineHolder&&E0(g)&&this._renderBackground(g,s,"right"===p?d-r.width:"center"===p?d-r.width/2:d,y-r.height/2,r.width,r.height);var w=!!g.backgroundColor,S=r.textPadding;S&&(d=gM(d,p,S),y-=r.height/2-S[0]-r.innerHeight/2);var M=this._getOrCreateChild(Xp),x=M.createStyle();M.useStyle(x);var T=this._defaultStyle,P=!1,O=0,R=$O("fill"in g?g.fill:"fill"in s?s.fill:(P=!0,T.fill)),V=vM("stroke"in g?g.stroke:"stroke"in s?s.stroke:w||v||T.autoStroke&&!P?null:(O=2,T.stroke)),B=g.textShadowBlur>0||s.textShadowBlur>0;x.text=r.text,x.x=d,x.y=y,B&&(x.shadowBlur=g.textShadowBlur||s.textShadowBlur||0,x.shadowColor=g.textShadowColor||s.textShadowColor||"transparent",x.shadowOffsetX=g.textShadowOffsetX||s.textShadowOffsetX||0,x.shadowOffsetY=g.textShadowOffsetY||s.textShadowOffsetY||0),x.textAlign=p,x.textBaseline="middle",x.font=r.font||ri,x.opacity=Qo(g.opacity,s.opacity,1),V&&(x.lineWidth=Qo(g.lineWidth,s.lineWidth,O),x.lineDash=ot(g.lineDash,s.lineDash),x.lineDashOffset=s.lineDashOffset||0,x.stroke=V),R&&(x.fill=R);var U=r.contentWidth,j=r.contentHeight;M.setBoundingRect(new Ft(rf(x.x,U,x.textAlign),Yu(x.y,j,x.textBaseline),U,j))},i.prototype._renderBackground=function(r,s,u,f,d,p){var M,x,P,v=r.backgroundColor,g=r.borderWidth,m=r.borderColor,y=v&&v.image,b=v&&!y,w=r.borderRadius,S=this;if(b||r.lineHeight||g&&m){(M=this._getOrCreateChild(sn)).useStyle(M.createStyle()),M.style.fill=null;var T=M.shape;T.x=u,T.y=f,T.width=d,T.height=p,T.r=w,M.dirtyShape()}if(b)(P=M.style).fill=v||null,P.fillOpacity=ot(r.fillOpacity,1);else if(y){(x=this._getOrCreateChild(si)).onload=function(){S.dirtyStyle()};var O=x.style;O.image=v.image,O.x=u,O.y=f,O.width=d,O.height=p}g&&m&&((P=M.style).lineWidth=g,P.stroke=m,P.strokeOpacity=ot(r.strokeOpacity,1),P.lineDash=r.borderDash,P.lineDashOffset=r.borderDashOffset||0,M.strokeContainThreshold=0,M.hasFill()&&M.hasStroke()&&(P.strokeFirst=!0,P.lineWidth*=2));var R=(M||x).style;R.shadowBlur=r.shadowBlur||0,R.shadowColor=r.shadowColor||"transparent",R.shadowOffsetX=r.shadowOffsetX||0,R.shadowOffsetY=r.shadowOffsetY||0,R.opacity=Qo(r.opacity,s.opacity,1)},i.makeFont=function(r){var s="";if(r.fontSize||r.fontFamily||r.fontWeight){var u="";u="string"!=typeof r.fontSize||-1===r.fontSize.indexOf("px")&&-1===r.fontSize.indexOf("rem")&&-1===r.fontSize.indexOf("em")?isNaN(+r.fontSize)?"12px":r.fontSize+"px":r.fontSize,s=[r.fontStyle,r.fontWeight,u,r.fontFamily||"sans-serif"].join(" ")}return s&&jc(s)||r.textFont||r.font},i}(as),us={left:!0,right:1,center:1},ZO={top:1,bottom:1,middle:1};function KO(o){if(o){o.font=D0.makeFont(o);var i=o.align;"middle"===i&&(i="center"),o.align=null==i||us[i]?i:"left";var r=o.verticalAlign;"center"===r&&(r="middle"),o.verticalAlign=null==r||ZO[r]?r:"top",o.padding&&(o.padding=Nb(o.padding))}}function vM(o,i){return null==o||i<=0||"transparent"===o||"none"===o?null:o.image||o.colorStops?"#000":o}function $O(o){return null==o||"none"===o?null:o.image||o.colorStops?"#000":o}function gM(o,i,r){return"right"===i?o-r[1]:"center"===i?o+r[3]/2-r[1]/2:o+r[3]}function A0(o){var i=o.text;return null!=i&&(i+=""),i}function E0(o){return!!(o.backgroundColor||o.lineHeight||o.borderWidth&&o.borderColor)}var fn=D0,ht=pn(),cs=function(i,r,s,u){if(u){var f=ht(u);f.dataIndex=s,f.dataType=r,f.seriesIndex=i,"group"===u.type&&u.traverse(function(d){var p=ht(d);p.seriesIndex=i,p.dataIndex=s,p.dataType=r})}},kz=1,Mz={},mM=pn(),qi=["emphasis","blur","select"],Am=["normal","emphasis","blur","select"],_f="highlight",Pm="downplay",Jd="select",Kp="unselect",$p="toggleSelect";function Om(o){return null!=o&&"none"!==o}var eh=new Td(100);function P0(o){if("string"!=typeof o)return o;var i=eh.get(o);return i||(i=lO(o,-.1),eh.put(o,i)),i}function Im(o,i,r){o.onHoverStateChange&&(o.hoverState||0)!==r&&o.onHoverStateChange(i),o.hoverState=r}function JO(o){Im(o,"emphasis",2)}function O0(o){2===o.hoverState&&Im(o,"normal",0)}function _M(o){Im(o,"blur",1)}function eI(o){1===o.hoverState&&Im(o,"normal",0)}function xz(o){o.selected=!0}function Tz(o){o.selected=!1}function tI(o,i,r){i(o,r)}function $u(o,i,r){tI(o,i,r),o.isGroup&&o.traverse(function(s){tI(s,i,r)})}function Rm(o,i){switch(i){case"emphasis":o.hoverState=2;break;case"normal":o.hoverState=0;break;case"blur":o.hoverState=1;break;case"select":o.selected=!0}}function I0(o,i){var r=this.states[o];if(this.style){if("emphasis"===o)return function(o,i,r,s){var u=r&&Rt(r,"select")>=0,f=!1;if(o instanceof Nt){var d=mM(o),p=u&&d.selectFill||d.normalFill,v=u&&d.selectStroke||d.normalStroke;if(Om(p)||Om(v)){var g=(s=s||{}).style||{};"inherit"===g.fill?(f=!0,s=Se({},s),(g=Se({},g)).fill=p):!Om(g.fill)&&Om(p)?(f=!0,s=Se({},s),(g=Se({},g)).fill=P0(p)):!Om(g.stroke)&&Om(v)&&(f||(s=Se({},s),g=Se({},g)),g.stroke=P0(v)),s.style=g}}if(s&&null==s.z2){f||(s=Se({},s));var m=o.z2EmphasisLift;s.z2=o.z2+(null!=m?m:10)}return s}(this,0,i,r);if("blur"===o)return function(o,i,r){var s=Rt(o.currentStates,i)>=0,u=o.style.opacity,f=s?null:function(o,i,r,s){for(var u=o.style,f={},d=0;d0){var v={dataIndex:p,seriesIndex:r.seriesIndex};null!=d&&(v.dataType=d),i.push(v)}})}),i}function qn(o,i,r){th(o,!0),$u(o,yf),xM(o,i,r)}function xM(o,i,r){var s=ht(o);null!=i?(s.focus=i,s.blurScope=r):s.focus&&(s.focus=null)}var oI=["emphasis","blur","select"],sI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ki(o,i,r,s){r=r||"itemStyle";for(var u=0;u0){var S={duration:m.duration,delay:m.delay||0,easing:m.easing,done:f,force:!!f||!!d,setToFinal:!g,scope:o,during:d};p?i.animateFrom(r,S):i.animateTo(r,S)}else i.stopAnimation(),!p&&i.attr(r),d&&d(1),f&&f()}function ln(o,i,r,s,u,f){H0("update",o,i,r,s,u,f)}function yr(o,i,r,s,u,f){H0("init",o,i,r,s,u,f)}function ev(o){if(!o.__zr)return!0;for(var i=0;i-1?"ZH":"EN";function LM(o,i){o=o.toUpperCase(),nu[o]=new Nn(i),RM[o]=i}LM("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),LM("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var ds=36e5,No=24*ds,vI=365*No,zm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tv="{yyyy}-{MM}-{dd}",gI={year:"{yyyy}",month:"{yyyy}-{MM}",day:tv,hour:tv+" "+zm.hour,minute:tv+" "+zm.minute,second:tv+" "+zm.second,millisecond:zm.none},K0=["year","month","day","hour","minute","second","millisecond"],mI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vo(o,i){return"0000".substr(0,i-(o+="").length)+o}function ru(o){switch(o){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return o}}function nv(o){return o===ru(o)}function iu(o,i,r,s){var u=ao(o),f=u[$0(r)](),d=u[ah(r)]()+1,p=Math.floor((d-1)/4)+1,v=u[rv(r)](),g=u["get"+(r?"UTC":"")+"Day"](),m=u[oh(r)](),y=(m-1)%12+1,b=u[Gm(r)](),w=u[sh(r)](),S=u[Q0(r)](),x=(s instanceof Nn?s:function(o){return nu[o]}(s||Z0)||nu.EN).getModel("time"),T=x.get("month"),P=x.get("monthAbbr"),O=x.get("dayOfWeek"),R=x.get("dayOfWeekAbbr");return(i||"").replace(/{yyyy}/g,f+"").replace(/{yy}/g,f%100+"").replace(/{Q}/g,p+"").replace(/{MMMM}/g,T[d-1]).replace(/{MMM}/g,P[d-1]).replace(/{MM}/g,Vo(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,Vo(v,2)).replace(/{d}/g,v+"").replace(/{eeee}/g,O[g]).replace(/{ee}/g,R[g]).replace(/{e}/g,g+"").replace(/{HH}/g,Vo(m,2)).replace(/{H}/g,m+"").replace(/{hh}/g,Vo(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Vo(b,2)).replace(/{m}/g,b+"").replace(/{ss}/g,Vo(w,2)).replace(/{s}/g,w+"").replace(/{SSS}/g,Vo(S,3)).replace(/{S}/g,S+"")}function ih(o,i){var r=ao(o),s=r[ah(i)]()+1,u=r[rv(i)](),f=r[oh(i)](),d=r[Gm(i)](),p=r[sh(i)](),g=0===r[Q0(i)](),m=g&&0===p,y=m&&0===d,b=y&&0===f,w=b&&1===u;return w&&1===s?"year":w?"month":b?"day":y?"hour":m?"minute":g?"second":"millisecond"}function _I(o,i,r){var s="number"==typeof o?ao(o):o;switch(i=i||ih(o,r)){case"year":return s[$0(r)]();case"half-year":return s[ah(r)]()>=6?1:0;case"quarter":return Math.floor((s[ah(r)]()+1)/4);case"month":return s[ah(r)]();case"day":return s[rv(r)]();case"half-day":return s[oh(r)]()/24;case"hour":return s[oh(r)]();case"minute":return s[Gm(r)]();case"second":return s[sh(r)]();case"millisecond":return s[Q0(r)]()}}function $0(o){return o?"getUTCFullYear":"getFullYear"}function ah(o){return o?"getUTCMonth":"getMonth"}function rv(o){return o?"getUTCDate":"getDate"}function oh(o){return o?"getUTCHours":"getHours"}function Gm(o){return o?"getUTCMinutes":"getMinutes"}function sh(o){return o?"getUTCSeconds":"getSeconds"}function Q0(o){return o?"getUTCMilliseconds":"getMilliseconds"}function yI(o){return o?"setUTCFullYear":"setFullYear"}function Nz(o){return o?"setUTCMonth":"setMonth"}function BM(o){return o?"setUTCDate":"setDate"}function HM(o){return o?"setUTCHours":"setHours"}function bI(o){return o?"setUTCMinutes":"setMinutes"}function zM(o){return o?"setUTCSeconds":"setSeconds"}function CI(o){return o?"setUTCMilliseconds":"setMilliseconds"}function UM(o){if(!of(o))return yt(o)?o:"-";var i=(o+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")}function Na(o,i){return o=(o||"").toLowerCase().replace(/-(.)/g,function(r,s){return s.toUpperCase()}),i&&o&&(o=o.charAt(0).toUpperCase()+o.slice(1)),o}var lh=Nb,Vz=/([&<>"'])/g,iZ={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bo(o){return null==o?"":(o+"").replace(Vz,function(i,r){return iZ[r]})}function jm(o,i,r){function u(m){return m&&jc(m)?m:"-"}function f(m){return!(null==m||isNaN(m)||!isFinite(m))}var d="time"===i,p=o instanceof Date;if(d||p){var v=d?ao(o):o;if(!isNaN(+v))return iu(v,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",r);if(p)return"-"}if("ordinal"===i)return Gc(o)?u(o):yk(o)&&f(o)?o+"":"-";var g=Fa(o);return f(g)?UM(g):Gc(o)?u(o):"-"}var Bz=["a","b","c","d","e","f","g"],GM=function(i,r){return"{"+i+(null==r?"":r)+"}"};function Wm(o,i,r){we(i)||(i=[i]);var s=i.length;if(!s)return"";for(var u=i[0].$vars||[],f=0;f':'':{renderMode:f,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===u?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}:""}function Hz(o,i,r){("week"===o||"month"===o||"quarter"===o||"half-year"===o||"year"===o)&&(o="MM-dd\nyyyy");var s=ao(i),u=r?"UTC":"",f=s["get"+u+"FullYear"](),d=s["get"+u+"Month"]()+1,p=s["get"+u+"Date"](),v=s["get"+u+"Hours"](),g=s["get"+u+"Minutes"](),m=s["get"+u+"Seconds"](),y=s["get"+u+"Milliseconds"]();return o.replace("MM",Vo(d,2)).replace("M",d).replace("yyyy",f).replace("yy",f%100+"").replace("dd",Vo(p,2)).replace("d",p).replace("hh",Vo(v,2)).replace("h",v).replace("mm",Vo(g,2)).replace("m",g).replace("ss",Vo(m,2)).replace("s",m).replace("SSS",Vo(y,3))}function zz(o){return o&&o.charAt(0).toUpperCase()+o.substr(1)}function wf(o,i){return i=i||"transparent",yt(o)?o:at(o)&&o.colorStops&&(o.colorStops[0]||{}).color||i}function J0(o,i){if("_blank"===i||"blank"===i){var r=window.open();r.opener=null,r.location.href=o}else window.open(o,i)}var Ym=q,kI=["left","right","top","bottom","width","height"],uh=[["width","left","right"],["height","top","bottom"]];function eC(o,i,r,s,u){var f=0,d=0;null==s&&(s=1/0),null==u&&(u=1/0);var p=0;i.eachChild(function(v,g){var w,S,m=v.getBoundingRect(),y=i.childAt(g+1),b=y&&y.getBoundingRect();if("horizontal"===o){var M=m.width+(b?-b.x+m.x:0);(w=f+M)>s||v.newline?(f=0,w=M,d+=p+r,p=m.height):p=Math.max(p,m.height)}else{var x=m.height+(b?-b.y+m.y:0);(S=d+x)>u||v.newline?(f+=p+r,d=0,S=x,p=m.width):p=Math.max(p,m.width)}v.newline||(v.x=f,v.y=d,v.markRedraw(),"horizontal"===o?f=w+r:d=S+r)})}var Sf=eC;function li(o,i,r){r=lh(r||0);var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u),g=Fe(o.width,s),m=Fe(o.height,u),y=r[2]+r[0],b=r[1]+r[3],w=o.aspect;switch(isNaN(g)&&(g=s-p-b-f),isNaN(m)&&(m=u-v-y-d),null!=w&&(isNaN(g)&&isNaN(m)&&(w>s/u?g=.8*s:m=.8*u),isNaN(g)&&(g=w*m),isNaN(m)&&(m=g/w)),isNaN(f)&&(f=s-p-g-b),isNaN(d)&&(d=u-v-m-y),o.left||o.right){case"center":f=s/2-g/2-r[3];break;case"right":f=s-g-b}switch(o.top||o.bottom){case"middle":case"center":d=u/2-m/2-r[0];break;case"bottom":d=u-m-y}f=f||0,d=d||0,isNaN(g)&&(g=s-b-f-(p||0)),isNaN(m)&&(m=u-y-d-(v||0));var S=new Ft(f+r[3],d+r[0],g,m);return S.margin=r,S}function tC(o,i,r,s,u){var f=!u||!u.hv||u.hv[0],d=!u||!u.hv||u.hv[1],p=u&&u.boundingMode||"all";if(f||d){var v;if("raw"===p)v="group"===o.type?new Ft(0,0,+i.width||0,+i.height||0):o.getBoundingRect();else if(v=o.getBoundingRect(),o.needLocalTransform()){var g=o.getLocalTransform();(v=v.clone()).applyTransform(g)}var m=li(tt({width:v.width,height:v.height},i),r,s),y=f?m.x-v.x:0,b=d?m.y-v.y:0;"raw"===p?(o.x=y,o.y=b):(o.x+=y,o.y+=b),o.markRedraw()}}function iv(o){var i=o.layoutMode||o.constructor.layoutMode;return at(i)?i:i?{type:i}:null}function kf(o,i,r){var s=r&&r.ignoreSize;!we(s)&&(s=[s,s]);var u=d(uh[0],0),f=d(uh[1],1);function d(m,y){var b={},w=0,S={},M=0;if(Ym(m,function(O){S[O]=o[O]}),Ym(m,function(O){p(i,O)&&(b[O]=S[O]=i[O]),v(b,O)&&w++,v(S,O)&&M++}),s[y])return v(i,m[1])?S[m[2]]=null:v(i,m[2])&&(S[m[1]]=null),S;if(2===M||!w)return S;if(w>=2)return b;for(var T=0;T=0;v--)p=He(p,u[v],!0);s.defaultOption=p}return s.defaultOption},i.prototype.getReferringComponents=function(r,s){var f=r+"Id";return d0(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(f,!0)},s)},i.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},i.protoInitialize=function(){var r=i.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),i}(Nn);h0(ov,Nn),qu(ov),function(o){var i={};o.registerSubTypeDefaulter=function(r,s){var u=ql(r);i[u.main]=s},o.determineSubType=function(r,s){var u=s.type;if(!u){var f=ql(r).main;o.hasSubTypes(r)&&i[f]&&(u=i[f](s))}return u}}(ov),function(o,i){function s(f,d){return f[d]||(f[d]={predecessor:[],successor:[]}),f[d]}o.topologicalTravel=function(f,d,p,v){if(f.length){var g=function(f){var d={},p=[];return q(f,function(v){var g=s(d,v),y=function(f,d){var p=[];return q(f,function(v){Rt(d,v)>=0&&p.push(v)}),p}(g.originalDeps=function(o){var i=[];return q(ov.getClassesByMainType(o),function(r){i=i.concat(r.dependencies||r.prototype.dependencies||[])}),i=Te(i,function(r){return ql(r).main}),"dataset"!==o&&Rt(i,"dataset")<=0&&i.unshift("dataset"),i}(v),f);g.entryCount=y.length,0===g.entryCount&&p.push(v),q(y,function(b){Rt(g.predecessor,b)<0&&g.predecessor.push(b);var w=s(d,b);Rt(w.successor,b)<0&&w.successor.push(v)})}),{graph:d,noEntryList:p}}(d),m=g.graph,y=g.noEntryList,b={};for(q(f,function(P){b[P]=!0});y.length;){var w=y.pop(),S=m[w],M=!!b[w];M&&(p.call(v,w,S.originalDeps.slice()),delete b[w]),q(S.successor,M?T:x)}q(b,function(){throw new Error("")})}function x(P){m[P].entryCount--,0===m[P].entryCount&&y.push(P)}function T(P){b[P]=!0,x(P)}}}(ov);var qt=ov,nC="";"undefined"!=typeof navigator&&(nC=navigator.platform||"");var sv="rgba(0, 0, 0, 0.2)",YM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nC.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},rC=et(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ho="original",ma="arrayRows",hs="objectRows",ps="keyedColumns",Mf="typedArray",xI="unknown",tl="column",ch="row",qM=pn();function au(o,i,r){var s={},u=XM(i);if(!u||!o)return s;var m,y,f=[],d=[],v=qM(i.ecModel).datasetMap,g=u.uid+"_"+r.seriesLayoutBy;q(o=o.slice(),function(M,x){var T=at(M)?M:o[x]={name:M};"ordinal"===T.type&&null==m&&(m=x,y=S(T)),s[T.name]=[]});var b=v.get(g)||v.set(g,{categoryWayDim:y,valueWayDim:0});function w(M,x,T){for(var P=0;Pi)return o[s];return o[r-1]}(s,d):r;if((m=m||r)&&m.length){var y=m[v];return u&&(g[u]=y),p.paletteIdx=(v+1)%m.length,y}}var oC,Zm,QM,fh="\0_ec_inner",OI=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r,s,u,f,d,p){f=f||{},this.option=null,this._theme=new Nn(f),this._locale=new Nn(d),this._optionManager=p},i.prototype.setOption=function(r,s,u){var f=JM(s);this._optionManager.setOption(r,u,f),this._resetOption(null,f)},i.prototype.resetOption=function(r,s){return this._resetOption(r,JM(s))},i.prototype._resetOption=function(r,s){var u=!1,f=this._optionManager;if(!r||"recreate"===r){var d=f.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(d,s)):QM(this,d),u=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var p=f.getTimelineOption(this);p&&(u=!0,this._mergeOption(p,s))}if(!r||"recreate"===r||"media"===r){var v=f.getMediaOption(this);v.length&&q(v,function(g){u=!0,this._mergeOption(g,s)},this)}return u},i.prototype.mergeOption=function(r){this._mergeOption(r,null)},i.prototype._mergeOption=function(r,s){var u=this.option,f=this._componentsMap,d=this._componentsCount,p=[],v=et(),g=s&&s.replaceMergeMainTypeMap;(function(o){qM(o).datasetMap=et()})(this),q(r,function(y,b){null!=y&&(qt.hasClass(b)?b&&(p.push(b),v.set(b,!0)):u[b]=null==u[b]?rt(y):He(u[b],y,!0))}),g&&g.each(function(y,b){qt.hasClass(b)&&!v.get(b)&&(p.push(b),v.set(b,!0))}),qt.topologicalTravel(p,qt.getAllClassMainTypes(),function(y){var b=function(o,i,r){var s=iC.get(i);if(!s)return r;var u=s(o);return u?r.concat(u):r}(this,y,jn(r[y])),w=f.get(y),M=Xk(w,b,w?g&&g.get(y)?"replaceMerge":"normalMerge":"replaceAll");(function(o,i,r){q(o,function(s){var u=s.newOption;at(u)&&(s.keyInfo.mainType=i,s.keyInfo.subType=function(o,i,r,s){return i.type?i.type:r?r.subType:s.determineSubType(o,i)}(i,u,s.existing,r))})})(M,y,qt),u[y]=null,f.set(y,null),d.set(y,0);var x=[],T=[],P=0;q(M,function(O,R){var V=O.existing,B=O.newOption;if(B){var j=qt.getClass(y,O.keyInfo.subType,!("series"===y));if(!j)return;if(V&&V.constructor===j)V.name=O.keyInfo.name,V.mergeOption(B,this),V.optionUpdated(B,!1);else{var $=Se({componentIndex:R},O.keyInfo);Se(V=new j(B,this,this,$),$),O.brandNew&&(V.__requireNewView=!0),V.init(B,this,this),V.optionUpdated(null,!0)}}else V&&(V.mergeOption({},this),V.optionUpdated({},!1));V?(x.push(V.option),T.push(V),P++):(x.push(void 0),T.push(void 0))},this),u[y]=x,f.set(y,T),d.set(y,P),"series"===y&&oC(this)},this),this._seriesIndices||oC(this)},i.prototype.getOption=function(){var r=rt(this.option);return q(r,function(s,u){if(qt.hasClass(u)){for(var f=jn(s),d=f.length,p=!1,v=d-1;v>=0;v--)f[v]&&!Yl(f[v])?p=!0:(f[v]=null,!p&&d--);f.length=d,r[u]=f}}),delete r[fh],r},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(r){this._payload=r},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(r,s){var u=this._componentsMap.get(r);if(u){var f=u[s||0];if(f)return f;if(null==s)for(var d=0;d=i:"max"===r?o<=i:o===i})(s[g],f,v)||(u=!1)}}),u}var t4=function(){function o(i){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=i}return o.prototype.setOption=function(i,r,s){i&&(q(jn(i.series),function(d){d&&d.data&&Ii(d.data)&&Vb(d.data)}),q(jn(i.dataset),function(d){d&&d.source&&Ii(d.source)&&Vb(d.source)})),i=rt(i);var u=this._optionBackup,f=function(o,i,r){var u,f,s=[],d=o.baseOption,p=o.timeline,v=o.options,g=o.media,m=!!o.media,y=!!(v||p||d&&d.timeline);function b(w){q(i,function(S){S(w,r)})}return d?(f=d).timeline||(f.timeline=p):((y||m)&&(o.options=o.media=null),f=o),m&&we(g)&&q(g,function(w){w&&w.option&&(w.query?s.push(w):u||(u=w))}),b(f),q(v,function(w){return b(w)}),q(s,function(w){return b(w.option)}),{baseOption:f,timelineOptions:v||[],mediaDefault:u,mediaList:s}}(i,r,!u);this._newBaseOption=f.baseOption,u?(f.timelineOptions.length&&(u.timelineOptions=f.timelineOptions),f.mediaList.length&&(u.mediaList=f.mediaList),f.mediaDefault&&(u.mediaDefault=f.mediaDefault)):this._optionBackup=f},o.prototype.mountOption=function(i){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(i?r.baseOption:this._newBaseOption)},o.prototype.getTimelineOption=function(i){var r,s=this._timelineOptions;if(s.length){var u=i.getComponent("timeline");u&&(r=rt(s[u.getCurrentIndex()]))}return r},o.prototype.getMediaOption=function(i){var r=this._api.getWidth(),s=this._api.getHeight(),u=this._mediaList,f=this._mediaDefault,d=[],p=[];if(!u.length&&!f)return p;for(var v=0,g=u.length;v=0;M--){var x=o[M];if(p||(w=x.data.rawIndexOf(x.stackedByDimension,b)),w>=0){var T=x.data.getByRawIndex(x.stackResultDimension,w);if(y>=0&&T>0||y<=0&&T<0){y=WH(y,T),S=T;break}}}return s[0]=y,s[1]=S,s})})}var rx=function(i){this.data=i.data||(i.sourceFormat===ps?{}:[]),this.sourceFormat=i.sourceFormat||xI,this.seriesLayoutBy=i.seriesLayoutBy||tl,this.startIndex=i.startIndex||0,this.dimensionsDetectedCount=i.dimensionsDetectedCount,this.metaRawOption=i.metaRawOption;var r=this.dimensionsDefine=i.dimensionsDefine;if(r)for(var s=0;sx&&(x=R)}S[0]=M,S[1]=x}},u=function(){return this._data?this._data.length/this._dimSize:0};function f(d){for(var p=0;p=0&&(M=d.interpolatedValue[x])}return null!=M?M+"":""}):void 0},o.prototype.getRawValue=function(i,r){return zo(this.getData(r),i)},o.prototype.formatTooltip=function(i,r,s){},o}();function yh(o){var i,r;return at(o)?o.type&&(r=o):i=o,{markupText:i,markupFragment:r}}function su(o){return new hv(o)}var hv=function(){function o(i){this._reset=(i=i||{}).reset,this._plan=i.plan,this._count=i.count,this._onDirty=i.onDirty,this._dirty=!0}return o.prototype.perform=function(i){var f,r=this._upstream,s=i&&i.skip;if(this._dirty&&r){var u=this.context;u.data=u.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!s&&(f=this._plan(this.context));var y,d=m(this._modBy),p=this._modDataCount||0,v=m(i&&i.modBy),g=i&&i.modDataCount||0;function m(P){return!(P>=1)&&(P=1),P}(d!==v||p!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(s)),this._modBy=v,this._modDataCount=g;var b=i&&i.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,S=Math.min(null!=b?this._dueIndex+b:1/0,this._dueEnd);if(!s&&(y||w1&&s>0?p:d}};return f;function d(){return i=o?null:vr},gte:function(i,r){return i>=r}},re=function(){function o(i,r){"number"!=typeof r&&Mn(""),this._opFn=ZI[i],this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){return this._opFn("number"==typeof i?i:Fa(i),this._rvalFloat)},o}(),KI=function(){function o(i,r){var s="desc"===i;this._resultLT=s?1:-1,null==r&&(r=s?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return o.prototype.evaluate=function(i,r){var s=typeof i,u=typeof r,f="number"===s?i:Fa(i),d="number"===u?r:Fa(r),p=isNaN(f),v=isNaN(d);if(p&&(f=this._incomparable),v&&(d=this._incomparable),p&&v){var g="string"===s,m="string"===u;g&&(f=m?i:0),m&&(d=g?r:0)}return fd?-this._resultLT:0},o}(),Pn=function(){function o(i,r){this._rval=r,this._isEQ=i,this._rvalTypeof=typeof r,this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){var r=i===this._rval;if(!r){var s=typeof i;s!==this._rvalTypeof&&("number"===s||"number"===this._rvalTypeof)&&(r=Fa(i)===this._rvalFloat)}return this._isEQ?r:!r},o}();function $I(o,i){return"eq"===o||"ne"===o?new Pn("eq"===o,i):Ae(ZI,o)?new re(o,i):null}var v4=function(){function o(){}return o.prototype.getRawData=function(){throw new Error("not supported")},o.prototype.getRawDataItem=function(i){throw new Error("not supported")},o.prototype.cloneRawData=function(){},o.prototype.getDimensionInfo=function(i){},o.prototype.cloneAllDimensionInfo=function(){},o.prototype.count=function(){},o.prototype.retrieveValue=function(i,r){},o.prototype.retrieveValueFromItem=function(i,r){},o.prototype.convertValue=function(i,r){return n_(i,r)},o}();function m4(o){return fC(o.sourceFormat)||Mn(""),o.data}function QI(o){var i=o.sourceFormat,r=o.data;if(fC(i)||Mn(""),i===ma){for(var u=[],f=0,d=r.length;f65535?hZ:pZ}function S4(o){var i=o.constructor;return i===Array?o.slice():new i(o)}function k4(o,i,r,s,u){var f=nR[r||"float"];if(u){var d=o[i],p=d&&d.length;if(p!==s){for(var v=new f(s),g=0;gx[1]&&(x[1]=M)}return this._rawCount=this._count=v,{start:p,end:v}},o.prototype._initDataFromProvider=function(i,r,s){for(var u=this._provider,f=this._chunks,d=this._dimensions,p=d.length,v=this._rawExtent,g=Te(d,function(P){return P.property}),m=0;mT[1]&&(T[1]=x)}}!u.persistent&&u.clean&&u.clean(),this._rawCount=this._count=r,this._extent=[]},o.prototype.count=function(){return this._count},o.prototype.get=function(i,r){if(!(r>=0&&r=0&&r=this._rawCount||i<0)return-1;if(!this._indices)return i;var r=this._indices,s=r[i];if(null!=s&&si))return d;f=d-1}}return-1},o.prototype.indicesOfNearest=function(i,r,s){var f=this._chunks[i],d=[];if(!f)return d;null==s&&(s=1/0);for(var p=1/0,v=-1,g=0,m=0,y=this.count();m=0&&v<0)&&(p=S,v=w,g=0),w===v&&(d[g++]=m))}return d.length=g,d},o.prototype.getIndices=function(){var i,r=this._indices;if(r){var u=this._count;if((s=r.constructor)===Array){i=new s(u);for(var f=0;f=y&&P<=b||isNaN(P))&&(v[g++]=M),M++;S=!0}else if(2===f){x=w[u[0]];var O=w[u[1]],R=i[u[1]][0],V=i[u[1]][1];for(T=0;T=y&&P<=b||isNaN(P))&&(B>=R&&B<=V||isNaN(B))&&(v[g++]=M),M++}S=!0}}if(!S)if(1===f)for(T=0;T=y&&P<=b||isNaN(P))&&(v[g++]=U)}else for(T=0;Ti[Z][1])&&(j=!1)}j&&(v[g++]=r.getRawIndex(T))}return gT[1]&&(T[1]=x)}}},o.prototype.lttbDownSample=function(i,r){var m,y,b,s=this.clone([i],!0),f=s._chunks[i],d=this.count(),p=0,v=Math.floor(1/r),g=this.getRawIndex(0),w=new(Ch(this._rawCount))(Math.ceil(d/v)+2);w[p++]=g;for(var S=1;Sm&&(m=y,b=R)}w[p++]=b,g=b}return w[p++]=this.getRawIndex(d-1),s._count=p,s._indices=w,s.getRawIndex=this._getRawIdx,s},o.prototype.downSample=function(i,r,s,u){for(var f=this.clone([i],!0),d=f._chunks,p=[],v=Math.floor(1/r),g=d[i],m=this.count(),y=f._rawExtent[i]=[1/0,-1/0],b=new(Ch(this._rawCount))(Math.ceil(m/v)),w=0,S=0;Sm-S&&(p.length=v=m-S);for(var M=0;My[1]&&(y[1]=T),b[w++]=P}return f._count=w,f._indices=b,f._updateGetRawIdx(),f},o.prototype.each=function(i,r){if(this._count)for(var s=i.length,u=this._chunks,f=0,d=this.count();fv&&(v=y)}return this._extent[i]=d=[p,v],d},o.prototype.getRawDataItem=function(i){var r=this.getRawIndex(i);if(this._provider.persistent)return this._provider.getItem(r);for(var s=[],u=this._chunks,f=0;f=0?this._indices[i]:-1},o.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},o.internalField=function(){function i(r,s,u,f){return n_(r[f],this._dimensions[f])}sx={arrayRows:i,objectRows:function(s,u,f,d){return n_(s[u],this._dimensions[d])},keyedColumns:i,original:function(s,u,f,d){var p=s&&(null==s.value?s:s.value);return n_(p instanceof Array?p[d]:p,this._dimensions[d])},typedArray:function(s,u,f,d){return s[d]}}}(),o}(),iR=function(){function o(i){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=i}return o.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},o.prototype._setLocalSource=function(i,r){this._sourceList=i,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},o.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},o.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},o.prototype._createSource=function(){this._setLocalSource([],[]);var u,f,i=this._sourceHost,r=this._getUpstreamSourceManagers(),s=!!r.length;if(ux(i)){var d=i,p=void 0,v=void 0,g=void 0;if(s){var m=r[0];m.prepareSource(),p=(g=m.getSource()).data,v=g.sourceFormat,f=[m._getVersionSign()]}else v=Ii(p=d.get("data",!0))?Mf:Ho,f=[];var y=this._getSourceMetaRawOption()||{},b=g&&g.metaRawOption||{},w=ot(y.seriesLayoutBy,b.seriesLayoutBy)||null,S=ot(y.sourceHeader,b.sourceHeader)||null,M=ot(y.dimensions,b.dimensions);u=w!==b.seriesLayoutBy||!!S!=!!b.sourceHeader||M?[lC(p,{seriesLayoutBy:w,sourceHeader:S,dimensions:M},v)]:[]}else{var T=i;if(s){var P=this._applyTransform(r);u=P.sourceList,f=P.upstreamSignList}else u=[lC(T.get("source",!0),this._getSourceMetaRawOption(),null)],f=[]}this._setLocalSource(u,f)},o.prototype._applyTransform=function(i){var r=this._sourceHost,s=r.get("transform",!0),u=r.get("fromTransformResult",!0);null!=u&&1!==i.length&&aR("");var d,p=[],v=[];return q(i,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&aR(""),p.push(m),v.push(g._getVersionSign())}),s?d=function(o,i,r){var s=jn(o),u=s.length;u||Mn("");for(var d=0,p=u;d1||r>0&&!i.noHeader,u=0;q(i.blocks,function(f){hC(f).planLayout(f);var d=f.__gapLevelBetweenSubBlocks;d>=u&&(u=d+(!s||d&&("section"!==f.type||f.noHeader)?0:1))}),i.__gapLevelBetweenSubBlocks=u},build:function(i,r,s,u){var f=r.noHeader,d=fR(r),p=function(o,i,r,s){var u=[],f=i.blocks||[];Oa(!f||we(f)),f=f||[];var d=o.orderMode;if(i.sortBlocks&&d){f=f.slice();var p={valueAsc:"asc",valueDesc:"desc"};if(Ae(p,d)){var v=new KI(p[d],null);f.sort(function(m,y){return v.evaluate(m.sortParam,y.sortParam)})}else"seriesDesc"===d&&f.reverse()}var g=fR(i);if(q(f,function(m,y){var b=hC(m).build(o,m,y>0?g.html:0,s);null!=b&&u.push(b)}),u.length)return"richText"===o.renderMode?u.join(g.richText):cx(u.join(""),r)}(i,r,f?s:d.html,u);if(f)return p;var v=jm(r.header,"ordinal",i.useUTC),g=oR(u,i.renderMode).nameStyle;return"richText"===i.renderMode?fx(i,v,g)+d.richText+p:cx('
'+Bo(v)+"
"+p,s)}},nameValue:{planLayout:function(i){i.__gapLevelBetweenSubBlocks=0},build:function(i,r,s,u){var f=i.renderMode,d=r.noName,p=r.noValue,v=!r.markerType,g=r.name,m=r.value,y=i.useUTC;if(!d||!p){var b=v?"":i.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",f),w=d?"":jm(g,"ordinal",y),S=r.valueType,M=p?[]:we(m)?Te(m,function(V,B){return jm(V,we(S)?S[B]:S,y)}):[jm(m,we(S)?S[0]:S,y)],x=!v||!d,T=!v&&d,P=oR(u,f),O=P.nameStyle,R=P.valueStyle;return"richText"===f?(v?"":b)+(d?"":fx(i,w,O))+(p?"":function(o,i,r,s,u){var f=[u];return r&&f.push({padding:[0,0,0,s?10:20],align:"right"}),o.markupStyleCreator.wrapRichTextStyle(i.join(" "),f)}(i,M,x,T,R)):cx((v?"":b)+(d?"":function(o,i,r){return''+Bo(o)+""}(w,!v,O))+(p?"":function(o,i,r,s){return''+Te(o,function(d){return Bo(d)}).join("  ")+""}(M,x,T,R)),s)}}}};function cR(o,i,r,s,u,f){if(o){var d=hC(o);return d.planLayout(o),d.build({useUTC:u,renderMode:r,orderMode:s,markupStyleCreator:i},o,0,f)}}function fR(o){var i=o.__gapLevelBetweenSubBlocks;return{html:sR[i],richText:M4[i]}}function cx(o,i){return'
'+o+'
'}function fx(o,i,r){return o.markupStyleCreator.wrapRichTextStyle(i,r)}function dx(o,i){return wf(o.getData().getItemVisual(i,"style")[o.visualDrawType])}function hx(o,i){var r=o.get("padding");return null!=r?r:"richText"===i?[8,10]:10}var r_=function(){function o(){this.richTextStyles={},this._nextStyleNameId=Gp()}return o.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},o.prototype.makeTooltipMarker=function(i,r,s){var u="richText"===s?this._generateStyleName():null,f=SI({color:r,type:i,renderMode:s,markerId:u});return yt(f)?f:(this.richTextStyles[u]=f.style,f.content)},o.prototype.wrapRichTextStyle=function(i,r){var s={};we(r)?q(r,function(f){return Se(s,f)}):Se(s,r);var u=this._generateStyleName();return this.richTextStyles[u]=s,"{"+u+"|"+i+"}"},o}();function D4(o){var m,y,b,w,i=o.series,r=o.dataIndex,s=o.multipleSeries,u=i.getData(),f=u.mapDimensionsAll("defaultedTooltip"),d=f.length,p=i.getRawValue(r),v=we(p),g=dx(i,r);if(d>1||v&&!d){var S=function(o,i,r,s,u){var f=i.getData(),d=zu(o,function(y,b,w){var S=f.getDimensionInfo(w);return y||S&&!1!==S.tooltip&&null!=S.displayName},!1),p=[],v=[],g=[];function m(y,b){var w=f.getDimensionInfo(b);!w||!1===w.otherDims.tooltip||(d?g.push(pi("nameValue",{markerType:"subItem",markerColor:u,name:w.displayName,value:y,valueType:w.type})):(p.push(y),v.push(w.type)))}return s.length?q(s,function(y){m(zo(f,r,y),y)}):q(o,m),{inlineValues:p,inlineValueTypes:v,blocks:g}}(p,i,r,f,g);m=S.inlineValues,y=S.inlineValueTypes,b=S.blocks,w=S.inlineValues[0]}else if(d){var M=u.getDimensionInfo(f[0]);w=m=zo(u,r,f[0]),y=M.type}else w=m=v?p[0]:p;var x=ii(i),T=x&&i.name||"",P=u.getName(r),O=s?T:P;return pi("section",{header:T,noHeader:s||!x,sortParam:w,blocks:[pi("nameValue",{markerType:"item",markerColor:g,name:O,noName:!jc(O),value:m,valueType:y})].concat(b||[])})}var Sh=pn();function px(o,i){return o.getName(i)||o.getId(i)}var N="__universalTransitionEnabled",pC=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return he(i,o),i.prototype.init=function(r,s,u){this.seriesIndex=this.componentIndex,this.dataTask=su({count:A4,reset:A}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,u),(Sh(this).sourceManager=new iR(this)).prepareSource();var d=this.getInitialData(r,u);me(d,this),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,z(this),this._initSelectedMapFromData(d)},i.prototype.mergeDefaultAndTheme=function(r,s){var u=iv(this),f=u?av(r):{},d=this.subType;qt.hasClass(d)&&(d+="Series"),He(r,s.getTheme().get(this.subType)),He(r,this.getDefaultOption()),Nd(r,"label",["show"]),this.fillDataTextStyle(r.data),u&&kf(r,f,u)},i.prototype.mergeOption=function(r,s){r=He(this.option,r,!0),this.fillDataTextStyle(r.data);var u=iv(this);u&&kf(this.option,r,u);var f=Sh(this).sourceManager;f.dirty(),f.prepareSource();var d=this.getInitialData(r,s);me(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,z(this),this._initSelectedMapFromData(d)},i.prototype.fillDataTextStyle=function(r){if(r&&!Ii(r))for(var s=["show"],u=0;uthis.getShallow("animationThreshold")&&(r=!1),!!r},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(r,s,u){var f=this.ecModel,d=aC.prototype.getColorFromPalette.call(this,r,s,u);return d||(d=f.getColorFromPalette(r,s,u)),d},i.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(r,s){this._innerSelect(this.getData(s),r)},i.prototype.unselect=function(r,s){var u=this.option.selectedMap;if(u)for(var f=this.getData(s),d=0;d=0&&u.push(d)}return u},i.prototype.isSelected=function(r,s){var u=this.option.selectedMap;return u&&u[px(this.getData(s),r)]||!1},i.prototype.isUniversalTransitionEnabled=function(){if(this[N])return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},i.prototype._innerSelect=function(r,s){var u,f,d=this.option.selectedMode,p=s.length;if(d&&p)if("multiple"===d)for(var v=this.option.selectedMap||(this.option.selectedMap={}),g=0;g0&&this._innerSelect(r,s)}},i.registerClass=function(r){return qt.registerClass(r)},i.protoInitialize=function(){var r=i.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),i}(qt);function z(o){var i=o.name;ii(o)||(o.name=function(o){var i=o.getRawData(),r=i.mapDimensionsAll("seriesName"),s=[];return q(r,function(u){var f=i.getDimensionInfo(u);f.displayName&&s.push(f.displayName)}),s.join(" ")}(o)||i)}function A4(o){return o.model.getRawData().count()}function A(o){var i=o.model;return i.setData(i.getRawData().cloneShallow()),E}function E(o,i){i.outputData&&o.end>i.outputData.count()&&i.model.getRawData().cloneShallow(i.outputData)}function me(o,i){q(Bb(o.CHANGABLE_METHODS,o.DOWNSAMPLE_METHODS),function(r){o.wrapMethod(r,St(_Z,i))})}function _Z(o,i){var r=gx(o);return r&&r.setOutputEnd((i||this).count()),i}function gx(o){var i=(o.ecModel||{}).scheduler,r=i&&i.getPipeline(o.uid);if(r){var s=r.currentTask;if(s){var u=s.agentStubMap;u&&(s=u.get(o.uid))}return s}}qr(pC,Ke),qr(pC,aC),h0(pC,qt);var vt=pC,xn=function(){function o(){this.group=new ct,this.uid=Bm("viewComponent")}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){},o.prototype.updateLayout=function(i,r,s,u){},o.prototype.updateVisual=function(i,r,s,u){},o.prototype.blurSeries=function(i,r){},o}();Zk(xn),qu(xn);var un=xn;function De(){var o=pn();return function(i){var r=o(i),s=i.pipelineContext,u=!!r.large,f=!!r.progressiveRender,d=r.large=!(!s||!s.large),p=r.progressiveRender=!(!s||!s.progressiveRender);return(u!==d||f!==p)&&"reset"}}var vv=pn(),dR=De(),gv=function(){function o(){this.group=new ct,this.uid=Bm("viewChart"),this.renderTask=su({plan:E4,reset:hR}),this.renderTask.context={view:this}}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.highlight=function(i,r,s,u){mv(i.getData(),u,"emphasis")},o.prototype.downplay=function(i,r,s,u){mv(i.getData(),u,"normal")},o.prototype.remove=function(i,r){this.group.removeAll()},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateLayout=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateVisual=function(i,r,s,u){this.render(i,r,s,u)},o.markUpdateMethod=function(i,r){vv(i).updateMethod=r},o.protoInitialize=void(o.prototype.type="chart"),o}();function ne(o,i,r){o&&("emphasis"===i?Js:eu)(o,r)}function mv(o,i,r){var s=va(o,i),u=i&&null!=i.highlightKey?function(o){var i=Mz[o];return null==i&&kz<=32&&(i=Mz[o]=kz++),i}(i.highlightKey):null;null!=s?q(jn(s),function(f){ne(o.getItemGraphicEl(f),r,u)}):o.eachItemGraphicEl(function(f){ne(f,r,u)})}function E4(o){return dR(o.model)}function hR(o){var i=o.model,r=o.ecModel,s=o.api,u=o.payload,f=i.pipelineContext.progressiveRender,d=o.view,p=u&&vv(u).updateMethod,v=f?"incrementalPrepareRender":p&&d[p]?p:"render";return"render"!==v&&d[v](i,r,s,u),pR[v]}Zk(gv),qu(gv);var pR={incrementalPrepareRender:{progress:function(i,r){r.view.incrementalRender(i,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(i,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}},Vn=gv,J="\0__throttleOriginMethod",vR="\0__throttleRate",rr="\0__throttleType";function Wt(o,i,r){var s,p,v,g,m,u=0,f=0,d=null;function y(){f=(new Date).getTime(),d=null,o.apply(v,g||[])}i=i||0;var b=function(){for(var S=[],M=0;M=0?y():d=setTimeout(y,-p),u=s};return b.clear=function(){d&&(clearTimeout(d),d=null)},b.debounceNextCall=function(w){m=w},b}function il(o,i,r,s){var u=o[i];if(u){var f=u[J]||u;if(u[vR]!==r||u[rr]!==s){if(null==r||!s)return o[i]=f;(u=o[i]=Wt(f,r,"debounce"===s))[J]=f,u[rr]=s,u[vR]=r}return u}}var _x=pn(),yx={itemStyle:Hd(uI,!0),lineStyle:Hd(q0,!0)},gR={lineStyle:"stroke",itemStyle:"fill"};function bx(o,i){return o.visualStyleMapper||yx[i]||(console.warn("Unkown style type '"+i+"'."),yx.itemStyle)}function Cx(o,i){return o.visualDrawType||gR[i]||(console.warn("Unkown style type '"+i+"'."),"fill")}var mR={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=i.getModel(u),p=bx(i,u)(f),v=f.getShallow("decal");v&&(s.setVisual("decal",v),v.dirty=!0);var g=Cx(i,u),m=p[g],y=An(m)?m:null;if(!p[g]||y||"auto"===p.fill||"auto"===p.stroke){var w=i.getColorFromPalette(i.name,null,r.getSeriesCount());p[g]||(p[g]=w,s.setVisual("colorFromPalette",!0)),p.fill="auto"===p.fill||"function"==typeof p.fill?w:p.fill,p.stroke="auto"===p.stroke||"function"==typeof p.stroke?w:p.stroke}if(s.setVisual("style",p),s.setVisual("drawType",g),!r.isSeriesFiltered(i)&&y)return s.setVisual("colorFromPalette",!1),{dataEach:function(M,x){var T=i.getDataParams(x),P=Se({},p);P[g]=y(T),M.setItemVisual(x,"style",P)}}}},_v=new Nn,_R={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(!i.ignoreStyleOnData&&!r.isSeriesFiltered(i)){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=bx(i,u),d=s.getVisual("drawType");return{dataEach:s.hasItemOption?function(p,v){var g=p.getRawDataItem(v);if(g&&g[u]){_v.option=g[u];var m=f(_v);Se(p.ensureUniqueItemVisual(v,"style"),m),_v.option.decal&&(p.setItemVisual(v,"decal",_v.option.decal),_v.option.decal.dirty=!0),d in m&&p.setItemVisual(v,"colorFromPalette",!1)}}:null}}}},yZ={performRawSeries:!0,overallReset:function(i){var r=et();i.eachSeries(function(s){var u=s.getColorBy();if(!s.isColorBySeries()){var f=s.type+"-"+u,d=r.get(f);d||r.set(f,d={}),_x(s).scope=d}}),i.eachSeries(function(s){if(!s.isColorBySeries()&&!i.isSeriesFiltered(s)){var u=s.getRawData(),f={},d=s.getData(),p=_x(s).scope,g=Cx(s,s.visualStyleAccessPath||"itemStyle");d.each(function(m){var y=d.getRawIndex(m);f[y]=m}),u.each(function(m){var y=f[m];if(d.getItemVisual(y,"colorFromPalette")){var w=d.ensureUniqueItemVisual(y,"style"),S=u.getName(m)||m+"",M=u.count();w[g]=s.getColorFromPalette(S,p,M)}})}})}},P4=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},yR=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new P4},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r,0),p=s.startAngle,v=s.endAngle,g=s.clockwise,m=Math.cos(p),y=Math.sin(p);r.moveTo(m*d+u,y*d+f),r.arc(u,f,d,p,v,!g)},i}(Nt);yR.prototype.type="arc";var i_=yR,vC=Math.PI,bR=function(){function o(i,r,s,u){this._stageTaskMap=et(),this.ecInstance=i,this.api=r,s=this._dataProcessorHandlers=s.slice(),u=this._visualHandlers=u.slice(),this._allHandlers=s.concat(u)}return o.prototype.restoreData=function(i,r){i.restoreData(r),this._stageTaskMap.each(function(s){var u=s.overallTask;u&&u.dirty()})},o.prototype.getPerformArgs=function(i,r){if(i.__pipeline){var s=this._pipelineMap.get(i.__pipeline.id),u=s.context,d=!r&&s.progressiveEnabled&&(!u||u.progressiveRender)&&i.__idxInPipeline>s.blockIndex?s.step:null,p=u&&u.modDataCount;return{step:d,modBy:null!=p?Math.ceil(p/d):null,modDataCount:p}}},o.prototype.getPipeline=function(i){return this._pipelineMap.get(i)},o.prototype.updateStreamModes=function(i,r){var s=this._pipelineMap.get(i.uid),f=i.getData().count(),d=s.progressiveEnabled&&r.incrementalPrepareRender&&f>=s.threshold,p=i.get("large")&&f>=i.get("largeThreshold"),v="mod"===i.get("progressiveChunkMode")?f:null;i.pipelineContext=s.context={progressiveRender:d,modDataCount:v,large:p}},o.prototype.restorePipelines=function(i){var r=this,s=r._pipelineMap=et();i.eachSeries(function(u){var f=u.getProgressive(),d=u.uid;s.set(d,{id:d,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),r._pipe(u,u.dataTask)})},o.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,r=this.api.getModel(),s=this.api;q(this._allHandlers,function(u){var f=i.get(u.uid)||i.set(u.uid,{});Oa(!(u.reset&&u.overallReset),""),u.reset&&this._createSeriesStageTask(u,f,r,s),u.overallReset&&this._createOverallStageTask(u,f,r,s)},this)},o.prototype.prepareView=function(i,r,s,u){var f=i.renderTask,d=f.context;d.model=r,d.ecModel=s,d.api=u,f.__block=!i.incrementalPrepareRender,this._pipe(r,f)},o.prototype.performDataProcessorTasks=function(i,r){this._performStageTasks(this._dataProcessorHandlers,i,r,{block:!0})},o.prototype.performVisualTasks=function(i,r,s){this._performStageTasks(this._visualHandlers,i,r,s)},o.prototype._performStageTasks=function(i,r,s,u){u=u||{};var f=!1,d=this;function p(v,g){return v.setDirty&&(!v.dirtyMap||v.dirtyMap.get(g.__pipeline.id))}q(i,function(v,g){if(!u.visualType||u.visualType===v.visualType){var m=d._stageTaskMap.get(v.uid),y=m.seriesTaskMap,b=m.overallTask;if(b){var w,S=b.agentStubMap;S.each(function(x){p(u,x)&&(x.dirty(),w=!0)}),w&&b.dirty(),d.updatePayload(b,s);var M=d.getPerformArgs(b,u.block);S.each(function(x){x.perform(M)}),b.perform(M)&&(f=!0)}else y&&y.each(function(x,T){p(u,x)&&x.dirty();var P=d.getPerformArgs(x,u.block);P.skip=!v.performRawSeries&&r.isSeriesFiltered(x.context.model),d.updatePayload(x,s),x.perform(P)&&(f=!0)})}}),this.unfinished=f||this.unfinished},o.prototype.performSeriesTasks=function(i){var r;i.eachSeries(function(s){r=s.dataTask.perform()||r}),this.unfinished=r||this.unfinished},o.prototype.plan=function(){this._pipelineMap.each(function(i){var r=i.tail;do{if(r.__block){i.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},o.prototype.updatePayload=function(i,r){"remain"!==r&&(i.context.payload=r)},o.prototype._createSeriesStageTask=function(i,r,s,u){var f=this,d=r.seriesTaskMap,p=r.seriesTaskMap=et(),v=i.seriesType,g=i.getTargetSeries;function m(y){var b=y.uid,w=p.set(b,d&&d.get(b)||su({plan:wR,reset:SR,count:L4}));w.context={model:y,ecModel:s,api:u,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:f},f._pipe(y,w)}i.createOnAllSeries?s.eachRawSeries(m):v?s.eachRawSeriesByType(v,m):g&&g(s,u).each(m)},o.prototype._createOverallStageTask=function(i,r,s,u){var f=this,d=r.overallTask=r.overallTask||su({reset:O4});d.context={ecModel:s,api:u,overallReset:i.overallReset,scheduler:f};var p=d.agentStubMap,v=d.agentStubMap=et(),g=i.seriesType,m=i.getTargetSeries,y=!0,b=!1;function S(M){var x=M.uid,T=v.set(x,p&&p.get(x)||(b=!0,su({reset:I4,onDirty:R4})));T.context={model:M,overallProgress:y},T.agent=d,T.__block=y,f._pipe(M,T)}Oa(!i.createOnAllSeries,""),g?s.eachRawSeriesByType(g,S):m?m(s,u).each(S):(y=!1,q(s.getSeries(),S)),b&&d.dirty()},o.prototype._pipe=function(i,r){var u=this._pipelineMap.get(i.uid);!u.head&&(u.head=r),u.tail&&u.tail.pipe(r),u.tail=r,r.__idxInPipeline=u.count++,r.__pipeline=u},o.wrapStageHandler=function(i,r){return An(i)&&(i={overallReset:i,seriesType:MR(i)}),i.uid=Bm("stageHandler"),r&&(i.visualType=r),i},o}();function O4(o){o.overallReset(o.ecModel,o.api,o.payload)}function I4(o){return o.overallProgress&&CR}function CR(){this.agent.dirty(),this.getDownstream().dirty()}function R4(){this.agent&&this.agent.dirty()}function wR(o){return o.plan?o.plan(o.model,o.ecModel,o.api,o.payload):null}function SR(o){o.useClearVisual&&o.data.clearAllVisual();var i=o.resetDefines=jn(o.reset(o.model,o.ecModel,o.api,o.payload));return i.length>1?Te(i,function(r,s){return kR(s)}):yv}var yv=kR(0);function kR(o){return function(i,r){var s=r.data,u=r.resetDefines[o];if(u&&u.dataEach)for(var f=i.start;f0&&w===g.length-b.length){var S=g.slice(0,w);"data"!==S&&(r.mainType=S,r[b.toLowerCase()]=v,m=!0)}}p.hasOwnProperty(g)&&(s[g]=v,m=!0),m||(u[g]=v)})}return{cptQuery:r,dataQuery:s,otherQuery:u}},o.prototype.filter=function(i,r){var s=this.eventInfo;if(!s)return!0;var u=s.targetEl,f=s.packedEvent,d=s.model,p=s.view;if(!d||!p)return!0;var v=r.cptQuery,g=r.dataQuery;return m(v,d,"mainType")&&m(v,d,"subType")&&m(v,d,"index","componentIndex")&&m(v,d,"name")&&m(v,d,"id")&&m(g,f,"name")&&m(g,f,"dataIndex")&&m(g,f,"dataType")&&(!p.filterForExposedEvent||p.filterForExposedEvent(i,r.otherQuery,u,f));function m(y,b,w,S){return null==y[w]||b[S||w]===y[w]}},o.prototype.afterTrigger=function(){this.eventInfo=null},o}(),V4={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData();if(i.legendIcon&&s.setVisual("legendIcon",i.legendIcon),i.hasSymbolVisual){var u=i.get("symbol"),f=i.get("symbolSize"),d=i.get("symbolKeepAspect"),p=i.get("symbolRotate"),v=i.get("symbolOffset"),g=An(u),m=An(f),y=An(p),b=An(v),w=g||m||y||b,S=!g&&u?u:i.defaultSymbol;if(s.setVisual({legendIcon:i.legendIcon||S,symbol:S,symbolSize:m?null:f,symbolKeepAspect:d,symbolRotate:y?null:p,symbolOffset:b?null:v}),!r.isSeriesFiltered(i))return{dataEach:w?function(O,R){var V=i.getRawValue(R),B=i.getDataParams(R);g&&O.setItemVisual(R,"symbol",u(V,B)),m&&O.setItemVisual(R,"symbolSize",f(V,B)),y&&O.setItemVisual(R,"symbolRotate",p(V,B)),b&&O.setItemVisual(R,"symbolOffset",v(V,B))}:null}}}};function xx(o,i,r){switch(r){case"color":return o.getItemVisual(i,"style")[o.getVisual("drawType")];case"opacity":return o.getItemVisual(i,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getItemVisual(i,r)}}function kh(o,i){switch(i){case"color":return o.getVisual("style")[o.getVisual("drawType")];case"opacity":return o.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getVisual(i)}}function bv(o,i,r,s){switch(r){case"color":o.ensureUniqueItemVisual(i,"style")[o.getVisual("drawType")]=s,o.setItemVisual(i,"colorFromPalette",!1);break;case"opacity":o.ensureUniqueItemVisual(i,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":o.setItemVisual(i,r,s)}}function TR(o,i){function r(s,u){var f=[];return s.eachComponent({mainType:"series",subType:o,query:u},function(d){f.push(d.seriesIndex)}),f}q([[o+"ToggleSelect","toggleSelect"],[o+"Select","select"],[o+"UnSelect","unselect"]],function(s){i(s[0],function(u,f,d){u=Se({},u),d.dispatchAction(Se(u,{type:s[1],seriesIndex:r(f,u)}))})})}function Mh(o,i,r,s,u){var f=o+i;r.isSilent(f)||s.eachComponent({mainType:"series",subType:"pie"},function(d){for(var p=d.seriesIndex,v=u.selected,g=0;g1&&(d*=mC(S),p*=mC(S));var M=(u===f?-1:1)*mC((d*d*(p*p)-d*d*(w*w)-p*p*(b*b))/(d*d*(w*w)+p*p*(b*b)))||0,x=M*d*w/p,T=M*-p*b/d,P=(o+r)/2+s_(y)*x-o_(y)*T,O=(i+s)/2+o_(y)*x+s_(y)*T,R=Ex([1,0],[(b-x)/d,(w-T)/p]),V=[(b-x)/d,(w-T)/p],B=[(-1*b-x)/d,(-1*w-T)/p],U=Ex(V,B);if(_C(V,B)<=-1&&(U=wv),_C(V,B)>=1&&(U=0),U<0){var j=Math.round(U/wv*1e6)/1e6;U=2*wv+j%2*wv}m.addData(g,P,O,d,p,R,U,y,f)}var U4=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,G4=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ER=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Ln(i,o),i.prototype.applyTransform=function(r){},i}(Nt);function PR(o){return null!=o.setData}function OR(o,i){var r=function(o){var i=new Qs;if(!o)return i;var d,r=0,s=0,u=r,f=s,p=Qs.CMD,v=o.match(U4);if(!v)return i;for(var g=0;gle*le+oe*oe&&(j=Z,X=$),{cx:j,cy:X,x01:-m,y01:-y,x11:j*(u/V-1),y11:X*(u/V-1)}}var kv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},K4=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultShape=function(){return new kv},i.prototype.buildPath=function(r,s){!function(o,i){var r=bC(i.r,0),s=bC(i.r0||0,0),u=r>0;if(u||s>0){if(u||(r=s,s=0),s>r){var d=r;r=s,s=d}var m,p=!!i.clockwise,v=i.startAngle,g=i.endAngle;if(v===g)m=0;else{var y=[v,g];Mm(y,!p),m=Ix(y[0]-y[1])}var b=i.cx,w=i.cy,S=i.cornerRadius||0,M=i.innerCornerRadius||0;if(r>Ba)if(m>FR-Ba)o.moveTo(b+r*Th(v),w+r*Ef(v)),o.arc(b,w,r,v,g,!p),s>Ba&&(o.moveTo(b+s*Th(g),w+s*Ef(g)),o.arc(b,w,s,g,v,p));else{var x=Ix(r-s)/2,T=Zi(x,S),P=Zi(x,M),O=P,R=T,V=r*Th(v),B=r*Ef(v),U=s*Th(g),j=s*Ef(g),X=void 0,Z=void 0,$=void 0,te=void 0;if((T>Ba||P>Ba)&&(X=r*Th(g),Z=r*Ef(g),$=s*Th(v),te=s*Ef(v),mBa)if(R>Ba){var Me=CC($,te,V,B,r,R,p),ze=CC(X,Z,U,j,r,R,p);o.moveTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),RBa&&m>Ba?O>Ba?(Me=CC(U,j,X,Z,s,-O,p),ze=CC(V,B,$,te,s,-O,p),o.lineTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),O=2){if(s&&"spline"!==s){var f=function(o,i,r,s){var v,g,m,y,u=[],f=[],d=[],p=[];if(s){m=[1/0,1/0],y=[-1/0,-1/0];for(var b=0,w=o.length;br-2?r-1:v+1],w=o[v>r-3?r-1:v+2]);var S=g*g,M=g*S;s.push([$4(m[0],y[0],b[0],w[0],g,S,M),$4(m[1],y[1],b[1],w[1],g,S,M)])}return s}(u,r)),o.moveTo(u[0][0],u[0][1]),p=1;for(var y=u.length;pOf[1]){if(p=!1,f)return p;var m=Math.abs(Of[0]-Pf[1]),y=Math.abs(Pf[0]-Of[1]);Math.min(m,y)>u.len()&&Tt.scale(u,g,mMath.abs(f[1])?f[0]>0?"right":"left":f[1]>0?"bottom":"top"}function WR(o){return!o.isGroup}function Dv(o,i,r){if(o&&i){var p,f=(p={},o.traverse(function(v){WR(v)&&v.anid&&(p[v.anid]=v)}),p);i.traverse(function(d){if(WR(d)&&d.anid){var p=f[d.anid];if(p){var v=u(d);d.attr(u(p)),ln(d,v,r,ht(d).dataIndex)}}})}function u(d){var p={x:d.x,y:d.y,rotation:d.rotation};return function(o){return null!=o.shape}(d)&&(p.shape=Se({},d.shape)),p}}function Gx(o,i){return Te(o,function(r){var s=r[0];s=h_(s,i.x),s=p_(s,i.x+i.width);var u=r[1];return u=h_(u,i.y),[s,u=p_(u,i.y+i.height)]})}function YR(o,i){var r=h_(o.x,i.x),s=p_(o.x+o.width,i.x+i.width),u=h_(o.y,i.y),f=p_(o.y+o.height,i.y+i.height);if(s>=r&&f>=u)return{x:r,y:u,width:s-r,height:f-u}}function cl(o,i,r){var s=Se({rectHover:!0},i),u=s.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},o)return 0===o.indexOf("image://")?(u.image=o.slice(8),tt(u,r),new si(s)):DC(o.replace("path://",""),s,r,"center")}function v_(o,i,r,s,u){for(var f=0,d=u[u.length-1];f=-1e-6}(b))return!1;var w=o-u,S=i-f,M=Wx(w,S,v,g)/b;if(M<0||M>1)return!1;var x=Wx(w,S,m,y)/b;return!(x<0||x>1)}function Wx(o,i,r,s){return o*s-r*i}function Av(o){var i=o.itemTooltipOption,r=o.componentModel,s=o.itemName,u=yt(i)?{formatter:i}:i,f=r.mainType,d=r.componentIndex,p={componentType:f,name:s,$vars:["name"]};p[f+"Index"]=d;var v=o.formatterParamsExtra;v&&q(_n(v),function(m){Ae(p,m)||(p[m]=v[m],p.$vars.push(m))});var g=ht(o.el);g.componentMainType=f,g.componentIndex=d,g.tooltipConfig={name:s,option:tt({content:s,formatterParams:p},u)}}ll("circle",sl),ll("ellipse",yC),ll("sector",ir),ll("ring",Mv),ll("polygon",ya),ll("polyline",br),ll("rect",sn),ll("line",Ti),ll("bezierCurve",c_),ll("arc",i_);var XR=Nt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u+d),i.lineTo(s-f,u+d),i.closePath()}}),s8=Nt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u),i.lineTo(s,u+d),i.lineTo(s-f,u),i.closePath()}}),Yx=Nt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.x,u=r.y,f=r.width/5*3,d=Math.max(f,r.height),p=f/2,v=p*p/(d-p),g=u-d+p+v,m=Math.asin(v/p),y=Math.cos(m)*p,b=Math.sin(m),w=Math.cos(m),S=.6*p,M=.7*p;i.moveTo(s-y,g+v),i.arc(s,g,p,Math.PI-m,2*Math.PI+m),i.bezierCurveTo(s+y-b*S,g+v+w*S,s,u-M,s,u),i.bezierCurveTo(s,u-M,s-y+b*S,g+v+w*S,s-y,g+v),i.closePath()}}),l8=Nt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.height,f=r.x,d=r.y,p=r.width/3*2;i.moveTo(f,d),i.lineTo(f+p,d+s),i.lineTo(f,d+s/4*3),i.lineTo(f-p,d+s),i.lineTo(f,d),i.closePath()}}),KR={line:function(i,r,s,u,f){f.x1=i,f.y1=r+u/2,f.x2=i+s,f.y2=r+u/2},rect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u},roundRect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u,f.r=Math.min(s,u)/4},square:function(i,r,s,u,f){var d=Math.min(s,u);f.x=i,f.y=r,f.width=d,f.height=d},circle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.r=Math.min(s,u)/2},diamond:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u},pin:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},arrow:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},triangle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u}},EC={};q({line:Ti,rect:sn,roundRect:sn,square:sn,circle:sl,diamond:s8,pin:Yx,arrow:l8,triangle:XR},function(o,i){EC[i]=new o});var u8=Nt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(i,r,s){var u=n0(i,r,s),f=this.shape;return f&&"pin"===f.symbolType&&"inside"===r.position&&(u.y=s.y+.4*s.height),u},buildPath:function(i,r,s){var u=r.symbolType;if("none"!==u){var f=EC[u];f||(f=EC[u="rect"]),KR[u](r.x,r.y,r.width,r.height,f.shape),f.buildPath(i,f.shape,s)}}});function c8(o,i){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=o,r.fill=i||"#fff",r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=o:r.fill=o,this.markRedraw()}}function Ir(o,i,r,s,u,f,d){var v,p=0===o.indexOf("empty");return p&&(o=o.substr(5,1).toLowerCase()+o.substr(6)),(v=0===o.indexOf("image://")?GR(o.slice(8),new Ft(i,r,s,u),d?"center":"cover"):0===o.indexOf("path://")?DC(o.slice(7),{},new Ft(i,r,s,u),d?"center":"cover"):new u8({shape:{symbolType:o,x:i,y:r,width:s,height:u}})).__isEmptyBrush=p,v.setColor=c8,f&&v.setColor(f),v}function g_(o){return we(o)||(o=[+o,+o]),[o[0]||0,o[1]||0]}function Ah(o,i){if(null!=o)return we(o)||(o=[o,o]),[Fe(o[0],i[0])||0,Fe(ot(o[1],o[0]),i[1])||0]}function qx(o,i,r){for(var s="radial"===i.type?function(o,i,r){var s=r.width,u=r.height,f=Math.min(s,u),d=null==i.x?.5:i.x,p=null==i.y?.5:i.y,v=null==i.r?.5:i.r;return i.global||(d=d*s+r.x,p=p*u+r.y,v*=f),o.createRadialGradient(d,p,0,d,p,v)}(o,i,r):function(o,i,r){var s=null==i.x?0:i.x,u=null==i.x2?1:i.x2,f=null==i.y?0:i.y,d=null==i.y2?0:i.y2;return i.global||(s=s*r.width+r.x,u=u*r.width+r.x,f=f*r.height+r.y,d=d*r.height+r.y),s=isNaN(s)?0:s,u=isNaN(u)?1:u,f=isNaN(f)?0:f,d=isNaN(d)?0:d,o.createLinearGradient(s,f,u,d)}(o,i,r),u=i.colorStops,f=0;f0?(i=i||1,"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:yk(o)?[o]:we(o)?o:null):null}var h8=new Qs(!0);function PC(o){var i=o.stroke;return!(null==i||"none"===i||!(o.lineWidth>0))}function QR(o){return"string"==typeof o&&"none"!==o}function m_(o){var i=o.fill;return null!=i&&"none"!==i}function Zx(o,i){if(null!=i.fillOpacity&&1!==i.fillOpacity){var r=o.globalAlpha;o.globalAlpha=i.fillOpacity*i.opacity,o.fill(),o.globalAlpha=r}else o.fill()}function JR(o,i){if(null!=i.strokeOpacity&&1!==i.strokeOpacity){var r=o.globalAlpha;o.globalAlpha=i.strokeOpacity*i.opacity,o.stroke(),o.globalAlpha=r}else o.stroke()}function Kx(o,i,r){var s=zd(i.image,i.__image,r);if(g0(s)){var u=o.createPattern(s,i.repeat||"repeat");if("function"==typeof DOMMatrix&&u.setTransform){var f=new DOMMatrix;f.rotateSelf(0,0,(i.rotation||0)/Math.PI*180),f.scaleSelf(i.scaleX||1,i.scaleY||1),f.translateSelf(i.x||0,i.y||0),u.setTransform(f)}return u}}var t2=["shadowBlur","shadowOffsetX","shadowOffsetY"],OC=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IC(o,i,r,s,u){var f=!1;if(!s&&i===(r=r||{}))return!1;if(s||i.opacity!==r.opacity){f||(za(o,u),f=!0);var d=Math.max(Math.min(i.opacity,1),0);o.globalAlpha=isNaN(d)?Xl.opacity:d}(s||i.blend!==r.blend)&&(f||(za(o,u),f=!0),o.globalCompositeOperation=i.blend||Xl.blend);for(var p=0;p0&&Xx(r.lineDash,r.lineWidth),B=r.lineDashOffset,U=!!o.setLineDash,j=i.getGlobalScale();if(g.setScale(j[0],j[1],i.segmentIgnoreThreshold),V){var X=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;X&&1!==X&&(V=Te(V,function($){return $/X}),B/=X)}var Z=!0;(v||4&i.__dirty||V&&!U&&u)&&(g.setDPR(o.dpr),p?g.setContext(null):(g.setContext(o),Z=!1),g.reset(),V&&!U&&(g.setLineDash(V),g.setLineDashOffset(B)),i.buildPath(g,i.shape,s),g.toStatic(),i.pathUpdated()),Z&&g.rebuildPath(o,p?d:1),V&&U&&(o.setLineDash(V),o.lineDashOffset=B),s||(r.strokeFirst?(u&&JR(o,r),f&&Zx(o,r)):(f&&Zx(o,r),u&&JR(o,r))),V&&U&&o.setLineDash([])}(o,i,y,m),m&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):i instanceof Xp?(3!==r.lastDrawType&&(v=!0,r.lastDrawType=3),$x(o,i,g,v,r),function(o,i,r){var s=r.text;if(null!=s&&(s+=""),s){o.font=r.font||ri,o.textAlign=r.textAlign,o.textBaseline=r.textBaseline;var u=void 0;if(o.setLineDash){var f=r.lineDash&&r.lineWidth>0&&Xx(r.lineDash,r.lineWidth),d=r.lineDashOffset;if(f){var p=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;p&&1!==p&&(f=Te(f,function(v){return v/p}),d/=p),o.setLineDash(f),o.lineDashOffset=d,u=!0}}r.strokeFirst?(PC(r)&&o.strokeText(s,r.x,r.y),m_(r)&&o.fillText(s,r.x,r.y)):(m_(r)&&o.fillText(s,r.x,r.y),PC(r)&&o.strokeText(s,r.x,r.y)),u&&o.setLineDash([])}}(o,i,y)):i instanceof si?(2!==r.lastDrawType&&(v=!0,r.lastDrawType=2),function(o,i,r,s,u){IC(o,RC(i,u.inHover),r&&RC(r,u.inHover),s,u)}(o,i,g,v,r),function(o,i,r){var s=i.__image=zd(r.image,i.__image,i,i.onload);if(s&&g0(s)){var u=r.x||0,f=r.y||0,d=i.getWidth(),p=i.getHeight(),v=s.width/s.height;if(null==d&&null!=p?d=p*v:null==p&&null!=d?p=d/v:null==d&&null==p&&(d=s.width,p=s.height),r.sWidth&&r.sHeight)o.drawImage(s,g=r.sx||0,m=r.sy||0,r.sWidth,r.sHeight,u,f,d,p);else if(r.sx&&r.sy){var g,m;o.drawImage(s,g=r.sx,m=r.sy,d-g,p-m,u,f,d,p)}else o.drawImage(s,u,f,d,p)}}(o,i,y)):i instanceof Tv&&(4!==r.lastDrawType&&(v=!0,r.lastDrawType=4),function(o,i,r){var s=i.getDisplayables(),u=i.getTemporalDisplayables();o.save();var d,p,f={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(d=i.getCursor(),p=s.length;d=4&&(m={x:parseFloat(b[0]||0),y:parseFloat(b[1]||0),width:parseFloat(b[2]),height:parseFloat(b[3])})}if(m&&null!=p&&null!=v&&(y=Eh(m,{x:0,y:0,width:p,height:v}),!r.ignoreViewBox)){var w=u;(u=new ct).add(w),w.scaleX=w.scaleY=y.scale,w.x=y.x,w.y=y.y}return!r.ignoreRootClip&&null!=p&&null!=v&&u.setClipPath(new sn({shape:{x:0,y:0,width:p,height:v}})),{root:u,width:p,height:v,viewBoxRect:m,viewBoxTransform:y,named:f}},o.prototype._parseNode=function(i,r,s,u,f,d){var v,p=i.nodeName.toLowerCase(),g=u;if("defs"===p&&(f=!0),"text"===p&&(d=!0),"defs"===p||"switch"===p)v=r;else{if(!f){var m=fl[p];if(m&&Ae(fl,p)){v=m.call(this,i,r);var y=i.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:p,el:v};s.push(b),"g"===p&&(g=b)}else u&&s.push({name:u.name,namedFrom:u,svgNodeTagLower:p,el:v});r.add(v)}}var w=NC[p];if(w&&Ae(NC,p)){var S=w.call(this,i),M=i.getAttribute("id");M&&(this._defs[M]=S)}}if(v&&v.isGroup)for(var x=i.firstChild;x;)1===x.nodeType?this._parseNode(x,v,s,g,f,d):3===x.nodeType&&d&&this._parseText(x,v),x=x.nextSibling},o.prototype._parseText=function(i,r){var s=new Xp({style:{text:i.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Uo(r,s),_s(i,s,this._defsUsePending,!1,!1),function(o,i){var r=i.__selfStyle;if(r){var s=r.textBaseline,u=s;s&&"auto"!==s&&"baseline"!==s?"before-edge"===s||"text-before-edge"===s?u="top":"after-edge"===s||"text-after-edge"===s?u="bottom":("central"===s||"mathematical"===s)&&(u="middle"):u="alphabetic",o.style.textBaseline=u}var f=i.__inheritedStyle;if(f){var d=f.textAlign,p=d;d&&("middle"===d&&(p="center"),o.style.textAlign=p)}}(s,r);var u=s.style,f=u.fontSize;f&&f<9&&(u.fontSize=9,s.scaleX*=f/9,s.scaleY*=f/9);var d=(u.fontSize||u.fontFamily)&&[u.fontStyle,u.fontWeight,(u.fontSize||12)+"px",u.fontFamily||"sans-serif"].join(" ");u.font=d;var p=s.getBoundingRect();return this._textX+=p.width,r.add(s),s},o.internalField=void(fl={g:function(r,s){var u=new ct;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u},rect:function(r,s){var u=new sn;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x:parseFloat(r.getAttribute("x")||"0"),y:parseFloat(r.getAttribute("y")||"0"),width:parseFloat(r.getAttribute("width")||"0"),height:parseFloat(r.getAttribute("height")||"0")}),u.silent=!0,u},circle:function(r,s){var u=new sl;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),r:parseFloat(r.getAttribute("r")||"0")}),u.silent=!0,u},line:function(r,s){var u=new Ti;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x1:parseFloat(r.getAttribute("x1")||"0"),y1:parseFloat(r.getAttribute("y1")||"0"),x2:parseFloat(r.getAttribute("x2")||"0"),y2:parseFloat(r.getAttribute("y2")||"0")}),u.silent=!0,u},ellipse:function(r,s){var u=new yC;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),rx:parseFloat(r.getAttribute("rx")||"0"),ry:parseFloat(r.getAttribute("ry")||"0")}),u.silent=!0,u},polygon:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new ya({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},polyline:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new br({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},image:function(r,s){var u=new si;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setStyle({image:r.getAttribute("xlink:href"),x:+r.getAttribute("x"),y:+r.getAttribute("y"),width:+r.getAttribute("width"),height:+r.getAttribute("height")}),u.silent=!0,u},text:function(r,s){var u=r.getAttribute("x")||"0",f=r.getAttribute("y")||"0",d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0";this._textX=parseFloat(u)+parseFloat(d),this._textY=parseFloat(f)+parseFloat(p);var v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),v},tspan:function(r,s){var u=r.getAttribute("x"),f=r.getAttribute("y");null!=u&&(this._textX=parseFloat(u)),null!=f&&(this._textY=parseFloat(f));var d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0",v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(p),v},path:function(r,s){var f=IR(r.getAttribute("d")||"");return Uo(s,f),_s(r,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),o}(),NC={lineargradient:function(i){var r=parseInt(i.getAttribute("x1")||"0",10),s=parseInt(i.getAttribute("y1")||"0",10),u=parseInt(i.getAttribute("x2")||"10",10),f=parseInt(i.getAttribute("y2")||"0",10),d=new xv(r,s,u,f);return nc(i,d),u2(i,d),d},radialgradient:function(i){var r=parseInt(i.getAttribute("cx")||"0",10),s=parseInt(i.getAttribute("cy")||"0",10),u=parseInt(i.getAttribute("r")||"0",10),f=new MC(r,s,u);return nc(i,f),u2(i,f),f}};function nc(o,i){"userSpaceOnUse"===o.getAttribute("gradientUnits")&&(i.global=!0)}function u2(o,i){for(var r=o.firstChild;r;){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var u,s=r.getAttribute("offset");u=s&&s.indexOf("%")>0?parseInt(s,10)/100:s?parseFloat(s):0;var f={};v2(r,f,f);var d=f.stopColor||r.getAttribute("stop-color")||"#000000";i.colorStops.push({offset:u,color:d})}r=r.nextSibling}}function Uo(o,i){o&&o.__inheritedStyle&&(i.__inheritedStyle||(i.__inheritedStyle={}),tt(i.__inheritedStyle,o.__inheritedStyle))}function c2(o){for(var i=y_(o),r=[],s=0;s0;f-=2){var p=s[f-1],v=y_(s[f]);switch(u=u||[1,0,0,1,0,0],p){case"translate":Oo(u,u,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":$b(u,u,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":Od(u,u,-parseFloat(v[0])*iT);break;case"skewX":Jo(u,[1,0,Math.tan(parseFloat(v[0])*iT),1,0,0],u);break;case"skewY":Jo(u,[1,Math.tan(parseFloat(v[0])*iT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(v[0]),u[1]=parseFloat(v[1]),u[2]=parseFloat(v[2]),u[3]=parseFloat(v[3]),u[4]=parseFloat(v[4]),u[5]=parseFloat(v[5])}}i.setLocalTransform(u)}}(o,i),v2(o,d,p),s||function(o,i,r){for(var s=0;s>1^-(1&p),v=v>>1^-(1&v),u=p+=u,f=v+=f,s.push([p/r,v/r])}return s}function b2(o,i){return Te(Yn((o=function(o){if(!o.UTF8Encoding)return o;var i=o,r=i.UTF8Scale;null==r&&(r=1024);for(var s=i.features,u=0;u0}),function(r){var d,s=r.properties,u=r.geometry,f=[];"Polygon"===u.type&&f.push({type:"polygon",exterior:(d=u.coordinates)[0],interiors:d.slice(1)}),"MultiPolygon"===u.type&&q(d=u.coordinates,function(g){g[0]&&f.push({type:"polygon",exterior:g[0],interiors:g.slice(1)})});var p=new Vt(s[i||"name"],f,s.cp);return p.properties=s,p})}for(var aT=[126,25],Oh=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Ih=0;Ih0&&r.unfinished);r.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.setOption=function(r,s,u){if(!this._disposed){var f,d,p;if(at(s)&&(u=s.lazyUpdate,f=s.silent,d=s.replaceMerge,p=s.transition,s=s.notMerge),this[ic]=!0,!this._model||s){var v=new t4(this._api),g=this._theme,m=this._model=new kn;m.scheduler=this._scheduler,m.init(null,null,null,g,this._locale,v)}this._model.setOption(r,{replaceMerge:d},E2);var y={seriesTransition:p,optionChanged:!0};u?(this[bs]={silent:f,updateParams:y},this[ic]=!1,this.getZr().wakeUp()):(ws(this),cu.update.call(this,null,y),this._zr.flush(),this[bs]=null,this[ic]=!1,Vf.call(this,f),WC.call(this,f))}},i.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||L8&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(r){if(Ze.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},i.prototype.getSvgDataURL=function(){if(Ze.svgSupported){var r=this._zr;return q(r.storage.getDisplayList(),function(u){u.stopAnimation(null,!0)}),r.painter.toDataURL()}},i.prototype.getDataURL=function(r){if(!this._disposed){var u=this._model,f=[],d=this;q((r=r||{}).excludeComponents,function(v){u.eachComponent({mainType:v},function(g){var m=d._componentsMap[g.__viewId];m.group.ignore||(f.push(m),m.group.ignore=!0)})});var p="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return q(f,function(v){v.group.ignore=!1}),p}},i.prototype.getConnectedDataURL=function(r){if(!this._disposed&&Ze.canvasSupported){var s="svg"===r.type,u=this.group,f=Math.min,d=Math.max,p=1/0;if(Iv[u]){var v=p,g=p,m=-p,y=-p,b=[],w=r&&r.pixelRatio||this.getDevicePixelRatio();q(Nh,function(O,R){if(O.group===u){var V=s?O.getZr().painter.getSvgDom().innerHTML:O.getRenderedCanvas(rt(r)),B=O.getDom().getBoundingClientRect();v=f(B.left,v),g=f(B.top,g),m=d(B.right,m),y=d(B.bottom,y),b.push({dom:V,left:B.left,top:B.top})}});var S=(m*=w)-(v*=w),M=(y*=w)-(g*=w),x=md(),T=Hp(x,{renderer:s?"svg":"canvas"});if(T.resize({width:S,height:M}),s){var P="";return q(b,function(O){P+=''+O.dom+""}),T.painter.getSvgRoot().innerHTML=P,r.connectedBackgroundColor&&T.painter.setBackgroundColor(r.connectedBackgroundColor),T.refreshImmediately(),T.painter.toDataURL()}return r.connectedBackgroundColor&&T.add(new sn({shape:{x:0,y:0,width:S,height:M},style:{fill:r.connectedBackgroundColor}})),q(b,function(O){var R=new si({style:{x:O.left*w-v,y:O.top*w-g,image:O.dom}});T.add(R)}),T.refreshImmediately(),x.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},i.prototype.convertToPixel=function(r,s){return Fh(this,"convertToPixel",r,s)},i.prototype.convertFromPixel=function(r,s){return Fh(this,"convertFromPixel",r,s)},i.prototype.containPixel=function(r,s){var f;if(!this._disposed)return q(is(this._model,r),function(p,v){v.indexOf("Models")>=0&&q(p,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(s);else if("seriesModels"===v){var y=this._chartsMap[g.__viewId];y&&y.containPoint&&(f=f||y.containPoint(s,g))}},this)},this),!!f},i.prototype.getVisual=function(r,s){var f=is(this._model,r,{defaultMainType:"series"}),p=f.seriesModel.getData(),v=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?p.indexOfRawIndex(f.dataIndex):null;return null!=v?xx(p,v,s):kh(p,s)},i.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},i.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},i.prototype._initEvents=function(){var r=this;q(D_,function(s){var u=function(d){var g,p=r.getModel(),v=d.target;if("globalout"===s?g={}:v&&xh(v,function(M){var x=ht(M);if(x&&null!=x.dataIndex){var T=x.dataModel||p.getSeriesByIndex(x.seriesIndex);return g=T&&T.getDataParams(x.dataIndex,x.dataType)||{},!0}if(x.eventData)return g=Se({},x.eventData),!0},!0),g){var y=g.componentType,b=g.componentIndex;("markLine"===y||"markPoint"===y||"markArea"===y)&&(y="series",b=g.seriesIndex);var w=y&&null!=b&&p.getComponent(y,b),S=w&&r["series"===w.mainType?"_chartsMap":"_componentsMap"][w.__viewId];g.event=d,g.type=s,r._$eventProcessor.eventInfo={targetEl:v,packedEvent:g,model:w,view:S},r.trigger(s,g)}};u.zrEventfulCallAtLast=!0,r._zr.on(s,u,r)}),q(A_,function(s,u){r._messageCenter.on(u,function(f){this.trigger(u,f)},r)}),q(["selectchanged"],function(s){r._messageCenter.on(s,function(u){this.trigger(s,u)},r)}),function(o,i,r){o.on("selectchanged",function(s){var u=r.getModel();s.isFromClick?(Mh("map","selectchanged",i,u,s),Mh("pie","selectchanged",i,u,s)):"select"===s.fromAction?(Mh("map","selected",i,u,s),Mh("pie","selected",i,u,s)):"unselect"===s.fromAction&&(Mh("map","unselected",i,u,s),Mh("pie","unselected",i,u,s))})}(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,QH(this.getDom(),P2,"");var r=this,s=r._api,u=r._model;q(r._componentsViews,function(f){f.dispose(u,s)}),q(r._chartsViews,function(f){f.dispose(u,s)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Nh[r.id]}},i.prototype.resize=function(r){if(!this._disposed){this._zr.resize(r);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),s){var u=s.resetOption("media"),f=r&&r.silent;this[bs]&&(null==f&&(f=this[bs].silent),u=!0,this[bs]=null),this[ic]=!0,u&&ws(this),cu.update.call(this,{type:"resize",animation:Se({duration:0},r&&r.animation)}),this[ic]=!1,Vf.call(this,f),WC.call(this,f)}}},i.prototype.showLoading=function(r,s){if(!this._disposed&&(at(r)&&(s=r,r=""),r=r||"default",this.hideLoading(),pT[r])){var u=pT[r](this._api,s),f=this._zr;this._loadingFX=u,f.add(u)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(r){var s=Se({},r);return s.type=A_[r.type],s},i.prototype.dispatchAction=function(r,s){if(!this._disposed&&(at(s)||(s={silent:!!s}),KC[r.type]&&this._model)){if(this[ic])return void this._pendingActions.push(r);var u=s.silent;jC.call(this,r,u);var f=s.flush;f?this._zr.flush():!1!==f&&Ze.browser.weChat&&this._throttledZrFlush(),Vf.call(this,u),WC.call(this,u)}},i.prototype.updateLabelLayout=function(){dl.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(r){if(!this._disposed){var s=r.seriesIndex;this.getModel().getSeriesByIndex(s).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function r(g){for(var m=[],y=g.currentStates,b=0;b0?{duration:w,delay:y.get("delay"),easing:y.get("easing")}:null;m.group.traverse(function(M){if(M.states&&M.states.emphasis){if(ev(M))return;if(M instanceof Nt&&function(o){var i=mM(o);i.normalFill=o.style.fill,i.normalStroke=o.style.stroke;var r=o.states.select||{};i.selectFill=r.style&&r.style.fill||null,i.selectStroke=r.style&&r.style.stroke||null}(M),M.__dirty){var x=M.prevStates;x&&M.useStates(x)}if(b){M.stateTransition=S;var T=M.getTextContent(),P=M.getTextGuideLine();T&&(T.stateTransition=S),P&&(P.stateTransition=S)}M.__dirty&&r(M)}})}ws=function(m){var y=m._scheduler;y.restorePipelines(m._model),y.prepareStageTasks(),fT(m,!0),fT(m,!1),y.plan()},fT=function(m,y){for(var b=m._model,w=m._scheduler,S=y?m._componentsViews:m._chartsViews,M=y?m._componentsMap:m._chartsMap,x=m._zr,T=m._api,P=0;Pm.get("hoverLayerThreshold")&&!Ze.node&&!Ze.worker&&m.eachSeries(function(S){if(!S.preventUsingHoverLayer){var M=g._chartsMap[S.__viewId];M.__alive&&M.group.traverse(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}(m,y),dl.trigger("series:afterupdate",y,b,S)},hl=function(m){m[uT]=!0,m.getZr().wakeUp()},H8=function(m){!m[uT]||(m.getZr().storage.traverse(function(y){ev(y)||r(y)}),m[uT]=!1)},XC=function(m){return new(function(y){function b(){return null!==y&&y.apply(this,arguments)||this}return he(b,y),b.prototype.getCoordinateSystems=function(){return m._coordSysMgr.getCoordinateSystems()},b.prototype.getComponentByElement=function(w){for(;w;){var S=w.__ecComponentInfo;if(null!=S)return m._model.getComponent(S.mainType,S.index);w=w.parent}},b.prototype.enterEmphasis=function(w,S){Js(w,S),hl(m)},b.prototype.leaveEmphasis=function(w,S){eu(w,S),hl(m)},b.prototype.enterBlur=function(w){Lm(w),hl(m)},b.prototype.leaveBlur=function(w){iI(w),hl(m)},b.prototype.enterSelect=function(w){CM(w),hl(m)},b.prototype.leaveSelect=function(w){wM(w),hl(m)},b.prototype.getModel=function(){return m.getModel()},b.prototype.getViewOfComponentModel=function(w){return m.getViewOfComponentModel(w)},b.prototype.getViewOfSeriesModel=function(w){return m.getViewOfSeriesModel(w)},b}(hh))(m)},ZC=function(m){function y(b,w){for(var S=0;S=0)){z2.push(r);var f=dt.wrapStageHandler(r,u);f.__prio=i,f.__raw=r,o.push(f)}}function mT(o,i){pT[o]=i}function EZ(o){mk("createCanvas",o)}function _T(o,i,r){!function(i,r,s){if(r.svg){var u=new T8(i,r.svg);Rh.set(i,u)}else{var f=r.geoJson||r.geoJSON;f&&!r.features?s=r.specialAreas:f=r,u=new R8(i,f,s),Rh.set(i,u)}}(o,i,r)}function Y8(o){return function(i){var r=Rh.get(i);return r&&"geoJSON"===r.type&&r.getMapForUser()}(o)}var U2=function(o){var i=(o=rt(o)).type;i||Mn("");var s=i.split(":");2!==s.length&&Mn("");var u=!1;"echarts"===s[0]&&(i=s[1],u=!0),o.__isBuiltIn=u,eR.set(i,o)};Bf(2e3,mR),Bf(4500,_R),Bf(4500,yZ),Bf(2e3,V4),Bf(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(i.hasSymbolVisual&&!r.isSeriesFiltered(i))return{dataEach:i.getData().hasItemOption?function(f,d){var p=f.getItemModel(d),v=p.getShallow("symbol",!0),g=p.getShallow("symbolSize",!0),m=p.getShallow("symbolRotate",!0),y=p.getShallow("symbolOffset",!0),b=p.getShallow("symbolKeepAspect",!0);null!=v&&f.setItemVisual(d,"symbol",v),null!=g&&f.setItemVisual(d,"symbolSize",g),null!=m&&f.setItemVisual(d,"symbolRotate",m),null!=y&&f.setItemVisual(d,"symbolOffset",y),null!=b&&f.setItemVisual(d,"symbolKeepAspect",b)}:null}}}),Bf(7e3,function(o,i){o.eachRawSeries(function(r){if(!o.isSeriesFiltered(r)){var s=r.getData();s.hasItemVisual()&&s.each(function(d){var p=s.getItemVisual(d,"decal");p&&(s.ensureUniqueItemVisual(d,"style").decal=lu(p,i))});var u=s.getVisual("decal");u&&(s.getVisual("style").decal=lu(u,i))}})}),L2(vs),F2(900,function(o){var i=et();o.eachSeries(function(r){var s=r.get("stack");if(s){var u=i.get(s)||i.set(s,[]),f=r.getData(),d={stackResultDimension:f.getCalculationInfo("stackResultDimension"),stackedOverDimension:f.getCalculationInfo("stackedOverDimension"),stackedDimension:f.getCalculationInfo("stackedDimension"),stackedByDimension:f.getCalculationInfo("stackedByDimension"),isStackedByIndex:f.getCalculationInfo("isStackedByIndex"),data:f,seriesModel:r};if(!d.stackedDimension||!d.isStackedByIndex&&!d.stackedByDimension)return;u.length&&f.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(d)}}),i.each(dZ)}),mT("default",function(o,i){tt(i=i||{},{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 r=new ct,s=new sn({style:{fill:i.maskColor},zlevel:i.zlevel,z:1e4});r.add(s);var d,u=new fn({style:{text:i.text,fill:i.textColor,fontSize:i.fontSize,fontWeight:i.fontWeight,fontStyle:i.fontStyle,fontFamily:i.fontFamily},zlevel:i.zlevel,z:10001}),f=new sn({style:{fill:"none"},textContent:u,textConfig:{position:"right",distance:10},zlevel:i.zlevel,z:10001});return r.add(f),i.showSpinner&&((d=new i_({shape:{startAngle:-vC/2,endAngle:-vC/2+.1,r:i.spinnerRadius},style:{stroke:i.color,lineCap:"round",lineWidth:i.lineWidth},zlevel:i.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*vC/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:3*vC/2}).delay(300).start("circularInOut"),r.add(d)),r.resize=function(){var p=u.getBoundingRect().width,v=i.showSpinner?i.spinnerRadius:0,g=(o.getWidth()-2*v-(i.showSpinner&&p?10:0)-p)/2-(i.showSpinner&&p?0:5+p/2)+(i.showSpinner?0:p/2)+(p?0:v),m=o.getHeight()/2;i.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-v,y:m-v,width:2*v,height:2*v}),s.setShape({x:0,y:0,width:o.getWidth(),height:o.getHeight()})},r.resize(),r}),pl({type:_f,event:_f,update:_f},Mo),pl({type:Pm,event:Pm,update:Pm},Mo),pl({type:Jd,event:Jd,update:Jd},Mo),pl({type:Kp,event:Kp,update:Kp},Mo),pl({type:$p,event:$p,update:$p},Mo),$C("light",F4),$C("dark",xR);var q8={},G2=[],X8={registerPreprocessor:L2,registerProcessor:F2,registerPostInit:N2,registerPostUpdate:V2,registerUpdateLifecycle:vT,registerAction:pl,registerCoordinateSystem:B2,registerLayout:H2,registerVisual:Bf,registerTransform:U2,registerLoading:mT,registerMap:_T,PRIORITY:lT,ComponentModel:qt,ComponentView:un,SeriesModel:vt,ChartView:Vn,registerComponentModel:function(i){qt.registerClass(i)},registerComponentView:function(i){un.registerClass(i)},registerSeriesModel:function(i){vt.registerClass(i)},registerChartView:function(i){Vn.registerClass(i)},registerSubTypeDefaulter:function(i,r){qt.registerSubTypeDefaulter(i,r)},registerPainter:function(i,r){xO(i,r)}};function Ot(o){we(o)?q(o,function(i){Ot(i)}):Rt(G2,o)>=0||(G2.push(o),An(o)&&(o={install:o}),o.install(X8))}function E_(o){return null==o?0:o.length||1}function j2(o){return o}var Hf=function(){function o(i,r,s,u,f,d){this._old=i,this._new=r,this._oldKeyGetter=s||j2,this._newKeyGetter=u||j2,this.context=f,this._diffModeMultiple="multiple"===d}return o.prototype.add=function(i){return this._add=i,this},o.prototype.update=function(i){return this._update=i,this},o.prototype.updateManyToOne=function(i){return this._updateManyToOne=i,this},o.prototype.updateOneToMany=function(i){return this._updateOneToMany=i,this},o.prototype.updateManyToMany=function(i){return this._updateManyToMany=i,this},o.prototype.remove=function(i){return this._remove=i,this},o.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},o.prototype._executeOneToOne=function(){var i=this._old,r=this._new,s={},u=new Array(i.length),f=new Array(r.length);this._initIndexMap(i,null,u,"_oldKeyGetter"),this._initIndexMap(r,s,f,"_newKeyGetter");for(var d=0;d1){var m=v.shift();1===v.length&&(s[p]=v[0]),this._update&&this._update(m,d)}else 1===g?(s[p]=null,this._update&&this._update(v,d)):this._remove&&this._remove(d)}this._performRestAdd(f,s)},o.prototype._executeMultiple=function(){var r=this._new,s={},u={},f=[],d=[];this._initIndexMap(this._old,s,f,"_oldKeyGetter"),this._initIndexMap(r,u,d,"_newKeyGetter");for(var p=0;p1&&1===b)this._updateManyToOne&&this._updateManyToOne(m,g),u[v]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[v]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[v]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[v]=null;else if(y>1)for(var w=0;w1)for(var p=0;p30}var Z2,tw,Rv,P_,K2,nw,ST,Ua=at,fu=Te,Q8="undefined"==typeof Int32Array?Array:Int32Array,X2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],J8=["_approximateExtent"],Ga=function(){function o(i,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var s,u=!1;Y2(i)?(s=i.dimensions,this._dimOmitted=i.isDimensionOmitted(),this._schema=i):(u=!0,s=i),s=s||["x","y"];for(var f={},d=[],p={},v=!1,g={},m=0;m=r)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===Ho&&!u.pure)for(var g=[],m=i;m0},o.prototype.ensureUniqueItemVisual=function(i,r){var s=this._itemVisuals,u=s[i];u||(u=s[i]={});var f=u[r];return null==f&&(we(f=this.getVisual(r))?f=f.slice():Ua(f)&&(f=Se({},f)),u[r]=f),f},o.prototype.setItemVisual=function(i,r,s){var u=this._itemVisuals[i]||{};this._itemVisuals[i]=u,Ua(r)?Se(u,r):u[r]=s},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(i,r){if(Ua(i))for(var s in i)i.hasOwnProperty(s)&&this.setLayout(s,i[s]);else this._layout[i]=r},o.prototype.getLayout=function(i){return this._layout[i]},o.prototype.getItemLayout=function(i){return this._itemLayouts[i]},o.prototype.setItemLayout=function(i,r,s){this._itemLayouts[i]=s?Se(this._itemLayouts[i]||{},r):r},o.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},o.prototype.setItemGraphicEl=function(i,r){cs(this.hostModel&&this.hostModel.seriesIndex,this.dataType,i,r),this._graphicEls[i]=r},o.prototype.getItemGraphicEl=function(i){return this._graphicEls[i]},o.prototype.eachItemGraphicEl=function(i,r){q(this._graphicEls,function(s,u){s&&i&&i.call(r,s,u)})},o.prototype.cloneShallow=function(i){return i||(i=new o(this._schema?this._schema:fu(this.dimensions,this._getDimInfo,this),this.hostModel)),K2(i,this),i._store=this._store,i},o.prototype.wrapMethod=function(i,r){var s=this[i];"function"==typeof s&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(i),this[i]=function(){var u=s.apply(this,arguments);return r.apply(this,[u].concat(Fb(arguments)))})},o.internalField=(Z2=function(r){var s=r._invertedIndicesMap;q(s,function(u,f){var d=r._dimInfos[f],p=d.ordinalMeta,v=r._store;if(p){u=s[f]=new Q8(p.categories.length);for(var g=0;g1&&(g+="__ec__"+y),f[s]=g}})),o}();function $2(o,i){return Fv(o,i).dimensions}function Fv(o,i){sC(o)||(o=uC(o));var r=(i=i||{}).coordDimensions||[],s=i.dimensionsDefine||o.dimensionsDefine||[],u=et(),f=[],d=function(o,i,r,s){var u=Math.max(o.dimensionsDetectedCount||1,i.length,r.length,s||0);return q(i,function(f){var d;at(f)&&(d=f.dimsDef)&&(u=Math.max(u,d.length))}),u}(o,r,s,i.dimensionsCount),p=i.canOmitUnusedDimensions&&CT(d),v=s===o.dimensionsDefine,g=v?$i(o):Vh(s),m=i.encodeDefine;!m&&i.encodeDefaulter&&(m=i.encodeDefaulter(o,d));for(var y=et(m),b=new tR(d),w=0;w0&&(s.name=u+(f-1)),f++,i.set(u,f)}}(f),new ew({source:o,dimensions:f,fullDimensionCount:d,dimensionOmitted:p})}function eU(o,i,r){var s=i.data;if(r||s.hasOwnProperty(o)){for(var u=0;s.hasOwnProperty(o+u);)u++;o+=u}return i.set(o,!0),o}var kT=function(i){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=i},vl={cartesian2d:function(i,r,s,u){var f=i.getReferringComponents("xAxis",ai).models[0],d=i.getReferringComponents("yAxis",ai).models[0];r.coordSysDims=["x","y"],s.set("x",f),s.set("y",d),zf(f)&&(u.set("x",f),r.firstCategoryDimIndex=0),zf(d)&&(u.set("y",d),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},singleAxis:function(i,r,s,u){var f=i.getReferringComponents("singleAxis",ai).models[0];r.coordSysDims=["single"],s.set("single",f),zf(f)&&(u.set("single",f),r.firstCategoryDimIndex=0)},polar:function(i,r,s,u){var f=i.getReferringComponents("polar",ai).models[0],d=f.findAxisModel("radiusAxis"),p=f.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],s.set("radius",d),s.set("angle",p),zf(d)&&(u.set("radius",d),r.firstCategoryDimIndex=0),zf(p)&&(u.set("angle",p),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},geo:function(i,r,s,u){r.coordSysDims=["lng","lat"]},parallel:function(i,r,s,u){var f=i.ecModel,d=f.getComponent("parallel",i.get("parallelIndex")),p=r.coordSysDims=d.dimensions.slice();q(d.parallelAxisIndex,function(v,g){var m=f.getComponent("parallelAxis",v),y=p[g];s.set(y,m),zf(m)&&(u.set(y,m),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=g))})}};function zf(o){return"category"===o.get("type")}function J2(o,i,r){var f,d,p,s=(r=r||{}).byIndex,u=r.stackedCoordDimension;!function(o){return!Y2(o.schema)}(i)?(f=(d=i.schema).dimensions,p=i.store):f=i;var g,m,y,b,v=!(!o||!o.get("stack"));if(q(f,function(P,O){yt(P)&&(f[O]=P={name:P}),v&&!P.isExtraCoord&&(!s&&!g&&P.ordinalMeta&&(g=P),!m&&"ordinal"!==P.type&&"time"!==P.type&&(!u||u===P.coordDim)&&(m=P))}),m&&!s&&!g&&(s=!0),m){y="__\0ecstackresult_"+o.id,b="__\0ecstackedover_"+o.id,g&&(g.createInvertedIndices=!0);var w=m.coordDim,S=m.type,M=0;q(f,function(P){P.coordDim===w&&M++});var x={name:y,coordDim:w,coordDimIndex:M,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length},T={name:b,coordDim:b,coordDimIndex:M+1,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length+1};d?(p&&(x.storeDimIndex=p.ensureCalculationDimension(b,S),T.storeDimIndex=p.ensureCalculationDimension(y,S)),d.appendCalculationDimension(x),d.appendCalculationDimension(T)):(f.push(x),f.push(T))}return{stackedDimension:m&&m.name,stackedByDimension:g&&g.name,isStackedByIndex:s,stackedOverDimension:b,stackResultDimension:y}}function ac(o,i){return!!i&&i===o.getCalculationInfo("stackedDimension")}function MT(o,i){return ac(o,i)?o.getCalculationInfo("stackResultDimension"):i}var gl=function(o,i,r){r=r||{};var u,s=i.getSourceManager(),f=!1;o?(f=!0,u=uC(o)):f=(u=s.getSource()).sourceFormat===Ho;var d=function(o){var i=o.get("coordinateSystem"),r=new kT(i),s=vl[i];if(s)return s(o,r,r.axisMap,r.categoryAxisMap),r}(i),p=function(o,i){var u,r=o.get("coordinateSystem"),s=$m.get(r);return i&&i.coordSysDims&&(u=Te(i.coordSysDims,function(f){var d={name:f},p=i.axisMap.get(f);if(p){var v=p.get("type");d.type=QC(v)}return d})),u||(u=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"]),u}(i,d),v=r.useEncodeDefaulter,g=An(v)?v:v?St(au,p,i):null,y=Fv(u,{coordDimensions:p,generateCoord:r.generateCoord,encodeDefine:i.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!f}),b=function(o,i,r){var s,u;return r&&q(o,function(f,d){var v=r.categoryAxisMap.get(f.coordDim);v&&(null==s&&(s=d),f.ordinalMeta=v.getOrdinalMeta(),i&&(f.createInvertedIndices=!0)),null!=f.otherDims.itemName&&(u=!0)}),!u&&null!=s&&(o[s].otherDims.itemName=0),s}(y.dimensions,r.createInvertedIndices,d),w=f?null:s.getSharedDataStore(y),S=J2(i,{schema:y,store:w}),M=new Ga(y,i);M.setCalculationInfo(S);var x=null!=b&&function(o){if(o.sourceFormat===Ho){var i=function(o){for(var i=0;ir[1]&&(r[1]=i[1])},o.prototype.unionExtentFromData=function(i,r){this.unionExtent(i.getApproximateExtent(r))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(i,r){var s=this._extent;isNaN(i)||(s[0]=i),isNaN(r)||(s[1]=r)},o.prototype.isInExtentRange=function(i){return this._extent[0]<=i&&this._extent[1]>=i},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(i){this._isBlank=i},o}();qu(xT);var du=xT,tL=0;function aU(o){return at(o)&&null!=o.value?o.value:o+""}var Gf=function(){function o(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this.uid=++tL}return o.createByAxisModel=function(i){var r=i.option,s=r.data,u=s&&Te(s,aU);return new o({categories:u,needCollect:!u,deduplication:!1!==r.dedplication})},o.prototype.getOrdinal=function(i){return this._getOrCreateMap().get(i)},o.prototype.parseAndCollect=function(i){var r,s=this._needCollect;if("string"!=typeof i&&!s)return i;if(s&&!this._deduplication)return this.categories[r=this.categories.length]=i,r;var u=this._getOrCreateMap();return null==(r=u.get(i))&&(s?(this.categories[r=this.categories.length]=i,u.set(i,r)):r=NaN),r},o.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},o}(),iw=hi;function nL(o){return ns(o)+2}function rL(o,i,r){o[i]=Math.max(Math.min(o[i],r[1]),r[0])}function jf(o,i){return o>=i[0]&&o<=i[1]}function aw(o,i){return i[1]===i[0]?.5:(o-i[0])/(i[1]-i[0])}function Nv(o,i){return o*(i[1]-i[0])+i[0]}var ye=function(o){function i(r){var s=o.call(this,r)||this;s.type="ordinal";var u=s.getSetting("ordinalMeta");return u||(u=new Gf({})),we(u)&&(u=new Gf({categories:Te(u,function(f){return at(f)?f.value:f})})),s._ordinalMeta=u,s._extent=s.getSetting("extent")||[0,u.categories.length-1],s}return he(i,o),i.prototype.parse=function(r){return"string"==typeof r?this._ordinalMeta.getOrdinal(r):Math.round(r)},i.prototype.contain=function(r){return jf(r=this.parse(r),this._extent)&&null!=this._ordinalMeta.categories[r]},i.prototype.normalize=function(r){return aw(r=this._getTickNumber(this.parse(r)),this._extent)},i.prototype.scale=function(r){return r=Math.round(Nv(r,this._extent)),this.getRawOrdinalNumber(r)},i.prototype.getTicks=function(){for(var r=[],s=this._extent,u=s[0];u<=s[1];)r.push({value:u}),u++;return r},i.prototype.getMinorTicks=function(r){},i.prototype.setSortInfo=function(r){if(null!=r){for(var s=r.ordinalNumbers,u=this._ordinalNumbersByTick=[],f=this._ticksByOrdinalNumber=[],d=0,p=this._ordinalMeta.categories.length,v=Math.min(p,s.length);d=0&&r=0&&r=r},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.niceTicks=function(){},i.prototype.niceExtent=function(){},i.type="ordinal",i}(du);du.registerClass(ye);var TT=ye,Wo=hi,iL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return he(i,o),i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r,this._extent)},i.prototype.normalize=function(r){return aw(r,this._extent)},i.prototype.scale=function(r){return Nv(r,this._extent)},i.prototype.setExtent=function(r,s){var u=this._extent;isNaN(r)||(u[0]=parseFloat(r)),isNaN(s)||(u[1]=parseFloat(s))},i.prototype.unionExtent=function(r){var s=this._extent;r[0]s[1]&&(s[1]=r[1]),this.setExtent(s[0],s[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=nL(r)},i.prototype.getTicks=function(r){var s=this._interval,u=this._extent,f=this._niceExtent,d=this._intervalPrecision,p=[];if(!s)return p;u[0]1e4)return[];var m=p.length?p[p.length-1].value:f[1];return u[1]>m&&p.push(r?{value:Wo(m+s,d)}:{value:u[1]}),p},i.prototype.getMinorTicks=function(r){for(var s=this.getTicks(!0),u=[],f=this.getExtent(),d=1;df[0]&&ws&&(d=u.interval=s);var p=u.intervalPrecision=nL(d);return function(o,i){!isFinite(o[0])&&(o[0]=i[0]),!isFinite(o[1])&&(o[1]=i[1]),rL(o,0,i),rL(o,1,i),o[0]>o[1]&&(o[0]=o[1])}(u.niceTickExtent=[iw(Math.ceil(o[0]/d)*d,p),iw(Math.floor(o[1]/d)*d,p)],o),u}(f,r,s,u);this._intervalPrecision=p.intervalPrecision,this._interval=p.interval,this._niceExtent=p.niceTickExtent}},i.prototype.niceExtent=function(r){var s=this._extent;if(s[0]===s[1])if(0!==s[0]){var u=s[0];r.fixMax||(s[1]+=u/2),s[0]-=u/2}else s[1]=1;isFinite(s[1]-s[0])||(s[0]=0,s[1]=1),this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval);var d=this._interval;r.fixMin||(s[0]=Wo(Math.floor(s[0]/d)*d)),r.fixMax||(s[1]=Wo(Math.ceil(s[1]/d)*d))},i.type="interval",i}(du);du.registerClass(iL);var Vv=iL,aL="__ec_stack_",DT="undefined"!=typeof Float32Array?Float32Array:Array;function ow(o){return o.get("stack")||aL+o.seriesIndex}function AT(o){return o.dim+o.index}function sL(o,i){var r=[];return i.eachSeriesByType(o,function(s){wt(s)&&!Zt(s)&&r.push(s)}),r}function ET(o){var i=function(o){var i={};q(o,function(v){var m=v.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=v.getData(),b=m.dim+"_"+m.index,w=y.getDimensionIndex(y.mapDimension(m.dim)),S=y.getStore(),M=0,x=S.count();M0&&(f=null===f?p:Math.min(f,p))}r[s]=f}}return r}(o),r=[];return q(o,function(s){var p,f=s.coordinateSystem.getBaseAxis(),d=f.getExtent();if("category"===f.type)p=f.getBandWidth();else if("value"===f.type||"time"===f.type){var g=i[f.dim+"_"+f.index],m=Math.abs(d[1]-d[0]),y=f.scale.getExtent(),b=Math.abs(y[1]-y[0]);p=g?m/b*g:m}else{var w=s.getData();p=Math.abs(d[1]-d[0])/w.count()}var S=Fe(s.get("barWidth"),p),M=Fe(s.get("barMaxWidth"),p),x=Fe(s.get("barMinWidth")||1,p),T=s.get("barGap"),P=s.get("barCategoryGap");r.push({bandWidth:p,barWidth:S,barMaxWidth:M,barMinWidth:x,barGap:T,barCategoryGap:P,axisKey:AT(f),stackId:ow(s)})}),lL(r)}function lL(o){var i={};q(o,function(s,u){var f=s.axisKey,d=s.bandWidth,p=i[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},v=p.stacks;i[f]=p;var g=s.stackId;v[g]||p.autoWidthCount++,v[g]=v[g]||{width:0,maxWidth:0};var m=s.barWidth;m&&!v[g].width&&(v[g].width=m,m=Math.min(p.remainedWidth,m),p.remainedWidth-=m);var y=s.barMaxWidth;y&&(v[g].maxWidth=y);var b=s.barMinWidth;b&&(v[g].minWidth=b);var w=s.barGap;null!=w&&(p.gap=w);var S=s.barCategoryGap;null!=S&&(p.categoryGap=S)});var r={};return q(i,function(s,u){r[u]={};var f=s.stacks,d=s.bandWidth,p=s.categoryGap;if(null==p){var v=_n(f).length;p=Math.max(35-4*v,15)+"%"}var g=Fe(p,d),m=Fe(s.gap,1),y=s.remainedWidth,b=s.autoWidthCount,w=(y-g)/(b+(b-1)*m);w=Math.max(w,0),q(f,function(T){var P=T.maxWidth,O=T.minWidth;if(T.width){var R=T.width;P&&(R=Math.min(R,P)),O&&(R=Math.max(R,O)),T.width=R,y-=R+m*R,b--}else R=w,P&&PR&&(R=O),R!==w&&(T.width=R,y-=R+m*R,b--)}),w=(y-g)/(b+(b-1)*m),w=Math.max(w,0);var M,S=0;q(f,function(T,P){T.width||(T.width=w),M=T,S+=T.width*(1+m)}),M&&(S-=M.width*m);var x=-S/2;q(f,function(T,P){r[u][P]=r[u][P]||{bandWidth:d,offset:x,width:T.width},x+=T.width*(1+m)})}),r}function PT(o,i,r){if(o&&i){var s=o[AT(i)];return null!=s&&null!=r?s[ow(r)]:s}}function sw(o,i){var r=sL(o,i),s=ET(r),u={};q(r,function(f){var d=f.getData(),p=f.coordinateSystem,v=p.getBaseAxis(),g=ow(f),m=s[AT(v)][g],y=m.offset,b=m.width,w=p.getOtherAxis(v),S=f.get("barMinHeight")||0;u[g]=u[g]||[],d.setLayout({bandWidth:m.bandWidth,offset:y,size:b});for(var M=d.mapDimension(w.dim),x=d.mapDimension(v.dim),T=ac(d,M),P=w.isHorizontal(),O=Le(0,w),R=d.getStore(),V=d.getDimensionIndex(M),B=d.getDimensionIndex(x),U=0,j=R.count();U=0?"p":"n",te=O;T&&(u[g][Z]||(u[g][Z]={p:O,n:O}),te=u[g][Z][$]);var ge,ee=void 0,le=void 0,oe=void 0,de=void 0;P?(ee=te,le=(ge=p.dataToPoint([X,Z]))[1]+y,oe=ge[0]-O,de=b,Math.abs(oe).5||(y=.5),{progress:function(w,S){for(var O,M=w.count,x=new DT(2*M),T=new DT(2*M),P=new DT(M),R=[],V=[],B=0,U=0,j=S.getStore();null!=(O=w.next());)V[m]=j.get(p,O),V[1-m]=j.get(v,O),R=s.dataToPoint(V,null),T[B]=g?u.x+u.width:R[0],x[B++]=R[0],T[B]=g?R[1]:u.y+u.height,x[B++]=R[1],P[U++]=O;S.setLayout({largePoints:x,largeDataIndices:P,largeBackgroundPoints:T,barWidth:y,valueAxisStart:Le(0,d),backgroundStart:g?u.x:u.y,valueAxisHorizontal:g})}}}}};function wt(o){return o.coordinateSystem&&"cartesian2d"===o.coordinateSystem.type}function Zt(o){return o.pipelineContext&&o.pipelineContext.large}function Le(o,i,r){return i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0))}var OT=function(o){function i(r){var s=o.call(this,r)||this;return s.type="time",s}return he(i,o),i.prototype.getLabel=function(r){var s=this.getSetting("useUTC");return iu(r.value,gI[function(o){switch(o){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ru(this._minLevelUnit))]||gI.second,s,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(r,s,u){var f=this.getSetting("useUTC");return function(o,i,r,s,u){var f=null;if("string"==typeof r)f=r;else if("function"==typeof r)f=r(o.value,i,{level:o.level});else{var d=Se({},zm);if(o.level>0)for(var p=0;p=0;--p)if(v[g]){f=v[g];break}f=f||d.none}if(we(f)){var y=null==o.level?0:o.level>=0?o.level:f.length+o.level;f=f[y=Math.min(y,f.length-1)]}}return iu(new Date(o.value),f,u,s)}(r,s,u,this.getSetting("locale"),f)},i.prototype.getTicks=function(r){var u=this._extent,f=[];if(!this._interval)return f;f.push({value:u[0],level:0});var d=this.getSetting("useUTC"),p=function(o,i,r,s){var f=mI,d=0;function p(Z,$,te,ee,le,oe,de){for(var ge=new Date($),_e=$,xe=ge[ee]();_e1&&0===oe&&te.unshift({value:te[0].value-_e})}}for(oe=0;oe=s[0]&&P<=s[1]&&y++)}var O=(s[1]-s[0])/i;if(y>1.5*O&&b>O/1.5||(g.push(x),y>O||o===f[w]))break}m=[]}}var R=Yn(Te(g,function(Z){return Yn(Z,function($){return $.value>=s[0]&&$.value<=s[1]&&!$.notAdd})}),function(Z){return Z.length>0}),V=[],B=R.length-1;for(w=0;wu&&(this._approxInterval=u);var p=R_.length,v=Math.min(function(i,r,s,u){for(;s>>1;i[f][1]16?16:o>7.5?7:o>3.5?4:o>1.5?2:1}function ml(o){return(o/=2592e6)>6?6:o>3?3:o>2?2:1}function fU(o){return(o/=ds)>12?12:o>6?6:o>3.5?4:o>2?2:1}function wa(o,i){return(o/=i?6e4:1e3)>30?30:o>20?20:o>15?15:o>10?10:o>5?5:o>2?2:1}function Bv(o){return pm(o,!0)}function dU(o,i,r){var s=new Date(o);switch(ru(i)){case"year":case"month":s[Nz(r)](0);case"day":s[BM(r)](1);case"hour":s[HM(r)](0);case"minute":s[bI(r)](0);case"second":s[zM(r)](0),s[CI(r)](0)}return s.getTime()}du.registerClass(OT);var pU=OT,Hv=du.prototype,L_=Vv.prototype,IT=hi,vU=Math.floor,cL=Math.ceil,lw=Math.pow,Ss=Math.log,F_=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Vv,r._interval=0,r}return he(i,o),i.prototype.getTicks=function(r){var u=this._extent,f=this._originalScale.getExtent();return Te(L_.getTicks.call(this,r),function(p){var v=p.value,g=hi(lw(this.base,v));return g=v===u[0]&&this._fixMin?N_(g,f[0]):g,{value:g=v===u[1]&&this._fixMax?N_(g,f[1]):g}},this)},i.prototype.setExtent=function(r,s){var u=this.base;r=Ss(r)/Ss(u),s=Ss(s)/Ss(u),L_.setExtent.call(this,r,s)},i.prototype.getExtent=function(){var r=this.base,s=Hv.getExtent.call(this);s[0]=lw(r,s[0]),s[1]=lw(r,s[1]);var f=this._originalScale.getExtent();return this._fixMin&&(s[0]=N_(s[0],f[0])),this._fixMax&&(s[1]=N_(s[1],f[1])),s},i.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var s=this.base;r[0]=Ss(r[0])/Ss(s),r[1]=Ss(r[1])/Ss(s),Hv.unionExtent.call(this,r)},i.prototype.unionExtentFromData=function(r,s){this.unionExtent(r.getApproximateExtent(s))},i.prototype.niceTicks=function(r){r=r||10;var s=this._extent,u=s[1]-s[0];if(!(u===1/0||u<=0)){var f=Fd(u);for(r/u*f<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var p=[hi(cL(s[0]/f)*f),hi(vU(s[1]/f)*f)];this._interval=f,this._niceExtent=p}},i.prototype.niceExtent=function(r){L_.niceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.normalize=function(r){return aw(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.scale=function(r){return r=Nv(r,this._extent),lw(this.base,r)},i.type="log",i}(du),RT=F_.prototype;function N_(o,i){return IT(o,ns(i))}RT.getMinorTicks=L_.getMinorTicks,RT.getLabel=L_.getLabel,du.registerClass(F_);var uw=F_,LT=function(){function o(i,r,s){this._prepareParams(i,r,s)}return o.prototype._prepareParams=function(i,r,s){s[1]v&&(p=NaN,v=NaN);var y=Uu(p)||Uu(v)||i&&!u;this._needCrossZero&&(p>0&&v>0&&!g&&(p=0),p<0&&v<0&&!m&&(v=0));var b=this._determinedMin,w=this._determinedMax;return null!=b&&(p=b,g=!0),null!=w&&(v=w,m=!0),{min:p,max:v,minFixed:g,maxFixed:m,isBlank:y}},o.prototype.modifyDataMinMax=function(i,r){this[fL[i]]=r},o.prototype.setDeterminedMinMax=function(i,r){this[RZ[i]]=r},o.prototype.freeze=function(){this.frozen=!0},o}(),RZ={min:"_determinedMin",max:"_determinedMax"},fL={min:"_dataMin",max:"_dataMax"};function dL(o,i,r){var s=o.rawExtentInfo;return s||(s=new LT(o,i,r),o.rawExtentInfo=s,s)}function Bh(o,i){return null==i?null:Uu(i)?NaN:o.parse(i)}function V_(o,i){var r=o.type,s=dL(o,i,o.getExtent()).calculate();o.setBlank(s.isBlank);var u=s.min,f=s.max,d=i.ecModel;if(d&&"time"===r){var p=sL("bar",d),v=!1;if(q(p,function(y){v=v||y.getBaseAxis()===i.axis}),v){var g=ET(p),m=function(o,i,r,s){var u=r.axis.getExtent(),f=u[1]-u[0],d=PT(s,r.axis);if(void 0===d)return{min:o,max:i};var p=1/0;q(d,function(w){p=Math.min(w.offset,p)});var v=-1/0;q(d,function(w){v=Math.max(w.offset+w.width,v)}),p=Math.abs(p),v=Math.abs(v);var g=p+v,m=i-o,b=m/(1-(p+v)/f)-m;return{min:o-=b*(p/g),max:i+=b*(v/g)}}(u,f,i,g);u=m.min,f=m.max}}return{extent:[u,f],fixMin:s.minFixed,fixMax:s.maxFixed}}function Wf(o,i){var r=V_(o,i),s=r.extent,u=i.get("splitNumber");o instanceof uw&&(o.base=i.get("logBase"));var f=o.type;o.setExtent(s[0],s[1]),o.niceExtent({splitNumber:u,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:"interval"===f||"time"===f?i.get("minInterval"):null,maxInterval:"interval"===f||"time"===f?i.get("maxInterval"):null});var d=i.get("interval");null!=d&&o.setInterval&&o.setInterval(d)}function Hh(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getOrdinalMeta?o.getOrdinalMeta():o.getCategories(),extent:[1/0,-1/0]});case"time":return new pU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new(du.getClass(i)||Vv)}}function B_(o){var s,i=o.getLabelModel().get("formatter"),r="category"===o.type?o.scale.getExtent()[0]:null;return"time"===o.scale.type?(s=i,function(u,f){return o.scale.getFormattedLabel(u,f,s)}):"string"==typeof i?function(s){return function(u){var f=o.scale.getLabel(u);return s.replace("{value}",null!=f?f:"")}}(i):"function"==typeof i?function(s){return function(u,f){return null!=r&&(f=u.value-r),s(NT(o,u),f,null!=u.level?{level:u.level}:null)}}(i):function(s){return o.scale.getLabel(s)}}function NT(o,i){return"category"===o.type?o.scale.getLabel(i):i.value}function vL(o,i){var r=i*Math.PI/180,s=o.width,u=o.height,f=s*Math.abs(Math.cos(r))+Math.abs(u*Math.sin(r)),d=s*Math.abs(Math.sin(r))+Math.abs(u*Math.cos(r));return new Ft(o.x,o.y,f,d)}function cw(o){var i=o.get("interval");return null==i?"auto":i}function gL(o){return"category"===o.type&&0===cw(o.getLabelModel())}function H_(o,i){var r={};return q(o.mapDimensionsAll(i),function(s){r[MT(o,s)]=!0}),_n(r)}var zv=function(){function o(){}return o.prototype.getNeedCrossZero=function(){return!this.option.scale},o.prototype.getCoordSysModel=function(){},o}();function gU(o){return gl(null,o)}var _L={isDimensionStacked:ac,enableDataStack:J2,getStackedDimension:MT};function mU(o,i){var r=i;i instanceof Nn||(r=new Nn(i));var s=Hh(r);return s.setExtent(o[0],o[1]),Wf(s,r),s}function yL(o){qr(o,zv)}function bL(o,i){return Or(o,null,null,"normal"!==(i=i||{}).state)}function CL(o,i,r,s,u,f,d,p){return new fn({style:{text:o,font:i,align:r,verticalAlign:s,padding:u,rich:f,overflow:d?"truncate":null,lineHeight:p}}).getBoundingRect()}var Uv=pn();function VT(o,i){var f,d,r=wL(o,"labels"),s=cw(i);return SL(r,s)||(An(s)?f=xU(o,s):(d="auto"===s?function(o){var i=Uv(o).autoInterval;return null!=i?i:Uv(o).autoInterval=o.calculateCategoryInterval()}(o):s,f=MU(o,d)),kL(r,s,{labels:f,labelCategoryInterval:d}))}function wL(o,i){return Uv(o)[i]||(Uv(o)[i]=[])}function SL(o,i){for(var r=0;r1&&m/v>2&&(g=Math.round(Math.ceil(g/v)*v));var y=gL(o),b=d.get("showMinLabel")||y,w=d.get("showMaxLabel")||y;b&&g!==f[0]&&M(f[0]);for(var S=g;S<=f[1];S+=v)M(S);function M(x){var T={value:x};p.push(r?x:{formattedLabel:s(T),rawLabel:u.getLabel(T),tickValue:x})}return w&&S-v!==f[1]&&M(f[1]),p}function xU(o,i,r){var s=o.scale,u=B_(o),f=[];return q(s.getTicks(),function(d){var p=s.getLabel(d),v=d.value;i(d.value,p)&&f.push(r?v:{formattedLabel:u(d),rawLabel:p,tickValue:v})}),f}var TU=[0,1];function DU(o,i){var u=(o[1]-o[0])/i/2;o[0]+=u,o[1]-=u}var _l=function(){function o(i,r,s){this.onBand=!1,this.inverse=!1,this.dim=i,this.scale=r,this._extent=s||[0,0]}return o.prototype.contain=function(i){var r=this._extent,s=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]);return i>=s&&i<=u},o.prototype.containData=function(i){return this.scale.contain(i)},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.getPixelPrecision=function(i){return o0(i||this.scale.getExtent(),this._extent)},o.prototype.setExtent=function(i,r){var s=this._extent;s[0]=i,s[1]=r},o.prototype.dataToCoord=function(i,r){var s=this._extent,u=this.scale;return i=u.normalize(i),this.onBand&&"ordinal"===u.type&&DU(s=s.slice(),u.count()),bn(i,TU,s,r)},o.prototype.coordToData=function(i,r){var s=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&DU(s=s.slice(),u.count());var f=bn(i,s,TU,r);return this.scale.scale(f)},o.prototype.pointToData=function(i,r){},o.prototype.getTicksCoords=function(i){var r=(i=i||{}).tickModel||this.getTickModel(),f=Te(function(o,i){return"category"===o.type?function(o,i){var f,d,r=wL(o,"ticks"),s=cw(i),u=SL(r,s);if(u)return u;if((!i.get("show")||o.scale.isBlank())&&(f=[]),An(s))f=xU(o,s,!0);else if("auto"===s){var p=VT(o,o.getLabelModel());d=p.labelCategoryInterval,f=Te(p.labels,function(v){return v.tickValue})}else f=MU(o,d=s,!0);return kL(r,s,{ticks:f,tickCategoryInterval:d})}(o,i):{ticks:Te(o.scale.getTicks(),function(r){return r.value})}}(this,r).ticks,function(p){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(p):p),tickValue:p}},this);return function(o,i,r,s){var u=i.length;if(o.onBand&&!r&&u){var d,f=o.getExtent();if(1===u)i[0].coord=f[0],d=i[1]={coord:f[0]};else{var g=(i[u-1].coord-i[0].coord)/(i[u-1].tickValue-i[0].tickValue);q(i,function(w){w.coord-=g/2});var m=o.scale.getExtent();i.push(d={coord:i[u-1].coord+g*(1+m[1]-i[u-1].tickValue)})}var y=f[0]>f[1];b(i[0].coord,f[0])&&(s?i[0].coord=f[0]:i.shift()),s&&b(f[0],i[0].coord)&&i.unshift({coord:f[0]}),b(f[1],d.coord)&&(s?d.coord=f[1]:i.pop()),s&&b(d.coord,f[1])&&i.push({coord:f[1]})}function b(w,S){return w=hi(w),S=hi(S),y?w>S:w0&&r<100||(r=5),Te(this.scale.getMinorTicks(r),function(f){return Te(f,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this)},o.prototype.getViewLabels=function(){return function(o){return"category"===o.type?function(o){var i=o.getLabelModel(),r=VT(o,i);return!i.get("show")||o.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}(o):function(o){var i=o.scale.getTicks(),r=B_(o);return{labels:Te(i,function(s,u){return{formattedLabel:r(s,u),rawLabel:o.scale.getLabel(s),tickValue:s.value}})}}(o)}(this).labels},o.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},o.prototype.getTickModel=function(){return this.model.getModel("axisTick")},o.prototype.getBandWidth=function(){var i=this._extent,r=this.scale.getExtent(),s=r[1]-r[0]+(this.onBand?1:0);0===s&&(s=1);var u=Math.abs(i[1]-i[0]);return Math.abs(u)/s},o.prototype.calculateCategoryInterval=function(){return function(o){var i=function(o){var i=o.getLabelModel();return{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}}(o),r=B_(o),s=(i.axisRotate-i.labelRotate)/180*Math.PI,u=o.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=1;d>40&&(p=Math.max(1,Math.floor(d/40)));for(var v=f[0],g=o.dataToCoord(v+1)-o.dataToCoord(v),m=Math.abs(g*Math.cos(s)),y=Math.abs(g*Math.sin(s)),b=0,w=0;v<=f[1];v+=p){var M,x=um(r({value:v}),i.font,"center","top");M=1.3*x.height,b=Math.max(b,1.3*x.width,7),w=Math.max(w,M,7)}var T=b/m,P=w/y;isNaN(T)&&(T=1/0),isNaN(P)&&(P=1/0);var O=Math.max(0,Math.floor(Math.min(T,P))),R=Uv(o.model),V=o.getExtent(),B=R.lastAutoInterval,U=R.lastTickCount;return null!=B&&null!=U&&Math.abs(B-O)<=1&&Math.abs(U-d)<=1&&B>O&&R.axisExtent0===V[0]&&R.axisExtent1===V[1]?O=B:(R.lastTickCount=d,R.lastAutoInterval=O,R.axisExtent0=V[0],R.axisExtent1=V[1]),O}(this)},o}();function VZ(o){var i=qt.extend(o);return qt.registerClass(i),i}function BZ(o){var i=un.extend(o);return un.registerClass(i),i}function AU(o){var i=vt.extend(o);return vt.registerClass(i),i}function EU(o){var i=Vn.extend(o);return Vn.registerClass(i),i}var z_=2*Math.PI,Gv=Qs.CMD,HZ=["top","right","bottom","left"];function zZ(o,i,r,s,u){var f=r.width,d=r.height;switch(o){case"top":s.set(r.x+f/2,r.y-i),u.set(0,-1);break;case"bottom":s.set(r.x+f/2,r.y+d+i),u.set(0,1);break;case"left":s.set(r.x-i,r.y+d/2),u.set(-1,0);break;case"right":s.set(r.x+f+i,r.y+d/2),u.set(1,0)}}function PU(o,i,r,s,u,f,d,p,v){d-=o,p-=i;var g=Math.sqrt(d*d+p*p),m=(d/=g)*r+o,y=(p/=g)*r+i;if(Math.abs(s-u)%z_<1e-4)return v[0]=m,v[1]=y,g-r;if(f){var b=s;s=Gt(u),u=Gt(b)}else s=Gt(s),u=Gt(u);s>u&&(u+=z_);var w=Math.atan2(p,d);if(w<0&&(w+=z_),w>=s&&w<=u||w+z_>=s&&w+z_<=u)return v[0]=m,v[1]=y,g-r;var S=r*Math.cos(s)+o,M=r*Math.sin(s)+i,x=r*Math.cos(u)+o,T=r*Math.sin(u)+i,P=(S-d)*(S-d)+(M-p)*(M-p),O=(x-d)*(x-d)+(T-p)*(T-p);return P0){i=i/180*Math.PI,hu.fromArray(o[0]),ar.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,hu,ar),Tt.sub(fo,ci,ar);var r=pu.len(),s=fo.len();if(!(r<.001||s<.001)){pu.scale(1/r),fo.scale(1/s);var u=pu.dot(fo);if(Math.cos(i)1&&Tt.copy(ja,ci),ja.toArray(o[1])}}}}function BT(o,i,r){if(r<=180&&r>0){r=r/180*Math.PI,hu.fromArray(o[0]),ar.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,ar,hu),Tt.sub(fo,ci,ar);var s=pu.len(),u=fo.len();if(!(s<.001||u<.001)&&(pu.scale(1/s),fo.scale(1/u),pu.dot(i)=v)Tt.copy(ja,ci);else{ja.scaleAndAdd(fo,p/Math.tan(Math.PI/2-m));var y=ci.x!==ar.x?(ja.x-ar.x)/(ci.x-ar.x):(ja.y-ar.y)/(ci.y-ar.y);if(isNaN(y))return;y<0?Tt.copy(ja,ar):y>1&&Tt.copy(ja,ci)}ja.toArray(o[1])}}}function HT(o,i,r,s){var u="normal"===r,f=u?o:o.ensureState(r);f.ignore=i;var d=s.get("smooth");d&&!0===d&&(d=.3),f.shape=f.shape||{},d>0&&(f.shape.smooth=d);var p=s.getModel("lineStyle").getLineStyle();u?o.useStyle(p):f.style=p}function jv(o,i){var r=i.smooth,s=i.points;if(s)if(o.moveTo(s[0][0],s[0][1]),r>0&&s.length>=3){var u=Vs(s[0],s[1]),f=Vs(s[1],s[2]);if(!u||!f)return o.lineTo(s[1][0],s[1][1]),void o.lineTo(s[2][0],s[2][1]);var d=Math.min(u,f)*r,p=Cd([],s[1],s[0],d/u),v=Cd([],s[1],s[2],d/f),g=Cd([],p,v,.5);o.bezierCurveTo(p[0],p[1],p[0],p[1],g[0],g[1]),o.bezierCurveTo(v[0],v[1],v[0],v[1],s[2][0],s[2][1])}else for(var m=1;m0&&f&&B(-y/d,0,d);var P,O,x=o[0],T=o[d-1];return R(),P<0&&U(-P,.8),O<0&&U(O,.8),R(),V(P,O,1),V(O,P,-1),R(),P<0&&j(-P),O<0&&j(O),g}function R(){P=x.rect[i]-s,O=u-T.rect[i]-T.rect[r]}function V(X,Z,$){if(X<0){var te=Math.min(Z,-X);if(te>0){B(te*$,0,d);var ee=te+X;ee<0&&U(-ee*$,1)}else U(-X*$,1)}}function B(X,Z,$){0!==X&&(g=!0);for(var te=Z;te<$;te++){var ee=o[te];ee.rect[i]+=X,ee.label[i]+=X}}function U(X,Z){for(var $=[],te=0,ee=1;ee0)for(ee=0;ee0;ee--)B(-$[ee-1]*de,ee,d)}}function j(X){var Z=X<0?-1:1;X=Math.abs(X);for(var $=Math.ceil(X/(d-1)),te=0;te0?B($,0,te+1):B(-$,d-te-1,d),(X-=$)<=0)return}}function IU(o,i,r,s){return vu(o,"y","height",i,r,s)}function jZ(o){if(o){for(var i=[],r=0;r=0&&s.attr(f.oldLayoutSelect),Rt(b,"emphasis")>=0&&s.attr(f.oldLayoutEmphasis)),ln(s,g,r,v)}else if(s.attr(g),!W0(s).valueAnimation){var y=ot(s.style.opacity,1);s.style.opacity=0,yr(s,{style:{opacity:y}},r,v)}if(f.oldLayout=g,s.states.select){var w=f.oldLayoutSelect={};UT(w,g,Wv),UT(w,s.states.select,Wv)}if(s.states.emphasis){var S=f.oldLayoutEmphasis={};UT(S,g,Wv),UT(S,s.states.emphasis,Wv)}Nm(s,v,m,r,r)}if(u&&!u.ignore&&!u.invisible){var f=WZ(u),M={points:u.shape.points};(d=f.oldLayout)?(u.attr({shape:d}),ln(u,{shape:M},r)):(u.setShape(M),u.style.strokePercent=0,yr(u,{style:{strokePercent:1}},r)),f.oldLayout=M}},o}(),GT=pn();function AL(o){o.registerUpdateLifecycle("series:beforeupdate",function(i,r,s){var u=GT(r).labelManager;u||(u=GT(r).labelManager=new YZ),u.clearLabels()}),o.registerUpdateLifecycle("series:layoutlabels",function(i,r,s){var u=GT(r).labelManager;s.updatedSeries.forEach(function(f){u.addLabelsOfSeries(r.getViewOfSeriesModel(f))}),u.updateLayoutConfig(r),u.layout(r),u.processLabelsOverall()})}function qZ(){return!1}function jT(o,i,r){var s=md(),u=i.getWidth(),f=i.getHeight(),d=s.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=u+"px",d.height=f+"px",s.setAttribute("data-zr-dom-id",o)),s.width=u*r,s.height=f*r,s}Ot(AL);var EL=function(o){function i(r,s,u){var d,f=o.call(this)||this;f.motionBlur=!1,f.lastFrameAlpha=.7,f.dpr=1,f.virtual=!1,f.config={},f.incremental=!1,f.zlevel=0,f.maxRepaintRectCount=5,f.__dirty=!0,f.__firstTimePaint=!0,f.__used=!1,f.__drawIndex=0,f.__startIndex=0,f.__endIndex=0,f.__prevStartIndex=null,f.__prevEndIndex=null,u=u||Kb,"string"==typeof r?d=jT(r,s,u):at(r)&&(r=(d=r).id),f.id=r,f.dom=d;var p=d.style;return p&&(d.onselectstart=qZ,p.webkitUserSelect="none",p.userSelect="none",p.webkitTapHighlightColor="rgba(0,0,0,0)",p["-webkit-touch-callout"]="none",p.padding="0",p.margin="0",p.borderWidth="0"),f.domBack=null,f.ctxBack=null,f.painter=s,f.config=null,f.dpr=u,f}return Ln(i,o),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=jT("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},i.prototype.createRepaintRects=function(r,s,u,f){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var x,d=[],p=this.maxRepaintRectCount,v=!1,g=new Ft(0,0,0,0);function m(P){if(P.isFinite()&&!P.isZero())if(0===d.length)(O=new Ft(0,0,0,0)).copy(P),d.push(O);else{for(var R=!1,V=1/0,B=0,U=0;U=p)}}for(var y=this.__startIndex;y15)break}de.prevElClipPaths&&P.restore()};if(O)if(0===O.length)X=T.__endIndex;else for(var $=w.dpr,te=0;te0&&i>u[0]){for(v=0;vi);v++);p=s[u[v]]}if(u.splice(v+1,0,i),s[i]=r,!r.virtual)if(p){var g=p.dom;g.nextSibling?d.insertBefore(r.dom,g.nextSibling):d.appendChild(r.dom)}else d.firstChild?d.insertBefore(r.dom,d.firstChild):d.appendChild(r.dom);r.__painter=this}else Ns("Layer of zlevel "+i+" is not valid")},o.prototype.eachLayer=function(i,r){for(var s=this._zlevelList,u=0;u0?.01:0),this._needsManuallyCompositing),m.__builtin__||Ns("ZLevel "+g+" has been used by unkown layer "+m.id),m!==f&&(m.__used=!0,m.__startIndex!==v&&(m.__dirty=!0),m.__startIndex=v,m.__drawIndex=m.incremental?-1:v,r(v),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=v))}r(v),this.eachBuiltinLayer(function(y,b){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},o.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},o.prototype._clearLayer=function(i){i.clear()},o.prototype.setBackgroundColor=function(i){this._backgroundColor=i,q(this._layers,function(r){r.setUnpainted()})},o.prototype.configLayer=function(i,r){if(r){var s=this._layerConfig;s[i]?He(s[i],r,!0):s[i]=r;for(var u=0;u-1){var r=La(o);r&&(o="rgb("+r[0]+","+r[1]+","+r[2]+")",i=r[3])}}else o="none";return{color:o,opacity:null==i?1:i}}function gw(o,i,r,s,u){for(var f=i.length,d=r.length,p=o.newPos,v=p-s,g=0;p+1-1e-4}function ZT(o,i){i&&Rr(o,"transform","matrix("+ho(i[0])+","+ho(i[1])+","+ho(i[2])+","+ho(i[3])+","+sc(i[4])+","+sc(i[5])+")")}function Rr(o,i,r){(!r||"linear"!==r.type&&"radial"!==r.type)&&o.setAttribute(i,r)}function KT(o,i,r){var s=null==i.opacity?1:i.opacity;if(r instanceof si)o.style.opacity=s+"";else{if(function(o){var i=o.fill;return null!=i&&i!==U_}(i)){var u=vw(i.fill);Rr(o,"fill",u.color),Rr(o,"fill-opacity",(null!=i.fillOpacity?i.fillOpacity*u.opacity*s:u.opacity*s)+"")}else Rr(o,"fill",U_);if(function(o){var i=o.stroke;return null!=i&&i!==U_}(i)){var f=vw(i.stroke);Rr(o,"stroke",f.color);var d=i.lineWidth,p=i.strokeNoScale?r.getLineScale():1;Rr(o,"stroke-width",(p?d/p:0)+""),Rr(o,"paint-order",i.strokeFirst?"stroke":"fill"),Rr(o,"stroke-opacity",(null!=i.strokeOpacity?i.strokeOpacity*f.opacity*s:f.opacity*s)+"");var v=i.lineDash&&d>0&&Xx(i.lineDash,d);if(v){var g=i.lineDashOffset;p&&1!==p&&(v=Te(v,function(m){return m/p}),g&&(g=mw(g/=p))),Rr(o,"stroke-dasharray",v.join(",")),Rr(o,"stroke-dashoffset",(g||0)+"")}else Rr(o,"stroke-dasharray","");i.lineCap&&Rr(o,"stroke-linecap",i.lineCap),i.lineJoin&&Rr(o,"stroke-linejoin",i.lineJoin),i.miterLimit&&Rr(o,"stroke-miterlimit",i.miterLimit+"")}else Rr(o,"stroke",U_)}}var LL=function(){function o(){}return o.prototype.reset=function(){this._d=[],this._str=""},o.prototype.moveTo=function(i,r){this._add("M",i,r)},o.prototype.lineTo=function(i,r){this._add("L",i,r)},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){this._add("C",i,r,s,u,f,d)},o.prototype.quadraticCurveTo=function(i,r,s,u){this._add("Q",i,r,s,u)},o.prototype.arc=function(i,r,s,u,f,d){this.ellipse(i,r,s,s,0,u,f,d)},o.prototype.ellipse=function(i,r,s,u,f,d,p,v){var g=0===this._d.length,m=p-d,y=!v,b=Math.abs(m),w=jU(b-oc)||(y?m>=oc:-m>=oc),S=m>0?m%oc:m%oc+oc,M=!1;M=!!w||!jU(b)&&S>=XT==!!y;var x=sc(i+s*_w(d)),T=sc(r+u*IL(d));w&&(m=y?oc-1e-4:1e-4-oc,M=!0,g&&this._d.push("M",x,T));var P=sc(i+s*_w(d+m)),O=sc(r+u*IL(d+m));if(isNaN(x)||isNaN(T)||isNaN(s)||isNaN(u)||isNaN(f)||isNaN(yw)||isNaN(P)||isNaN(O))return"";this._d.push("A",sc(s),sc(u),mw(f*yw),+M,+y,P,O)},o.prototype.rect=function(i,r,s,u){this._add("M",i,r),this._add("L",i+s,r),this._add("L",i+s,r+u),this._add("L",i,r+u),this._add("L",i,r),this._add("Z")},o.prototype.closePath=function(){this._d.length>0&&this._add("Z")},o.prototype._add=function(i,r,s,u,f,d,p,v,g){this._d.push(i);for(var m=1;m=0;--p)if(d[p]===f)return!0;return!1}),u}return null}return s[0]},o.prototype.doUpdate=function(i,r){if(i){var s=this.getDefs(!1);if(i[this._domName]&&s.contains(i[this._domName]))"function"==typeof r&&r(i);else{var u=this.add(i);u&&(i[this._domName]=u)}}},o.prototype.add=function(i){return null},o.prototype.addDom=function(i){var r=this.getDefs(!0);i.parentNode!==r&&r.appendChild(i)},o.prototype.removeDom=function(i){var r=this.getDefs(!1);r&&i[this._domName]&&(r.removeChild(i[this._domName]),i[this._domName]=null)},o.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var r=[];return q(this._tagNames,function(s){for(var u=i.getElementsByTagName(s),f=0;f-1){var g=La(v)[3],m=uO(v);p.setAttribute("stop-color","#"+m),p.setAttribute("stop-opacity",g+"")}else p.setAttribute("stop-color",u[f].color);s.appendChild(p)}r.__dom=s},i.prototype.markUsed=function(r){if(r.style){var s=r.style.fill;s&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom),(s=r.style.stroke)&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom)}},i}(bw);function qf(o){return o&&(!!o.image||!!o.svgElement)}var ww=new Tx,$Z=function(o){function i(r,s){return o.call(this,r,s,["pattern"],"__pattern_in_use__")||this}return Ln(i,o),i.prototype.addWithoutUpdate=function(r,s){if(s&&s.style){var u=this;q(["fill","stroke"],function(f){var d=s.style[f];if(qf(d)){var p=u.getDefs(!0),v=ww.get(d);v?p.contains(v)||u.addDom(v):v=u.add(d),u.markUsed(s);var g=v.getAttribute("id");r.setAttribute(f,"url(#"+g+")")}})}},i.prototype.add=function(r){if(qf(r)){var s=this.createElement("pattern");return r.id=null==r.id?this.nextId++:r.id,s.setAttribute("id","zr"+this._zrId+"-pattern-"+r.id),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(r,s),this.addDom(s),s}},i.prototype.update=function(r){if(qf(r)){var s=this;this.doUpdate(r,function(){var u=ww.get(r);s.updateDom(r,u)})}},i.prototype.updateDom=function(r,s){var u=r.svgElement;if(u instanceof SVGElement)u.parentNode!==s&&(s.innerHTML="",s.appendChild(u),s.setAttribute("width",r.svgWidth+""),s.setAttribute("height",r.svgHeight+""));else{var f=void 0,d=s.getElementsByTagName("image");if(d.length){if(!r.image)return void s.removeChild(d[0]);f=d[0]}else r.image&&(f=this.createElement("image"));if(f){var p=void 0,v=r.image;if("string"==typeof v?p=v:v instanceof HTMLImageElement?p=v.src:v instanceof HTMLCanvasElement&&(p=v.toDataURL()),p){f.setAttribute("href",p),f.setAttribute("x","0"),f.setAttribute("y","0");var m=zd(p,f,{dirty:function(){}},function(T){s.setAttribute("width",T.width+""),s.setAttribute("height",T.height+"")});m&&m.width&&m.height&&(s.setAttribute("width",m.width+""),s.setAttribute("height",m.height+"")),s.appendChild(f)}}}var w=(r.rotation||0)/Math.PI*180;s.setAttribute("patternTransform","translate("+(r.x||0)+", "+(r.y||0)+") rotate("+w+") scale("+(r.scaleX||1)+", "+(r.scaleY||1)+")"),ww.set(r,s)},i.prototype.markUsed=function(r){r.style&&(qf(r.style.fill)&&o.prototype.markDomUsed.call(this,ww.get(r.style.fill)),qf(r.style.stroke)&&o.prototype.markDomUsed.call(this,ww.get(r.style.stroke)))},i}(bw);function eD(o){var i=o.__clipPaths;return i&&i.length>0}var QU=function(o){function i(r,s){var u=o.call(this,r,s,"clipPath","__clippath_in_use__")||this;return u._refGroups={},u._keyDuplicateCount={},u}return Ln(i,o),i.prototype.markAllUnused=function(){o.prototype.markAllUnused.call(this);var r=this._refGroups;for(var s in r)r.hasOwnProperty(s)&&this.markDomUnused(r[s]);this._keyDuplicateCount={}},i.prototype._getClipPathGroup=function(r,s){if(eD(r)){var u=r.__clipPaths,f=this._keyDuplicateCount,d=function(o){var i=[];if(o)for(var r=0;r0){var u=this.getDefs(!0),f=s[0],d=void 0,p=void 0;f._dom?(p=f._dom.getAttribute("id"),u.contains(d=f._dom)||u.appendChild(d)):(p="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(d=this.createElement("clipPath")).setAttribute("id",p),u.appendChild(d),f._dom=d),this.getSvgProxy(f).brush(f);var g=this.getSvgElement(f);d.innerHTML="",d.appendChild(g),r.setAttribute("clip-path","url(#"+p+")"),s.length>1&&this.updateDom(d,s.slice(1))}else r&&r.setAttribute("clip-path","none")},i.prototype.markUsed=function(r){var s=this;r.__clipPaths&&q(r.__clipPaths,function(u){u._dom&&o.prototype.markDomUsed.call(s,u._dom)})},i.prototype.removeUnused=function(){o.prototype.removeUnused.call(this);var r={},s=this._refGroups;for(var u in s)if(s.hasOwnProperty(u)){var f=s[u];this.isDomUnused(f)?f.parentNode&&f.parentNode.removeChild(f):r[u]=f}this._refGroups=r},i}(bw),eG=function(o){function i(r,s){var u=o.call(this,r,s,["filter"],"__filter_in_use__","_shadowDom")||this;return u._shadowDomMap={},u._shadowDomPool=[],u}return Ln(i,o),i.prototype._getFromPool=function(){var r=this._shadowDomPool.pop();if(!r){(r=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var s=this.createElement("feDropShadow");r.appendChild(s),this.addDom(r)}return r},i.prototype.update=function(r,s){if(function(o){return o&&(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)}(s.style)){var f=function(o){var i=o.style,r=o.getGlobalScale();return[i.shadowColor,(i.shadowBlur||0).toFixed(2),(i.shadowOffsetX||0).toFixed(2),(i.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}(s),d=s._shadowDom=this._shadowDomMap[f];d||(d=this._getFromPool(),this._shadowDomMap[f]=d),this.updateDom(r,s,d)}else this.remove(r,s)},i.prototype.remove=function(r,s){null!=s._shadowDom&&(s._shadowDom=null,r.style.filter="")},i.prototype.updateDom=function(r,s,u){var f=u.children[0],d=s.style,p=s.getGlobalScale(),v=p[0],g=p[1];if(v&&g){var m=d.shadowOffsetX||0,y=d.shadowOffsetY||0,b=d.shadowBlur,w=vw(d.shadowColor);f.setAttribute("dx",m/v+""),f.setAttribute("dy",y/g+""),f.setAttribute("flood-color",w.color),f.setAttribute("flood-opacity",w.opacity+""),f.setAttribute("stdDeviation",b/2/v+" "+b/2/g),u.setAttribute("x","-100%"),u.setAttribute("y","-100%"),u.setAttribute("width","300%"),u.setAttribute("height","300%"),s._shadowDom=u;var T=u.getAttribute("id");r.style.filter="url(#"+T+")"}},i.prototype.removeUnused=function(){if(this.getDefs(!1)){var s=this._shadowDomPool,u=this._shadowDomMap;for(var f in u)u.hasOwnProperty(f)&&s.push(u[f]);this._shadowDomMap={}}},i}(bw);function Sw(o){return parseInt(o,10)}function nG(o){return o instanceof Nt?Yv:o instanceof si?FL:o instanceof Xp?XU:Yv}function rG(o,i){return i&&o&&i.parentNode!==o}function kw(o,i,r){if(rG(o,i)&&r){var s=r.nextSibling;s?o.insertBefore(i,s):o.appendChild(i)}}function iG(o,i){if(rG(o,i)){var r=o.firstChild;r?o.insertBefore(i,r):o.appendChild(i)}}function aG(o,i){i&&o&&i.parentNode===o&&o.removeChild(i)}function oG(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function G_(o){return o.__svgEl}function zL(o){return function(){Ns('In SVG mode painter not support method "'+o+'"')}}var sG=function(){function o(i,r,s,u){this.type="svg",this.refreshHover=zL("refreshHover"),this.pathToImage=zL("pathToImage"),this.configLayer=zL("configLayer"),this.root=i,this.storage=r,this._opts=s=Se({},s||{});var f=bl("svg");f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),f.setAttribute("version","1.1"),f.setAttribute("baseProfile","full"),f.style.cssText="user-select:none;position:absolute;left:0;top:0;";var d=bl("g");f.appendChild(d);var p=bl("g");f.appendChild(p),this._gradientManager=new KU(u,p),this._patternManager=new $Z(u,p),this._clipPathManager=new QU(u,p),this._shadowManager=new eG(u,p);var v=document.createElement("div");v.style.cssText="overflow:hidden;position:relative",this._svgDom=f,this._svgRoot=p,this._backgroundRoot=d,this._viewport=v,i.appendChild(v),v.appendChild(f),this.resize(s.width,s.height),this._visibleList=[]}return o.prototype.getType=function(){return"svg"},o.prototype.getViewportRoot=function(){return this._viewport},o.prototype.getSvgDom=function(){return this._svgDom},o.prototype.getSvgRoot=function(){return this._svgRoot},o.prototype.getViewportRootOffset=function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},o.prototype.refresh=function(){var i=this.storage.getDisplayList(!0);this._paintList(i)},o.prototype.setBackgroundColor=function(i){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var r=bl("rect");r.setAttribute("width",this.getWidth()),r.setAttribute("height",this.getHeight()),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("id",0);var s=vw(i),f=s.opacity;r.setAttribute("fill",s.color),r.setAttribute("fill-opacity",f),this._backgroundRoot.appendChild(r),this._backgroundNode=r},o.prototype.createSVGElement=function(i){return bl(i)},o.prototype.paintOne=function(i){var r=nG(i);return r&&r.brush(i),G_(i)},o.prototype._paintList=function(i){var r=this._gradientManager,s=this._patternManager,u=this._clipPathManager,f=this._shadowManager;r.markAllUnused(),s.markAllUnused(),u.markAllUnused(),f.markAllUnused();for(var d=this._svgRoot,p=this._visibleList,v=i.length,g=[],m=0;m=s&&v+1>=u){for(var g=[],m=0;m=s&&T+1>=u)return OL(S.components);p[w]=S}else p[w]=void 0}f++}for(;f<=d;){var b=y();if(b)return b}}(o,i,r)}(p,g);for(m=0;m\n\r<"))},o}(),UL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(r){var s=new ct,u=Ir("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);s.add(u),u.setStyle(r.lineStyle);var f=this.getData().getVisual("symbol"),d=this.getData().getVisual("symbolRotate"),p="none"===f?"circle":f,v=.8*r.itemHeight,g=Ir(p,(r.itemWidth-v)/2,(r.itemHeight-v)/2,v,v,r.itemStyle.fill);return s.add(g),g.setStyle(r.itemStyle),g.rotation=("inherit"===r.iconRotate?d:r.iconRotate||0)*Math.PI/180,g.setOrigin([r.itemWidth/2,r.itemHeight/2]),p.indexOf("empty")>-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),s},i.type="series.line",i.dependencies=["grid","polar"],i.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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"}},i}(vt);function Xf(o,i){var r=o.mapDimensionsAll("defaultedLabel"),s=r.length;if(1===s){var u=zo(o,i,r[0]);return null!=u?u+"":null}if(s){for(var f=[],d=0;d=0&&s.push(i[f])}return s.join(" ")}function xw(o,i){this.parent.drift(o,i)}var j_=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d.updateData(r,s,u,f),d}return he(i,o),i.prototype._createSymbol=function(r,s,u,f,d){this.removeAll();var p=Ir(r,-1,-1,2,2,null,d);p.attr({z2:100,culling:!0,scaleX:f[0]/2,scaleY:f[1]/2}),p.drift=xw,this._symbolType=r,this.add(p)},i.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){Js(this.childAt(0))},i.prototype.downplay=function(){eu(this.childAt(0))},i.prototype.setZ=function(r,s){var u=this.childAt(0);u.zlevel=r,u.z=s},i.prototype.setDraggable=function(r){var s=this.childAt(0);s.draggable=r,s.cursor=r?"move":s.cursor},i.prototype.updateData=function(r,s,u,f){this.silent=!1;var d=r.getItemVisual(s,"symbol")||"circle",p=r.hostModel,v=i.getSymbolSize(r,s),g=d!==this._symbolType,m=f&&f.disableAnimation;if(g){var y=r.getItemVisual(s,"symbolKeepAspect");this._createSymbol(d,r,s,v,y)}else{(b=this.childAt(0)).silent=!1;var w={scaleX:v[0]/2,scaleY:v[1]/2};m?b.attr(w):ln(b,w,p,s),el(b)}if(this._updateCommon(r,s,v,u,f),g){var b=this.childAt(0);m||(w={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:b.style.opacity}},b.scaleX=b.scaleY=0,b.style.opacity=0,yr(b,w,p,s))}m&&this.childAt(0).stopAnimation("remove"),this._seriesModel=p},i.prototype._updateCommon=function(r,s,u,f,d){var g,m,y,b,w,S,M,x,p=this.childAt(0),v=r.hostModel;if(f&&(g=f.emphasisItemStyle,m=f.blurItemStyle,y=f.selectItemStyle,b=f.focus,w=f.blurScope,S=f.labelStatesModels,M=f.hoverScale,x=f.cursorStyle),!f||r.hasItemOption){var T=f&&f.itemModel?f.itemModel:r.getItemModel(s),P=T.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),b=P.get("focus"),w=P.get("blurScope"),S=lr(T),M=P.getShallow("scale"),x=T.getShallow("cursor")}var O=r.getItemVisual(s,"symbolRotate");p.attr("rotation",(O||0)*Math.PI/180||0);var R=Ah(r.getItemVisual(s,"symbolOffset"),u);R&&(p.x=R[0],p.y=R[1]),x&&p.attr("cursor",x);var V=r.getItemVisual(s,"style"),B=V.fill;if(p instanceof si){var U=p.style;p.useStyle(Se({image:U.image,x:U.x,y:U.y,width:U.width,height:U.height},V))}else p.useStyle(p.__isEmptyBrush?Se({},V):V),p.style.decal=null,p.setColor(B,d&&d.symbolInnerColor),p.style.strokeNoScale=!0;var j=r.getItemVisual(s,"liftZ"),X=this._z2;null!=j?null==X&&(this._z2=p.z2,p.z2+=j):null!=X&&(p.z2=X,this._z2=null);var Z=d&&d.useNameLabel;Mi(p,S,{labelFetcher:v,labelDataIndex:s,defaultText:function(le){return Z?r.getName(le):Xf(r,le)},inheritColor:B,defaultOpacity:V.opacity}),this._sizeX=u[0]/2,this._sizeY=u[1]/2;var te=p.ensureState("emphasis");if(te.style=g,p.ensureState("select").style=y,p.ensureState("blur").style=m,M){var ee=Math.max(1.1,3/this._sizeY);te.scaleX=this._sizeX*ee,te.scaleY=this._sizeY*ee}this.setSymbolScale(1),qn(this,b,w)},i.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},i.prototype.fadeOut=function(r,s){var u=this.childAt(0),f=this._seriesModel,d=ht(this).dataIndex,p=s&&s.animation;if(this.silent=u.silent=!0,s&&s.fadeLabel){var v=u.getTextContent();v&&Cf(v,{style:{opacity:0}},f,{dataIndex:d,removeOpt:p,cb:function(){u.removeTextContent()}})}else u.removeTextContent();Cf(u,{style:{opacity:0},scaleX:0,scaleY:0},f,{dataIndex:d,cb:r,removeOpt:p})},i.getSymbolSize=function(r,s){return g_(r.getItemVisual(s,"symbolSize"))},i}(ct);function W_(o,i,r,s){return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(s.isIgnore&&s.isIgnore(r))&&!(s.clipShape&&!s.clipShape.contain(i[0],i[1]))&&"none"!==o.getItemVisual(r,"symbol")}function lG(o){return null!=o&&!at(o)&&(o={isIgnore:o}),o||{}}function nD(o){var i=o.hostModel,r=i.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:i.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:i.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),hoverScale:r.get("scale"),labelStatesModels:lr(i),cursorStyle:i.get("cursor")}}var Y_=function(){function o(i){this.group=new ct,this._SymbolCtor=i||j_}return o.prototype.updateData=function(i,r){r=lG(r);var s=this.group,u=i.hostModel,f=this._data,d=this._SymbolCtor,p=r.disableAnimation,v=nD(i),g={disableAnimation:p},m=r.getSymbolPoint||function(y){return i.getItemLayout(y)};f||s.removeAll(),i.diff(f).add(function(y){var b=m(y);if(W_(i,b,y,r)){var w=new d(i,y,v,g);w.setPosition(b),i.setItemGraphicEl(y,w),s.add(w)}}).update(function(y,b){var w=f.getItemGraphicEl(b),S=m(y);if(W_(i,S,y,r)){var M=i.getItemVisual(y,"symbol")||"circle",x=w&&w.getSymbolType&&w.getSymbolType();if(!w||x&&x!==M)s.remove(w),(w=new d(i,y,v,g)).setPosition(S);else{w.updateData(i,y,v,g);var T={x:S[0],y:S[1]};p?w.attr(T):ln(w,T,u)}s.add(w),i.setItemGraphicEl(y,w)}else s.remove(w)}).remove(function(y){var b=f.getItemGraphicEl(y);b&&b.fadeOut(function(){s.remove(b)})}).execute(),this._getSymbolPoint=m,this._data=i},o.prototype.isPersistent=function(){return!0},o.prototype.updateLayout=function(){var i=this,r=this._data;r&&r.eachItemGraphicEl(function(s,u){var f=i._getSymbolPoint(u);s.setPosition(f),s.markRedraw()})},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=nD(i),this._data=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r,s){function u(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}s=lG(s);for(var f=i.start;f0?r=s[0]:s[1]<0&&(r=s[1]),r}(u,r),d=s.dim,p=u.dim,v=i.mapDimension(p),g=i.mapDimension(d),m="x"===p||"radius"===p?1:0,y=Te(o.dimensions,function(S){return i.mapDimension(S)}),b=!1,w=i.getCalculationInfo("stackResultDimension");return ac(i,y[0])&&(b=!0,y[0]=w),ac(i,y[1])&&(b=!0,y[1]=w),{dataDimsForPoint:y,valueStart:f,valueAxisDim:p,baseAxisDim:d,stacked:!!b,valueDim:v,baseDim:g,baseDataOffset:m,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function uG(o,i,r,s){var u=NaN;o.stacked&&(u=r.get(r.getCalculationInfo("stackedOverDimension"),s)),isNaN(u)&&(u=o.valueStart);var f=o.baseDataOffset,d=[];return d[f]=r.get(o.baseDim,s),d[1-f]=u,i.dataToPoint(d)}var cG="undefined"!=typeof Float32Array,nK=cG?Float32Array:Array;function q_(o){return we(o)?cG?new Float32Array(o):o:new nK(o)}var Zf=Math.min,Kf=Math.max;function jh(o,i){return isNaN(o)||isNaN(i)}function rD(o,i,r,s,u,f,d,p,v){for(var g,m,y,b,w,S,M=r,x=0;x=u||M<0)break;if(jh(T,P)){if(v){M+=f;continue}break}if(M===r)o[f>0?"moveTo":"lineTo"](T,P),y=T,b=P;else{var O=T-g,R=P-m;if(O*O+R*R<.5){M+=f;continue}if(d>0){var V=M+f,B=i[2*V],U=i[2*V+1],j=x+1;if(v)for(;jh(B,U)&&j=s||jh(B,U))w=T,S=P;else{Z=B-g,$=U-m;var le=T-g,oe=B-T,de=P-m,ge=U-P,_e=void 0,xe=void 0;"x"===p?(_e=Math.abs(le),xe=Math.abs(oe),w=T-_e*d,S=P,te=T+_e*d,ee=P):"y"===p?(_e=Math.abs(de),xe=Math.abs(ge),w=T,S=P-_e*d,te=T,ee=P+_e*d):(_e=Math.sqrt(le*le+de*de),w=T-Z*d*(1-(X=(xe=Math.sqrt(oe*oe+ge*ge))/(xe+_e))),S=P-$*d*(1-X),ee=P+$*d*X,te=Zf(te=T+Z*d*X,Kf(B,T)),ee=Zf(ee,Kf(U,P)),te=Kf(te,Zf(B,T)),S=P-($=(ee=Kf(ee,Zf(U,P)))-P)*_e/xe,w=Zf(w=T-(Z=te-T)*_e/xe,Kf(g,T)),S=Zf(S,Kf(m,P)),te=T+(Z=T-(w=Kf(w,Zf(g,T))))*xe/_e,ee=P+($=P-(S=Kf(S,Zf(m,P))))*xe/_e)}o.bezierCurveTo(y,b,w,S,T,P),y=te,b=ee}else o.lineTo(T,P)}g=T,m=P,M+=f}return x}var jL=function(){this.smooth=0,this.smoothConstraint=!0},hG=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polyline",s}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new jL},i.prototype.buildPath=function(r,s){var u=s.points,f=0,d=u.length/2;if(s.connectNulls){for(;d>0&&jh(u[2*d-2],u[2*d-1]);d--);for(;f=0){var R=g?(S-v)*O+v:(w-p)*O+p;return g?[r,R]:[R,r]}p=w,v=S;break;case d.C:w=f[y++],S=f[y++],M=f[y++],x=f[y++],T=f[y++],P=f[y++];var V=g?C0(p,w,M,T,r,m):C0(v,S,x,P,r,m);if(V>0)for(var B=0;B=0)return R=g?pr(v,S,x,P,U):pr(p,w,M,T,U),g?[r,R]:[R,r]}p=T,v=P}}},i}(Nt),pG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i}(jL),WL=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polygon",s}return he(i,o),i.prototype.getDefaultShape=function(){return new pG},i.prototype.buildPath=function(r,s){var u=s.points,f=s.stackedOnPoints,d=0,p=u.length/2,v=s.smoothMonotone;if(s.connectNulls){for(;p>0&&jh(u[2*p-2],u[2*p-1]);p--);for(;ds)return!1;return!0}(f,i))){var d=i.mapDimension(f.dim),p={};return q(f.getViewLabels(),function(v){var g=f.scale.getRawOrdinalNumber(v.tickValue);p[g]=1}),function(v){return!p.hasOwnProperty(i.get(d,v))}}}}(r,v,d),X=this._data;X&&X.eachItemGraphicEl(function(Je,mt){Je.__temp&&(p.remove(Je),X.setItemGraphicEl(mt,null))}),U||S.remove(),p.add(T);var $,Z=!b&&r.get("step");d&&d.getArea&&r.get("clip",!0)&&(null!=($=d.getArea()).width?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r+=.5)),this._clipShapeForSymbol=$;var te=function(o,i){var r=o.getVisual("visualMeta");if(r&&r.length&&o.count()&&"cartesian2d"===i.type){for(var s,u,f=r.length-1;f>=0;f--){var d=o.getDimensionInfo(r[f].dimension);if("x"===(s=d&&d.coordDim)||"y"===s){u=r[f];break}}if(u){var p=i.getAxis(s),v=p.scale.getExtent(),g=Te(u.stops,function(T){var P=p.toGlobalCoord(p.dataToCoord(T.value));return isNaN(P)||isFinite(P)||(P=p.toGlobalCoord(p.dataToCoord(v[+(P<0)]))),{offset:0,coord:P,color:T.color}}),m=g.length,y=u.outerColors.slice();m&&g[0].coord>g[m-1].coord&&(g.reverse(),y.reverse());var w=g[0].coord-10,S=g[m-1].coord+10,M=S-w;if(M<.001)return"transparent";q(g,function(T){T.offset=(T.coord-w)/M}),g.push({offset:m?g[m-1].offset:.5,color:y[1]||"transparent"}),g.unshift({offset:m?g[0].offset:.5,color:y[0]||"transparent"});var x=new xv(0,0,0,0,g,!0);return x[s]=w,x[s+"2"]=S,x}}}(v,d)||v.getVisual("style")[v.getVisual("drawType")];M&&w.type===d.type&&Z===this._step?(O&&!x?x=this._newPolygon(y,B):x&&!O&&(T.remove(x),x=this._polygon=null),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(wG(this,d,!1,r)),U&&S.updateData(v,{isIgnore:j,clipShape:$,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),(!YL(this._stackedOnPoints,B)||!YL(this._points,y))&&(P?this._doUpdateAnimation(v,B,d,u,Z,R):(Z&&(y=$f(y,d,Z),B&&(B=$f(B,d,Z))),M.setShape({points:y}),x&&x.setShape({points:y,stackedOnPoints:B})))):(U&&S.updateData(v,{isIgnore:j,clipShape:$,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),P&&this._initSymbolLabelAnimation(v,d,$),Z&&(y=$f(y,d,Z),B&&(B=$f(B,d,Z))),M=this._newPolyline(y),O&&(x=this._newPolygon(y,B)),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(wG(this,d,!0,r)));var ee=r.get(["emphasis","focus"]),le=r.get(["emphasis","blurScope"]);M.useStyle(tt(g.getLineStyle(),{fill:"none",stroke:te,lineJoin:"bevel"})),ki(M,r,"lineStyle"),M.style.lineWidth>0&&"bolder"===r.get(["emphasis","lineStyle","width"])&&(M.getState("emphasis").style.lineWidth=+M.style.lineWidth+1),ht(M).seriesIndex=r.seriesIndex,qn(M,ee,le);var de=ks(r.get("smooth")),ge=r.get("smoothMonotone"),_e=r.get("connectNulls");if(M.setShape({smooth:de,smoothMonotone:ge,connectNulls:_e}),x){var xe=v.getCalculationInfo("stackedOnSeries"),Me=0;x.useStyle(tt(m.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:v.getVisual("style").decal})),xe&&(Me=ks(xe.get("smooth"))),x.setShape({smooth:de,stackedOnSmooth:Me,smoothMonotone:ge,connectNulls:_e}),ki(x,r,"areaStyle"),ht(x).seriesIndex=r.seriesIndex,qn(x,ee,le)}var ze=function(mt){f._changePolyState(mt)};v.eachItemGraphicEl(function(Je){Je&&(Je.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=v,this._coordSys=d,this._stackedOnPoints=B,this._points=y,this._step=Z,this._valueOrigin=R},i.prototype.dispose=function(){},i.prototype.highlight=function(r,s,u,f){var d=r.getData(),p=va(d,f);if(this._changePolyState("emphasis"),!(p instanceof Array)&&null!=p&&p>=0){var v=d.getLayout("points"),g=d.getItemGraphicEl(p);if(!g){var m=v[2*p],y=v[2*p+1];if(isNaN(m)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(m,y))return;var b=r.get("zlevel"),w=r.get("z");(g=new j_(d,p)).x=m,g.y=y,g.setZ(b,w);var S=g.getSymbolPath().getTextContent();S&&(S.zlevel=b,S.z=w,S.z2=this._polyline.z2+1),g.__temp=!0,d.setItemGraphicEl(p,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else Vn.prototype.highlight.call(this,r,s,u,f)},i.prototype.downplay=function(r,s,u,f){var d=r.getData(),p=va(d,f);if(this._changePolyState("normal"),null!=p&&p>=0){var v=d.getItemGraphicEl(p);v&&(v.__temp?(d.setItemGraphicEl(p,null),this.group.remove(v)):v.downplay())}else Vn.prototype.downplay.call(this,r,s,u,f)},i.prototype._changePolyState=function(r){var s=this._polygon;Rm(this._polyline,r),s&&Rm(s,r)},i.prototype._newPolyline=function(r){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new hG({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},i.prototype._newPolygon=function(r,s){var u=this._polygon;return u&&this._lineGroup.remove(u),u=new WL({shape:{points:r,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(u),this._polygon=u,u},i.prototype._initSymbolLabelAnimation=function(r,s,u){var f,d,p=s.getBaseAxis(),v=p.inverse;"cartesian2d"===s.type?(f=p.isHorizontal(),d=!1):"polar"===s.type&&(f="angle"===p.dim,d=!0);var g=r.hostModel,m=g.get("animationDuration");"function"==typeof m&&(m=m(null));var y=g.get("animationDelay")||0,b="function"==typeof y?y(null):y;r.eachItemGraphicEl(function(w,S){var M=w;if(M){var T=void 0,P=void 0,O=void 0;if(u)if(d){var R=u,V=s.pointToCoord([w.x,w.y]);f?(T=R.startAngle,P=R.endAngle,O=-V[1]/180*Math.PI):(T=R.r0,P=R.r,O=V[0])}else f?(T=u.x,P=u.x+u.width,O=w.x):(T=u.y+u.height,P=u.y,O=w.y);var U=P===T?0:(O-T)/(P-T);v&&(U=1-U);var j="function"==typeof y?y(S):m*U+b,X=M.getSymbolPath(),Z=X.getTextContent();M.attr({scaleX:0,scaleY:0}),M.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:j}),Z&&Z.animateFrom({style:{opacity:0}},{duration:300,delay:j}),X.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(r,s,u){var f=r.getModel("endLabel");if(iD(r)){var d=r.getData(),p=this._polyline,v=this._endLabel;v||((v=this._endLabel=new fn({z2:200})).ignoreClip=!0,p.setTextContent(this._endLabel),p.disableLabelAnimation=!0);var g=function(o){for(var i=o.length/2;i>0&&bG(o[2*i-2],o[2*i-1]);i--);return i-1}(d.getLayout("points"));g>=0&&(Mi(p,lr(r,"endLabel"),{inheritColor:u,labelFetcher:r,labelDataIndex:g,defaultText:function(y,b,w){return null!=w?Mw(d,w):Xf(d,y)},enableTextSetter:!0},function(o,i){var r=i.getBaseAxis(),s=r.isHorizontal(),u=r.inverse,f=s?u?"right":"left":"center",d=s?"middle":u?"top":"bottom";return{normal:{align:o.get("align")||f,verticalAlign:o.get("verticalAlign")||d}}}(f,s)),p.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(r,s,u,f,d,p,v){var g=this._endLabel,m=this._polyline;if(g){r<1&&null==f.originalX&&(f.originalX=g.x,f.originalY=g.y);var y=u.getLayout("points"),b=u.hostModel,w=b.get("connectNulls"),S=p.get("precision"),M=p.get("distance")||0,x=v.getBaseAxis(),T=x.isHorizontal(),P=x.inverse,O=s.shape,R=P?T?O.x:O.y+O.height:T?O.x+O.width:O.y,V=(T?M:0)*(P?-1:1),B=(T?0:-M)*(P?-1:1),U=T?"x":"y",j=function(o,i,r){for(var f,d,s=o.length/2,u="x"===r?0:1,p=0,v=-1,g=0;g=i||f>=i&&d<=i){v=g;break}p=g,f=d}return{range:[p,v],t:(i-f)/(d-f)}}(y,R,U),X=j.range,Z=X[1]-X[0],$=void 0;if(Z>=1){if(Z>1&&!w){var te=ZL(y,X[0]);g.attr({x:te[0]+V,y:te[1]+B}),d&&($=b.getRawValue(X[0]))}else{(te=m.getPointOn(R,U))&&g.attr({x:te[0]+V,y:te[1]+B});var ee=b.getRawValue(X[0]),le=b.getRawValue(X[1]);d&&($=Bd(u,S,ee,le,j.t))}f.lastFrameIndex=X[0]}else{var oe=1===r||f.lastFrameIndex>0?X[0]:0;te=ZL(y,oe),d&&($=b.getRawValue(oe)),g.attr({x:te[0]+V,y:te[1]+B})}d&&W0(g).setLabelText($)}},i.prototype._doUpdateAnimation=function(r,s,u,f,d,p){var v=this._polyline,g=this._polygon,m=r.hostModel,y=function(o,i,r,s,u,f,d,p){for(var v=function(o,i){var r=[];return i.diff(o).add(function(s){r.push({cmd:"+",idx:s})}).update(function(s,u){r.push({cmd:"=",idx:u,idx1:s})}).remove(function(s){r.push({cmd:"-",idx:s})}).execute(),r}(o,i),g=[],m=[],y=[],b=[],w=[],S=[],M=[],x=GL(u,i,d),T=o.getLayout("points")||[],P=i.getLayout("points")||[],O=0;O3e3||g&&XL(w,M)>3e3)return v.setShape({points:S}),void(g&&g.setShape({points:S,stackedOnPoints:M}));v.shape.__points=y.current,v.shape.points=b;var x={shape:{points:S}};y.current!==b&&(x.shape.__points=y.next),v.stopAnimation(),ln(v,x,m),g&&(g.setShape({points:b,stackedOnPoints:w}),g.stopAnimation(),ln(g,{shape:{stackedOnPoints:M}},m),v.shape.points!==g.shape.points&&(g.shape.points=v.shape.points));for(var T=[],P=y.status,O=0;Or&&(r=i[s]);return isFinite(r)?r:NaN},min:function(i){for(var r=1/0,s=0;s10&&"cartesian2d"===p.type&&d){var g=p.getBaseAxis(),m=p.getOtherAxis(g),y=g.getExtent(),b=u.getDevicePixelRatio(),w=Math.abs(y[1]-y[0])*(b||1),S=Math.round(v/w);if(S>1){"lttb"===d&&r.setData(f.lttbDownSample(f.mapDimension(m.dim),1/S));var M=void 0;"string"==typeof d?M=aD[d]:"function"==typeof d&&(M=d),M&&r.setData(f.downSample(f.mapDimension(m.dim),1/S,M,kG))}}}}}var xG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getMarkerPosition=function(r){var s=this.coordinateSystem;if(s&&s.clampData){var u=s.dataToPoint(s.clampData(r)),f=this.getData(),d=f.getLayout("offset"),p=f.getLayout("size");return u[s.getBaseAxis().isHorizontal()?0:1]+=d+p/2,u}return[NaN,NaN]},i.type="series.__base_bar__",i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},i}(vt);vt.registerClass(xG);var Aw=xG,DG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(){return gl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},i.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},i.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>r&&(r=s),r},i.prototype.brushSelector=function(r,s,u){return u.rect(s.getItemLayout(r))},i.type="series.bar",i.dependencies=["grid","polar"],i.defaultOption=rh(Aw.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}),i}(Aw),Cl=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=function(o){function i(r){var s=o.call(this,r)||this;return s.type="sausage",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Cl},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r0||0,0),p=Math.max(s.r,0),v=.5*(p-d),g=d+v,m=s.startAngle,y=s.endAngle,b=s.clockwise,w=Math.cos(m),S=Math.sin(m),M=Math.cos(y),x=Math.sin(y);(b?y-m<2*Math.PI:m-y<2*Math.PI)&&(r.moveTo(w*d+u,S*d+f),r.arc(w*g+u,S*g+f,v,-Math.PI+m,m,!b)),r.arc(u,f,p,m,y,!b),r.moveTo(M*p+u,x*p+f),r.arc(M*g+u,x*g+f,v,y-2*Math.PI,y-Math.PI,!b),0!==d&&(r.arc(u,f,d,y,m,b),r.moveTo(w*d+u,x*d+f)),r.closePath()},i}(Nt);function K_(o,i,r){return i*Math.sin(o)*(r?-1:1)}function $_(o,i,r){return i*Math.cos(o)*(r?1:-1)}var qv=[0,0],Q_=Math.max,J_=Math.min,Pw=function(o){function i(){var r=o.call(this)||this;return r.type=i.type,r._isFirstFrame=!0,r}return he(i,o),i.prototype.render=function(r,s,u,f){this._model=r,this._removeOnRenderedListener(u),this._updateDrawMode(r);var d=r.get("coordinateSystem");("cartesian2d"===d||"polar"===d)&&(this._isLargeDraw?this._renderLarge(r,s,u):this._renderNormal(r,s,u,f))},i.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},i.prototype.incrementalRender=function(r,s){this._incrementalRenderLarge(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r,s,u,f){var y,d=this.group,p=r.getData(),v=this._data,g=r.coordinateSystem,m=g.getBaseAxis();"cartesian2d"===g.type?y=m.isHorizontal():"polar"===g.type&&(y="angle"===m.dim);var b=r.isAnimationEnabled()?r:null,w=function(o,i){var r=o.get("realtimeSort",!0),s=i.getBaseAxis();if(r&&"category"===s.type&&"cartesian2d"===i.type)return{baseAxis:s,otherAxis:i.getOtherAxis(s)}}(r,g);w&&this._enableRealtimeSort(w,p,u);var S=r.get("clip",!0)||w,M=function(o,i){var r=o.getArea&&o.getArea();if(uc(o,"cartesian2d")){var s=o.getBaseAxis();if("category"!==s.type||!s.onBand){var u=i.getLayout("bandWidth");s.isHorizontal()?(r.x-=u,r.width+=2*u):(r.y-=u,r.height+=2*u)}}return r}(g,p);d.removeClipPath();var x=r.get("roundCap",!0),T=r.get("showBackground",!0),P=r.getModel("backgroundStyle"),O=P.get("borderRadius")||0,R=[],V=this._backgroundEls,B=f&&f.isInitSort,U=f&&"changeAxisOrder"===f.type;function j($){var te=Xv[g.type](p,$),ee=function(o,i,r){return new("polar"===o.type?ir:sn)({shape:tF(i,r,o),silent:!0,z2:0})}(g,y,te);return ee.useStyle(P.getItemStyle()),"cartesian2d"===g.type&&ee.setShape("r",O),R[$]=ee,ee}p.diff(v).add(function($){var te=p.getItemModel($),ee=Xv[g.type](p,$,te);if(T&&j($),p.hasValue($)&&JL[g.type](ee)){var le=!1;S&&(le=oD[g.type](M,ee));var oe=sD[g.type](r,p,$,ee,y,b,m.model,!1,x);Zv(oe,p,$,te,ee,r,y,"polar"===g.type),B?oe.attr({shape:ee}):w?QL(w,b,oe,ee,$,y,!1,!1):yr(oe,{shape:ee},r,$),p.setItemGraphicEl($,oe),d.add(oe),oe.ignore=le}}).update(function($,te){var ee=p.getItemModel($),le=Xv[g.type](p,$,ee);if(T){var oe=void 0;0===V.length?oe=j(te):((oe=V[te]).useStyle(P.getItemStyle()),"cartesian2d"===g.type&&oe.setShape("r",O),R[$]=oe);var de=Xv[g.type](p,$);ln(oe,{shape:tF(y,de,g)},b,$)}var _e=v.getItemGraphicEl(te);if(p.hasValue($)&&JL[g.type](le)){var xe=!1;S&&(xe=oD[g.type](M,le))&&d.remove(_e),_e?el(_e):_e=sD[g.type](r,p,$,le,y,b,m.model,!!_e,x),U||Zv(_e,p,$,ee,le,r,y,"polar"===g.type),B?_e.attr({shape:le}):w?QL(w,b,_e,le,$,y,!0,U):ln(_e,{shape:le},r,$,null),p.setItemGraphicEl($,_e),_e.ignore=xe,d.add(_e)}else d.remove(_e)}).remove(function($){var te=v.getItemGraphicEl($);te&&Fm(te,r,$)}).execute();var X=this._backgroundGroup||(this._backgroundGroup=new ct);X.removeAll();for(var Z=0;Zp)return!0;p=y}return!1},i.prototype._isOrderDifferentInView=function(r,s){for(var u=s.scale,f=u.getExtent(),d=Math.max(0,f[0]),p=Math.min(f[1],u.getOrdinalMeta().categories.length-1);d<=p;++d)if(r.ordinalNumbers[d]!==u.getRawOrdinalNumber(d))return!0},i.prototype._updateSortWithinSameData=function(r,s,u,f){if(this._isOrderChangedWithinSameData(r,s,u)){var d=this._dataSort(r,u,s);this._isOrderDifferentInView(d,u)&&(this._removeOnRenderedListener(f),f.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",axisId:u.index,sortInfo:d}))}},i.prototype._dispatchInitSort=function(r,s,u){var f=s.baseAxis,d=this._dataSort(r,f,function(p){return r.get(r.mapDimension(s.otherAxis.dim),p)});u.dispatchAction({type:"changeAxisOrder",componentType:f.dim+"Axis",isInitSort:!0,axisId:f.index,sortInfo:d})},i.prototype.remove=function(r,s){this._clear(this._model),this._removeOnRenderedListener(s)},i.prototype.dispose=function(r,s){this._removeOnRenderedListener(s)},i.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},i.prototype._clear=function(r){var s=this.group,u=this._data;r&&r.isAnimationEnabled()&&u&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],u.eachItemGraphicEl(function(f){Fm(f,r,ht(f).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},i.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},i.type="bar",i}(Vn),oD={cartesian2d:function(i,r){var s=r.width<0?-1:1,u=r.height<0?-1:1;s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height);var f=i.x+i.width,d=i.y+i.height,p=Q_(r.x,i.x),v=J_(r.x+r.width,f),g=Q_(r.y,i.y),m=J_(r.y+r.height,d),y=vf?v:p,r.y=b&&g>d?m:g,r.width=y?0:v-p,r.height=b?0:m-g,s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height),y||b},polar:function(i,r){var s=r.r0<=r.r?1:-1;if(s<0){var u=r.r;r.r=r.r0,r.r0=u}var f=J_(r.r,i.r),d=Q_(r.r0,i.r0);r.r=f,r.r0=d;var p=f-d<0;return s<0&&(u=r.r,r.r=r.r0,r.r0=u),p}},sD={cartesian2d:function(i,r,s,u,f,d,p,v,g){var m=new sn({shape:Se({},u),z2:1});return m.__dataIndex=s,m.name="item",d&&(m.shape[f?"height":"width"]=0),m},polar:function(i,r,s,u,f,d,p,v,g){var y=!f&&g?Z_:ir,b=new y({shape:tt({clockwise:u.startAngle0?1:-1,p=u.height>0?1:-1;return{x:u.x+d*f/2,y:u.y+p*f/2,width:u.width-d*f,height:u.height-p*f}},polar:function(i,r,s){var u=i.getItemLayout(r);return{cx:u.cx,cy:u.cy,r0:u.r0,r:u.r,startAngle:u.startAngle,endAngle:u.endAngle}}};function ka(o){return function(i){var r=i?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+r;default:return s}}}(o)}function Zv(o,i,r,s,u,f,d,p){var v=i.getItemVisual(r,"style");p||o.setShape("r",s.get(["itemStyle","borderRadius"])||0),o.useStyle(v);var g=s.getShallow("cursor");g&&o.attr("cursor",g);var m=p?d?u.r>=u.r0?"endArc":"startArc":u.endAngle>=u.startAngle?"endAngle":"startAngle":d?u.height>=0?"bottom":"top":u.width>=0?"right":"left",y=lr(s);Mi(o,y,{labelFetcher:f,labelDataIndex:r,defaultText:Xf(f.getData(),r),inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:m});var b=o.getTextContent();if(p&&b){var w=s.get(["label","position"]);o.textConfig.inside="middle"===w||null,function(o,i,r,s){if("number"!=typeof s)if(we(i))o.setTextConfig({rotation:0});else{var v,u=o.shape,f=u.clockwise?u.startAngle:u.endAngle,d=u.clockwise?u.endAngle:u.startAngle,p=(f+d)/2,g=r(i);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":v=p;break;case"startAngle":case"insideStartAngle":v=f;break;case"endAngle":case"insideEndAngle":v=d;break;default:return void o.setTextConfig({rotation:0})}var m=1.5*Math.PI-v;"middle"===g&&m>Math.PI/2&&m<1.5*Math.PI&&(m-=Math.PI),o.setTextConfig({rotation:m})}else o.setTextConfig({rotation:s})}(o,"outside"===w?m:w,ka(d),s.get(["label","rotate"]))}tu(b,y,f.getRawValue(r),function(M){return Mw(i,M)});var S=s.getModel(["emphasis"]);qn(o,S.get("focus"),S.get("blurScope")),ki(o,s),function(o){return null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle}(u)&&(o.style.fill="none",o.style.stroke="none",q(o.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}var eF=function(){},ey=function(o){function i(r){var s=o.call(this,r)||this;return s.type="largeBar",s}return he(i,o),i.prototype.getDefaultShape=function(){return new eF},i.prototype.buildPath=function(r,s){for(var u=s.points,f=this.__startPoint,d=this.__baseDimIdx,p=0;p=y&&x<=b&&(v<=T?m>=v&&m<=T:m>=T&&m<=v))return d[w]}return-1}(this,o.offsetX,o.offsetY);ht(this).dataIndex=r>=0?r:null},30,!1);function tF(o,i,r){if(uc(r,"cartesian2d")){var s=i,u=r.getArea();return{x:o?s.x:u.x,y:o?u.y:s.y,width:o?s.width:u.width,height:o?u.height:s.height}}return{cx:(u=r.getArea()).cx,cy:u.cy,r0:o?u.r0:i.r0,r:o?u.r:i.r,startAngle:o?i.startAngle:0,endAngle:o?i.endAngle:2*Math.PI}}var nF=Pw,Rw=2*Math.PI,rF=Math.PI/180;function cc(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function Kv(o,i){var r=cc(o,i),s=o.get("center"),u=o.get("radius");we(u)||(u=[0,u]),we(s)||(s=[s,s]);var f=Fe(r.width,i.getWidth()),d=Fe(r.height,i.getHeight()),p=Math.min(f,d);return{cx:Fe(s[0],f)+r.x,cy:Fe(s[1],d)+r.y,r0:Fe(u[0],p/2),r:Fe(u[1],p/2)}}function fD(o,i,r){i.eachSeriesByType(o,function(s){var u=s.getData(),f=u.mapDimension("value"),d=cc(s,r),p=Kv(s,r),v=p.cx,g=p.cy,m=p.r,y=p.r0,b=-s.get("startAngle")*rF,w=s.get("minAngle")*rF,S=0;u.each(f,function(Z){!isNaN(Z)&&S++});var M=u.getSum(f),x=Math.PI/(M||S)*2,T=s.get("clockwise"),P=s.get("roseType"),O=s.get("stillShowZeroSum"),R=u.getDataExtent(f);R[0]=0;var V=Rw,B=0,U=b,j=T?1:-1;if(u.setLayout({viewRect:d,r:m}),u.each(f,function(Z,$){var te;if(isNaN(Z))u.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:v,cy:g,r0:y,r:P?NaN:m});else{(te="area"!==P?0===M&&O?x:Z*x:Rw/S)r?T:x,V=Math.abs(O.label.y-r);if(V>R.maxY){var B=O.label.x-i-O.len2*u,U=s+O.len,j=Math.abs(B)0){for(var m=d.getItemLayout(0),y=1;isNaN(m&&m.startAngle)&&y0?"right":"left":Je>0?"left":"right"}var Vr,Ol=te.get("rotate");if("number"==typeof Ol)Vr=Ol*(Math.PI/180);else if("center"===ee)Vr=0;else{var _p=Je<0?-ze+Math.PI:-ze;"radial"===Ol||!0===Ol?Vr=_p:"tangential"===Ol&&"outside"!==ee&&"outer"!==ee?(Vr=_p+Math.PI/2)>Math.PI/2&&(Vr-=Math.PI):Vr=0}if(f=!!Vr,X.x=Qt,X.y=zt,X.rotation=Vr,X.setStyle({verticalAlign:"middle"}),Ut){X.setStyle({align:Yt});var x5=X.states.select;x5&&(x5.x+=X.x,x5.y+=X.y)}else{var ZS=X.getBoundingRect().clone();ZS.applyTransform(X.getComputedTransform());var Cq=(X.style.margin||0)+2.1;ZS.y-=Cq/2,ZS.height+=Cq,r.push({label:X,labelLine:Z,position:ee,len:xe,len2:Me,minTurnAngle:_e.get("minTurnAngle"),maxSurfaceAngle:_e.get("maxSurfaceAngle"),surfaceNormal:new Tt(Je,mt),linePoints:xt,textAlign:Yt,labelDistance:le,labelAlignTo:oe,edgeDistance:de,bleedMargin:ge,rect:ZS})}U.setTextConfig({inside:Ut})}}),!f&&o.get("avoidLabelOverlap")&&function(o,i,r,s,u,f,d,p){for(var v=[],g=[],m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=0;b=f.r0}},i.type="pie",i}(Vn);function po(o,i,r){i=we(i)&&{coordDimensions:i}||Se({encodeDefine:o.getEncode()},i);var s=o.getSource(),u=Fv(s,i).dimensions,f=new Ga(u,o);return f.initData(s,r),f}var mu=function(){function o(i,r){this._getDataWithEncodedVisual=i,this._getRawData=r}return o.prototype.getAllNames=function(){var i=this._getRawData();return i.mapArray(i.getName)},o.prototype.containName=function(i){return this._getRawData().indexOfName(i)>=0},o.prototype.indexOfName=function(i){return this._getDataWithEncodedVisual().indexOfName(i)},o.prototype.getItemVisual=function(i,r){return this._getDataWithEncodedVisual().getItemVisual(i,r)},o}(),$v=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.mergeOption=function(){o.prototype.mergeOption.apply(this,arguments)},i.prototype.getInitialData=function(){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=[];return s.each(s.mapDimension("value"),function(d){f.push(d)}),u.percent=TO(f,r,s.hostModel.get("percentPrecision")),u.$vars.push("percent"),u},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.type="series.pie",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},i}(vt),sF=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?5e3:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?1e4:this.get("progressiveThreshold"):r},i.prototype.brushSelector=function(r,s,u){return u.point(s.getItemLayout(r))},i.type="series.scatter",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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"}},i}(vt),lF=function(){},Fw=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultShape=function(){return new lF},i.prototype.buildPath=function(r,s){var u=s.points,f=s.size,d=this.symbolProxy,p=d.shape,v=r.getContext?r.getContext():r;if(v&&f[0]<4)this._ctx=v;else{this._ctx=null;for(var m=0;m=0;g--){var m=2*g,y=f[m]-p/2,b=f[m+1]-v/2;if(r>=y&&s>=b&&r<=y+p&&s<=b+v)return g}return-1},i}(Nt),sK=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i,r){this.group.removeAll();var s=new Fw({rectHover:!0,cursor:"default"});s.setShape({points:i.getLayout("points")}),this._setCommon(s,i,!1,r),this.group.add(s),this._incremental=null},o.prototype.updateLayout=function(i){if(!this._incremental){var r=i.getLayout("points");this.group.eachChild(function(s){null!=s.startIndex&&(r=new Float32Array(r.buffer,4*s.startIndex*2,2*(s.endIndex-s.startIndex))),s.setShape("points",r)})}},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r,s){var u;this._incremental?(u=new Fw,this._incremental.addDisplayable(u,!0)):((u=new Fw({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end})).incremental=!0,this.group.add(u)),u.setShape({points:r.getLayout("points")}),this._setCommon(u,r,!!this._incremental,s)},o.prototype._setCommon=function(i,r,s,u){var f=r.hostModel;u=u||{};var d=r.getVisual("symbolSize");i.setShape("size",d instanceof Array?d:[d,d]),i.softClipShape=u.clipShape||null,i.symbolProxy=Ir(r.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var p=i.shape.size[0]<4;i.useStyle(f.getModel("itemStyle").getItemStyle(p?["color","shadowBlur","shadowColor"]:["color"]));var v=r.getVisual("style"),g=v&&v.fill;if(g&&i.setColor(g),!s){var m=ht(i);m.seriesIndex=f.seriesIndex,i.on("mousemove",function(y){m.dataIndex=null;var b=i.findDataIndex(y.offsetX,y.offsetY);b>=0&&(m.dataIndex=b+(i.startIndex||0))})}},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),uK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).updateData(f,{clipShape:this._getClipShape(r)}),this._finished=!0},i.prototype.incrementalPrepareRender=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).incrementalPrepareUpdate(f),this._finished=!1},i.prototype.incrementalRender=function(r,s,u){this._symbolDraw.incrementalUpdate(r,s.getData(),{clipShape:this._getClipShape(s)}),this._finished=r.end===s.getData().count()},i.prototype.updateTransform=function(r,s,u){var f=r.getData();if(this.group.dirty(),!this._finished||f.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var d=Dw("").reset(r,s,u);d.progress&&d.progress({start:0,end:f.count(),count:f.count()},f),this._symbolDraw.updateLayout(f)},i.prototype._getClipShape=function(r){var s=r.coordinateSystem,u=s&&s.getArea&&s.getArea();return r.get("clip",!0)?u:null},i.prototype._updateSymbolDraw=function(r,s){var u=this._symbolDraw,d=s.pipelineContext.large;return(!u||d!==this._isLargeDraw)&&(u&&u.remove(),u=this._symbolDraw=d?new sK:new Y_,this._isLargeDraw=d,this.group.removeAll()),this.group.add(u.group),u},i.prototype.remove=function(r,s){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},i.prototype.dispose=function(){},i.type="scatter",i}(Vn),WG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},i}(qt),vD=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ai).models[0]},i.type="cartesian2dAxis",i}(qt);qr(vD,zv);var YG={show:!0,zlevel: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)"]}}},cK=He({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YG),uF=He({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}}},YG),cF={category:cK,value:uF,time:He({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},uF),log:tt({scale:!0,logBase:10},uF)},hK={value:1,category:1,time:1,log:1};function ry(o,i,r,s){q(hK,function(u,f){var d=He(He({},cF[f],!0),s,!0),p=function(v){function g(){var m=null!==v&&v.apply(this,arguments)||this;return m.type=i+"Axis."+f,m}return he(g,v),g.prototype.mergeDefaultAndTheme=function(m,y){var b=iv(this),w=b?av(m):{};He(m,y.getTheme().get(f+"Axis")),He(m,this.getDefaultOption()),m.type=qG(m),b&&kf(m,w,b)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Gf.createByAxisModel(this))},g.prototype.getCategories=function(m){var y=this.option;if("category"===y.type)return m?y.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=i+"Axis."+f,g.defaultOption=d,g}(r);o.registerComponentModel(p)}),o.registerSubTypeDefaulter(i+"Axis",qG)}function qG(o){return o.type||(o.data?"category":"value")}var pK=function(){function o(i){this.type="cartesian",this._dimList=[],this._axes={},this.name=i||""}return o.prototype.getAxis=function(i){return this._axes[i]},o.prototype.getAxes=function(){return Te(this._dimList,function(i){return this._axes[i]},this)},o.prototype.getAxesByScale=function(i){return i=i.toLowerCase(),Yn(this.getAxes(),function(r){return r.scale.type===i})},o.prototype.addAxis=function(i){var r=i.dim;this._axes[r]=i,this._dimList.push(r)},o}(),fF=["x","y"];function ZG(o){return"interval"===o.type||"time"===o.type}var gK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=fF,r}return he(i,o),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,s=this.getAxis("y").scale;if(ZG(r)&&ZG(s)){var u=r.getExtent(),f=s.getExtent(),d=this.dataToPoint([u[0],f[0]]),p=this.dataToPoint([u[1],f[1]]),v=u[1]-u[0],g=f[1]-f[0];if(v&&g){var m=(p[0]-d[0])/v,y=(p[1]-d[1])/g,S=this._transform=[m,0,0,y,d[0]-u[0]*m,d[1]-f[0]*y];this._invTransform=Gl([],S)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(r){var s=this.getAxis("x"),u=this.getAxis("y");return s.contain(s.toLocalCoord(r[0]))&&u.contain(u.toLocalCoord(r[1]))},i.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},i.prototype.dataToPoint=function(r,s,u){u=u||[];var f=r[0],d=r[1];if(this._transform&&null!=f&&isFinite(f)&&null!=d&&isFinite(d))return _i(u,r,this._transform);var p=this.getAxis("x"),v=this.getAxis("y");return u[0]=p.toGlobalCoord(p.dataToCoord(f,s)),u[1]=v.toGlobalCoord(v.dataToCoord(d,s)),u},i.prototype.clampData=function(r,s){var u=this.getAxis("x").scale,f=this.getAxis("y").scale,d=u.getExtent(),p=f.getExtent(),v=u.parse(r[0]),g=f.parse(r[1]);return(s=s||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),v),Math.max(d[0],d[1])),s[1]=Math.min(Math.max(Math.min(p[0],p[1]),g),Math.max(p[0],p[1])),s},i.prototype.pointToData=function(r,s){var u=[];if(this._invTransform)return _i(u,r,this._invTransform);var f=this.getAxis("x"),d=this.getAxis("y");return u[0]=f.coordToData(f.toLocalCoord(r[0]),s),u[1]=d.coordToData(d.toLocalCoord(r[1]),s),u},i.prototype.getOtherAxis=function(r){return this.getAxis("x"===r.dim?"y":"x")},i.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),s=this.getAxis("y").getGlobalExtent(),u=Math.min(r[0],r[1]),f=Math.min(s[0],s[1]),d=Math.max(r[0],r[1])-u,p=Math.max(s[0],s[1])-f;return new Ft(u,f,d,p)},i}(pK),_u=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.index=0,p.type=f||"value",p.position=d||"bottom",p}return he(i,o),i.prototype.isHorizontal=function(){var r=this.position;return"top"===r||"bottom"===r},i.prototype.getGlobalExtent=function(r){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),r&&s[0]>s[1]&&s.reverse(),s},i.prototype.pointToData=function(r,s){return this.coordToData(this.toLocalCoord(r["x"===this.dim?0:1]),s)},i.prototype.setCategorySortInfo=function(r){if("category"!==this.type)return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},i}(_l);function dF(o,i,r){r=r||{};var s=o.coordinateSystem,u=i.axis,f={},d=u.getAxesOnZeroOf()[0],p=u.position,v=d?"onZero":p,g=u.dim,m=s.getRect(),y=[m.x,m.x+m.width,m.y,m.y+m.height],b={left:0,right:1,top:0,bottom:1,onZero:2},w=i.get("offset")||0,S="x"===g?[y[2]-w,y[3]+w]:[y[0]-w,y[1]+w];if(d){var M=d.toGlobalCoord(d.dataToCoord(0));S[b.onZero]=Math.max(Math.min(M,S[1]),S[0])}f.position=["y"===g?S[b[v]]:y[0],"x"===g?S[b[v]]:y[3]],f.rotation=Math.PI/2*("x"===g?0:1),f.labelDirection=f.tickDirection=f.nameDirection={top:-1,bottom:1,left:-1,right:1}[p],f.labelOffset=d?S[b[p]]-S[b.onZero]:0,i.get(["axisTick","inside"])&&(f.tickDirection=-f.tickDirection),ni(r.labelInside,i.get(["axisLabel","inside"]))&&(f.labelDirection=-f.labelDirection);var T=i.get(["axisLabel","rotate"]);return f.labelRotate="top"===v?-T:T,f.z2=1,f}function hF(o){return"cartesian2d"===o.get("coordinateSystem")}function pF(o){var i={xAxisModel:null,yAxisModel:null};return q(i,function(r,s){var u=s.replace(/Model$/,""),f=o.getReferringComponents(u,ai).models[0];i[s]=f}),i}function fc(o,i){return o.getCoordSysModel()===i}function vF(o,i,r,s){r.getAxesOnZeroOf=function(){return f?[f]:[]};var f,u=o[i],d=r.model,p=d.get(["axisLine","onZero"]),v=d.get(["axisLine","onZeroAxisIndex"]);if(p){if(null!=v)gF(u[v])&&(f=u[v]);else for(var g in u)if(u.hasOwnProperty(g)&&gF(u[g])&&!s[m(u[g])]){f=u[g];break}f&&(s[m(f)]=!0)}function m(y){return y.dim+"_"+y.index}}function gF(o){return o&&"category"!==o.type&&"time"!==o.type&&function(o){var i=o.scale.getExtent(),r=i[0],s=i[1];return!(r>0&&s>0||r<0&&s<0)}(o)}var _F=function(){function o(i,r,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fF,this._initCartesian(i,r,s),this.model=i}return o.prototype.getRect=function(){return this._rect},o.prototype.update=function(i,r){var s=this._axesMap;this._updateScale(i,this.model),q(s.x,function(f){Wf(f.scale,f.model)}),q(s.y,function(f){Wf(f.scale,f.model)});var u={};q(s.x,function(f){vF(s,"y",f,u)}),q(s.y,function(f){vF(s,"x",f,u)}),this.resize(this.model,r)},o.prototype.resize=function(i,r,s){var u=i.getBoxLayoutParams(),f=!s&&i.get("containLabel"),d=li(u,{width:r.getWidth(),height:r.getHeight()});this._rect=d;var p=this._axesList;function v(){q(p,function(g){var m=g.isHorizontal(),y=m?[0,d.width]:[0,d.height],b=g.inverse?1:0;g.setExtent(y[b],y[1-b]),function(o,i){var r=o.getExtent(),s=r[0]+r[1];o.toGlobalCoord="x"===o.dim?function(u){return u+i}:function(u){return s-u+i},o.toLocalCoord="x"===o.dim?function(u){return u-i}:function(u){return s-u+i}}(g,m?d.x:d.y)})}v(),f&&(q(p,function(g){if(!g.model.get(["axisLabel","inside"])){var m=function(o){var r=o.scale;if(o.model.get(["axisLabel","show"])&&!r.isBlank()){var s,u,f=r.getExtent();u=r instanceof TT?r.count():(s=r.getTicks()).length;var v,d=o.getLabelModel(),p=B_(o),g=1;u>40&&(g=Math.ceil(u/40));for(var m=0;m0?"top":"bottom",f="center"):hm(u-Qf)?(d=s>0?"bottom":"top",f="center"):(d="middle",f=u>0&&u0?"right":"left":s>0?"left":"right"),{rotation:u,textAlign:f,textVerticalAlign:d}},o.makeAxisEventDataBase=function(i){var r={componentType:i.mainType,componentIndex:i.componentIndex};return r[i.mainType+"Index"]=i.componentIndex,r},o.isLabelSilent=function(i){var r=i.get("tooltip");return i.get("silent")||!(i.get("triggerEvent")||r&&r.show)},o}(),gD={axisLine:function(i,r,s,u){var f=r.get(["axisLine","show"]);if("auto"===f&&i.handleAutoShown&&(f=i.handleAutoShown("axisLine")),f){var d=r.axis.getExtent(),p=u.transform,v=[d[0],0],g=[d[1],0];p&&(_i(v,v,p),_i(g,g,p));var m=Se({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Ti({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:m,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1});y.anid="line",s.add(y);var b=r.get(["axisLine","symbol"]);if(null!=b){var w=r.get(["axisLine","symbolSize"]);"string"==typeof b&&(b=[b,b]),("string"==typeof w||"number"==typeof w)&&(w=[w,w]);var S=Ah(r.get(["axisLine","symbolOffset"])||0,w),M=w[0],x=w[1];q([{rotate:i.rotation+Math.PI/2,offset:S[0],r:0},{rotate:i.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((v[0]-g[0])*(v[0]-g[0])+(v[1]-g[1])*(v[1]-g[1]))}],function(T,P){if("none"!==b[P]&&null!=b[P]){var O=Ir(b[P],-M/2,-x/2,M,x,m.stroke,!0),R=T.r+T.offset;O.attr({rotation:T.rotate,x:v[0]+R*Math.cos(i.rotation),y:v[1]-R*Math.sin(i.rotation),silent:!0,z2:11}),s.add(O)}})}}},axisTickLabel:function(i,r,s,u){var f=function(o,i,r,s){var u=r.axis,f=r.getModel("axisTick"),d=f.get("show");if("auto"===d&&s.handleAutoShown&&(d=s.handleAutoShown("axisTick")),d&&!u.scale.isBlank()){for(var p=f.getModel("lineStyle"),v=s.tickDirection*f.get("length"),m=yF(u.getTicksCoords(),i.transform,v,tt(p.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;ym[1]?-1:1,b=["start"===d?m[0]-y*g:"end"===d?m[1]+y*g:(m[0]+m[1])/2,mD(d)?i.labelOffset+p*g:0],S=r.get("nameRotate");null!=S&&(S=S*Qf/180),mD(d)?w=dc.innerTextLayout(i.rotation,null!=S?S:i.rotation,p):(w=function(o,i,r,s){var f,d,u=Ld(r-o),p=s[0]>s[1],v="start"===i&&!p||"start"!==i&&p;return hm(u-Qf/2)?(d=v?"bottom":"top",f="center"):hm(u-1.5*Qf)?(d=v?"top":"bottom",f="center"):(d="middle",f=u<1.5*Qf&&u>Qf/2?v?"left":"right":v?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:d}}(i.rotation,d,S||0,m),null!=(M=i.axisNameAvailableWidth)&&(M=Math.abs(M/Math.sin(w.rotation)),!isFinite(M)&&(M=null)));var x=v.getFont(),T=r.get("nameTruncate",!0)||{},P=T.ellipsis,O=ni(i.nameTruncateMaxWidth,T.maxWidth,M),R=new fn({x:b[0],y:b[1],rotation:w.rotation,silent:dc.isLabelSilent(r),style:Or(v,{text:f,font:x,overflow:"truncate",width:O,ellipsis:P,fill:v.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Av({el:R,componentModel:r,itemName:f}),R.__fullText=f,R.anid="name",r.get("triggerEvent")){var V=dc.makeAxisEventDataBase(r);V.targetType="axisName",V.name=f,ht(R).eventData=V}u.add(R),R.updateTransform(),s.add(R),R.decomposeTransform()}}};function Ms(o){o&&(o.ignore=!0)}function Vw(o,i){var r=o&&o.getBoundingRect().clone(),s=i&&i.getBoundingRect().clone();if(r&&s){var u=Wu([]);return Od(u,u,-o.rotation),r.applyTransform(Jo([],u,o.getLocalTransform())),s.applyTransform(Jo([],u,i.getLocalTransform())),r.intersect(s)}}function mD(o){return"middle"===o||"center"===o}function yF(o,i,r,s,u){for(var f=[],d=[],p=[],v=0;v=0||o===i}function vi(o){var i=CF(o);if(i){var r=i.axisPointerModel,s=i.axis.scale,u=r.option,f=r.get("status"),d=r.get("value");null!=d&&(d=s.parse(d));var p=yD(r);null==f&&(u.status=p?"show":"hide");var v=s.getExtent().slice();v[0]>v[1]&&v.reverse(),(null==d||d>v[1])&&(d=v[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var M=v;null!=S.color&&(M=tt({color:S.color},v));var x=He(rt(S),{boundaryGap:r,splitNumber:s,scale:u,axisLine:f,axisTick:d,axisLabel:p,name:S.text,nameLocation:"end",nameGap:y,nameTextStyle:M,triggerEvent:b},!1);if(g||(x.name=""),"string"==typeof m){var T=x.name;x.name=m.replace("{value}",null!=T?T:"")}else"function"==typeof m&&(x.name=m(x.name,x));var P=new Nn(x,null,this.ecModel);return qr(P,zv.prototype),P.mainType="radar",P.componentIndex=this.componentIndex,P},this);this._indicatorModels=w},i.prototype.getIndicatorModels=function(){return this._indicatorModels},i.type="radar",i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:He({lineStyle:{color:"#bbb"}},uy.axisLine),axisLabel:wl(uy.axisLabel,!1),axisTick:wl(uy.axisTick,!1),splitLine:wl(uy.splitLine,!0),splitArea:wl(uy.splitArea,!0),indicator:[]},i}(qt),s6=["axisLine","axisTickLabel","axisName"],pc=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},i.prototype._buildAxes=function(r){var s=r.coordinateSystem;q(Te(s.getIndicatorAxes(),function(d){return new yu(d.model,{position:[s.cx,s.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(d){q(s6,d.add,d),this.group.add(d.getGroup())},this)},i.prototype._buildSplitLineAndArea=function(r){var s=r.coordinateSystem,u=s.getIndicatorAxes();if(u.length){var f=r.get("shape"),d=r.getModel("splitLine"),p=r.getModel("splitArea"),v=d.getModel("lineStyle"),g=p.getModel("areaStyle"),m=d.get("show"),y=p.get("show"),b=v.get("color"),w=g.get("color"),S=we(b)?b:[b],M=we(w)?w:[w],x=[],T=[];if("circle"===f)for(var O=u[0].getTicksCoords(),R=s.cx,V=s.cy,B=0;Bg[0]&&isFinite(x)&&isFinite(g[0]))}else y.getTicks().length-1>f&&(S=d(S)),x=hi((M=Math.ceil(g[1]/S)*S)-S*f),y.setExtent(x,M),y.setInterval(S)})},o.prototype.convertToPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.convertFromPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.containPoint=function(i){return console.warn("Not implemented."),!1},o.create=function(i,r){var s=[];return i.eachComponent("radar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeriesByType("radar",function(u){"radar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("radarIndex")||0])}),s},o.dimensions=[],o}();function u6(o){o.registerCoordinateSystem("radar",gi),o.registerComponentModel(Jn),o.registerComponentView(pc),o.registerVisual({seriesType:"radar",reset:function(r){var s=r.getData();s.each(function(u){s.setItemVisual(u,"legendIcon","roundRect")}),s.setVisual("legendIcon","roundRect")}})}var MF="\0_ec_interaction_mutex";function cy(o,i){return!!CD(o)[i]}function CD(o){return o[MF]||(o[MF]={})}function fy(o,i,r,s,u){o.pointerChecker&&o.pointerChecker(s,u.originX,u.originY)&&(Vl(s.event),dy(o,i,r,s,u))}function dy(o,i,r,s,u){u.isAvailableBehavior=Ye(tg,null,r,s),o.trigger(i,u)}function tg(o,i,r){var s=r[o];return!o||s&&(!yt(s)||i.event[s+"Key"])}pl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var hy=function(o){function i(r){var s=o.call(this)||this;s._zr=r;var u=Ye(s._mousedownHandler,s),f=Ye(s._mousemoveHandler,s),d=Ye(s._mouseupHandler,s),p=Ye(s._mousewheelHandler,s),v=Ye(s._pinchHandler,s);return s.enable=function(g,m){this.disable(),this._opt=tt(rt(m)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==g&&(g=!0),(!0===g||"move"===g||"pan"===g)&&(r.on("mousedown",u),r.on("mousemove",f),r.on("mouseup",d)),(!0===g||"scale"===g||"zoom"===g)&&(r.on("mousewheel",p),r.on("pinch",v))},s.disable=function(){r.off("mousedown",u),r.off("mousemove",f),r.off("mouseup",d),r.off("mousewheel",p),r.off("pinch",v)},s}return he(i,o),i.prototype.isDragging=function(){return this._dragging},i.prototype.isPinching=function(){return this._pinching},i.prototype.setPointerChecker=function(r){this.pointerChecker=r},i.prototype.dispose=function(){this.disable()},i.prototype._mousedownHandler=function(r){if(!(xk(r)||r.target&&r.target.draggable)){var s=r.offsetX,u=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,u)&&(this._x=s,this._y=u,this._dragging=!0)}},i.prototype._mousemoveHandler=function(r){if(this._dragging&&tg("moveOnMouseMove",r,this._opt)&&"pinch"!==r.gestureEvent&&!cy(this._zr,"globalPan")){var s=r.offsetX,u=r.offsetY,f=this._x,d=this._y,p=s-f,v=u-d;this._x=s,this._y=u,this._opt.preventDefaultMouseMove&&Vl(r.event),dy(this,"pan","moveOnMouseMove",r,{dx:p,dy:v,oldX:f,oldY:d,newX:s,newY:u,isAvailableBehavior:null})}},i.prototype._mouseupHandler=function(r){xk(r)||(this._dragging=!1)},i.prototype._mousewheelHandler=function(r){var s=tg("zoomOnMouseWheel",r,this._opt),u=tg("moveOnMouseWheel",r,this._opt),f=r.wheelDelta,d=Math.abs(f),p=r.offsetX,v=r.offsetY;if(0!==f&&(s||u)){if(s){var g=d>3?1.4:d>1?1.2:1.1;fy(this,"zoom","zoomOnMouseWheel",r,{scale:f>0?g:1/g,originX:p,originY:v,isAvailableBehavior:null})}if(u){var y=Math.abs(f);fy(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:(f>0?1:-1)*(y>3?.4:y>1?.15:.05),originX:p,originY:v,isAvailableBehavior:null})}}},i.prototype._pinchHandler=function(r){cy(this._zr,"globalPan")||fy(this,"zoom",null,r,{scale:r.pinchScale>1?1.1:1/1.1,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})},i}(Bs);function Ww(o,i,r){var s=o.target;s.x+=i,s.y+=r,s.dirty()}function wD(o,i,r,s){var u=o.target,f=o.zoomLimit,d=o.zoom=o.zoom||1;if(d*=i,f){var p=f.min||0;d=Math.max(Math.min(f.max||1/0,d),p)}var g=d/o.zoom;o.zoom=d,u.x-=(r-u.x)*(g-1),u.y-=(s-u.y)*(g-1),u.scaleX*=g,u.scaleY*=g,u.dirty()}var f6={axisPointer:1,tooltip:1,brush:1};function Yw(o,i,r){var s=i.getComponentByElement(o.topTarget),u=s&&s.coordinateSystem;return s&&s!==r&&!f6.hasOwnProperty(s.mainType)&&u&&u.model!==r}var SD=["rect","circle","line","ellipse","polygon","polyline","path"],TF=et(SD),d6=et(SD.concat(["g"])),DF=et(SD.concat(["g"])),py=pn();function Jf(o){var i=o.getItemStyle(),r=o.get("areaColor");return null!=r&&(i.fill=r),i}function AF(o,i,r,s){var u=s.getModel("itemStyle"),f=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["blur","itemStyle"]),p=s.getModel(["select","itemStyle"]),v=Jf(u),g=Jf(f),m=Jf(p),y=Jf(d),b=o.data;if(b){var w=b.getItemVisual(r,"style"),S=b.getItemVisual(r,"decal");o.isVisualEncodedByVisualMap&&w.fill&&(v.fill=w.fill),S&&(v.decal=lu(S,o.api))}i.setStyle(v),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=g,i.ensureState("select").style=m,i.ensureState("blur").style=y,yf(i)}function qw(o,i,r,s,u,f,d){var p=o.data,v=o.isGeo,g=p&&isNaN(p.get(p.mapDimension("value"),f)),m=p&&p.getItemLayout(f);if(v||g||m&&m.showLabel){var y=v?r:f,b=void 0;(!p||f>=0)&&(b=u);var w=d?{normal:{align:"center",verticalAlign:"middle"}}:null;Mi(i,lr(s),{labelFetcher:b,labelDataIndex:y,defaultText:r},w);var S=i.getTextContent();if(S&&(py(S).ignore=S.ignore,i.textConfig&&d)){var M=i.getBoundingRect().clone();i.textConfig.layoutRect=M,i.textConfig.position=[(d[0]-M.x)/M.width*100+"%",(d[1]-M.y)/M.height*100+"%"]}i.disableLabelAnimation=!0}else i.removeTextContent(),i.removeTextConfig(),i.disableLabelAnimation=null}function kD(o,i,r,s,u,f){o.data?o.data.setItemGraphicEl(f,i):ht(i).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:r,region:s&&s.option||{}}}function EF(o,i,r,s,u){o.data||Av({el:i,componentModel:u,itemName:r,itemTooltipOption:s.get("tooltip")})}function Xw(o,i,r,s,u){i.highDownSilentOnTouch=!!u.get("selectedMode");var f=s.getModel("emphasis"),d=f.get("focus");return qn(i,d,f.get("blurScope")),o.isGeo&&function(o,i,r){var s=ht(o);s.componentMainType=i.mainType,s.componentIndex=i.componentIndex,s.componentHighDownName=r}(i,u,r),d}var PF=function(){function o(i){var r=new ct;this.uid=Bm("ec_map_draw"),this._controller=new hy(i.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new ct),r.add(this._svgGroup=new ct)}return o.prototype.draw=function(i,r,s,u,f){var d="geo"===i.mainType,p=i.getData&&i.getData();d&&r.eachComponent({mainType:"series",subType:"map"},function(T){!p&&T.getHostGeoModel()===i&&(p=T.getData())});var v=i.coordinateSystem,g=this._regionsGroup,m=this.group,y=v.getTransformInfo(),b=y.raw,w=y.roam;!g.childAt(0)||f?(m.x=w.x,m.y=w.y,m.scaleX=w.scaleX,m.scaleY=w.scaleY,m.dirty()):ln(m,w,i);var M=p&&p.getVisual("visualMeta")&&p.getVisual("visualMeta").length>0,x={api:s,geo:v,mapOrGeoModel:i,data:p,isVisualEncodedByVisualMap:M,isGeo:d,transformInfoRaw:b};"geoJSON"===v.resourceType?this._buildGeoJSON(x):"geoSVG"===v.resourceType&&this._buildSVG(x),this._updateController(i,r,s),this._updateMapSelectHandler(i,g,s,u)},o.prototype._buildGeoJSON=function(i){var r=this._regionsGroupByName=et(),s=et(),u=this._regionsGroup,f=i.transformInfoRaw,d=i.mapOrGeoModel,p=i.data,v=function(m){return[m[0]*f.scaleX+f.x,m[1]*f.scaleY+f.y]};u.removeAll(),q(i.geo.regions,function(g){var m=g.name,y=r.get(m),b=s.get(m)||{},w=b.dataIdx,S=b.regionModel;y||(y=r.set(m,new ct),u.add(y),w=p?p.indexOfName(m):null,S=i.isGeo?d.getRegionModel(m):p?p.getItemModel(w):null,s.set(m,{dataIdx:w,regionModel:S}));var M=new Nx({segmentIgnoreThreshold:1,shape:{paths:[]}});y.add(M),q(g.geometries,function(T){if("polygon"===T.type){for(var P=[],O=0;O-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),u},i.type="series.map",i.dependencies=["geo"],i.layoutMode="box",i.defaultOption={zlevel:0,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"},i}(vt);function _6(o){var i={};o.eachSeriesByType("map",function(r){var s=r.getHostGeoModel(),u=s?"o"+s.id:"i"+r.getMapType();(i[u]=i[u]||[]).push(r)}),q(i,function(r,s){for(var u=function(o,i){var r={};return q(o,function(s){s.each(s.mapDimension("value"),function(u,f){var d="ec-"+s.getName(f);r[d]=r[d]||[],isNaN(u)||r[d].push(u)})}),o[0].map(o[0].mapDimension("value"),function(s,u){for(var f="ec-"+o[0].getName(u),d=0,p=1/0,v=-1/0,g=r[f].length,m=0;m1?(S.width=w,S.height=w/m):(S.height=w,S.width=w*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var M=o.getBoxLayoutParams();M.aspect=m,S=li(M,{width:v,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(o.get("center")),this.setZoom(o.get("zoom"))}var DD=new(function(){function o(){this.dimensions=Ts}return o.prototype.create=function(i,r){var s=[];i.eachComponent("geo",function(f,d){var p=f.get("map"),v=new er(p+d,p,{nameMap:f.get("nameMap"),nameProperty:f.get("nameProperty"),aspectScale:f.get("aspectScale")});v.zoomLimit=f.get("scaleLimit"),s.push(v),f.coordinateSystem=v,v.model=f,v.resize=TD,v.resize(f,r)}),i.eachSeries(function(f){if("geo"===f.get("coordinateSystem")){var p=f.get("geoIndex")||0;f.coordinateSystem=s[p]}});var u={};return i.eachSeriesByType("map",function(f){if(!f.getHostGeoModel()){var d=f.getMapType();u[d]=u[d]||[],u[d].push(f)}}),q(u,function(f,d){var p=Te(f,function(g){return g.get("nameMap")}),v=new er(d,d,{nameMap:Lb(p),nameProperty:f[0].get("nameProperty"),aspectScale:f[0].get("aspectScale")});v.zoomLimit=ni.apply(null,Te(f,function(g){return g.get("scaleLimit")})),s.push(v),v.resize=TD,v.resize(f[0],r),q(f,function(g){g.coordinateSystem=v,function(o,i){q(i.get("geoCoord"),function(r,s){o.addGeoCoord(s,r)})}(v,g)})}),s},o.prototype.getFilledRegions=function(i,r,s,u){for(var f=(i||[]).slice(),d=et(),p=0;p=0;){var f=i[r];f.hierNode.prelim+=s,f.hierNode.modifier+=s,s+=f.hierNode.shift+(u+=f.hierNode.change)}}(o);var f=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;u?(o.hierNode.prelim=u.hierNode.prelim+i(o,u),o.hierNode.modifier=o.hierNode.prelim-f):o.hierNode.prelim=f}else u&&(o.hierNode.prelim=u.hierNode.prelim+i(o,u));o.parentNode.hierNode.defaultAncestor=function(o,i,r,s){if(i){for(var u=o,f=o,d=f.parentNode.children[0],p=i,v=u.hierNode.modifier,g=f.hierNode.modifier,m=d.hierNode.modifier,y=p.hierNode.modifier;p=Zw(p),f=OD(f),p&&f;){u=Zw(u),d=OD(d),u.hierNode.ancestor=o;var b=p.hierNode.prelim+y-f.hierNode.prelim-g+s(p,f);b>0&&(T6(x6(p,o,r),o,b),g+=b,v+=b),y+=p.hierNode.modifier,g+=f.hierNode.modifier,v+=u.hierNode.modifier,m+=d.hierNode.modifier}p&&!Zw(u)&&(u.hierNode.thread=p,u.hierNode.modifier+=y-v),f&&!OD(d)&&(d.hierNode.thread=f,d.hierNode.modifier+=g-m,r=o)}return r}(o,u,o.parentNode.hierNode.defaultAncestor||s[0],i)}function wK(o){o.setLayout({x:o.hierNode.prelim+o.parentNode.hierNode.modifier},!0),o.hierNode.modifier+=o.parentNode.hierNode.modifier}function Ds(o){return arguments.length?o:D6}function my(o,i){return o-=Math.PI/2,{x:i*Math.cos(o),y:i*Math.sin(o)}}function Zw(o){var i=o.children;return i.length&&o.isExpand?i[i.length-1]:o.hierNode.thread}function OD(o){var i=o.children;return i.length&&o.isExpand?i[0]:o.hierNode.thread}function x6(o,i,r){return o.hierNode.ancestor.parentNode===i.parentNode?o.hierNode.ancestor:r}function T6(o,i,r){var s=r/(i.hierNode.i-o.hierNode.i);i.hierNode.change-=s,i.hierNode.shift+=r,i.hierNode.modifier+=r,i.hierNode.prelim+=r,o.hierNode.change+=s}function D6(o,i){return o.parentNode===i.parentNode?1:2}var A6=function(){this.parentPoint=[],this.childPoints=[]},E6=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new A6},i.prototype.buildPath=function(r,s){var u=s.childPoints,f=u.length,d=s.parentPoint,p=u[0],v=u[f-1];if(1===f)return r.moveTo(d[0],d[1]),void r.lineTo(p[0],p[1]);var g=s.orient,m="TB"===g||"BT"===g?0:1,y=1-m,b=Fe(s.forkPosition,1),w=[];w[m]=d[m],w[y]=d[y]+(v[y]-d[y])*b,r.moveTo(d[0],d[1]),r.lineTo(w[0],w[1]),r.moveTo(p[0],p[1]),w[m]=p[m],r.lineTo(w[0],w[1]),w[m]=v[m],r.lineTo(w[0],w[1]),r.lineTo(v[0],v[1]);for(var S=1;SP.x)||(R-=Math.PI);var U=V?"left":"right",j=p.getModel("label"),X=j.get("rotate"),Z=X*(Math.PI/180),$=x.getTextContent();$&&(x.setTextConfig({position:j.get("position")||U,rotation:null==X?-R:Z,origin:"center"}),$.setStyle("verticalAlign","middle"))}var te=p.get(["emphasis","focus"]),ee="ancestor"===te?d.getAncestorsIndices():"descendant"===te?d.getDescendantIndices():null;ee&&(ht(r).focus=ee),function(o,i,r,s,u,f,d,p){var v=i.getModel(),g=o.get("edgeShape"),m=o.get("layout"),y=o.getOrient(),b=o.get(["lineStyle","curveness"]),w=o.get("edgeForkPosition"),S=v.getModel("lineStyle").getLineStyle(),M=s.__edge;if("curve"===g)i.parentNode&&i.parentNode!==r&&(M||(M=s.__edge=new c_({shape:LD(m,y,b,u,u)})),ln(M,{shape:LD(m,y,b,f,d)},o));else if("polyline"===g&&"orthogonal"===m&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var x=i.children,T=[],P=0;Pr&&(r=u.height)}this.height=r+1},o.prototype.getNodeById=function(i){if(this.getId()===i)return this;for(var r=0,s=this.children,u=s.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,r)},o.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},o.prototype.getModel=function(i){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(i)},o.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},o.prototype.setVisual=function(i,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,r)},o.prototype.getVisual=function(i){return this.hostTree.data.getItemVisual(this.dataIndex,i)},o.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},o.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},o.prototype.getChildIndex=function(){if(this.parentNode){for(var i=this.parentNode.children,r=0;r=0){var s=r.getData().tree.root,u=o.targetNode;if("string"==typeof u&&(u=s.getNodeById(u)),u&&s.contains(u))return{node:u};var f=o.targetNodeId;if(null!=f&&(u=s.getNodeById(f)))return{node:u}}}function VD(o){for(var i=[];o;)(o=o.parentNode)&&i.push(o);return i.reverse()}function BD(o,i){return Rt(VD(o),i)>=0}function HD(o,i){for(var r=[];o;){var s=o.dataIndex;r.push({name:o.name,dataIndex:s,value:i.getRawValue(s)}),o=o.parentNode}return r.reverse(),r}var V6=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r){var s={name:r.name,children:r.data},f=new Nn(r.leaves||{},this,this.ecModel),d=Kw.createTree(s,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=d.getNodeByDataIndex(w);return S&&S.children.length&&S.isExpand||(b.parentModel=f),b})}),v=0;d.eachNode("preorder",function(y){y.depth>v&&(v=y.depth)});var m=r.expandAndCollapse&&r.initialTreeDepth>=0?r.initialTreeDepth:v;return d.root.eachNode("preorder",function(y){var b=y.hostTree.data.getRawDataItem(y.dataIndex);y.isExpand=b&&null!=b.collapsed?!b.collapsed:y.depth<=m}),d.data},i.prototype.getOrient=function(){var r=this.get("orient");return"horizontal"===r?r="LR":"vertical"===r&&(r="TB"),r},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.formatTooltip=function(r,s,u){for(var f=this.getData().tree,d=f.root.children[0],p=f.getNodeByDataIndex(r),v=p.getValue(),g=p.name;p&&p!==d;)g=p.parentNode.name+"."+g,p=p.parentNode;return pi("nameValue",{name:g,value:v,noValue:isNaN(v)||null==v})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s},i.type="series.tree",i.layoutMode="box",i.defaultOption={zlevel:0,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},i}(vt);function vc(o,i){for(var s,r=[o];s=r.pop();)if(i(s),s.isExpand){var u=s.children;if(u.length)for(var f=u.length-1;f>=0;f--)r.push(u[f])}}function H6(o,i){o.eachSeriesByType("tree",function(r){!function(o,i){var r=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(o,i);o.layoutInfo=r;var s=o.get("layout"),u=0,f=0,d=null;"radial"===s?(u=2*Math.PI,f=Math.min(r.height,r.width)/2,d=Ds(function(O,R){return(O.parentNode===R.parentNode?1:2)/O.depth})):(u=r.width,f=r.height,d=Ds());var p=o.getData().tree.root,v=p.children[0];if(v){(function(o){var i=o;i.hierNode={defaultAncestor:null,ancestor:i,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s,u,r=[i];s=r.pop();)if(u=s.children,s.isExpand&&u.length)for(var d=u.length-1;d>=0;d--){var p=u[d];p.hierNode={defaultAncestor:null,ancestor:p,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},r.push(p)}})(p),function(o,i,r){for(var f,s=[o],u=[];f=s.pop();)if(u.push(f),f.isExpand){var d=f.children;if(d.length)for(var p=0;pm.getLayout().x&&(m=O),O.depth>y.depth&&(y=O)});var b=g===m?1:d(g,m)/2,w=b-g.getLayout().x,S=0,M=0,x=0,T=0;if("radial"===s)S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),vc(v,function(O){var R=my(x=(O.getLayout().x+w)*S,T=(O.depth-1)*M);O.setLayout({x:R.x,y:R.y,rawX:x,rawY:T},!0)});else{var P=o.getOrient();"RL"===P||"LR"===P?(M=f/(m.getLayout().x+b+w),S=u/(y.depth-1||1),vc(v,function(O){T=(O.getLayout().x+w)*M,O.setLayout({x:x="LR"===P?(O.depth-1)*S:u-(O.depth-1)*S,y:T},!0)})):("TB"===P||"BT"===P)&&(S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),vc(v,function(O){x=(O.getLayout().x+w)*S,O.setLayout({x:x,y:T="TB"===P?(O.depth-1)*M:f-(O.depth-1)*M},!0)}))}}}(r,i)})}function z6(o){o.eachSeriesByType("tree",function(i){var r=i.getData();r.tree.eachNode(function(u){var d=u.getModel().getModel("itemStyle").getItemStyle();Se(r.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var G6=function(){},jF=["treemapZoomToNode","treemapRender","treemapMove"];function WF(o){var i=o.getData(),s={};i.tree.eachNode(function(u){for(var f=u;f&&f.depth>1;)f=f.parentNode;var d=KM(o.ecModel,f.name||f.dataIndex+"",s);u.setVisual("decal",d)})}function Y6(o){var i=0;q(o.children,function(s){Y6(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var Qw=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventUsingHoverLayer=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};Y6(u);var f=r.levels||[],d=this.designatedVisualItemStyle={},p=new Nn({itemStyle:d},this,s),v=Te((f=r.levels=function(o,i){var r=jn(i.get("color")),s=jn(i.get(["aria","decal","decals"]));if(r){var u,f;q(o=o||[],function(p){var v=new Nn(p),g=v.get("color"),m=v.get("decal");(v.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(v.get(["itemStyle","decal"])||m&&"none"!==m)&&(f=!0)});var d=o[0]||(o[0]={});return u||(d.color=r.slice()),!f&&s&&(d.decal=s.slice()),o}}(f,s))||[],function(y){return new Nn(y,p,s)},this),g=Kw.createTree(u,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=g.getNodeByDataIndex(w);return b.parentModel=(S?v[S.depth]:null)||p,b})});return g.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.formatTooltip=function(r,s,u){var f=this.getData(),d=this.getRawValue(r);return pi("nameValue",{name:f.getName(r),value:d})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s.treePathInfo=s.treeAncestors,s},i.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Se(this.layoutInfo,r)},i.prototype.mapIdToIndex=function(r){var s=this._idIndexMap;s||(s=this._idIndexMap=et(),this._idIndexMapCount=0);var u=s.get(r);return null==u&&s.set(r,u=this._idIndexMapCount++),u},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.treemap",i.layoutMode="box",i.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},i}(vt);function qF(o,i,r,s,u,f){var d=[[u?o:o-5,i],[o+r,i],[o+r,i+s],[u?o:o-5,i+s]];return!f&&d.splice(2,0,[o+r+5,i+s/2]),!u&&d.push([o,i+s/2]),d}function Z6(o,i,r){ht(o).eventData={componentType:"series",componentSubType:"treemap",componentIndex:i.componentIndex,seriesIndex:i.componentIndex,seriesName:i.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&HD(r,i)}}var K6=function(){function o(i){this.group=new ct,i.add(this.group)}return o.prototype.render=function(i,r,s,u){var f=i.getModel("breadcrumb"),d=this.group;if(d.removeAll(),f.get("show")&&s){var p=f.getModel("itemStyle"),v=p.getModel("textStyle"),g={pos:{left:f.get("left"),right:f.get("right"),top:f.get("top"),bottom:f.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:f.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(s,g,v),this._renderContent(i,g,p,v,u),tC(d,g.pos,g.box)}},o.prototype._prepare=function(i,r,s){for(var u=i;u;u=u.parentNode){var f=wi(u.getModel().get("name"),""),d=s.getTextRect(f),p=Math.max(d.width+16,r.emptyItemWidth);r.totalWidth+=p+8,r.renderList.push({node:u,text:f,width:p})}},o.prototype._renderContent=function(i,r,s,u,f){for(var d=0,p=r.emptyItemWidth,v=i.get(["breadcrumb","height"]),g=function(o,i,r){var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u);return(isNaN(f)||isNaN(parseFloat(o.left)))&&(f=0),(isNaN(p)||isNaN(parseFloat(o.right)))&&(p=s),(isNaN(d)||isNaN(parseFloat(o.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(o.bottom)))&&(v=u),r=lh(r||0),{width:Math.max(p-f-r[1]-r[3],0),height:Math.max(v-d-r[0]-r[2],0)}}(r.pos,r.box),m=r.totalWidth,y=r.renderList,b=y.length-1;b>=0;b--){var w=y[b],S=w.node,M=w.width,x=w.text;m>g.width&&(m-=M-p,M=p,x=null);var T=new ya({shape:{points:qF(d,0,M,v,b===y.length-1,0===b)},style:tt(s.getItemStyle(),{lineJoin:"bevel"}),textContent:new fn({style:{text:x,fill:u.getTextColor(),font:u.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:St(f,S)});T.disableLabelAnimation=!0,this.group.add(T),Z6(T,i,S),d+=M+8}},o.prototype.remove=function(){this.group.removeAll()},o}(),$6=function(){function o(){this._storage=[],this._elExistsMap={}}return o.prototype.add=function(i,r,s,u,f){return!this._elExistsMap[i.id]&&(this._elExistsMap[i.id]=!0,this._storage.push({el:i,target:r,duration:s,delay:u,easing:f}),!0)},o.prototype.finished=function(i){return this._finishedCallback=i,this},o.prototype.start=function(){for(var i=this,r=this._storage.length,s=function(){--r<=0&&(i._storage.length=0,i._elExistsMap={},i._finishedCallback&&i._finishedCallback())},u=0,f=this._storage.length;u3||Math.abs(r.dy)>3)){var s=this.seriesModel.getData().tree.root;if(!s)return;var u=s.getLayout();if(!u)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x+r.dx,y:u.y+r.dy,width:u.width,height:u.height}})}},i.prototype._onZoom=function(r){var s=r.originX,u=r.originY;if("animating"!==this._state){var f=this.seriesModel.getData().tree.root;if(!f)return;var d=f.getLayout();if(!d)return;var p=new Ft(d.x,d.y,d.width,d.height),v=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];Oo(g,g,[-(s-=v.x),-(u-=v.y)]),$b(g,g,[r.scale,r.scale]),Oo(g,g,[s,u]),p.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:p.x,y:p.y,width:p.width,height:p.height}})}},i.prototype._initEvents=function(r){var s=this;r.on("click",function(u){if("ready"===s._state){var f=s.seriesModel.get("nodeClick",!0);if(f){var d=s.findTarget(u.offsetX,u.offsetY);if(d){var p=d.node;if(p.getLayout().isLeafRoot)s._rootToNode(d);else if("zoomToNode"===f)s._zoomToNode(d);else if("link"===f){var v=p.hostTree.data.getItemModel(p.dataIndex),g=v.get("link",!0),m=v.get("target",!0)||"blank";g&&J0(g,m)}}}}},this)},i.prototype._renderBreadcrumb=function(r,s,u){var f=this;u||(u=null!=r.get("leafDepth",!0)?{node:r.getViewRoot()}:this.findTarget(s.getWidth()/2,s.getHeight()/2))||(u={node:r.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new K6(this.group))).render(r,s,u.node,function(d){"animating"!==f._state&&(BD(r.getViewRoot(),d)?f._rootToNode({node:d}):f._zoomToNode({node:d}))})},i.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},i.prototype.dispose=function(){this._clearController()},i.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype.findTarget=function(r,s){var u;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(d){var p=this._storage.background[d.getRawIndex()];if(p){var v=p.transformCoordToLocal(r,s),g=p.shape;if(!(g.x<=v[0]&&v[0]<=g.x+g.width&&g.y<=v[1]&&v[1]<=g.y+g.height))return!1;u={node:d,offsetX:v[0],offsetY:v[1]}}},this),u},i.type="treemap",i}(Vn),rg=q,AK=at,Sy=function(){function o(i){var r=i.mappingMethod,s=i.type,u=this.option=rt(i);this.type=s,this.mappingMethod=r,this._normalizeData=rj[r];var f=o.visualHandlers[s];this.applyVisual=f.applyVisual,this.getColorMapper=f.getColorMapper,this._normalizedToVisual=f._normalizedToVisual[r],"piecewise"===r?(t1(u),function(o){var i=o.pieceList;o.hasSpecialVisual=!1,q(i,function(r,s){r.originIndex=s,null!=r.visual&&(o.hasSpecialVisual=!0)})}(u)):"category"===r?u.categories?function(o){var i=o.categories,r=o.categoryMap={},s=o.visual;if(rg(i,function(d,p){r[d]=p}),!we(s)){var u=[];at(s)?rg(s,function(d,p){var v=r[p];u[null!=v?v:-1]=d}):u[-1]=s,s=KF(o,u)}for(var f=i.length-1;f>=0;f--)null==s[f]&&(delete r[i[f]],i.pop())}(u):t1(u,!0):(Oa("linear"!==r||u.dataExtent),t1(u))}return o.prototype.mapValueToVisual=function(i){var r=this._normalizeData(i);return this._normalizedToVisual(r,i)},o.prototype.getNormalizer=function(){return Ye(this._normalizeData,this)},o.listVisualTypes=function(){return _n(o.visualHandlers)},o.isValidType=function(i){return o.visualHandlers.hasOwnProperty(i)},o.eachVisual=function(i,r,s){at(i)?q(i,r,s):r.call(s,i)},o.mapVisual=function(i,r,s){var u,f=we(i)?[]:at(i)?{}:(u=!0,null);return o.eachVisual(i,function(d,p){var v=r.call(s,d,p);u?f=v:f[p]=v}),f},o.retrieveVisuals=function(i){var s,r={};return i&&rg(o.visualHandlers,function(u,f){i.hasOwnProperty(f)&&(r[f]=i[f],s=!0)}),s?r:null},o.prepareVisualTypes=function(i){if(we(i))i=i.slice();else{if(!AK(i))return[];var r=[];rg(i,function(s,u){r.push(u)}),i=r}return i.sort(function(s,u){return"color"===u&&"color"!==s&&0===s.indexOf("color")?1:-1}),i},o.dependsOn=function(i,r){return"color"===r?!(!i||0!==i.indexOf(r)):i===r},o.findPieceIndex=function(i,r,s){for(var u,f=1/0,d=0,p=r.length;dg[1]&&(g[1]=v);var m=i.get("colorMappingBy"),y={type:d.name,dataExtent:g,visual:d.range};"color"!==y.type||"index"!==m&&"id"!==m?y.mappingMethod="linear":(y.mappingMethod="category",y.loop=!0);var b=new Qi(y);return ZD(b).drColorMappingBy=m,b}}}(0,u,f,0,v,w);q(w,function(M,x){(M.depth>=r.length||M===r[M.depth])&&$F(M,function(o,i,r,s,u,f){var d=Se({},i);if(u){var p=u.type,v="color"===p&&ZD(u).drColorMappingBy,g="index"===v?s:"id"===v?f.mapIdToIndex(r.getId()):r.getValue(o.get("visualDimension"));d[p]=u.mapValueToVisual(g)}return d}(u,v,M,x,S,s),r,s)})}else b=JF(v),g.fill=b}}function JF(o){var i=KD(o,"color");if(i){var r=KD(o,"colorAlpha"),s=KD(o,"colorSaturation");return s&&(i=Qc(i,null,null,s)),r&&(i=Yb(i,r)),i}}function KD(o,i){var r=o[i];if(null!=r&&"none"!==r)return r}function $D(o,i){var r=o.get(i);return we(r)&&r.length?{name:i,range:r}:null}var xy=Math.max,ed=Math.min,eN=ni,Ty=q,tN=["itemStyle","borderWidth"],lj=["itemStyle","gapWidth"],uj=["upperLabel","show"],cj=["upperLabel","height"],fj={seriesType:"treemap",reset:function(i,r,s,u){var f=s.getWidth(),d=s.getHeight(),p=i.option,v=li(i.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()}),g=p.size||[],m=Fe(eN(v.width,g[0]),f),y=Fe(eN(v.height,g[1]),d),b=u&&u.type,S=_y(u,["treemapZoomToNode","treemapRootToNode"],i),M="treemapRender"===b||"treemapMove"===b?u.rootRect:null,x=i.getViewRoot(),T=VD(x);if("treemapMove"!==b){var P="treemapZoomToNode"===b?function(o,i,r,s,u){var f=(i||{}).node,d=[s,u];if(!f||f===r)return d;for(var p,v=s*u,g=v*o.option.zoomToNodeRatio;p=f.parentNode;){for(var m=0,y=p.children,b=0,w=y.length;bUp&&(g=Up),f=p}gp[1]&&(p[1]=g)})):p=[NaN,NaN],{sum:s,dataExtent:p}}(i,d,p);if(0===g.sum)return o.viewChildren=[];if(g.sum=function(o,i,r,s,u){if(!s)return r;for(var f=o.get("visibleMin"),d=u.length,p=d,v=d-1;v>=0;v--){var g=u["asc"===s?d-v-1:v].getValue();g/r*is&&(s=d));var v=o.area*o.area,g=i*i*r;return v?xy(g*s/v,v/(g*u)):1/0}function mj(o,i,r,s,u){var f=i===r.width?0:1,d=1-f,p=["x","y"],v=["width","height"],g=r[p[f]],m=i?o.area/i:0;(u||m>r[v[d]])&&(m=r[v[d]]);for(var y=0,b=o.length;yu&&(u=r);var d=u%2?u+2:u+3;f=[];for(var p=0;p0&&(V[0]=-V[0],V[1]=-V[1]);var U=R[0]<0?-1:1;if("start"!==f.__position&&"end"!==f.__position){var j=-Math.atan2(R[1],R[0]);y[0].8?"left":b[0]<-.8?"right":"center",M=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":f.x=-b[0]*T+m[0],f.y=-b[1]*P+m[1],S=b[0]>.8?"right":b[0]<-.8?"left":"center",M=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f.x=T*U+m[0],f.y=m[1]+X,S=R[0]<0?"right":"left",f.originX=-T*U,f.originY=-X;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f.x=B[0],f.y=B[1]+X,S="center",f.originY=-X;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f.x=-T*U+y[0],f.y=y[1]+X,S=R[0]>=0?"right":"left",f.originX=T*U,f.originY=-X}f.scaleX=f.scaleY=d,f.setStyle({verticalAlign:f.__verticalAlign||M,align:f.__align||S})}}}function w(Z,$){var te=Z.__specifiedRotation;if(null==te){var ee=v.tangentAt($);Z.attr("rotation",(1===$?-1:1)*Math.PI/2-Math.atan2(ee[1],ee[0]))}else Z.attr("rotation",te)}},i}(ct);function iA(o){var i=o.hostModel;return{lineStyle:i.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:i.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:i.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:lr(i)}}function pN(o){return isNaN(o[0])||isNaN(o[1])}function vN(o){return!pN(o[0])&&!pN(o[1])}var gN=function(){function o(i){this.group=new ct,this._LineCtor=i||Oy}return o.prototype.isPersistent=function(){return!0},o.prototype.updateData=function(i){var r=this,s=this,u=s.group,f=s._lineData;s._lineData=i,f||u.removeAll();var d=iA(i);i.diff(f).add(function(p){r._doAdd(i,p,d)}).update(function(p,v){r._doUpdate(f,i,v,p,d)}).remove(function(p){u.remove(f.getItemGraphicEl(p))}).execute()},o.prototype.updateLayout=function(){var i=this._lineData;!i||i.eachItemGraphicEl(function(r,s){r.updateLayout(i,s)},this)},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=iA(i),this._lineData=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r){function s(p){!p.isGroup&&!function(o){return o.animators&&o.animators.length>0}(p)&&(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var u=i.start;u=0?p+=g:p-=g:S>=0?p-=g:p+=g}return p}function l1(o,i){var r=[],s=Wi,u=[[],[],[]],f=[[],[]],d=[];i/=2,o.eachEdge(function(p,v){var g=p.getLayout(),m=p.getVisual("fromSymbol"),y=p.getVisual("toSymbol");g.__original||(g.__original=[Gu(g[0]),Gu(g[1])],g[2]&&g.__original.push(Gu(g[2])));var b=g.__original;if(null!=g[2]){if(ua(u[0],b[0]),ua(u[1],b[2]),ua(u[2],b[1]),m&&"none"!==m){var w=Ey(p.node1),S=wN(u,b[0],w*i);s(u[0][0],u[1][0],u[2][0],S,r),u[0][0]=r[3],u[1][0]=r[4],s(u[0][1],u[1][1],u[2][1],S,r),u[0][1]=r[3],u[1][1]=r[4]}y&&"none"!==y&&(w=Ey(p.node2),S=wN(u,b[1],w*i),s(u[0][0],u[1][0],u[2][0],S,r),u[1][0]=r[1],u[2][0]=r[2],s(u[0][1],u[1][1],u[2][1],S,r),u[1][1]=r[1],u[2][1]=r[2]),ua(g[0],u[0]),ua(g[1],u[2]),ua(g[2],u[1])}else ua(f[0],b[0]),ua(f[1],b[1]),yd(d,f[1],f[0]),bd(d,d),m&&"none"!==m&&(w=Ey(p.node1),Ck(f[0],f[0],d,w*i)),y&&"none"!==y&&(w=Ey(p.node2),Ck(f[1],f[1],d,-w*i)),ua(g[0],f[0]),ua(g[1],f[1])})}function u1(o){return"view"===o.type}var SN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){var u=new Y_,f=new gN,d=this.group;this._controller=new hy(s.getZr()),this._controllerHost={target:d},d.add(u.group),d.add(f.group),this._symbolDraw=u,this._lineDraw=f,this._firstRender=!0},i.prototype.render=function(r,s,u){var f=this,d=r.coordinateSystem;this._model=r;var p=this._symbolDraw,v=this._lineDraw,g=this.group;if(u1(d)){var m={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?g.attr(m):ln(g,m,r)}l1(r.getGraph(),Ay(r));var y=r.getData();p.updateData(y);var b=r.getEdgeData();v.updateData(b),this._updateNodeAndLinkScale(),this._updateController(r,s,u),clearTimeout(this._layoutTimeout);var w=r.forceLayout,S=r.get(["force","layoutAnimation"]);w&&this._startForceLayoutIteration(w,S),y.graph.eachNode(function(P){var O=P.dataIndex,R=P.getGraphicEl(),V=P.getModel();R.off("drag").off("dragend");var B=V.get("draggable");B&&R.on("drag",function(){w&&(w.warmUp(),!f._layouting&&f._startForceLayoutIteration(w,S),w.setFixed(O),y.setItemLayout(O,[R.x,R.y]))}).on("dragend",function(){w&&w.setUnfixed(O)}),R.setDraggable(B&&!!w),"adjacency"===V.get(["emphasis","focus"])&&(ht(R).focus=P.getAdjacentDataIndices())}),y.graph.eachEdge(function(P){var O=P.getGraphicEl();"adjacency"===P.getModel().get(["emphasis","focus"])&&(ht(O).focus={edge:[P.dataIndex],node:[P.node1.dataIndex,P.node2.dataIndex]})});var M="circular"===r.get("layout")&&r.get(["circular","rotateLabel"]),x=y.getLayout("cx"),T=y.getLayout("cy");y.eachItemGraphicEl(function(P,O){var V=y.getItemModel(O).get(["label","rotate"])||0,B=P.getSymbolPath();if(M){var U=y.getItemLayout(O),j=Math.atan2(U[1]-T,U[0]-x);j<0&&(j=2*Math.PI+j);var X=U[0]=0&&i.call(r,s[f],f)},o.prototype.eachEdge=function(i,r){for(var s=this.edges,u=s.length,f=0;f=0&&s[f].node1.dataIndex>=0&&s[f].node2.dataIndex>=0&&i.call(r,s[f],f)},o.prototype.breadthFirstTraverse=function(i,r,s,u){if(r instanceof Kh||(r=this._nodesMap[sg(r)]),r){for(var f="out"===s?"outEdges":"in"===s?"inEdges":"edges",d=0;d=0&&v.node2.dataIndex>=0}),f=0,d=u.length;f=0&&this[o][i].setItemVisual(this.dataIndex,s,u)},getVisual:function(s){return this[o][i].getItemVisual(this.dataIndex,s)},setLayout:function(s,u){this.dataIndex>=0&&this[o][i].setItemLayout(this.dataIndex,s,u)},getLayout:function(){return this[o][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[o][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[o][i].getRawIndex(this.dataIndex)}}}qr(Kh,Oj("hostGraph","data")),qr(Pj,Oj("hostGraph","edgeData"));var Ij=oA;function kN(o,i,r,s,u){for(var f=new Ij(s),d=0;d "+b)),g++)}var S,w=r.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)S=gl(o,r);else{var M=$m.get(w),x=M&&M.dimensions||[];Rt(x,"value")<0&&x.concat(["value"]);var T=Fv(o,{coordDimensions:x,encodeDefine:r.getEncode()}).dimensions;(S=new Ga(T,r)).initData(o)}var P=new Ga(["value"],r);return P.initData(v,p),u&&u(S,P),N6({mainData:S,struct:f,structAttr:"graph",datas:{node:S,edge:P},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}var NK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments);var s=this;function u(){return s._categoriesData}this.legendVisualProvider=new mu(u,u),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeDefaultAndTheme=function(r){o.prototype.mergeDefaultAndTheme.apply(this,arguments),Nd(r,"edgeLabel",["show"])},i.prototype.getInitialData=function(r,s){var u=r.edges||r.links||[],f=r.data||r.nodes||[],d=this;if(f&&u){!function(o){!tA(o)||(o.__curvenessList=[],o.__edgeMap={},Cj(o))}(this);var p=kN(f,u,this,!0,function(g,m){g.wrapMethod("getItemModel",function(S){var T=d._categoriesModels[S.getShallow("category")];return T&&(T.parentModel=S.parentModel,S.parentModel=T),S});var y=Nn.prototype.getModel;function b(S,M){var x=y.call(this,S,M);return x.resolveParentPath=w,x}function w(S){if(S&&("label"===S[0]||"label"===S[1])){var M=S.slice();return"label"===S[0]?M[0]="edgeLabel":"label"===S[1]&&(M[1]="edgeLabel"),M}return S}m.wrapMethod("getItemModel",function(S){return S.resolveParentPath=w,S.getModel=b,S})});return q(p.edges,function(g){!function(o,i,r,s){if(tA(r)){var u=Dy(o,i,r),f=r.__edgeMap,d=f[wj(u)];f[u]&&!d?f[u].isForward=!0:d&&f[u]&&(d.isForward=!0,f[u].isForward=!1),f[u]=f[u]||[],f[u].push(s)}}(g.node1,g.node2,this,g.dataIndex)},this),p.data}},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.getCategoriesData=function(){return this._categoriesData},i.prototype.formatTooltip=function(r,s,u){if("edge"===u){var f=this.getData(),d=this.getDataParams(r,u),p=f.graph.getEdgeByIndex(r),v=f.getName(p.node1.dataIndex),g=f.getName(p.node2.dataIndex),m=[];return null!=v&&m.push(v),null!=g&&m.push(g),pi("nameValue",{name:m.join(" > "),value:d.value,noValue:null==d.value})}return D4({series:this,dataIndex:r,multipleSeries:s})},i.prototype._updateCategoriesData=function(){var r=Te(this.option.categories||[],function(u){return null!=u.value?u:Se({value:0},u)}),s=new Ga(["value"],this);s.initData(r),this._categoriesData=s,this._categoriesModels=s.mapArray(function(u){return s.getItemModel(u)})},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.isAnimationEnabled=function(){return o.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},i.type="series.graph",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={zlevel:0,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"}}},i}(vt),Ma={type:"graphRoam",event:"graphRoam",update:"none"},Lj=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},MN=function(o){function i(r){var s=o.call(this,r)||this;return s.type="pointer",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Lj},i.prototype.buildPath=function(r,s){var u=Math.cos,f=Math.sin,d=s.r,p=s.width,v=s.angle,g=s.x-u(v)*p*(p>=d/3?1:2),m=s.y-f(v)*p*(p>=d/3?1:2);v=s.angle-Math.PI/2,r.moveTo(g,m),r.lineTo(s.x+u(v)*p,s.y+f(v)*p),r.lineTo(s.x+u(s.angle)*d,s.y+f(s.angle)*d),r.lineTo(s.x-u(v)*p,s.y-f(v)*p),r.lineTo(g,m)},i}(Nt);function c1(o,i){var r=null==o?"":o+"";return i&&("string"==typeof i?r=i.replace("{value}",r):"function"==typeof i&&(r=i(o))),r}var sA=2*Math.PI,f1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll();var f=r.get(["axisLine","lineStyle","color"]),d=function(o,i){var r=o.get("center"),s=i.getWidth(),u=i.getHeight(),f=Math.min(s,u);return{cx:Fe(r[0],i.getWidth()),cy:Fe(r[1],i.getHeight()),r:Fe(o.get("radius"),f/2)}}(r,u);this._renderMain(r,s,u,f,d),this._data=r.getData()},i.prototype.dispose=function(){},i.prototype._renderMain=function(r,s,u,f,d){for(var p=this.group,v=r.get("clockwise"),g=-r.get("startAngle")/180*Math.PI,m=-r.get("endAngle")/180*Math.PI,y=r.getModel("axisLine"),w=y.get("roundCap")?Z_:ir,S=y.get("show"),M=y.getModel("lineStyle"),x=M.get("width"),T=(m-g)%sA||m===g?(m-g)%sA:sA,P=g,O=0;S&&O=X&&(0===Z?0:f[Z-1][0]).8?"bottom":"middle",align:le<-.4?"left":le>.4?"right":"center"},{inheritColor:Me}),silent:!0}))}if(P.get("show")&&de!==R){ge=(ge=P.get("distance"))?ge+m:m;for(var ze=0;ze<=V;ze++){le=Math.cos(j),oe=Math.sin(j);var Je=new Ti({shape:{x1:le*(S-ge)+b,y1:oe*(S-ge)+w,x2:le*(S-U-ge)+b,y2:oe*(S-U-ge)+w},silent:!0,style:te});"auto"===te.stroke&&Je.setStyle({stroke:f((de+ze/V)/R)}),y.add(Je),j+=Z}j-=Z}else j+=X}},i.prototype._renderPointer=function(r,s,u,f,d,p,v,g,m){var y=this.group,b=this._data,w=this._progressEls,S=[],M=r.get(["pointer","show"]),x=r.getModel("progress"),T=x.get("show"),P=r.getData(),O=P.mapDimension("value"),R=+r.get("min"),V=+r.get("max"),B=[R,V],U=[p,v];function j(Z,$){var ze,ee=P.getItemModel(Z).getModel("pointer"),le=Fe(ee.get("width"),d.r),oe=Fe(ee.get("length"),d.r),de=r.get(["pointer","icon"]),ge=ee.get("offsetCenter"),_e=Fe(ge[0],d.r),xe=Fe(ge[1],d.r),Me=ee.get("keepAspect");return(ze=de?Ir(de,_e-le/2,xe-oe,le,oe,null,Me):new MN({shape:{angle:-Math.PI/2,width:le,r:oe,x:_e,y:xe}})).rotation=-($+Math.PI/2),ze.x=d.cx,ze.y=d.cy,ze}function X(Z,$){var ee=x.get("roundCap")?Z_:ir,le=x.get("overlap"),oe=le?x.get("width"):m/P.count(),_e=new ee({shape:{startAngle:p,endAngle:$,cx:d.cx,cy:d.cy,clockwise:g,r0:le?d.r-oe:d.r-(Z+1)*oe,r:le?d.r:d.r-Z*oe}});return le&&(_e.z2=V-P.get(O,Z)%V),_e}(T||M)&&(P.diff(b).add(function(Z){if(M){var $=j(Z,p);yr($,{rotation:-(bn(P.get(O,Z),B,U,!0)+Math.PI/2)},r),y.add($),P.setItemGraphicEl(Z,$)}if(T){var te=X(Z,p),ee=x.get("clip");yr(te,{shape:{endAngle:bn(P.get(O,Z),B,U,ee)}},r),y.add(te),cs(r.seriesIndex,P.dataType,Z,te),S[Z]=te}}).update(function(Z,$){if(M){var te=b.getItemGraphicEl($),ee=te?te.rotation:p,le=j(Z,ee);le.rotation=ee,ln(le,{rotation:-(bn(P.get(O,Z),B,U,!0)+Math.PI/2)},r),y.add(le),P.setItemGraphicEl(Z,le)}if(T){var oe=w[$],ge=X(Z,oe?oe.shape.endAngle:p),_e=x.get("clip");ln(ge,{shape:{endAngle:bn(P.get(O,Z),B,U,_e)}},r),y.add(ge),cs(r.seriesIndex,P.dataType,Z,ge),S[Z]=ge}}).execute(),P.each(function(Z){var $=P.getItemModel(Z),te=$.getModel("emphasis");if(M){var ee=P.getItemGraphicEl(Z),le=P.getItemVisual(Z,"style"),oe=le.fill;if(ee instanceof si){var de=ee.style;ee.useStyle(Se({image:de.image,x:de.x,y:de.y,width:de.width,height:de.height},le))}else ee.useStyle(le),"pointer"!==ee.type&&ee.setColor(oe);ee.setStyle($.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ee.style.fill&&ee.setStyle("fill",f(bn(P.get(O,Z),B,[0,1],!0))),ee.z2EmphasisLift=0,ki(ee,$),qn(ee,te.get("focus"),te.get("blurScope"))}if(T){var ge=S[Z];ge.useStyle(P.getItemVisual(Z,"style")),ge.setStyle($.getModel(["progress","itemStyle"]).getItemStyle()),ge.z2EmphasisLift=0,ki(ge,$),qn(ge,te.get("focus"),te.get("blurScope"))}}),this._progressEls=S)},i.prototype._renderAnchor=function(r,s){var u=r.getModel("anchor");if(u.get("show")){var d=u.get("size"),p=u.get("icon"),v=u.get("offsetCenter"),g=u.get("keepAspect"),m=Ir(p,s.cx-d/2+Fe(v[0],s.r),s.cy-d/2+Fe(v[1],s.r),d,d,null,g);m.z2=u.get("showAbove")?1:0,m.setStyle(u.getModel("itemStyle").getItemStyle()),this.group.add(m)}},i.prototype._renderTitleAndDetail=function(r,s,u,f,d){var p=this,v=r.getData(),g=v.mapDimension("value"),m=+r.get("min"),y=+r.get("max"),b=new ct,w=[],S=[],M=r.isAnimationEnabled(),x=r.get(["pointer","showAbove"]);v.diff(this._data).add(function(T){w[T]=new fn({silent:!0}),S[T]=new fn({silent:!0})}).update(function(T,P){w[T]=p._titleEls[P],S[T]=p._detailEls[P]}).execute(),v.each(function(T){var P=v.getItemModel(T),O=v.get(g,T),R=new ct,V=f(bn(O,[m,y],[0,1],!0)),B=P.getModel("title");if(B.get("show")){var U=B.get("offsetCenter"),j=d.cx+Fe(U[0],d.r),X=d.cy+Fe(U[1],d.r);(Z=w[T]).attr({z2:x?0:2,style:Or(B,{x:j,y:X,text:v.getName(T),align:"center",verticalAlign:"middle"},{inheritColor:V})}),R.add(Z)}var $=P.getModel("detail");if($.get("show")){var te=$.get("offsetCenter"),ee=d.cx+Fe(te[0],d.r),le=d.cy+Fe(te[1],d.r),oe=Fe($.get("width"),d.r),de=Fe($.get("height"),d.r),ge=r.get(["progress","show"])?v.getItemVisual(T,"style").fill:V,Z=S[T],_e=$.get("formatter");Z.attr({z2:x?0:2,style:Or($,{x:ee,y:le,text:c1(O,_e),width:isNaN(oe)?null:oe,height:isNaN(de)?null:de,align:"center",verticalAlign:"middle"},{inheritColor:ge})}),tu(Z,{normal:$},O,function(Me){return c1(Me,_e)}),M&&Nm(Z,T,v,r,{getFormattedLabel:function(ze,Je,mt,Qt,zt,xt){return c1(xt?xt.interpolatedValue:O,_e)}}),R.add(Z)}b.add(R)}),this.group.add(b),this._titleEls=w,this._detailEls=S},i.type="gauge",i}(Vn),d1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.visualStyleAccessPath="itemStyle",r}return he(i,o),i.prototype.getInitialData=function(r,s){return po(this,["value"])},i.type="series.gauge",i.defaultOption={zlevel:0,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},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}},i}(vt),h1=["itemStyle","opacity"],Bj=function(o){function i(r,s){var u=o.call(this)||this,f=u,d=new br,p=new fn;return f.setTextContent(p),u.setTextGuideLine(d),u.updateData(r,s,!0),u}return he(i,o),i.prototype.updateData=function(r,s,u){var f=this,d=r.hostModel,p=r.getItemModel(s),v=r.getItemLayout(s),g=p.getModel("emphasis"),m=p.get(h1);m=null==m?1:m,u||el(f),f.useStyle(r.getItemVisual(s,"style")),f.style.lineJoin="round",u?(f.setShape({points:v.points}),f.style.opacity=0,yr(f,{style:{opacity:m}},d,s)):ln(f,{style:{opacity:m},shape:{points:v.points}},d,s),ki(f,p),this._updateLabel(r,s),qn(this,g.get("focus"),g.get("blurScope"))},i.prototype._updateLabel=function(r,s){var u=this,f=this.getTextGuideLine(),d=u.getTextContent(),p=r.hostModel,v=r.getItemModel(s),m=r.getItemLayout(s).label,y=r.getItemVisual(s,"style"),b=y.fill;Mi(d,lr(v),{labelFetcher:r.hostModel,labelDataIndex:s,defaultOpacity:y.opacity,defaultText:r.getName(s)},{normal:{align:m.textAlign,verticalAlign:m.verticalAlign}}),u.setTextConfig({local:!0,inside:!!m.inside,insideStroke:b,outsideFill:b});var w=m.linePoints;f.setShape({points:w}),u.textGuideLineConfig={anchor:w?new Tt(w[0][0],w[0][1]):null},ln(d,{style:{x:m.x,y:m.y}},p,s),d.attr({rotation:m.rotation,originX:m.x,originY:m.y,z2:10}),dw(u,TL(v),{stroke:b})},i}(ya),xa=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreLabelLineUpdate=!0,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this._data,p=this.group;f.diff(d).add(function(v){var g=new Bj(f,v);f.setItemGraphicEl(v,g),p.add(g)}).update(function(v,g){var m=d.getItemGraphicEl(g);m.updateData(f,v),p.add(m),f.setItemGraphicEl(v,m)}).remove(function(v){Fm(d.getItemGraphicEl(v),r,v)}).execute(),this._data=f},i.prototype.remove=function(){this.group.removeAll(),this._data=null},i.prototype.dispose=function(){},i.type="funnel",i}(Vn),zj=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.getInitialData=function(r,s){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=s.mapDimension("value"),d=s.getSum(f);return u.percent=d?+(s.get(f,r)/d*100).toFixed(2):0,u.$vars.push("percent"),u},i.type="series.funnel",i.defaultOption={zlevel:0,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"}}},i}(vt);function Gj(o,i){o.eachSeriesByType("funnel",function(r){var s=r.getData(),u=s.mapDimension("value"),f=r.get("sort"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i),p=r.get("orient"),v=d.width,g=d.height,m=function(o,i){for(var r=o.mapDimension("value"),s=o.mapArray(r,function(v){return v}),u=[],f="ascending"===i,d=0,p=o.count();d5)return;var f=this._model.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]);"none"!==f.behavior&&this._dispatchExpand({axisExpandWindow:f.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(i){if(!this._mouseDownPoint&&cA(this,"mousemove")){var r=this._model,s=r.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]),u=s.behavior;"jump"===u&&this._throttledDispatchExpand.debounceNextCall(r.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===u?null:{axisExpandWindow:s.axisExpandWindow,animation:"jump"===u?null:{duration:0}})}}};function cA(o,i){var r=o._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===i}var t7=Ya,r7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},i.prototype.mergeOption=function(r){r&&He(this.option,r,!0),this._initDimensions()},i.prototype.contains=function(r,s){var u=r.get("parallelIndex");return null!=u&&s.getComponent("parallel",u)===this},i.prototype.setAxisExpand=function(r){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(s){r.hasOwnProperty(s)&&(this.option[s]=r[s])},this)},i.prototype._initDimensions=function(){var r=this.dimensions=[],s=this.parallelAxisIndex=[];q(Yn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this),function(f){r.push("dim"+f.get("dim")),s.push(f.componentIndex)})},i.type="parallel",i.dependencies=["parallelAxis"],i.layoutMode="box",i.defaultOption={zlevel:0,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},i}(qt),fA=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.type=f||"value",p.axisIndex=d,p}return he(i,o),i.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},i}(_l);function kl(o,i,r,s,u,f){o=o||0;var d=r[1]-r[0];if(null!=u&&(u=ug(u,[0,d])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===s){var p=Math.abs(i[1]-i[0]);p=ug(p,[0,d]),u=f=ug(p,[u,f]),s=0}i[0]=ug(i[0],r),i[1]=ug(i[1],r);var v=p1(i,s);i[s]+=o;var y,g=u||0,m=r.slice();return v.sign<0?m[0]+=g:m[1]-=g,i[s]=ug(i[s],m),y=p1(i,s),null!=u&&(y.sign!==v.sign||y.spanf&&(i[1-s]=i[s]+y.sign*f),i}function p1(o,i){var r=o[i]-o[1-i];return{span:Math.abs(r),sign:r>0?-1:r<0?1:i?-1:1}}function ug(o,i){return Math.min(null!=i[1]?i[1]:1/0,Math.max(null!=i[0]?i[0]:-1/0,o))}var dA=q,ON=Math.min,IN=Math.max,RN=Math.floor,i7=Math.ceil,hA=hi,LN=Math.PI;function v1(o,i){return ON(IN(o,i[0]),i[1])}function o7(o,i){var r=i.layoutLength/(i.axisCount-1);return{position:r*o,axisNameAvailableWidth:r,axisLabelShow:!0}}function s7(o,i){var p,m,s=i.axisExpandWidth,f=i.axisCollapseWidth,d=i.winInnerIndices,v=f,g=!1;return o=s&&d<=s+r.axisLength&&p>=u&&p<=u+r.layoutLength},o.prototype.getModel=function(){return this._model},o.prototype._updateAxesFromSeries=function(i,r){r.eachSeries(function(s){if(i.contains(s,r)){var u=s.getData();dA(this.dimensions,function(f){var d=this._axesMap.get(f);d.scale.unionExtentFromData(u,u.mapDimension(f)),Wf(d.scale,d.model)},this)}},this)},o.prototype.resize=function(i,r){this._rect=li(i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},o.prototype.getRect=function(){return this._rect},o.prototype._makeLayoutInfo=function(){var S,i=this._model,r=this._rect,s=["x","y"],u=["width","height"],f=i.get("layout"),d="horizontal"===f?0:1,p=r[u[d]],v=[0,p],g=this.dimensions.length,m=v1(i.get("axisExpandWidth"),v),y=v1(i.get("axisExpandCount")||0,[0,g]),b=i.get("axisExpandable")&&g>3&&g>y&&y>1&&m>0&&p>0,w=i.get("axisExpandWindow");w?(S=v1(w[1]-w[0],v),w[1]=w[0]+S):(S=v1(m*(y-1),v),(w=[m*(i.get("axisExpandCenter")||RN(g/2))-S/2])[1]=w[0]+S);var x=(p-S)/(g-y);x<3&&(x=0);var T=[RN(hA(w[0]/m,1))+1,i7(hA(w[1]/m,1))-1];return{layout:f,pixelDimIndex:d,layoutBase:r[s[d]],layoutLength:p,axisBase:r[s[1-d]],axisLength:r[u[1-d]],axisExpandable:b,axisExpandWidth:m,axisCollapseWidth:x,axisExpandWindow:w,axisCount:g,winInnerIndices:T,axisExpandWindow0Pos:x/m*w[0]}},o.prototype._layoutAxes=function(){var i=this._rect,r=this._axesMap,s=this.dimensions,u=this._makeLayoutInfo(),f=u.layout;r.each(function(d){var p=[0,u.axisLength],v=d.inverse?1:0;d.setExtent(p[v],p[1-v])}),dA(s,function(d,p){var v=(u.axisExpandable?s7:o7)(p,u),g={horizontal:{x:v.position,y:u.axisLength},vertical:{x:0,y:v.position}},y=[g[f].x+i.x,g[f].y+i.y],b={horizontal:LN/2,vertical:0}[f],w=[1,0,0,1,0,0];Od(w,w,b),Oo(w,w,y),this._axesLayout[d]={position:y,rotation:b,transform:w,axisNameAvailableWidth:v.axisNameAvailableWidth,axisLabelShow:v.axisLabelShow,nameTruncateMaxWidth:v.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},o.prototype.getAxis=function(i){return this._axesMap.get(i)},o.prototype.dataToPoint=function(i,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(i),r)},o.prototype.eachActiveState=function(i,r,s,u){null==s&&(s=0),null==u&&(u=i.count());var f=this._axesMap,d=this.dimensions,p=[],v=[];q(d,function(x){p.push(i.mapDimension(x)),v.push(f.get(x).model)});for(var g=this.hasAxisBrushed(),m=s;mf*(1-y[0])?(g="jump",v=p-f*(1-y[2])):(v=p-f*y[1])>=0&&(v=p-f*(1-y[1]))<=0&&(v=0),(v*=r.axisExpandWidth/m)?kl(v,u,d,"all"):g="none";else{var w=u[1]-u[0];(u=[IN(0,d[1]*p/w-w/2)])[1]=ON(d[1],u[0]+w),u[0]=u[1]-w}return{axisExpandWindow:u,behavior:g}},o}(),cg={create:function(o,i){var r=[];return o.eachComponent("parallel",function(s,u){var f=new FN(s,o,i);f.name="parallel_"+u,f.resize(s,i),s.coordinateSystem=f,f.model=s,r.push(f)}),o.eachSeries(function(s){if("parallel"===s.get("coordinateSystem")){var u=s.getReferringComponents("parallel",ai).models[0];s.coordinateSystem=u.coordinateSystem}}),r}},pA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.activeIntervals=[],r}return he(i,o),i.prototype.getAreaSelectStyle=function(){return Hd([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},i.prototype.setActiveIntervals=function(r){var s=this.activeIntervals=rt(r);if(s)for(var u=s.length-1;u>=0;u--)io(s[u])},i.prototype.getActiveState=function(r){var s=this.activeIntervals;if(!s.length)return"normal";if(null==r||isNaN(+r))return"inactive";if(1===s.length){var u=s[0];if(u[0]<=r&&r<=u[1])return"active"}else for(var f=0,d=s.length;f6}(o)||u){if(f&&!u){"single"===d.brushMode&&wn(o);var v=rt(d);v.brushType=qN(v.brushType,f),v.panelId=f===$h?null:f.panelId,u=o._creatingCover=vA(o,v),o._covers.push(u)}if(u){var g=Ny[qN(o._brushType,f)];u.__brushOption.range=g.getCreatingRange(S1(o,u,o._track)),s&&(UN(o,u),g.updateCommon(o,u)),gA(o,u),p={isEnd:s}}}else s&&"single"===d.brushMode&&d.removeOnClick&&dg(o,i,r)&&wn(o)&&(p={isEnd:s,removeOnClick:!0});return p}function qN(o,i){return"auto"===o?i.defaultBrushType:o}var v7={mousedown:function(i){if(this._dragging)XN(this,i);else if(!i.target||!i.target.draggable){_A(i);var r=this.group.transformCoordToLocal(i.offsetX,i.offsetY);this._creatingCover=null,(this._creatingPanel=dg(this,i,r))&&(this._dragging=!0,this._track=[r.slice()])}},mousemove:function(i){var u=this.group.transformCoordToLocal(i.offsetX,i.offsetY);if(function(o,i,r){if(o._brushType&&!function(o,i,r){var s=o._zr;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}(o,i.offsetX,i.offsetY)){var s=o._zr,u=o._covers,f=dg(o,i,r);if(!o._dragging)for(var d=0;d=0&&(p[d[v].depth]=new Nn(d[v],this,s));if(f&&u)return kN(f,u,this,!0,function(y,b){y.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,x=M.getData().getItemLayout(S);if(x){var P=M.levelModels[x.depth];P&&(w.parentModel=P)}return w}),b.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,T=M.getGraph().getEdgeByIndex(S).node1.getLayout();if(T){var O=M.levelModels[T.depth];O&&(w.parentModel=O)}return w})}).data},i.prototype.setNodePosition=function(r,s){var f=(this.option.data||this.option.nodes)[r];f.localX=s[0],f.localY=s[1]},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.formatTooltip=function(r,s,u){function f(w){return isNaN(w)||null==w}if("edge"===u){var d=this.getDataParams(r,u),p=d.data,v=d.value;return pi("nameValue",{name:p.source+" -- "+p.target,value:v,noValue:f(v)})}var y=this.getGraph().getNodeByIndex(r).getLayout().value,b=this.getDataParams(r,u).data.name;return pi("nameValue",{name:null!=b?b+"":null,value:y,noValue:f(y)})},i.prototype.optionUpdated=function(){},i.prototype.getDataParams=function(r,s){var u=o.prototype.getDataParams.call(this,r,s);if(null==u.value&&"node"===s){var d=this.getGraph().getNodeByIndex(r).getLayout().value;u.value=d}return u},i.type="series.sankey",i.defaultOption={zlevel:0,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},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},i}(vt);function wA(o,i){o.eachSeriesByType("sankey",function(r){var s=r.get("nodeWidth"),u=r.get("nodeGap"),f=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i);r.layoutInfo=f;var d=f.width,p=f.height,v=r.getGraph(),g=v.nodes,m=v.edges;!function(o){q(o,function(i){var r=qa(i.outEdges,_g),s=qa(i.inEdges,_g),u=i.getValue()||0,f=Math.max(r,s,u);i.setLayout({value:f},!0)})}(g),function(o,i,r,s,u,f,d,p,v){(function(o,i,r,s,u,f,d){for(var p=[],v=[],g=[],m=[],y=0,b=0;b=0;T&&x.depth>w&&(w=x.depth),M.setLayout({depth:T?x.depth:y},!0),M.setLayout("vertical"===f?{dy:r}:{dx:r},!0);for(var P=0;Py-1?w:y-1;d&&"left"!==d&&function(o,i,r,s){if("right"===i){for(var u=[],f=o,d=0;f.length;){for(var p=0;p0;f--)r3(p,v*=.99,d),MA(p,u,r,s,d),A7(p,v,d),MA(p,u,r,s,d)}(o,i,f,u,s,d,p),function(o,i){var r="vertical"===i?"x":"y";q(o,function(s){s.outEdges.sort(function(u,f){return u.node2.getLayout()[r]-f.node2.getLayout()[r]}),s.inEdges.sort(function(u,f){return u.node1.getLayout()[r]-f.node1.getLayout()[r]})}),q(o,function(s){var u=0,f=0;q(s.outEdges,function(d){d.setLayout({sy:u},!0),u+=d.getLayout().dy}),q(s.inEdges,function(d){d.setLayout({ty:f},!0),f+=d.getLayout().dy})})}(o,p)}(g,m,s,u,d,p,0!==Yn(g,function(M){return 0===M.getLayout().value}).length?0:r.get("layoutIterations"),r.get("orient"),r.get("nodeAlign"))})}function t3(o){var i=o.hostGraph.data.getRawDataItem(o.dataIndex);return null!=i.depth&&i.depth>=0}function MA(o,i,r,s,u){var f="vertical"===u?"x":"y";q(o,function(d){d.sort(function(M,x){return M.getLayout()[f]-x.getLayout()[f]});for(var p,v,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",w=0;w0&&(p=v.getLayout()[f]+g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]+v.getLayout()[b]+i;if((g=m-i-("vertical"===u?s:r))>0)for(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0),m=p,w=y-2;w>=0;--w)(g=(v=d[w]).getLayout()[f]+v.getLayout()[b]+i-m)>0&&(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]})}function r3(o,i,r){q(o.slice().reverse(),function(s){q(s,function(u){if(u.outEdges.length){var f=qa(u.outEdges,i3,r)/qa(u.outEdges,_g);if(isNaN(f)){var d=u.outEdges.length;f=d?qa(u.outEdges,T7,r)/d:0}if("vertical"===r){var p=u.getLayout().x+(f-id(u,r))*i;u.setLayout({x:p},!0)}else{var v=u.getLayout().y+(f-id(u,r))*i;u.setLayout({y:v},!0)}}})})}function i3(o,i){return id(o.node2,i)*o.getValue()}function T7(o,i){return id(o.node2,i)}function D7(o,i){return id(o.node1,i)*o.getValue()}function a3(o,i){return id(o.node1,i)}function id(o,i){return"vertical"===i?o.getLayout().x+o.getLayout().dx/2:o.getLayout().y+o.getLayout().dy/2}function _g(o){return o.getValue()}function qa(o,i,r){for(var s=0,u=o.length,f=-1;++ff&&(f=p)}),q(s,function(d){var v=new Qi({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:i.get("color")}).mapValueToVisual(d.getLayout().value),g=d.getModel().get(["itemStyle","color"]);null!=g?(d.setVisual("color",g),d.setVisual("style",{fill:g})):(d.setVisual("color",v),d.setVisual("style",{fill:v}))})}})}var o3=function(){function o(){}return o.prototype.getInitialData=function(i,r){var s,v,u=r.getComponent("xAxis",this.get("xAxisIndex")),f=r.getComponent("yAxis",this.get("yAxisIndex")),d=u.get("type"),p=f.get("type");"category"===d?(i.layout="horizontal",s=u.getOrdinalMeta(),v=!0):"category"===p?(i.layout="vertical",s=f.getOrdinalMeta(),v=!0):i.layout=i.layout||"horizontal";var g=["x","y"],m="horizontal"===i.layout?0:1,y=this._baseAxisDim=g[m],b=g[1-m],w=[u,f],S=w[m].get("type"),M=w[1-m].get("type"),x=i.data;if(x&&v){var T=[];q(x,function(R,V){var B;we(R)?(B=R.slice(),R.unshift(V)):we(R.value)?((B=Se({},R)).value=B.value.slice(),R.value.unshift(V)):B=R,T.push(B)}),i.data=T}var P=this.defaultValueDimensions,O=[{name:y,type:QC(S),ordinalMeta:s,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:b,type:QC(M),dimsDef:P.slice()}];return po(this,{coordDimensions:O,dimensionsCount:P.length+1,encodeDefaulter:St(au,O,this)})},o.prototype.getBaseAxis=function(){var i=this._baseAxisDim;return this.ecModel.getComponent(i+"Axis",this.get(i+"AxisIndex")).axis},o}(),s3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return he(i,o),i.type="series.boxplot",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,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},i}(vt);qr(s3,o3,!0);var Hy=s3,zy=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this.group,p=this._data;this._data||d.removeAll();var v="horizontal"===r.get("layout")?1:0;f.diff(p).add(function(g){if(f.hasValue(g)){var y=c3(f.getItemLayout(g),f,g,v,!0);f.setItemGraphicEl(g,y),d.add(y)}}).update(function(g,m){var y=p.getItemGraphicEl(m);if(f.hasValue(g)){var b=f.getItemLayout(g);y?(el(y),f3(b,y,f,g)):y=c3(b,f,g,v),d.add(y),f.setItemGraphicEl(g,y)}else d.remove(y)}).remove(function(g){var m=p.getItemGraphicEl(g);m&&d.remove(m)}).execute(),this._data=f},i.prototype.remove=function(r){var s=this.group,u=this._data;this._data=null,u&&u.eachItemGraphicEl(function(f){f&&s.remove(f)})},i.type="boxplot",i}(Vn),l3=function(){},u3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="boxplotBoxPath",s}return he(i,o),i.prototype.getDefaultShape=function(){return new l3},i.prototype.buildPath=function(r,s){var u=s.points,f=0;for(r.moveTo(u[f][0],u[f][1]),f++;f<4;f++)r.lineTo(u[f][0],u[f][1]);for(r.closePath();fM)&&s.push([T,O])}}return{boxData:r,outliers:s}}(r.getRawData(),i.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:u.boxData},{data:u.outliers}]}},h3=["color","borderColor"],p3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeClipPath(),this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},i.prototype.incrementalPrepareRender=function(r,s,u){this._clear(),this._updateDrawMode(r)},i.prototype.incrementalRender=function(r,s,u,f){this._isLargeDraw?this._incrementalRenderLarge(r,s):this._incrementalRenderNormal(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r){var s=r.getData(),u=this._data,f=this.group,d=s.getLayout("isSimpleBox"),p=r.get("clip",!0),v=r.coordinateSystem,g=v.getArea&&v.getArea();this._data||f.removeAll(),s.diff(u).add(function(m){if(s.hasValue(m)){var y=s.getItemLayout(m);if(p&&TA(g,y))return;var b=bg(y,0,!0);yr(b,{shape:{points:y.ends}},r,m),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b)}}).update(function(m,y){var b=u.getItemGraphicEl(y);if(s.hasValue(m)){var w=s.getItemLayout(m);p&&TA(g,w)?f.remove(b):(b?(ln(b,{shape:{points:w.ends}},r,m),el(b)):b=bg(w),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b))}else f.remove(b)}).remove(function(m){var y=u.getItemGraphicEl(m);y&&f.remove(y)}).execute(),this._data=s},i.prototype._renderLarge=function(r){this._clear(),m3(r,this.group);var s=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;s?this.group.setClipPath(s):this.group.removeClipPath()},i.prototype._incrementalRenderNormal=function(r,s){for(var d,u=s.getData(),f=u.getLayout("isSimpleBox");null!=(d=r.next());){var v=bg(u.getItemLayout(d));DA(v,u,d,f),v.incremental=!0,this.group.add(v)}},i.prototype._incrementalRenderLarge=function(r,s){m3(s,this.group,!0)},i.prototype.remove=function(r){this._clear()},i.prototype._clear=function(){this.group.removeAll(),this._data=null},i.type="candlestick",i}(Vn),Uy=function(){},v3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="normalCandlestickBox",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Uy},i.prototype.buildPath=function(r,s){var u=s.points;this.__simpleBox?(r.moveTo(u[4][0],u[4][1]),r.lineTo(u[6][0],u[6][1])):(r.moveTo(u[0][0],u[0][1]),r.lineTo(u[1][0],u[1][1]),r.lineTo(u[2][0],u[2][1]),r.lineTo(u[3][0],u[3][1]),r.closePath(),r.moveTo(u[4][0],u[4][1]),r.lineTo(u[5][0],u[5][1]),r.moveTo(u[6][0],u[6][1]),r.lineTo(u[7][0],u[7][1]))},i}(Nt);function bg(o,i,r){var s=o.ends;return new v3({shape:{points:r?F7(s,o):s},z2:100})}function TA(o,i){for(var r=!0,s=0;s0?"borderColor":"borderColor0"])||r.get(["itemStyle",o>0?"color":"color0"]),f=r.getModel("itemStyle").getItemStyle(h3);i.useStyle(f),i.style.fill=null,i.style.stroke=u}var V7=p3,AA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return he(i,o),i.prototype.getShadowDim=function(){return"open"},i.prototype.brushSelector=function(r,s,u){var f=s.getItemLayout(r);return f&&u.rect(f.brushRect)},i.type="series.candlestick",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",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},i}(vt);qr(AA,o3,!0);var L1=AA;function B7(o){!o||!we(o.series)||q(o.series,function(i){at(i)&&"k"===i.type&&(i.type="candlestick")})}var H7=["itemStyle","borderColor"],F1=["itemStyle","borderColor0"],z7=["itemStyle","color"],Gy=["itemStyle","color0"],G7={seriesType:"candlestick",plan:De(),performRawSeries:!0,reset:function(i,r){function s(d,p){return p.get(d>0?z7:Gy)}function u(d,p){return p.get(d>0?H7:F1)}if(!r.isSeriesFiltered(i))return!i.pipelineContext.large&&{progress:function(p,v){for(var g;null!=(g=p.next());){var m=v.getItemModel(g),y=v.getItemLayout(g).sign,b=m.getItemStyle();b.fill=s(y,m),b.stroke=u(y,m)||b.fill,Se(v.ensureUniqueItemVisual(g,"style"),b)}}}}},jy="undefined"!=typeof Float32Array?Float32Array:Array;function _3(o,i,r,s,u){return r>s?-1:r0?o.get(u,i-1)<=s?1:-1:1}var Y7={seriesType:"candlestick",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.getData(),u=function(o,i){var s,r=o.getBaseAxis(),u="category"===r.type?r.getBandWidth():(s=r.getExtent(),Math.abs(s[1]-s[0])/i.count()),f=Fe(ot(o.get("barMaxWidth"),u),u),d=Fe(ot(o.get("barMinWidth"),1),u),p=o.get("barWidth");return null!=p?Fe(p,u):Math.max(Math.min(u/2,f),d)}(i,s),p=["x","y"],v=s.getDimensionIndex(s.mapDimension(p[0])),g=Te(s.mapDimensionsAll(p[1]),s.getDimensionIndex,s),m=g[0],y=g[1],b=g[2],w=g[3];if(s.setLayout({candleWidth:u,isSimpleBox:u<=1.3}),!(v<0||g.length<4))return{progress:i.pipelineContext.large?function(x,T){for(var R,U,P=new jy(4*x.count),O=0,V=[],B=[],j=T.getStore();null!=(U=x.next());){var X=j.get(v,U),Z=j.get(m,U),$=j.get(y,U),te=j.get(b,U),ee=j.get(w,U);isNaN(X)||isNaN(te)||isNaN(ee)?(P[O++]=NaN,O+=3):(P[O++]=_3(j,U,Z,$,y),V[0]=X,V[1]=te,R=r.dataToPoint(V,null,B),P[O++]=R?R[0]:NaN,P[O++]=R?R[1]:NaN,V[1]=ee,R=r.dataToPoint(V,null,B),P[O++]=R?R[1]:NaN)}T.setLayout("largePoints",P)}:function(x,T){for(var P,O=T.getStore();null!=(P=x.next());){var R=O.get(v,P),V=O.get(m,P),B=O.get(y,P),U=O.get(b,P),j=O.get(w,P),X=Math.min(V,B),Z=Math.max(V,B),$=de(X,R),te=de(Z,R),ee=de(U,R),le=de(j,R),oe=[];ge(oe,te,0),ge(oe,$,1),oe.push(xe(le),xe(te),xe(ee),xe($)),T.setItemLayout(P,{sign:_3(O,P,V,B,y),initBaseline:V>B?te[1]:$[1],ends:oe,brushRect:(Me=U,ze=j,Je=R,mt=void 0,Qt=void 0,mt=de(Me,Je),Qt=de(ze,Je),mt[0]-=u/2,Qt[0]-=u/2,{x:mt[0],y:mt[1],width:u,height:Qt[1]-mt[1]})})}var Me,ze,Je,mt,Qt;function de(Me,ze){var Je=[];return Je[0]=ze,Je[1]=Me,isNaN(ze)||isNaN(Me)?[NaN,NaN]:r.dataToPoint(Je)}function ge(Me,ze,Je){var mt=ze.slice(),Qt=ze.slice();mt[0]=Rf(mt[0]+u/2,1,!1),Qt[0]=Rf(Qt[0]-u/2,1,!0),Je?Me.push(mt,Qt):Me.push(Qt,mt)}function xe(Me){return Me[0]=Rf(Me[0],1),Me}}}}};function y3(o,i){var r=i.rippleEffectColor||i.color;o.eachChild(function(s){s.attr({z:i.z,zlevel:i.zlevel,style:{stroke:"stroke"===i.brushType?r:null,fill:"fill"===i.brushType?r:null}})})}var Z7=function(o){function i(r,s){var u=o.call(this)||this,f=new j_(r,s),d=new ct;return u.add(f),u.add(d),u.updateData(r,s),u}return he(i,o),i.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},i.prototype.startEffectAnimation=function(r){for(var s=r.symbolType,u=r.color,f=r.rippleNumber,d=this.childAt(1),p=0;p0&&(v=this._getLineLength(f)/m*1e3),(v!==this._period||g!==this._loop)&&(f.stopAnimation(),v>0)){var b=void 0;b="function"==typeof y?y(u):y,f.__t>0&&(b=-v*f.__t),f.__t=0;var w=f.animate("",g).when(v,{__t:1}).delay(b).during(function(){d._updateSymbolPosition(f)});g||w.done(function(){d.remove(f)}),w.start()}this._period=v,this._loop=g}},i.prototype._getLineLength=function(r){return Vs(r.__p1,r.__cp1)+Vs(r.__cp1,r.__p2)},i.prototype._updateAnimationPoints=function(r,s){r.__p1=s[0],r.__p2=s[1],r.__cp1=s[2]||[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]},i.prototype.updateData=function(r,s,u){this.childAt(0).updateData(r,s,u),this._updateEffectSymbol(r,s)},i.prototype._updateSymbolPosition=function(r){var s=r.__p1,u=r.__p2,f=r.__cp1,d=r.__t,p=[r.x,r.y],v=p.slice(),g=Fi,m=oM;p[0]=g(s[0],f[0],u[0],d),p[1]=g(s[1],f[1],u[1],d);var y=m(s[0],f[0],u[0],d),b=m(s[1],f[1],u[1],d);r.rotation=-Math.atan2(b,y)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==r.__lastT&&r.__lastT=0&&!(f[v]<=s);v--);v=Math.min(v,d-2)}else{for(v=p;vs);v++);v=Math.min(v-1,d-2)}var m=(s-f[v])/(f[v+1]-f[v]),y=u[v],b=u[v+1];r.x=y[0]*(1-m)+m*b[0],r.y=y[1]*(1-m)+m*b[1],r.rotation=-Math.atan2(b[1]-y[1],b[0]-y[0])-Math.PI/2,this._lastFrame=v,this._lastFramePercent=s,r.ignore=!1}},i}(C3),M3=function(){this.polyline=!1,this.curveness=0,this.segs=[]},EA=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new M3},i.prototype.buildPath=function(r,s){var u=s.segs,f=s.curveness;if(s.polyline)for(var d=0;d0){r.moveTo(u[d++],u[d++]);for(var v=1;v0?r.quadraticCurveTo((g+y)/2-(m-b)*f,(m+b)/2-(y-g)*f,y,b):r.lineTo(y,b)}},i.prototype.findDataIndex=function(r,s){var u=this.shape,f=u.segs,d=u.curveness,p=this.style.lineWidth;if(u.polyline)for(var v=0,g=0;g0)for(var y=f[g++],b=f[g++],w=1;w0){if(Si(y,b,(y+S)/2-(b-M)*d,(b+M)/2-(S-y)*d,S,M,p,r,s))return v}else if(gf(y,b,S,M,p,r,s))return v;v++}return-1},i}(Nt),rW=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i){this.group.removeAll();var r=new EA({rectHover:!0,cursor:"default"});r.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(r,i),this.group.add(r),this._incremental=null},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>5e5?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r){var s=new EA;s.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(s,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(s,!0):(s.rectHover=!0,s.cursor="default",s.__startIndex=i.start,this.group.add(s))},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._setCommon=function(i,r,s){var u=r.hostModel;i.setShape({polyline:u.get("polyline"),curveness:u.get(["lineStyle","curveness"])}),i.useStyle(u.getModel("lineStyle").getLineStyle()),i.style.strokeNoScale=!0;var f=r.getVisual("style");if(f&&f.stroke&&i.setStyle("stroke",f.stroke),i.setStyle("fill",null),!s){var d=ht(i);d.seriesIndex=u.seriesIndex,i.on("mousemove",function(p){d.dataIndex=null;var v=i.findDataIndex(p.offsetX,p.offsetY);v>0&&(d.dataIndex=v+i.__startIndex)})}},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),x3={seriesType:"lines",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.get("polyline"),u=i.pipelineContext.large;return{progress:function(d,p){var v=[];if(u){var g=void 0,m=d.end-d.start;if(s){for(var y=0,b=d.start;b ")})},i.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?1e4:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?2e4:this.get("progressiveThreshold"):r},i.type="series.lines",i.dependencies=["grid","polar","geo","calendar"],i.defaultOption={coordinateSystem:"geo",zlevel:0,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}},i}(vt);function N1(o){return o instanceof Array||(o=[o,o]),o}var lW={seriesType:"lines",reset:function(i){var r=N1(i.get("symbol")),s=N1(i.get("symbolSize")),u=i.getData();return u.setVisual("fromSymbol",r&&r[0]),u.setVisual("toSymbol",r&&r[1]),u.setVisual("fromSymbolSize",s&&s[0]),u.setVisual("toSymbolSize",s&&s[1]),{dataEach:u.hasItemOption?function(d,p){var v=d.getItemModel(p),g=N1(v.getShallow("symbol",!0)),m=N1(v.getShallow("symbolSize",!0));g[0]&&d.setItemVisual(p,"fromSymbol",g[0]),g[1]&&d.setItemVisual(p,"toSymbol",g[1]),m[0]&&d.setItemVisual(p,"fromSymbolSize",m[0]),m[1]&&d.setItemVisual(p,"toSymbolSize",m[1])}:null}}},A3=function(){function o(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var i=md();this.canvas=i}return o.prototype.update=function(i,r,s,u,f,d){var p=this._getBrush(),v=this._getGradient(f,"inRange"),g=this._getGradient(f,"outOfRange"),m=this.pointSize+this.blurSize,y=this.canvas,b=y.getContext("2d"),w=i.length;y.width=r,y.height=s;for(var S=0;S0){var te=d(O)?v:g;O>0&&(O=O*Z+j),V[B++]=te[$],V[B++]=te[$+1],V[B++]=te[$+2],V[B++]=te[$+3]*O*256}else B+=4}return b.putImageData(R,0,0),y},o.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=md()),r=this.pointSize+this.blurSize,s=2*r;i.width=s,i.height=s;var u=i.getContext("2d");return u.clearRect(0,0,s,s),u.shadowOffsetX=s,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-r,r,this.pointSize,0,2*Math.PI,!0),u.closePath(),u.fill(),i},o.prototype._getGradient=function(i,r){for(var s=this._gradientPixels,u=s[r]||(s[r]=new Uint8ClampedArray(1024)),f=[0,0,0,0],d=0,p=0;p<256;p++)i[r](p/255,!0,f),u[d++]=f[0],u[d++]=f[1],u[d++]=f[2],u[d++]=f[3];return u},o}();function Ta(o){var i=o.dimensions;return"lng"===i[0]&&"lat"===i[1]}var V1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f;s.eachComponent("visualMap",function(p){p.eachTargetSeries(function(v){v===r&&(f=p)})}),this.group.removeAll(),this._incrementalDisplayable=null;var d=r.coordinateSystem;"cartesian2d"===d.type||"calendar"===d.type?this._renderOnCartesianAndCalendar(r,u,0,r.getData().count()):Ta(d)&&this._renderOnGeo(d,r,f,u)},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll()},i.prototype.incrementalRender=function(r,s,u,f){var d=s.coordinateSystem;d&&(Ta(d)?this.render(s,u,f):this._renderOnCartesianAndCalendar(s,f,r.start,r.end,!0))},i.prototype._renderOnCartesianAndCalendar=function(r,s,u,f,d){var v,g,m,y,p=r.coordinateSystem;if(uc(p,"cartesian2d")){var b=p.getAxis("x"),w=p.getAxis("y");v=b.getBandWidth(),g=w.getBandWidth(),m=b.scale.getExtent(),y=w.scale.getExtent()}for(var S=this.group,M=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),T=r.getModel(["blur","itemStyle"]).getItemStyle(),P=r.getModel(["select","itemStyle"]).getItemStyle(),O=lr(r),R=r.get(["emphasis","focus"]),V=r.get(["emphasis","blurScope"]),B=uc(p,"cartesian2d")?[M.mapDimension("x"),M.mapDimension("y"),M.mapDimension("value")]:[M.mapDimension("time"),M.mapDimension("value")],U=u;Um[1]||$y[1])continue;var te=p.dataToPoint([Z,$]);j=new sn({shape:{x:Math.floor(Math.round(te[0])-v/2),y:Math.floor(Math.round(te[1])-g/2),width:Math.ceil(v),height:Math.ceil(g)},style:X})}else{if(isNaN(M.get(B[1],U)))continue;j=new sn({z2:1,shape:p.dataToRect([M.get(B[0],U)]).contentShape,style:X})}var ee=M.getItemModel(U);if(M.hasItemOption){var le=ee.getModel("emphasis");x=le.getModel("itemStyle").getItemStyle(),T=ee.getModel(["blur","itemStyle"]).getItemStyle(),P=ee.getModel(["select","itemStyle"]).getItemStyle(),R=le.get("focus"),V=le.get("blurScope"),O=lr(ee)}var oe=r.getRawValue(U),de="-";oe&&null!=oe[2]&&(de=oe[2]+""),Mi(j,O,{labelFetcher:r,labelDataIndex:U,defaultOpacity:X.opacity,defaultText:de}),j.ensureState("emphasis").style=x,j.ensureState("blur").style=T,j.ensureState("select").style=P,qn(j,R,V),j.incremental=d,d&&(j.states.emphasis.hoverLayer=!0),S.add(j),M.setItemGraphicEl(U,j)}},i.prototype._renderOnGeo=function(r,s,u,f){var d=u.targetVisuals.inRange,p=u.targetVisuals.outOfRange,v=s.getData(),g=this._hmLayer||this._hmLayer||new A3;g.blurSize=s.get("blurSize"),g.pointSize=s.get("pointSize"),g.minOpacity=s.get("minOpacity"),g.maxOpacity=s.get("maxOpacity");var m=r.getViewRect().clone(),y=r.getRoamTransform();m.applyTransform(y);var b=Math.max(m.x,0),w=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),M=Math.min(m.height+m.y,f.getHeight()),x=S-b,T=M-w,P=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],O=v.mapArray(P,function(U,j,X){var Z=r.dataToPoint([U,j]);return Z[0]-=b,Z[1]-=w,Z.push(X),Z}),R=u.getExtent(),V="visualMap.continuous"===u.type?function(o,i){var r=o[1]-o[0];return i=[(i[0]-o[0])/r,(i[1]-o[0])/r],function(s){return s>=i[0]&&s<=i[1]}}(R,u.option.range):function(o,i,r){var s=o[1]-o[0],u=(i=Te(i,function(d){return{interval:[(d.interval[0]-o[0])/s,(d.interval[1]-o[0])/s]}})).length,f=0;return function(d){var p;for(p=f;p=0;p--){var v;if((v=i[p].interval)[0]<=d&&d<=v[1]){f=p;break}}return p>=0&&p0?1:m<0?-1:0})(r,f,u,s,b),function(o,i,r,s,u,f,d,p,v,g){var S,m=v.valueDim,y=v.categoryDim,b=Math.abs(r[y.wh]),w=o.getItemVisual(i,"symbolSize");(S=we(w)?w.slice():null==w?["100%","100%"]:[w,w])[y.index]=Fe(S[y.index],b),S[m.index]=Fe(S[m.index],s?b:Math.abs(f)),g.symbolSize=S,(g.symbolScale=[S[0]/p,S[1]/p])[m.index]*=(v.isHorizontal?-1:1)*d}(o,i,u,f,0,b.boundingLength,b.pxSign,m,s,b),function(o,i,r,s,u){var f=o.get(vW)||0;f&&(Wy.attr({scaleX:i[0],scaleY:i[1],rotation:r}),Wy.updateTransform(),f/=Wy.getLineScale(),f*=i[s.valueDim.index]),u.valueLineWidth=f}(r,b.symbolScale,g,s,b);var w=b.symbolSize,S=Ah(r.get("symbolOffset"),w);return function(o,i,r,s,u,f,d,p,v,g,m,y){var b=m.categoryDim,w=m.valueDim,S=y.pxSign,M=Math.max(i[w.index]+p,0),x=M;if(s){var T=Math.abs(v),P=ni(o.get("symbolMargin"),"15%")+"",O=!1;P.lastIndexOf("!")===P.length-1&&(O=!0,P=P.slice(0,P.length-1));var R=Fe(P,i[w.index]),V=Math.max(M+2*R,0),B=O?0:2*R,U=of(s),j=U?s:H3((T+B)/V);V=M+2*(R=(T-j*M)/2/(O?j:Math.max(j-1,1))),B=O?0:2*R,!U&&"fixed"!==s&&(j=g?H3((Math.abs(g)+B)/V):0),x=j*V-B,y.repeatTimes=j,y.symbolMargin=R}var Z=S*(x/2),$=y.pathPosition=[];$[b.index]=r[b.wh]/2,$[w.index]="start"===d?Z:"end"===d?v-Z:v/2,f&&($[0]+=f[0],$[1]+=f[1]);var te=y.bundlePosition=[];te[b.index]=r[b.xy],te[w.index]=r[w.xy];var ee=y.barRectShape=Se({},r);ee[w.wh]=S*Math.max(Math.abs(r[w.wh]),Math.abs($[w.index]+Z)),ee[b.wh]=r[b.wh];var le=y.clipShape={};le[b.xy]=-r[b.xy],le[b.wh]=m.ecSize[b.wh],le[w.xy]=0,le[w.wh]=r[w.wh]}(r,w,u,f,0,S,p,b.valueLineWidth,b.boundingLength,b.repeatCutLength,s,b),b}function H1(o,i){return o.toGlobalCoord(o.dataToCoord(o.scale.parse(i)))}function ad(o){var i=o.symbolPatternSize,r=Ir(o.symbolType,-i/2,-i/2,i,i);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function LA(o,i,r,s){var u=o.__pictorialBundle,p=r.pathPosition,v=i.valueDim,g=r.repeatTimes||0,m=0,y=r.symbolSize[i.valueDim.index]+r.valueLineWidth+2*r.symbolMargin;for(NA(o,function(M){M.__pictorialAnimationIndex=m,M.__pictorialRepeatTimes=g,m0:T<0)&&(P=g-1-M),x[v.index]=y*(P-g/2+.5)+p[v.index],{x:x[0],y:x[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function O3(o,i,r,s){var u=o.__pictorialBundle,f=o.__pictorialMainPath;f?od(f,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,s):(f=o.__pictorialMainPath=ad(r),u.add(f),od(f,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,s))}function I3(o,i,r){var s=Se({},i.barRectShape),u=o.__pictorialBarRect;u?od(u,null,{shape:s},i,r):((u=o.__pictorialBarRect=new sn({z2:2,shape:s,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,o.add(u))}function R3(o,i,r,s){if(r.symbolClip){var u=o.__pictorialClipPath,f=Se({},r.clipShape),d=i.valueDim,p=r.animationModel,v=r.dataIndex;if(u)ln(u,{shape:f},p,v);else{f[d.wh]=0,u=new sn({shape:f}),o.__pictorialBundle.setClipPath(u),o.__pictorialClipPath=u;var g={};g[d.wh]=r.clipShape[d.wh],F[s?"updateProps":"initProps"](u,{shape:g},p,v)}}}function FA(o,i){var r=o.getItemModel(i);return r.getAnimationDelayParams=_W,r.isAnimationEnabled=yW,r}function _W(o){return{index:o.__pictorialAnimationIndex,count:o.__pictorialRepeatTimes}}function yW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function L3(o,i,r,s){var u=new ct,f=new ct;return u.add(f),u.__pictorialBundle=f,f.x=r.bundlePosition[0],f.y=r.bundlePosition[1],r.symbolRepeat?LA(u,i,r):O3(u,0,r),I3(u,r,s),R3(u,i,r,s),u.__pictorialShapeStr=V3(o,r),u.__pictorialSymbolMeta=r,u}function N3(o,i,r,s){var u=s.__pictorialBarRect;u&&u.removeTextContent();var f=[];NA(s,function(d){f.push(d)}),s.__pictorialMainPath&&f.push(s.__pictorialMainPath),s.__pictorialClipPath&&(r=null),q(f,function(d){Cf(d,{scaleX:0,scaleY:0},r,i,function(){s.parent&&s.parent.remove(s)})}),o.setItemGraphicEl(i,null)}function V3(o,i){return[o.getItemVisual(i.dataIndex,"symbol")||"none",!!i.symbolRepeat,!!i.symbolClip].join(":")}function NA(o,i,r){q(o.__pictorialBundle.children(),function(s){s!==o.__pictorialBarRect&&i.call(r,s)})}function od(o,i,r,s,u,f){i&&o.attr(i),s.symbolClip&&!u?r&&o.attr(r):r&&F[u?"updateProps":"initProps"](o,r,s.animationModel,s.dataIndex,f)}function B3(o,i,r){var s=r.dataIndex,u=r.itemModel,f=u.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle(),p=u.getModel(["blur","itemStyle"]).getItemStyle(),v=u.getModel(["select","itemStyle"]).getItemStyle(),g=u.getShallow("cursor"),m=f.get("focus"),y=f.get("blurScope"),b=f.get("scale");NA(o,function(M){if(M instanceof si){var x=M.style;M.useStyle(Se({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},r.style))}else M.useStyle(r.style);var T=M.ensureState("emphasis");T.style=d,b&&(T.scaleX=1.1*M.scaleX,T.scaleY=1.1*M.scaleY),M.ensureState("blur").style=p,M.ensureState("select").style=v,g&&(M.cursor=g),M.z2=r.z2});var w=i.valueDim.posDesc[+(r.boundingLength>0)];Mi(o.__pictorialBarRect,lr(u),{labelFetcher:i.seriesModel,labelDataIndex:s,defaultText:Xf(i.seriesModel.getData(),s),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:w}),qn(o,m,y)}function H3(o){var i=Math.round(o);return Math.abs(o-i)<1e-4?i:Math.ceil(o)}var z3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group,d=r.getData(),p=this._data,v=r.coordinateSystem,m=v.getBaseAxis().isHorizontal(),y=v.master.getRect(),b={ecSize:{width:u.getWidth(),height:u.getHeight()},seriesModel:r,coordSys:v,coordSysExtent:[[y.x,y.x+y.width],[y.y,y.y+y.height]],isHorizontal:m,valueDim:E3[+m],categoryDim:E3[1-+m]};return d.diff(p).add(function(w){if(d.hasValue(w)){var S=FA(d,w),M=IA(d,w,S,b),x=L3(d,b,M);d.setItemGraphicEl(w,x),f.add(x),B3(x,b,M)}}).update(function(w,S){var M=p.getItemGraphicEl(S);if(d.hasValue(w)){var x=FA(d,w),T=IA(d,w,x,b),P=V3(d,T);M&&P!==M.__pictorialShapeStr&&(f.remove(M),d.setItemGraphicEl(w,null),M=null),M?function(o,i,r){ln(o.__pictorialBundle,{x:r.bundlePosition[0],y:r.bundlePosition[1]},r.animationModel,r.dataIndex),r.symbolRepeat?LA(o,i,r,!0):O3(o,0,r,!0),I3(o,r,!0),R3(o,i,r,!0)}(M,b,T):M=L3(d,b,T,!0),d.setItemGraphicEl(w,M),M.__pictorialSymbolMeta=T,f.add(M),B3(M,b,T)}else f.remove(M)}).remove(function(w){var S=p.getItemGraphicEl(w);S&&N3(p,w,S.__pictorialSymbolMeta.animationModel,S)}).execute(),this._data=d,this.group},i.prototype.remove=function(r,s){var u=this.group,f=this._data;r.get("animation")?f&&f.eachItemGraphicEl(function(d){N3(f,ht(d).dataIndex,r,d)}):u.removeAll()},i.type="pictorialBar",i}(Vn),BK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return he(i,o),i.prototype.getInitialData=function(r){return r.stack=null,o.prototype.getInitialData.apply(this,arguments)},i.type="series.pictorialBar",i.dependencies=["grid"],i.defaultOption=rh(Aw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),i}(Aw),U3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._layers=[],r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this,p=this.group,v=r.getLayerSeries(),g=f.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;function b(x){return x.name}p.x=0,p.y=m.y+y[0];var w=new Hf(this._layersSeries||[],v,b,b),S=[];function M(x,T,P){var O=d._layers;if("remove"!==x){for(var B,R=[],V=[],U=v[T].indices,j=0;jf&&(f=p),s.push(p)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(p),g=v.y0,m=r/v.max,y=u.length,b=u[0].indices.length,S=0;SMath.PI/2?"right":"left"):te&&"center"!==te?"left"===te?(Z=d.r0+$,v>Math.PI/2&&(te="right")):"right"===te&&(Z=d.r-$,v>Math.PI/2&&(te="left")):(Z=(d.r+d.r0)/2,te="center"),R.style.align=te,R.style.verticalAlign=x(P,"verticalAlign")||"middle",R.x=Z*g+d.cx,R.y=Z*m+d.cy;var ee=x(P,"rotate"),le=0;"radial"===ee?(le=-v)<-Math.PI/2&&(le+=Math.PI):"tangential"===ee?(le=Math.PI/2-v)>Math.PI/2?le-=Math.PI:le<-Math.PI/2&&(le+=Math.PI):"number"==typeof ee&&(le=ee*Math.PI/180),R.rotation=le}),b.dirtyStyle()},i}(ir),kg="sunburstRootToNode",Y3="sunburstHighlight",TW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this;this.seriesModel=r,this.api=u,this.ecModel=s;var P,O,p=r.getData(),v=p.tree.root,g=r.getViewRoot(),m=this.group,y=r.get("renderLabelForZeroData"),b=[];g.eachNode(function(P){b.push(P)}),function(P,O){function R(B){return B.getId()}function V(B,U){!function(P,O){if(!y&&P&&!P.getValue()&&(P=null),P!==v&&O!==v)if(O&&O.piece)P?(O.piece.updateData(!1,P,r,s,u),p.setItemGraphicEl(P.dataIndex,O.piece)):function(P){!P||P.piece&&(m.remove(P.piece),P.piece=null)}(O);else if(P){var R=new W3(P,r,s,u);m.add(R),p.setItemGraphicEl(P.dataIndex,R)}}(null==B?null:P[B],null==U?null:O[U])}0===P.length&&0===O.length||new Hf(O,P,R,R).add(V).update(V).remove(St(V,null)).execute()}(b,this._oldChildren||[]),P=v,(O=g).depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,P,r,s,u):(d.virtualPiece=new W3(P,r,s,u),m.add(d.virtualPiece)),O.piece.off("click"),d.virtualPiece.on("click",function(R){d._rootToNode(O.parentNode)})):d.virtualPiece&&(m.remove(d.virtualPiece),d.virtualPiece=null),this._initEvents(),this._oldChildren=b},i.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(s){var u=!1;r.seriesModel.getViewRoot().eachNode(function(d){if(!u&&d.piece&&d.piece===s.target){var p=d.getModel().get("nodeClick");if("rootToNode"===p)r._rootToNode(d);else if("link"===p){var v=d.getModel(),g=v.get("link");g&&J0(g,v.get("target",!0)||"_blank")}u=!0}})})},i.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kg,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},i.prototype.containPoint=function(r,s){var f=s.getData().getItemLayout(0);if(f){var d=r[0]-f.cx,p=r[1]-f.cy,v=Math.sqrt(d*d+p*p);return v<=f.r&&v>=f.r0}},i.type="sunburst",i}(Vn);function X3(o){var i=0;q(o.children,function(s){X3(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var DW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};X3(u);var f=Te(r.levels||[],function(v){return new Nn(v,this,s)},this),d=Kw.createTree(u,this,function(v){v.wrapMethod("getItemModel",function(g,m){var y=d.getNodeByDataIndex(m),b=f[y.depth];return b&&(g.parentModel=b),g})});return d.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treePathInfo=HD(u,this),s},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.sunburst",i.defaultOption={zlevel:0,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"},i}(vt),Yy=Math.PI/180;function Z3(o,i,r){i.eachSeriesByType(o,function(s){var u=s.get("center"),f=s.get("radius");we(f)||(f=[0,f]),we(u)||(u=[u,u]);var d=r.getWidth(),p=r.getHeight(),v=Math.min(d,p),g=Fe(u[0],d),m=Fe(u[1],p),y=Fe(f[0],v/2),b=Fe(f[1],v/2),w=-s.get("startAngle")*Yy,S=s.get("minAngle")*Yy,M=s.getData().tree.root,x=s.getViewRoot(),T=x.depth,P=s.get("sort");null!=P&&VA(x,P);var O=0;q(x.children,function(de){!isNaN(de.getValue())&&O++});var R=x.getValue(),V=Math.PI/(R||O)*2,B=x.depth>0,j=(b-y)/(x.height-(B?-1:1)||1),X=s.get("clockwise"),Z=s.get("stillShowZeroSum"),$=X?1:-1;if(B){var oe=2*Math.PI;M.setLayout({angle:oe,startAngle:w,endAngle:w+oe,clockwise:X,cx:g,cy:m,r0:y,r:y+j})}!function de(ge,_e){if(ge){var xe=_e;if(ge!==M){var Me=ge.getValue(),ze=0===R&&Z?V:Me*V;ze1;)d=d.parentNode;var p=u.getColorFromPalette(d.name||d.dataIndex+"",i);return s.depth>1&&"string"==typeof p&&(p=lO(p,(s.depth-1)/(f-1)*.5)),p}(d,s,f.root.height)),Se(u.ensureUniqueItemVisual(d.dataIndex,"style"),v)})})}var PW={color:"fill",borderColor:"stroke"},HA={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Xa=pn(),IW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},i.prototype.getInitialData=function(r,s){return gl(null,this)},i.prototype.getDataParams=function(r,s,u){var f=o.prototype.getDataParams.call(this,r,s);return u&&(f.info=Xa(u).info),f},i.type="series.custom",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},i}(vt);function RW(o,i){return i=i||[0,0],Te(["x","y"],function(r,s){var u=this.getAxis(r),f=i[s],d=o[s]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-d)-u.dataToCoord(f+d))},this)}function LW(o,i){return i=i||[0,0],Te([0,1],function(r){var s=i[r],u=o[r]/2,f=[],d=[];return f[r]=s-u,d[r]=s+u,f[1-r]=d[1-r]=i[1-r],Math.abs(this.dataToPoint(f)[r]-this.dataToPoint(d)[r])},this)}function NW(o,i){var r=this.getAxis(),s=i instanceof Array?i[0]:i,u=(o instanceof Array?o[0]:o)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(s-u)-r.dataToCoord(s+u))}function K3(o,i){return i=i||[0,0],Te(["Radius","Angle"],function(r,s){var f=this["get"+r+"Axis"](),d=i[s],p=o[s]/2,v="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-p)-f.dataToCoord(d+p));return"Angle"===r&&(v=v*Math.PI/180),v},this)}function $3(o,i,r,s){return o&&(o.legacy||!1!==o.legacy&&!r&&!s&&"tspan"!==i&&("text"===i||Ae(o,"text")))}function Q3(o,i,r){var u,f,d,s=o;if("text"===i)d=s;else{d={},Ae(s,"text")&&(d.text=s.text),Ae(s,"rich")&&(d.rich=s.rich),Ae(s,"textFill")&&(d.fill=s.textFill),Ae(s,"textStroke")&&(d.stroke=s.textStroke),Ae(s,"fontFamily")&&(d.fontFamily=s.fontFamily),Ae(s,"fontSize")&&(d.fontSize=s.fontSize),Ae(s,"fontStyle")&&(d.fontStyle=s.fontStyle),Ae(s,"fontWeight")&&(d.fontWeight=s.fontWeight),f={type:"text",style:d,silent:!0},u={};var p=Ae(s,"textPosition");r?u.position=p?s.textPosition:"inside":p&&(u.position=s.textPosition),Ae(s,"textPosition")&&(u.position=s.textPosition),Ae(s,"textOffset")&&(u.offset=s.textOffset),Ae(s,"textRotation")&&(u.rotation=s.textRotation),Ae(s,"textDistance")&&(u.distance=s.textDistance)}return J3(d,o),q(d.rich,function(v){J3(v,v)}),{textConfig:u,textContent:f}}function J3(o,i){!i||(i.font=i.textFont||i.font,Ae(i,"textStrokeWidth")&&(o.lineWidth=i.textStrokeWidth),Ae(i,"textAlign")&&(o.align=i.textAlign),Ae(i,"textVerticalAlign")&&(o.verticalAlign=i.textVerticalAlign),Ae(i,"textLineHeight")&&(o.lineHeight=i.textLineHeight),Ae(i,"textWidth")&&(o.width=i.textWidth),Ae(i,"textHeight")&&(o.height=i.textHeight),Ae(i,"textBackgroundColor")&&(o.backgroundColor=i.textBackgroundColor),Ae(i,"textPadding")&&(o.padding=i.textPadding),Ae(i,"textBorderColor")&&(o.borderColor=i.textBorderColor),Ae(i,"textBorderWidth")&&(o.borderWidth=i.textBorderWidth),Ae(i,"textBorderRadius")&&(o.borderRadius=i.textBorderRadius),Ae(i,"textBoxShadowColor")&&(o.shadowColor=i.textBoxShadowColor),Ae(i,"textBoxShadowBlur")&&(o.shadowBlur=i.textBoxShadowBlur),Ae(i,"textBoxShadowOffsetX")&&(o.shadowOffsetX=i.textBoxShadowOffsetX),Ae(i,"textBoxShadowOffsetY")&&(o.shadowOffsetY=i.textBoxShadowOffsetY))}function eV(o,i,r){var s=o;s.textPosition=s.textPosition||r.position||"inside",null!=r.offset&&(s.textOffset=r.offset),null!=r.rotation&&(s.textRotation=r.rotation),null!=r.distance&&(s.textDistance=r.distance);var u=s.textPosition.indexOf("inside")>=0,f=o.fill||"#000";tV(s,i);var d=null==s.textFill;return u?d&&(s.textFill=r.insideFill||"#fff",!s.textStroke&&r.insideStroke&&(s.textStroke=r.insideStroke),!s.textStroke&&(s.textStroke=f),null==s.textStrokeWidth&&(s.textStrokeWidth=2)):(d&&(s.textFill=o.fill||r.outsideFill||"#000"),!s.textStroke&&r.outsideStroke&&(s.textStroke=r.outsideStroke)),s.text=i.text,s.rich=i.rich,q(i.rich,function(p){tV(p,p)}),s}function tV(o,i){!i||(Ae(i,"fill")&&(o.textFill=i.fill),Ae(i,"stroke")&&(o.textStroke=i.fill),Ae(i,"lineWidth")&&(o.textStrokeWidth=i.lineWidth),Ae(i,"font")&&(o.font=i.font),Ae(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Ae(i,"fontWeight")&&(o.fontWeight=i.fontWeight),Ae(i,"fontSize")&&(o.fontSize=i.fontSize),Ae(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Ae(i,"align")&&(o.textAlign=i.align),Ae(i,"verticalAlign")&&(o.textVerticalAlign=i.verticalAlign),Ae(i,"lineHeight")&&(o.textLineHeight=i.lineHeight),Ae(i,"width")&&(o.textWidth=i.width),Ae(i,"height")&&(o.textHeight=i.height),Ae(i,"backgroundColor")&&(o.textBackgroundColor=i.backgroundColor),Ae(i,"padding")&&(o.textPadding=i.padding),Ae(i,"borderColor")&&(o.textBorderColor=i.borderColor),Ae(i,"borderWidth")&&(o.textBorderWidth=i.borderWidth),Ae(i,"borderRadius")&&(o.textBorderRadius=i.borderRadius),Ae(i,"shadowColor")&&(o.textBoxShadowColor=i.shadowColor),Ae(i,"shadowBlur")&&(o.textBoxShadowBlur=i.shadowBlur),Ae(i,"shadowOffsetX")&&(o.textBoxShadowOffsetX=i.shadowOffsetX),Ae(i,"shadowOffsetY")&&(o.textBoxShadowOffsetY=i.shadowOffsetY),Ae(i,"textShadowColor")&&(o.textShadowColor=i.textShadowColor),Ae(i,"textShadowBlur")&&(o.textShadowBlur=i.textShadowBlur),Ae(i,"textShadowOffsetX")&&(o.textShadowOffsetX=i.textShadowOffsetX),Ae(i,"textShadowOffsetY")&&(o.textShadowOffsetY=i.textShadowOffsetY))}var BW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function UA(o,i,r){var s=o[r],u=BW[r];s&&(i[u[0]]=s[0],i[u[1]]=s[1])}function Jh(o,i,r){null!=o[r]&&(i[r]=o[r])}function GA(o,i,r){r&&(o[i]=r[i])}function nV(o,i,r,s,u){var f=r[o];if(f){var p,d=i[o],v=f.enterFrom;if(u&&v){!p&&(p=s[o]={});for(var g=_n(v),m=0;m=0){!p&&(p=s[o]={});var S=_n(d);for(m=0;ms[1]&&s.reverse(),{coordSys:{type:"polar",cx:o.cx,cy:o.cy,r:s[1],r0:s[0]},api:{coord:function(f){var d=i.dataToRadius(f[0]),p=r.dataToAngle(f[1]),v=o.coordToPoint([d,p]);return v.push(d,p*Math.PI/180),v},size:Ye(K3,o)}}},calendar:function(o){var i=o.getRect(),r=o.getRangeInfo();return{coordSys:{type:"calendar",x:i.x,y:i.y,width:i.width,height:i.height,cellWidth:o.getCellWidth(),cellHeight:o.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(u,f){return o.dataToPoint(u,f)}}}}};function np(o){return o instanceof Nt}function wc(o){return o instanceof as}var WA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this._data,p=r.getData(),v=this.group,g=XA(r,p,s,u);d||v.removeAll(),p.diff(d).add(function(y){ip(u,null,y,g(y,f),r,v,p)}).remove(function(y){QA(d.getItemGraphicEl(y),r,v)}).update(function(y,b){var w=d.getItemGraphicEl(b);ip(u,w,y,g(y,f),r,v,p)}).execute();var m=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;m?v.setClipPath(m):v.removeClipPath(),this._data=p},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll(),this._data=null},i.prototype.incrementalRender=function(r,s,u,f,d){var p=s.getData(),v=XA(s,p,u,f);function g(b){b.isGroup||(b.incremental=!0,b.ensureState("emphasis").hoverLayer=!0)}for(var m=r.start;m=0){var w=o.getAnimationStyleProps(),S=w?w.style:null;if(S){!d&&(d=s.style={});var M=_n(r);for(g=0;g=0?i.getStore().get(ge,oe):void 0}var _e=i.get(de.name,oe),xe=de&&de.ordinalMeta;return xe?xe.categories[_e]:_e},styleEmphasis:function(le,oe){null==oe&&(oe=g);var de=P(oe,Cc).getItemStyle(),ge=O(oe,Cc),_e=Or(ge,null,null,!0,!0);_e.text=ge.getShallow("show")?Qo(o.getFormattedLabel(oe,Cc),o.getFormattedLabel(oe,Mu),Xf(i,oe)):null;var xe=U0(ge,null,!0);return X(le,de),de=eV(de,_e,xe),le&&j(de,le),de.legacy=!0,de},visual:function(le,oe){if(null==oe&&(oe=g),Ae(PW,le)){var de=i.getItemVisual(oe,"style");return de?de[PW[le]]:null}if(Ae(HA,le))return i.getItemVisual(oe,le)},barLayout:function(le){if("cartesian2d"===f.type)return function(o){var i=[],r=o.axis,s="axis0";if("category"===r.type){for(var u=r.getBandWidth(),f=0;f=m;y--)QA(i.childAt(y),u,i)}}(o,m,r,s,u),p>=0?f.replaceAt(m,p):f.add(m),m}function KA(o,i,r){var s=Xa(o),u=i.type,f=i.shape,d=i.style;return r.isUniversalTransitionEnabled()||null!=u&&u!==s.customGraphicType||"path"===u&&function(o){return o&&(Ae(o,"pathData")||Ae(o,"d"))}(f)&&yo(f)!==s.customPathData||"image"===u&&Ae(d,"image")&&d.image!==s.customImagePath}function oV(o,i,r){var s=i?Qy(o,i):o,u=i?$A(o,s,Cc):o.style,f=o.type,d=s?s.textConfig:null,p=o.textContent,v=p?i?Qy(p,i):p:null;if(u&&(r.isLegacy||$3(u,f,!!d,!!v))){r.isLegacy=!0;var g=Q3(u,f,!i);!d&&g.textConfig&&(d=g.textConfig),!v&&g.textContent&&(v=g.textContent)}!i&&v&&!v.type&&(v.type="text");var y=i?r[i]:r.normal;y.cfg=d,y.conOpt=v}function Qy(o,i){return i?o?o[i]:null:o}function $A(o,i,r){var s=i&&i.style;return null==s&&r===Cc&&o&&(s=o.styleEmphasis),s}function sV(o,i){var r=o&&o.name;return null!=r?r:"e\0\0"+i}function op(o,i){var r=this.context;aV(r.api,null!=i?r.oldChildren[i]:null,r.dataIndex,null!=o?r.newChildren[o]:null,r.seriesModel,r.group)}function lV(o){var i=this.context;QA(i.oldChildren[o],i.seriesModel,i.group)}function QA(o,i,r){if(o){var s=Xa(o).leaveToProps;s?ln(o,s,i,{cb:function(){r.remove(o)}}):r.remove(o)}}function yo(o){return o&&(o.pathData||o.d)}var sp=pn(),JA=rt,uV=Ye;function q1(o,i,r,s){XW(sp(r).lastProp,s)||(sp(r).lastProp=s,i?ln(r,s,o):(r.stopAnimation(),r.attr(s)))}function XW(o,i){if(at(o)&&at(i)){var r=!0;return q(i,function(s,u){r=r&&XW(o[u],s)}),!!r}return o===i}function ZW(o,i){o[i.get(["label","show"])?"show":"hide"]()}function cV(o){return{x:o.x||0,y:o.y||0,rotation:o.rotation||0}}function KW(o,i,r){var s=i.get("z"),u=i.get("zlevel");o&&o.traverse(function(f){"group"!==f.type&&(null!=s&&(f.z=s),null!=u&&(f.zlevel=u),f.silent=r)})}var fV=function(){function o(){this._dragging=!1,this.animationThreshold=15}return o.prototype.render=function(i,r,s,u){var f=r.get("value"),d=r.get("status");if(this._axisModel=i,this._axisPointerModel=r,this._api=s,u||this._lastValue!==f||this._lastStatus!==d){this._lastValue=f,this._lastStatus=d;var p=this._group,v=this._handle;if(!d||"hide"===d)return p&&p.hide(),void(v&&v.hide());p&&p.show(),v&&v.show();var g={};this.makeElOption(g,f,i,r,s);var m=g.graphicKey;m!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=m;var y=this._moveAnimation=this.determineAnimation(i,r);if(p){var b=St(q1,r,y);this.updatePointerEl(p,g,b),this.updateLabelEl(p,g,b,r)}else p=this._group=new ct,this.createPointerEl(p,g,i,r),this.createLabelEl(p,g,i,r),s.getZr().add(p);KW(p,r,!0),this._renderHandle(f)}},o.prototype.remove=function(i){this.clear(i)},o.prototype.dispose=function(i){this.clear(i)},o.prototype.determineAnimation=function(i,r){var s=r.get("animation"),u=i.axis,f="category"===u.type,d=r.get("snap");if(!d&&!f)return!1;if("auto"===s||null==s){var p=this.animationThreshold;if(f&&u.getBandWidth()>p)return!0;if(d){var v=CF(i).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/v>p}return!1}return!0===s},o.prototype.makeElOption=function(i,r,s,u,f){},o.prototype.createPointerEl=function(i,r,s,u){var f=r.pointer;if(f){var d=sp(i).pointerEl=new F[f.type](JA(r.pointer));i.add(d)}},o.prototype.createLabelEl=function(i,r,s,u){if(r.label){var f=sp(i).labelEl=new fn(JA(r.label));i.add(f),ZW(f,u)}},o.prototype.updatePointerEl=function(i,r,s){var u=sp(i).pointerEl;u&&r.pointer&&(u.setStyle(r.pointer.style),s(u,{shape:r.pointer.shape}))},o.prototype.updateLabelEl=function(i,r,s,u){var f=sp(i).labelEl;f&&(f.setStyle(r.label.style),s(f,{x:r.label.x,y:r.label.y}),ZW(f,u))},o.prototype._renderHandle=function(i){if(!this._dragging&&this.updateHandleTransform){var p,r=this._axisPointerModel,s=this._api.getZr(),u=this._handle,f=r.getModel("handle"),d=r.get("status");if(!f.get("show")||!d||"hide"===d)return u&&s.remove(u),void(this._handle=null);this._handle||(p=!0,u=this._handle=cl(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(m){Vl(m.event)},onmousedown:uV(this._onHandleDragMove,this,0,0),drift:uV(this._onHandleDragMove,this),ondragend:uV(this._onHandleDragEnd,this)}),s.add(u)),KW(u,r,!1),u.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var v=f.get("size");we(v)||(v=[v,v]),u.scaleX=v[0]/2,u.scaleY=v[1]/2,il(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(i,p)}},o.prototype._moveHandleToValue=function(i,r){q1(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cV(this.getHandleTransform(i,this._axisModel,this._axisPointerModel)))},o.prototype._onHandleDragMove=function(i,r){var s=this._handle;if(s){this._dragging=!0;var u=this.updateHandleTransform(cV(s),[i,r],this._axisModel,this._axisPointerModel);this._payloadInfo=u,s.stopAnimation(),s.attr(cV(u)),sp(s).lastProp=null,this._doDispatchAxisPointer()}},o.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},o.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},o.prototype.clear=function(i){this._lastValue=null,this._lastStatus=null;var r=i.getZr(),s=this._group,u=this._handle;r&&s&&(this._lastGraphicKey=null,s&&r.remove(s),u&&r.remove(u),this._group=null,this._handle=null,this._payloadInfo=null)},o.prototype.doClear=function(){},o.prototype.buildLabel=function(i,r,s){return{x:i[s=s||0],y:i[1-s],width:r[s],height:r[1-s]}},o}();function dV(o){var s,i=o.get("type"),r=o.getModel(i+"Style");return"line"===i?(s=r.getLineStyle()).fill=null:"shadow"===i&&((s=r.getAreaStyle()).stroke=null),s}function X1(o,i,r,s,u){var d=Ps(r.get("value"),i.axis,i.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),p=r.getModel("label"),v=lh(p.get("padding")||0),g=p.getFont(),m=um(d,g),y=u.position,b=m.width+v[1]+v[3],w=m.height+v[0]+v[2],S=u.align;"right"===S&&(y[0]-=b),"center"===S&&(y[0]-=b/2);var M=u.verticalAlign;"bottom"===M&&(y[1]-=w),"middle"===M&&(y[1]-=w/2),function(o,i,r,s){var u=s.getWidth(),f=s.getHeight();o[0]=Math.min(o[0]+i,u)-i,o[1]=Math.min(o[1]+r,f)-r,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0)}(y,b,w,s);var x=p.get("backgroundColor");(!x||"auto"===x)&&(x=i.get(["axisLine","lineStyle","color"])),o.label={x:y[0],y:y[1],style:Or(p,{text:d,font:g,fill:p.getTextColor(),padding:v,backgroundColor:x}),z2:10}}function Ps(o,i,r,s,u){o=i.scale.parse(o);var f=i.scale.getLabel({value:o},{precision:u.precision}),d=u.formatter;if(d){var p={value:NT(i,{value:o}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]};q(s,function(v){var g=r.getSeriesByIndex(v.seriesIndex),y=g&&g.getDataParams(v.dataIndexInside);y&&p.seriesData.push(y)}),yt(d)?f=d.replace("{value}",f):An(d)&&(f=d(p))}return f}function eE(o,i,r){var s=[1,0,0,1,0,0];return Od(s,s,r.rotation),Oo(s,s,r.position),ul([o.dataToCoord(i),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],s)}function Jy(o,i,r,s,u,f){var d=yu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=u.get(["label","margin"]),X1(i,s,u,f,{position:eE(s.axis,o,r),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function hV(o,i,r){return{x1:o[r=r||0],y1:o[1-r],x2:i[r],y2:i[1-r]}}function tE(o,i,r){return{x:o[r=r||0],y:o[1-r],width:i[r],height:i[1-r]}}function $W(o,i,r,s,u,f){return{cx:o,cy:i,r0:r,r:s,startAngle:u,endAngle:f,clockwise:!0}}var nE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.grid,g=f.get("type"),m=QW(v,p).getOtherAxis(p).getGlobalExtent(),y=p.toGlobalCoord(p.dataToCoord(s,!0));if(g&&"none"!==g){var b=dV(f),w=Os[g](p,y,m);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,dF(v.model,u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=dF(s.axis.grid.model,s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.grid,v=d.getGlobalExtent(!0),g=QW(p,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[r.x,r.y];y[m]+=s[m],y[m]=Math.min(v[1],y[m]),y[m]=Math.max(v[0],y[m]);var b=(g[1]+g[0])/2,w=[b,b];return w[m]=y[m],{x:y[0],y:y[1],rotation:r.rotation,cursorPoint:w,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][m]}},i}(fV);function QW(o,i){var r={};return r[i.dim+"AxisIndex"]=i.index,o.getCartesian(r)}var Os={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],JW(i))}},shadow:function(i,r,s){var u=Math.max(1,i.getBandWidth());return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],JW(i))}}};function JW(o){return"x"===o.dim?0:1}var xg=nE,eY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="axisPointer",i.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},i}(qt),Sc=pn(),tY=q;function nY(o,i,r){if(!Ze.node){var s=i.getZr();Sc(s).records||(Sc(s).records={}),function(o,i){function r(s,u){o.on(s,function(f){var d=function(o){var i={showTip:[],hideTip:[]};return{dispatchAction:function s(u){var f=i[u.type];f?f.push(u):(u.dispatchAction=s,o.dispatchAction(u))},pendings:i}}(i);tY(Sc(o).records,function(p){p&&u(p,f,d.dispatchAction)}),function(o,i){var u,r=o.showTip.length,s=o.hideTip.length;r?u=o.showTip[r-1]:s&&(u=o.hideTip[s-1]),u&&(u.dispatchAction=null,i.dispatchAction(u))}(d.pendings,i)})}Sc(o).initialized||(Sc(o).initialized=!0,r("click",St(ta,"click")),r("mousemove",St(ta,"mousemove")),r("globalout",ZK))}(s,i),(Sc(s).records[o]||(Sc(s).records[o]={})).handler=r}}function ZK(o,i,r){o.handler("leave",null,r)}function ta(o,i,r,s){i.handler(o,r,s)}function iE(o,i){if(!Ze.node){var r=i.getZr();(Sc(r).records||{})[o]&&(Sc(r).records[o]=null)}}var KK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=s.getComponent("tooltip"),d=r.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";nY("axisPointer",u,function(p,v,g){"none"!==d&&("leave"===p||d.indexOf(p)>=0)&&g({type:"updateAxisPointer",currTrigger:p,x:v&&v.offsetX,y:v&&v.offsetY})})},i.prototype.remove=function(r,s){iE("axisPointer",s)},i.prototype.dispose=function(r,s){iE("axisPointer",s)},i.type="axisPointer",i}(un);function aY(o,i){var u,r=[],s=o.seriesIndex;if(null==s||!(u=i.getSeriesByIndex(s)))return{point:[]};var f=u.getData(),d=va(f,o);if(null==d||d<0||we(d))return{point:[]};var p=f.getItemGraphicEl(d),v=u.coordinateSystem;if(u.getTooltipPosition)r=u.getTooltipPosition(d)||[];else if(v&&v.dataToPoint)if(o.isStacked){var g=v.getBaseAxis(),y=v.getOtherAxis(g).dim,w="x"===y||"radius"===y?1:0,S=f.mapDimension(g.dim),M=[];M[w]=f.get(S,d),M[1-w]=f.get(f.getCalculationInfo("stackResultDimension"),d),r=v.dataToPoint(M)||[]}else r=v.dataToPoint(f.getValues(Te(v.dimensions,function(T){return f.mapDimension(T)}),d))||[];else if(p){var x=p.getBoundingRect().clone();x.applyTransform(p.transform),r=[x.x+x.width/2,x.y+x.height/2]}return{point:r,el:p}}var kc=pn();function Za(o,i,r){var s=o.currTrigger,u=[o.x,o.y],f=o,d=o.dispatchAction||Ye(r.dispatchAction,r),p=i.getComponent("axisPointer").coordSysAxesInfo;if(p){oE(u)&&(u=aY({seriesIndex:f.seriesIndex,dataIndex:f.dataIndex},i).point);var v=oE(u),g=f.axesInfo,m=p.axesInfo,y="leave"===s||oE(u),b={},w={},S={list:[],map:{}},M={showPointer:St(Tg,w),showTooltip:St(Dg,S)};q(p.coordSysMap,function(T,P){var O=v||T.containPoint(u);q(p.coordSysAxesInfo[P],function(R,V){var B=R.axis,U=function(o,i){for(var r=0;r<(o||[]).length;r++){var s=o[r];if(i.axis.dim===s.axisDim&&i.axis.model.componentIndex===s.axisIndex)return s}}(g,R);if(!y&&O&&(!g||U)){var j=U&&U.value;null==j&&!v&&(j=B.pointToData(u)),null!=j&&K1(R,j,M,!1,b)}})});var x={};return q(m,function(T,P){var O=T.linkGroup;O&&!w[P]&&q(O.axesInfo,function(R,V){var B=w[V];if(R!==T&&B){var U=B.value;O.mapper&&(U=T.axis.scale.parse(O.mapper(U,oY(R),oY(T)))),x[T.key]=U}})}),q(x,function(T,P){K1(m[P],T,M,!0,b)}),function(o,i,r){var s=r.axesInfo=[];q(i,function(u,f){var d=u.axisPointerModel.option,p=o[f];p?(!u.useHandle&&(d.status="show"),d.value=p.value,d.seriesDataIndices=(p.payloadBatch||[]).slice()):!u.useHandle&&(d.status="hide"),"show"===d.status&&s.push({axisDim:u.axis.dim,axisIndex:u.axis.model.componentIndex,value:d.value})})}(w,m,b),function(o,i,r,s){if(!oE(i)&&o.list.length){var u=((o.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:i[0],y:i[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:o.list})}else s({type:"hideTip"})}(S,u,o,d),function(o,i,r){var s=r.getZr(),u="axisPointerLastHighlights",f=kc(s)[u]||{},d=kc(s)[u]={};q(o,function(g,m){var y=g.axisPointerModel.option;"show"===y.status&&q(y.seriesDataIndices,function(b){d[b.seriesIndex+" | "+b.dataIndex]=b})});var p=[],v=[];q(f,function(g,m){!d[m]&&v.push(g)}),q(d,function(g,m){!f[m]&&p.push(g)}),v.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),p.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:p})}(m,0,r),b}}function K1(o,i,r,s,u){var f=o.axis;if(!f.scale.isBlank()&&f.containData(i)){if(!o.involveSeries)return void r.showPointer(o,i);var d=function(o,i){var r=i.axis,s=r.dim,u=o,f=[],d=Number.MAX_VALUE,p=-1;return q(i.seriesModels,function(v,g){var y,b,m=v.getData().mapDimensionsAll(s);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(m,o,r);b=w.dataIndices,y=w.nestestValue}else{if(!(b=v.getData().indicesOfNearest(m[0],o,"category"===r.type?.5:null)).length)return;y=v.getData().get(m[0],b[0])}if(null!=y&&isFinite(y)){var S=o-y,M=Math.abs(S);M<=d&&((M=0&&p<0)&&(d=M,p=S,u=y,f.length=0),q(b,function(x){f.push({seriesIndex:v.seriesIndex,dataIndexInside:x,dataIndex:v.getData().getRawIndex(x)})}))}}),{payloadBatch:f,snapToValue:u}}(i,o),p=d.payloadBatch,v=d.snapToValue;p[0]&&null==u.seriesIndex&&Se(u,p[0]),!s&&o.snap&&f.containData(v)&&null!=v&&(i=v),r.showPointer(o,i,p),r.showTooltip(o,d,v)}}function Tg(o,i,r,s){o[i.key]={value:r,payloadBatch:s}}function Dg(o,i,r,s){var u=r.payloadBatch,f=i.axis,d=f.model,p=i.axisPointerModel;if(i.triggerTooltip&&u.length){var v=i.coordSys.model,g=ay(v),m=o.map[g];m||(m=o.map[g]={coordSysId:v.id,coordSysIndex:v.componentIndex,coordSysType:v.type,coordSysMainType:v.mainType,dataByAxis:[]},o.list.push(m)),m.dataByAxis.push({axisDim:f.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:s,valueLabelOpt:{precision:p.get(["label","precision"]),formatter:p.get(["label","formatter"])},seriesDataIndices:u.slice()})}}function oY(o){var i=o.axis.model,r={},s=r.axisDim=o.axis.dim;return r.axisIndex=r[s+"AxisIndex"]=i.componentIndex,r.axisName=r[s+"AxisName"]=i.name,r.axisId=r[s+"AxisId"]=i.id,r}function oE(o){return!o||null==o[0]||isNaN(o[0])||null==o[1]||isNaN(o[1])}function $1(o){eg.registerAxisPointerClass("CartesianAxisPointer",xg),o.registerComponentModel(eY),o.registerComponentView(KK),o.registerPreprocessor(function(i){if(i){(!i.axisPointer||0===i.axisPointer.length)&&(i.axisPointer={});var r=i.axisPointer.link;r&&!we(r)&&(i.axisPointer.link=[r])}}),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,function(i,r){i.getComponent("axisPointer").coordSysAxesInfo=function(o,i){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(o,i,r){var s=i.getComponent("tooltip"),u=i.getComponent("axisPointer"),f=u.get("link",!0)||[],d=[];q(r.getCoordinateSystems(),function(p){if(p.axisPointerEnabled){var v=ay(p.model),g=o.coordSysAxesInfo[v]={};o.coordSysMap[v]=p;var y=p.model.getModel("tooltip",s);if(q(p.getAxes(),St(M,!1,null)),p.getTooltipAxes&&s&&y.get("show")){var b="axis"===y.get("trigger"),w="cross"===y.get(["axisPointer","type"]),S=p.getTooltipAxes(y.get(["axisPointer","axis"]));(b||w)&&q(S.baseAxes,St(M,!w||"cross",b)),w&&q(S.otherAxes,St(M,"cross",!1))}}function M(x,T,P){var O=P.model.getModel("axisPointer",u),R=O.get("show");if(R&&("auto"!==R||x||yD(O))){null==T&&(T=O.get("triggerTooltip"));var V=(O=x?function(o,i,r,s,u,f){var d=i.getModel("axisPointer"),v={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){v[b]=rt(d.get(b))}),v.snap="category"!==o.type&&!!f,"cross"===d.get("type")&&(v.type="line");var g=v.label||(v.label={});if(null==g.show&&(g.show=!1),"cross"===u){var m=d.get(["label","show"]);if(g.show=null==m||m,!f){var y=v.lineStyle=d.get("crossStyle");y&&tt(g,y.textStyle)}}return o.model.getModel("axisPointer",new Nn(v,r,s))}(P,y,u,i,x,T):O).get("snap"),B=ay(P.model),U=T||V||"category"===P.type,j=o.axesInfo[B]={key:B,axis:P,coordSys:p,axisPointerModel:O,triggerTooltip:T,involveSeries:U,snap:V,useHandle:yD(O),seriesModels:[],linkGroup:null};g[B]=j,o.seriesInvolved=o.seriesInvolved||U;var X=function(o,i){for(var r=i.model,s=i.dim,u=0;ux?"left":"right",y=Math.abs(g[1]-T)/M<.3?"middle":g[1]>T?"top":"bottom"}return{position:g,align:m,verticalAlign:y}}(s,u,0,v,f.get(["label","margin"]));X1(r,u,f,d,x)},i}(fV),QK={line:function(i,r,s,u){return"angle"===i.dim?{type:"Line",shape:hV(r.coordToPoint([u[0],s]),r.coordToPoint([u[1],s]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:s}}},shadow:function(i,r,s,u){var f=Math.max(1,i.getBandWidth()),d=Math.PI/180;return"angle"===i.dim?{type:"Sector",shape:$W(r.cx,r.cy,u[0],u[1],(-s-f/2)*d,(f/2-s)*d)}:{type:"Sector",shape:$W(r.cx,r.cy,s-f/2,s+f/2,0,2*Math.PI)}}},JK=pV,t$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.findAxisModel=function(r){var s;return this.ecModel.eachComponent(r,function(f){f.getCoordSysModel()===this&&(s=f)},this),s},i.type="polar",i.dependencies=["radiusAxis","angleAxis"],i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},i}(qt),vV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ai).models[0]},i.type="polarAxis",i}(qt);qr(vV,zv);var n$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="angleAxis",i}(vV),r$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="radiusAxis",i}(vV),Q1=function(o){function i(r,s){return o.call(this,"radius",r,s)||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i}(_l);Q1.prototype.dataToRadius=_l.prototype.dataToCoord,Q1.prototype.radiusToData=_l.prototype.coordToData;var i$=Q1,a$=pn(),gV=function(o){function i(r,s){return o.call(this,"angle",r,s||[0,360])||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i.prototype.calculateCategoryInterval=function(){var r=this,s=r.getLabelModel(),u=r.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=f[0],v=r.dataToCoord(p+1)-r.dataToCoord(p),g=Math.abs(v),m=um(null==p?"":p+"",s.getFont(),"center","top"),b=Math.max(m.height,7)/g;isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(b)),S=a$(r.model),M=S.lastAutoInterval,x=S.lastTickCount;return null!=M&&null!=x&&Math.abs(M-w)<=1&&Math.abs(x-d)<=1&&M>w?w=M:(S.lastTickCount=d,S.lastAutoInterval=w),w},i}(_l);gV.prototype.dataToAngle=_l.prototype.dataToCoord,gV.prototype.angleToData=_l.prototype.coordToData;var o$=gV,J1=["radius","angle"];function lY(o){var i=o.seriesModel,r=o.polarModel;return r&&r.coordinateSystem||i&&i.coordinateSystem}var l$=function(){function o(i){this.dimensions=J1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new i$,this._angleAxis=new o$,this.axisPointerEnabled=!0,this.name=i||"",this._radiusAxis.polar=this._angleAxis.polar=this}return o.prototype.containPoint=function(i){var r=this.pointToCoord(i);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},o.prototype.containData=function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},o.prototype.getAxis=function(i){return this["_"+i+"Axis"]},o.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},o.prototype.getAxesByScale=function(i){var r=[],s=this._angleAxis,u=this._radiusAxis;return s.scale.type===i&&r.push(s),u.scale.type===i&&r.push(u),r},o.prototype.getAngleAxis=function(){return this._angleAxis},o.prototype.getRadiusAxis=function(){return this._radiusAxis},o.prototype.getOtherAxis=function(i){var r=this._angleAxis;return i===r?this._radiusAxis:r},o.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},o.prototype.getTooltipAxes=function(i){var r=null!=i&&"auto"!==i?this.getAxis(i):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},o.prototype.dataToPoint=function(i,r){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],r),this._angleAxis.dataToAngle(i[1],r)])},o.prototype.pointToData=function(i,r){var s=this.pointToCoord(i);return[this._radiusAxis.radiusToData(s[0],r),this._angleAxis.angleToData(s[1],r)]},o.prototype.pointToCoord=function(i){var r=i[0]-this.cx,s=i[1]-this.cy,u=this.getAngleAxis(),f=u.getExtent(),d=Math.min(f[0],f[1]),p=Math.max(f[0],f[1]);u.inverse?d=p-360:p=d+360;var v=Math.sqrt(r*r+s*s);r/=v,s/=v;for(var g=Math.atan2(-s,r)/Math.PI*180,m=gp;)g+=360*m;return[v,g]},o.prototype.coordToPoint=function(i){var r=i[0],s=i[1]/180*Math.PI;return[Math.cos(s)*r+this.cx,-Math.sin(s)*r+this.cy]},o.prototype.getArea=function(){var i=this.getAngleAxis(),s=this.getRadiusAxis().getExtent().slice();s[0]>s[1]&&s.reverse();var u=i.getExtent(),f=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:s[0],r:s[1],startAngle:-u[0]*f,endAngle:-u[1]*f,clockwise:i.inverse,contain:function(p,v){var g=p-this.cx,m=v-this.cy,y=g*g+m*m,b=this.r,w=this.r0;return y<=b*b&&y>=w*w}}},o.prototype.convertToPixel=function(i,r,s){return lY(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return lY(r)===this?this.pointToData(s):null},o}();function c$(o,i){var r=this,s=r.getAngleAxis(),u=r.getRadiusAxis();if(s.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),o.eachSeries(function(p){if(p.coordinateSystem===r){var v=p.getData();q(H_(v,"radius"),function(g){u.scale.unionExtentFromData(v,g)}),q(H_(v,"angle"),function(g){s.scale.unionExtentFromData(v,g)})}}),Wf(s.scale,s.model),Wf(u.scale,u.model),"category"===s.type&&!s.onBand){var f=s.getExtent(),d=360/s.scale.count();s.inverse?f[1]+=d:f[1]-=d,s.setExtent(f[0],f[1])}}function uY(o,i){if(o.type=i.get("type"),o.scale=Hh(i),o.onBand=i.get("boundaryGap")&&"category"===o.type,o.inverse=i.get("inverse"),function(o){return"angleAxis"===o.mainType}(i)){o.inverse=o.inverse!==i.get("clockwise");var r=i.get("startAngle");o.setExtent(r,r+(o.inverse?-360:360))}i.axis=o,o.model=i}var h$={dimensions:J1,create:function(i,r){var s=[];return i.eachComponent("polar",function(u,f){var d=new l$(f+"");d.update=c$;var p=d.getRadiusAxis(),v=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");uY(p,g),uY(v,m),function(o,i,r){var s=i.get("center"),u=r.getWidth(),f=r.getHeight();o.cx=Fe(s[0],u),o.cy=Fe(s[1],f);var d=o.getRadiusAxis(),p=Math.min(u,f)/2,v=i.get("radius");null==v?v=[0,"100%"]:we(v)||(v=[0,v]);var g=[Fe(v[0],p),Fe(v[1],p)];d.inverse?d.setExtent(g[1],g[0]):d.setExtent(g[0],g[1])}(d,u,r),s.push(d),u.coordinateSystem=d,d.model=u}),i.eachSeries(function(u){if("polar"===u.get("coordinateSystem")){var f=u.getReferringComponents("polar",ai).models[0];u.coordinateSystem=f.coordinateSystem}}),s}},p$=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sE(o,i,r){i[1]>i[0]&&(i=i.slice().reverse());var s=o.coordToPoint([i[0],r]),u=o.coordToPoint([i[1],r]);return{x1:s[0],y1:s[1],x2:u[0],y2:u[1]}}function lE(o){return o.getRadiusAxis().inverse?0:1}function cY(o){var i=o[0],r=o[o.length-1];i&&r&&Math.abs(Math.abs(i.coord-r.coord)-360)<1e-4&&o.pop()}var v$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.axisPointerClass="PolarAxisPointer",r}return he(i,o),i.prototype.render=function(r,s){if(this.group.removeAll(),r.get("show")){var u=r.axis,f=u.polar,d=f.getRadiusAxis().getExtent(),p=u.getTicksCoords(),v=u.getMinorTicksCoords(),g=Te(u.getViewLabels(),function(m){m=rt(m);var y=u.scale,b="ordinal"===y.type?y.getRawOrdinalNumber(m.tickValue):m.tickValue;return m.coord=u.dataToCoord(b),m});cY(g),cY(p),q(p$,function(m){r.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&g$[m](this.group,r,f,p,v,d,g)},this)}},i.type="angleAxis",i}(eg),g$={axisLine:function(i,r,s,u,f,d){var m,p=r.getModel(["axisLine","lineStyle"]),v=lE(s),g=v?0:1;(m=0===d[g]?new sl({shape:{cx:s.cx,cy:s.cy,r:d[v]},style:p.getLineStyle(),z2:1,silent:!0}):new Mv({shape:{cx:s.cx,cy:s.cy,r:d[v],r0:d[g]},style:p.getLineStyle(),z2:1,silent:!0})).style.fill=null,i.add(m)},axisTick:function(i,r,s,u,f,d){var p=r.getModel("axisTick"),v=(p.get("inside")?-1:1)*p.get("length"),g=d[lE(s)],m=Te(u,function(y){return new Ti({shape:sE(s,[g,g+v],y.coord)})});i.add(ba(m,{style:tt(p.getModel("lineStyle").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})}))},minorTick:function(i,r,s,u,f,d){if(f.length){for(var p=r.getModel("axisTick"),v=r.getModel("minorTick"),g=(p.get("inside")?-1:1)*v.get("length"),m=d[lE(s)],y=[],b=0;bP?"left":"right",V=Math.abs(T[1]-O)/x<.3?"middle":T[1]>O?"top":"bottom";if(v&&v[M]){var B=v[M];at(B)&&B.textStyle&&(S=new Nn(B.textStyle,g,g.ecModel))}var U=new fn({silent:yu.isLabelSilent(r),style:Or(S,{x:T[0],y:T[1],fill:S.getTextColor()||r.get(["axisLine","lineStyle","color"]),text:b.formattedLabel,align:R,verticalAlign:V})});if(i.add(U),y){var j=yu.makeAxisEventDataBase(r);j.targetType="axisLabel",j.value=b.rawLabel,ht(U).eventData=j}},this)},splitLine:function(i,r,s,u,f,d){var v=r.getModel("splitLine").getModel("lineStyle"),g=v.get("color"),m=0;g=g instanceof Array?g:[g];for(var y=[],b=0;b=0?"p":"n",ee=U;V&&(s[m][$]||(s[m][$]={p:U,n:U}),ee=s[m][$][te]);var le=void 0,oe=void 0,de=void 0,ge=void 0;if("radius"===S.dim){var _e=S.dataToCoord(Z)-U,xe=v.dataToCoord($);Math.abs(_e)=r.y&&i[1]<=r.y+r.height:s.contain(s.toLocalCoord(i[1]))&&i[0]>=r.y&&i[0]<=r.y+r.height},o.prototype.pointToData=function(i){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(i["horizontal"===r.orient?0:1]))]},o.prototype.dataToPoint=function(i){var r=this.getAxis(),s=this.getRect(),u=[],f="horizontal"===r.orient?0:1;return i instanceof Array&&(i=i[0]),u[f]=r.toGlobalCoord(r.dataToCoord(+i)),u[1-f]=0===f?s.y+s.height/2:s.x+s.width/2,u},o.prototype.convertToPixel=function(i,r,s){return gY(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return gY(r)===this?this.pointToData(s):null},o}(),H$={create:function(o,i){var r=[];return o.eachComponent("singleAxis",function(s,u){var f=new N$(s,o,i);f.name="single_"+u,f.resize(s,i),s.coordinateSystem=f,r.push(f)}),o.eachSeries(function(s){if("singleAxis"===s.get("coordinateSystem")){var u=s.getReferringComponents("singleAxis",ai).models[0];s.coordinateSystem=u&&u.coordinateSystem}}),r},dimensions:vY},mY=["x","y"],z$=["width","height"],U$=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.coordinateSystem,g=bV(v,1-uE(p)),m=v.dataToPoint(s)[0],y=f.get("type");if(y&&"none"!==y){var b=dV(f),w=G$[y](p,m,g);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,_V(u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=_V(s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.coordinateSystem,v=uE(d),g=bV(p,v),m=[r.x,r.y];m[v]+=s[v],m[v]=Math.min(g[1],m[v]),m[v]=Math.max(g[0],m[v]);var y=bV(p,1-v),b=(y[1]+y[0])/2,w=[b,b];return w[v]=m[v],{x:m[0],y:m[1],rotation:r.rotation,cursorPoint:w,tooltipOption:{verticalAlign:"middle"}}},i}(fV),G$={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],uE(i))}},shadow:function(i,r,s){var u=i.getBandWidth();return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],uE(i))}}};function uE(o){return o.isHorizontal()?0:1}function bV(o,i){var r=o.getRect();return[r[mY[i]],r[mY[i]]+r[z$[i]]]}var j$=U$,W$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="single",i}(un);function _Y(o,i){var s,r=o.cellSize;1===(s=we(r)?r:o.cellSize=[r,r]).length&&(s[1]=s[0]);var u=Te([0,1],function(f){return function(o,i){return null!=o[uh[i][0]]||null!=o[uh[i][1]]&&null!=o[uh[i][2]]}(i,f)&&(s[f]="auto"),null!=s[f]&&"auto"!==s[f]});kf(o,i,{type:"box",ignoreSize:u})}var X$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s,u){var f=av(r);o.prototype.init.apply(this,arguments),_Y(r,f)},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),_Y(this.option,r)},i.prototype.getCellSize=function(){return this.option.cellSize},i.type="calendar",i.defaultOption={zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},i}(qt),Z$={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},K$={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},Q$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group;f.removeAll();var d=r.coordinateSystem,p=d.getRangeInfo(),v=d.getOrient();this._renderDayRect(r,p,f),this._renderLines(r,p,v,f),this._renderYearText(r,p,v,f),this._renderMonthText(r,v,f),this._renderWeekText(r,p,v,f)},i.prototype._renderDayRect=function(r,s,u){for(var f=r.coordinateSystem,d=r.getModel("itemStyle").getItemStyle(),p=f.getCellWidth(),v=f.getCellHeight(),g=s.start.time;g<=s.end.time;g=f.getNextNDay(g,1).time){var m=f.dataToRect([g],!1).tl,y=new sn({shape:{x:m[0],y:m[1],width:p,height:v},cursor:"default",style:d});u.add(y)}},i.prototype._renderLines=function(r,s,u,f){var d=this,p=r.coordinateSystem,v=r.getModel(["splitLine","lineStyle"]).getLineStyle(),g=r.get(["splitLine","show"]),m=v.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var y=s.start,b=0;y.time<=s.end.time;b++){S(y.formatedDate),0===b&&(y=p.getDateInfo(s.start.y+"-"+s.start.m));var w=y.date;w.setMonth(w.getMonth()+1),y=p.getDateInfo(w)}function S(M){d._firstDayOfMonth.push(p.getDateInfo(M)),d._firstDayPoints.push(p.dataToRect([M],!1).tl);var x=d._getLinePointsOfOneWeek(r,M,u);d._tlpoints.push(x[0]),d._blpoints.push(x[x.length-1]),g&&d._drawSplitline(x,v,f)}S(p.getNextNDay(s.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),v,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),v,f)},i.prototype._getEdgesPoints=function(r,s,u){var f=[r[0].slice(),r[r.length-1].slice()],d="horizontal"===u?0:1;return f[0][d]=f[0][d]-s/2,f[1][d]=f[1][d]+s/2,f},i.prototype._drawSplitline=function(r,s,u){var f=new br({z2:20,shape:{points:r},style:s});u.add(f)},i.prototype._getLinePointsOfOneWeek=function(r,s,u){for(var f=r.coordinateSystem,d=f.getDateInfo(s),p=[],v=0;v<7;v++){var g=f.getNextNDay(d.time,v),m=f.dataToRect([g.time],!1);p[2*g.day]=m.tl,p[2*g.day+1]=m["horizontal"===u?"bl":"tr"]}return p},i.prototype._formatterLabel=function(r,s){return"string"==typeof r&&r?function(o,i,r){return q(i,function(s,u){o=o.replace("{"+u+"}",s)}),o}(r,s):"function"==typeof r?r(s):s.nameMap},i.prototype._yearTextPositionControl=function(r,s,u,f,d){var p=s[0],v=s[1],g=["center","bottom"];"bottom"===f?(v+=d,g=["center","top"]):"left"===f?p-=d:"right"===f?(p+=d,g=["center","top"]):v-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:p,y:v,style:{align:g[0],verticalAlign:g[1]}}},i.prototype._renderYearText=function(r,s,u,f){var d=r.getModel("yearLabel");if(d.get("show")){var p=d.get("margin"),v=d.get("position");v||(v="horizontal"!==u?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],m=(g[0][0]+g[1][0])/2,y=(g[0][1]+g[1][1])/2,b="horizontal"===u?0:1,w={top:[m,g[b][1]],bottom:[m,g[1-b][1]],left:[g[1-b][0],y],right:[g[b][0],y]},S=s.start.y;+s.end.y>+s.start.y&&(S=S+"-"+s.end.y);var M=d.get("formatter"),T=this._formatterLabel(M,{start:s.start.y,end:s.end.y,nameMap:S}),P=new fn({z2:30,style:Or(d,{text:T})});P.attr(this._yearTextPositionControl(P,w[v],u,v,p)),f.add(P)}},i.prototype._monthTextPositionControl=function(r,s,u,f,d){var p="left",v="top",g=r[0],m=r[1];return"horizontal"===u?(m+=d,s&&(p="center"),"start"===f&&(v="bottom")):(g+=d,s&&(v="middle"),"start"===f&&(p="right")),{x:g,y:m,align:p,verticalAlign:v}},i.prototype._renderMonthText=function(r,s,u){var f=r.getModel("monthLabel");if(f.get("show")){var d=f.get("nameMap"),p=f.get("margin"),v=f.get("position"),g=f.get("align"),m=[this._tlpoints,this._blpoints];yt(d)&&(d=Z$[d.toUpperCase()]||[]);var y="start"===v?0:1,b="horizontal"===s?0:1;p="start"===v?-p:p;for(var w="center"===g,S=0;S=u.start.time&&s.timep.end.time&&r.reverse(),r},o.prototype._getRangeInfo=function(i){var s,r=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];r[0].time>r[1].time&&(s=!0,r.reverse());var u=Math.floor(r[1].time/CV)-Math.floor(r[0].time/CV)+1,f=new Date(r[0].time),d=f.getDate(),p=r[1].date.getDate();f.setDate(d+u-1);var v=f.getDate();if(v!==p)for(var g=f.getTime()-r[1].time>0?1:-1;(v=f.getDate())!==p&&(f.getTime()-r[1].time)*g>0;)u-=g,f.setDate(v-g);var m=Math.floor((u+r[0].day+6)/7),y=s?1-m:m-1;return s&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:u,weeks:m,nthWeek:y,fweek:r[0].day,lweek:r[1].day}},o.prototype._getDateByWeeksAndDay=function(i,r,s){var u=this._getRangeInfo(s);if(i>u.weeks||0===i&&ru.lweek)return null;var f=7*(i-1)-u.fweek+r,d=new Date(u.start.time);return d.setDate(+u.start.d+f),this.getDateInfo(d)},o.create=function(i,r){var s=[];return i.eachComponent("calendar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeries(function(u){"calendar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("calendarIndex")||0])}),s},o.dimensions=["time","value"],o}(),eb=pn(),bY={path:null,compoundPath:null,group:ct,image:si,text:fn},rQ=function(i){var r=i.graphic;we(r)?i.graphic=r[0]&&r[0].elements?[i.graphic[0]]:[{elements:r}]:r&&!r.elements&&(i.graphic=[{elements:[r]}])},iQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventAutoZ=!0,r}return he(i,o),i.prototype.mergeOption=function(r,s){var u=this.option.elements;this.option.elements=null,o.prototype.mergeOption.call(this,r,s),this.option.elements=u},i.prototype.optionUpdated=function(r,s){var u=this.option,f=(s?u:r).elements,d=u.elements=s?[]:u.elements,p=[];this._flatten(f,p,null);var v=Xk(d,p,"normalMerge"),g=this._elOptionsToUpdate=[];q(v,function(y,b){var w=y.newOption;!w||(g.push(w),function(o,i){var r=o.existing;if(i.id=o.keyInfo.id,!i.type&&r&&(i.type=r.type),null==i.parentId){var s=i.parentOption;s?i.parentId=s.id:r&&(i.parentId=r.parentId)}i.parentOption=null}(y,w),function(o,i,r){var s=Se({},r),u=o[i],f=r.$action||"merge";"merge"===f?u?(He(u,s,!0),kf(u,s,{ignoreSize:!0}),MI(r,u)):o[i]=s:"replace"===f?o[i]=s:"remove"===f&&u&&(o[i]=null)}(d,b,w),function(o,i){if(o&&(o.hv=i.hv=[wY(i,["left","right"]),wY(i,["top","bottom"])],"group"===o.type)){var r=o,s=i;null==r.width&&(r.width=s.width=0),null==r.height&&(r.height=s.height=0)}}(d[b],w))},this);for(var m=d.length-1;m>=0;m--)null==d[m]?d.splice(m,1):delete d[m].$action},i.prototype._flatten=function(r,s,u){q(r,function(f){if(f){u&&(f.parentOption=u),s.push(f);var d=f.children;"group"===f.type&&d&&this._flatten(d,s,f),delete f.children}},this)},i.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},i.type="graphic",i.defaultOption={elements:[]},i}(qt),aQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this._elMap=et()},i.prototype.render=function(r,s,u){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,u)},i.prototype._updateElements=function(r){var s=r.useElOptionsToUpdate();if(s){var u=this._elMap,f=this.group;q(s,function(d){var p=wi(d.id,null),v=null!=p?u.get(p):null,g=wi(d.parentId,null),m=null!=g?u.get(g):f,y=d.type,b=d.style;"text"===y&&b&&d.hv&&d.hv[1]&&(b.textVerticalAlign=b.textBaseline=b.verticalAlign=b.align=null);var w=d.textContent,S=d.textConfig;if(b&&$3(b,y,!!S,!!w)){var M=Q3(b,y,!0);!S&&M.textConfig&&(S=d.textConfig=M.textConfig),!w&&M.textContent&&(w=M.textContent)}var x=function(o){return o=Se({},o),q(["id","parentId","$action","hv","bounding","textContent"].concat(kI),function(i){delete o[i]}),o}(d),T=d.$action||"merge";"merge"===T?v?v.attr(x):CY(p,m,x,u):"replace"===T?(cE(v,u),CY(p,m,x,u)):"remove"===T&&cE(v,u);var P=u.get(p);if(P&&w)if("merge"===T){var O=P.getTextContent();O?O.attr(w):P.setTextContent(new fn(w))}else"replace"===T&&P.setTextContent(new fn(w));if(P){var R=eb(P);R.__ecGraphicWidthOption=d.width,R.__ecGraphicHeightOption=d.height,function(o,i,r){var s=ht(o).eventData;!o.silent&&!o.ignore&&!s&&(s=ht(o).eventData={componentType:"graphic",componentIndex:i.componentIndex,name:o.name}),s&&(s.info=r.info)}(P,r,d),Av({el:P,componentModel:r,itemName:P.name,itemTooltipOption:d.tooltip})}})}},i.prototype._relocate=function(r,s){for(var u=r.option.elements,f=this.group,d=this._elMap,p=s.getWidth(),v=s.getHeight(),g=0;g=0;g--){var m,y,b,w;if(b=null!=(y=wi((m=u[g]).id,null))?d.get(y):null)x=eb(w=b.parent),tC(b,m,w===f?{width:p,height:v}:{width:x.__ecGraphicWidth,height:x.__ecGraphicHeight},null,{hv:m.hv,boundingMode:m.bounding})}},i.prototype._clear=function(){var r=this._elMap;r.each(function(s){cE(s,r)}),this._elMap=et()},i.prototype.dispose=function(){this._clear()},i.type="graphic",i}(un);function CY(o,i,r,s){var u=r.type,d=new(Ae(bY,u)?bY[u]:Hx(u))(r);i.add(d),s.set(o,d),eb(d).__ecGraphicId=o}function cE(o,i){var r=o&&o.parent;r&&("group"===o.type&&o.traverse(function(s){cE(s,i)}),i.removeKey(eb(o).__ecGraphicId),r.remove(o))}function wY(o,i){var r;return q(i,function(s){null!=o[s]&&"auto"!==o[s]&&(r=!0)}),r}var SV=["x","y","radius","angle","single"],kV=["cartesian2d","polar","singleAxis"];function Dc(o){return o+"Axis"}function MV(o){var i=o.ecModel,r={infoList:[],infoMap:et()};return o.eachTargetAxis(function(s,u){var f=i.getComponent(Dc(s),u);if(f){var d=f.getCoordSysModel();if(d){var p=d.uid,v=r.infoMap.get(p);v||(r.infoList.push(v={model:d,axisModels:[]}),r.infoMap.set(p,v)),v.axisModels.push(f)}}}),r}var xV=function(){function o(){this.indexList=[],this.indexMap=[]}return o.prototype.add=function(i){this.indexMap[i]||(this.indexList.push(i),this.indexMap[i]=!0)},o}();function xY(o){var i={};return q(["start","end","startValue","endValue","throttle"],function(r){o.hasOwnProperty(r)&&(i[r]=o[r])}),i}var eS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return he(i,o),i.prototype.init=function(r,s,u){var f=xY(r);this.settledOption=f,this.mergeDefaultAndTheme(r,u),this._doInit(f)},i.prototype.mergeOption=function(r){var s=xY(r);He(this.option,r,!0),He(this.settledOption,s,!0),this._doInit(s)},i.prototype._doInit=function(r){var s=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f,d){"value"===this._rangePropMode[d]&&(s[f[0]]=u[f[0]]=null)},this),this._resetTarget()},i.prototype._resetTarget=function(){var r=this.get("orient",!0),s=this._targetAxisInfoMap=et();this._fillSpecifiedTargetAxis(s)?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(f){f.indexList.length&&(this._noTarget=!1)},this)},i.prototype._fillSpecifiedTargetAxis=function(r){var s=!1;return q(SV,function(u){var f=this.getReferringComponents(Dc(u),$H);if(f.specified){s=!0;var d=new xV;q(f.models,function(p){d.add(p.componentIndex)}),r.set(u,d)}},this),s},i.prototype._fillAutoTargetAxisByOrient=function(r,s){var u=this.ecModel,f=!0;if(f){var d="vertical"===s?"y":"x";v(u.findComponents({mainType:d+"Axis"}),d)}function v(g,m){var y=g[0];if(y){var b=new xV;if(b.add(y.componentIndex),r.set(m,b),f=!1,"x"===m||"y"===m){var w=y.getReferringComponents("grid",ai).models[0];w&&q(g,function(S){y.componentIndex!==S.componentIndex&&w===S.getReferringComponents("grid",ai).models[0]&&b.add(S.componentIndex)})}}}f&&v(u.findComponents({mainType:"singleAxis",filter:function(y){return y.get("orient",!0)===s}}),"single"),f&&q(SV,function(g){if(f){var m=u.findComponents({mainType:Dc(g),filter:function(w){return"category"===w.get("type",!0)}});if(m[0]){var y=new xV;y.add(m[0].componentIndex),r.set(g,y),f=!1}}},this)},i.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(s){!r&&(r=s)},this),"y"===r?"vertical":"horizontal"},i.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},i.prototype._updateRangeUse=function(r){var s=this._rangePropMode,u=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(f,d){var p=null!=r[f[0]],v=null!=r[f[1]];p&&!v?s[d]="percent":!p&&v?s[d]="value":u?s[d]=u[d]:p&&(s[d]="percent")})},i.prototype.noTarget=function(){return this._noTarget},i.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(s,u){null==r&&(r=this.ecModel.getComponent(Dc(s),u))},this),r},i.prototype.eachTargetAxis=function(r,s){this._targetAxisInfoMap.each(function(u,f){q(u.indexList,function(d){r.call(s,f,d)})})},i.prototype.getAxisProxy=function(r,s){var u=this.getAxisModel(r,s);if(u)return u.__dzAxisProxy},i.prototype.getAxisModel=function(r,s){var u=this._targetAxisInfoMap.get(r);if(u&&u.indexMap[s])return this.ecModel.getComponent(Dc(r),s)},i.prototype.setRawRange=function(r){var s=this.option,u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f){(null!=r[f[0]]||null!=r[f[1]])&&(s[f[0]]=u[f[0]]=r[f[0]],s[f[1]]=u[f[1]]=r[f[1]])},this),this._updateRangeUse(r)},i.prototype.setCalculatedRange=function(r){var s=this.option;q(["start","startValue","end","endValue"],function(u){s[u]=r[u]})},i.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},i.prototype.getValueRange=function(r,s){if(null!=r||null!=s)return this.getAxisProxy(r,s).getDataValueWindow();var u=this.findRepresentativeAxisProxy();return u?u.getDataValueWindow():void 0},i.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var s,u=this._targetAxisInfoMap.keys(),f=0;f=0}(r)){var s=Dc(this._dimName),u=r.getReferringComponents(s,ai).models[0];u&&this._axisIndex===u.componentIndex&&i.push(r)}},this),i},o.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},o.prototype.getMinMaxSpan=function(){return rt(this._minMaxSpan)},o.prototype.calculateDataWindow=function(i){var g,r=this._dataExtent,u=this.getAxisModel().axis.scale,f=this._dataZoomModel.getRangePropMode(),d=[0,100],p=[],v=[];Ag(["start","end"],function(b,w){var S=i[b],M=i[b+"Value"];"percent"===f[w]?(null==S&&(S=d[w]),M=u.parse(bn(S,d,r))):(g=!0,S=bn(M=null==M?r[w]:u.parse(M),r,d)),v[w]=M,p[w]=S}),dE(v),dE(p);var m=this._minMaxSpan;function y(b,w,S,M,x){var T=x?"Span":"ValueSpan";kl(0,b,S,"all",m["min"+T],m["max"+T]);for(var P=0;P<2;P++)w[P]=bn(b[P],S,M,!0),x&&(w[P]=u.parse(w[P]))}return g?y(v,p,r,d,!1):y(p,v,d,r,!0),{valueWindow:v,percentWindow:p}},o.prototype.reset=function(i){if(i===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=function(o,i,r){var s=[1/0,-1/0];Ag(r,function(d){!function(o,i,r){i&&q(H_(i,r),function(s){var u=i.getApproximateExtent(s);u[0]o[1]&&(o[1]=u[1])})}(s,d.getData(),i)});var u=o.getAxisModel(),f=dL(u.axis.scale,u,s).calculate();return[f.min,f.max]}(this,this._dimName,r),this._updateMinMaxSpan();var s=this.calculateDataWindow(i.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},o.prototype.filterData=function(i,r){if(i===this._dataZoomModel){var s=this._dimName,u=this.getTargetSeriesModels(),f=i.get("filterMode"),d=this._valueWindow;"none"!==f&&Ag(u,function(v){var g=v.getData(),m=g.mapDimensionsAll(s);if(m.length){if("weakFilter"===f){var y=g.getStore(),b=Te(m,function(w){return g.getDimensionIndex(w)},g);g.filterSelf(function(w){for(var S,M,x,T=0;Td[1];if(O&&!R&&!V)return!0;O&&(x=!0),R&&(S=!0),V&&(M=!0)}return x&&S&&M})}else Ag(m,function(w){if("empty"===f)v.setData(g=g.map(w,function(M){return function(v){return v>=d[0]&&v<=d[1]}(M)?M:NaN}));else{var S={};S[w]=d,g.selectRange(S)}});Ag(m,function(w){g.setApproximateExtent(d,w)})}})}},o.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},r=this._dataZoomModel,s=this._dataExtent;Ag(["min","max"],function(u){var f=r.get(u+"Span"),d=r.get(u+"ValueSpan");null!=d&&(d=this.getAxisModel().axis.scale.parse(d)),null!=d?f=bn(s[0]+d,s,[0,100],!0):null!=f&&(d=bn(f,[0,100],s,!0)-s[0]),i[u+"Span"]=f,i[u+"ValueSpan"]=d},this)},o.prototype._setAxisModel=function(){var i=this.getAxisModel(),r=this._percentWindow,s=this._valueWindow;if(r){var u=o0(s,[0,500]);u=Math.min(u,20);var f=i.axis.scale.rawExtentInfo;0!==r[0]&&f.setDeterminedMinMax("min",+s[0].toFixed(u)),100!==r[1]&&f.setDeterminedMinMax("max",+s[1].toFixed(u)),f.freeze()}},o}(),EV={getTargetSeries:function(i){function r(f){i.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(p,v){var g=i.getComponent(Dc(p),v);f(p,v,g,d)})})}r(function(f,d,p,v){p.__dzAxisProxy=null});var s=[];r(function(f,d,p,v){p.__dzAxisProxy||(p.__dzAxisProxy=new cp(f,d,v,i),s.push(p.__dzAxisProxy))});var u=et();return q(s,function(f){q(f.getTargetSeriesModels(),function(d){u.set(d.uid,d)})}),u},overallReset:function(i,r){i.eachComponent("dataZoom",function(s){s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).reset(s)}),s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).filterData(s,r)})}),i.eachComponent("dataZoom",function(s){var u=s.findRepresentativeAxisProxy();if(u){var f=u.getDataPercentWindow(),d=u.getDataValueWindow();s.setCalculatedRange({start:f[0],end:f[1],startValue:d[0],endValue:d[1]})}})}},pE=!1;function vE(o){pE||(pE=!0,o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,EV),function(o){o.registerAction("dataZoom",function(i,r){q(function(o,i){var f,r=et(),s=[],u=et();o.eachComponent({mainType:"dataZoom",query:i},function(m){u.get(m.uid)||p(m)});do{f=!1,o.eachComponent("dataZoom",d)}while(f);function d(m){!u.get(m.uid)&&function(m){var y=!1;return m.eachTargetAxis(function(b,w){var S=r.get(b);S&&S[w]&&(y=!0)}),y}(m)&&(p(m),f=!0)}function p(m){u.set(m.uid,!0),s.push(m),function(m){m.eachTargetAxis(function(y,b){(r.get(y)||r.set(y,[]))[b]=!0})}(m)}return s}(r,i),function(u){u.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})}(o),o.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function PY(o){o.registerComponentModel(TY),o.registerComponentView(tb),vE(o)}var Is=function(){},Ai={};function Eg(o,i){Ai[o]=i}function gE(o){return Ai[o]}var PV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){o.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;q(this.option.feature,function(s,u){var f=gE(u);f&&(f.getDefaultOption&&(f.defaultOption=f.getDefaultOption(r)),He(s,f.defaultOption))})},i.type="toolbox",i.layoutMode={type:"box",ignoreSize:!0},i.defaultOption={show:!0,z:6,zlevel:0,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"}},i}(qt);function OV(o,i){var r=lh(i.get("padding")),s=i.getItemStyle(["color","opacity"]);return s.fill=i.get("backgroundColor"),new sn({shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[1]+r[3],height:o.height+r[0]+r[2],r:i.get("borderRadius")},style:s,silent:!0,z2:-1})}var mE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this.group;if(d.removeAll(),r.get("show")){var p=+r.get("itemSize"),v=r.get("feature")||{},g=this._features||(this._features={}),m=[];q(v,function(w,S){m.push(S)}),new Hf(this._featureNames||[],m).add(y).update(y).remove(St(y,null)).execute(),this._featureNames=m,function(o,i,r){var s=i.getBoxLayoutParams(),u=i.get("padding"),f={width:r.getWidth(),height:r.getHeight()},d=li(s,f,u);Sf(i.get("orient"),o,i.get("itemGap"),d.width,d.height),tC(o,s,f,u)}(d,r,u),d.add(OV(d.getBoundingRect(),r)),d.eachChild(function(w){var S=w.__title,M=w.ensureState("emphasis"),x=M.textConfig||(M.textConfig={}),T=w.getTextContent(),P=T&&T.states.emphasis;if(P&&!An(P)&&S){var O=P.style||(P.style={}),R=um(S,fn.makeFont(O)),V=w.x+d.x,U=!1;w.y+d.y+p+R.height>u.getHeight()&&(x.position="top",U=!0);var j=U?-5-R.height:p+8;V+R.width/2>u.getWidth()?(x.position=["100%",j],O.align="right"):V-R.width/2<0&&(x.position=[0,j],O.align="left")}})}function y(w,S){var O,M=m[w],x=m[S],T=v[M],P=new Nn(T,r,r.ecModel);if(f&&null!=f.newTitle&&f.featureName===M&&(T.title=f.newTitle),M&&!x){if(function(o){return 0===o.indexOf("my")}(M))O={onclick:P.option.onclick,featureName:M};else{var R=gE(M);if(!R)return;O=new R}g[M]=O}else if(!(O=g[x]))return;O.uid=Bm("toolbox-feature"),O.model=P,O.ecModel=s,O.api=u;var V=O instanceof Is;M||!x?!P.get("show")||V&&O.unusable?V&&O.remove&&O.remove(s,u):(function(w,S,M){var R,V,x=w.getModel("iconStyle"),T=w.getModel(["emphasis","iconStyle"]),P=S instanceof Is&&S.getIcons?S.getIcons():w.get("icon"),O=w.get("title")||{};"string"==typeof P?(R={})[M]=P:R=P,"string"==typeof O?(V={})[M]=O:V=O;var B=w.iconPaths={};q(R,function(U,j){var X=cl(U,{},{x:-p/2,y:-p/2,width:p,height:p});X.setStyle(x.getItemStyle()),X.ensureState("emphasis").style=T.getItemStyle();var $=new fn({style:{text:V[j],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null},ignore:!0});X.setTextContent($),Av({el:X,componentModel:r,itemName:j,formatterParamsExtra:{title:V[j]}}),X.__title=V[j],X.on("mouseover",function(){var te=T.getItemStyle(),ee="vertical"===r.get("orient")?null==r.get("right")?"right":"left":null==r.get("bottom")?"bottom":"top";$.setStyle({fill:T.get("textFill")||te.fill||te.stroke||"#000",backgroundColor:T.get("textBackgroundColor")}),X.setTextConfig({position:T.get("textPosition")||ee}),$.ignore=!r.get("showTitle"),Js(this)}).on("mouseout",function(){"emphasis"!==w.get(["iconStatus",j])&&eu(this),$.hide()}),("emphasis"===w.get(["iconStatus",j])?Js:eu)(X),d.add(X),X.on("click",Ye(S.onclick,S,s,u,j)),B[j]=X})}(P,O,M),P.setIconStatus=function(B,U){var j=this.option,X=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[B]=U,X[B]&&("emphasis"===U?Js:eu)(X[B])},O instanceof Is&&O.render&&O.render(P,s,u,f)):V&&O.dispose&&O.dispose(s,u)}},i.prototype.updateView=function(r,s,u,f){q(this._features,function(d){d instanceof Is&&d.updateView&&d.updateView(d.model,s,u,f)})},i.prototype.remove=function(r,s){q(this._features,function(u){u instanceof Is&&u.remove&&u.remove(r,s)}),this.group.removeAll()},i.prototype.dispose=function(r,s){q(this._features,function(u){u instanceof Is&&u.dispose&&u.dispose(r,s)})},i.type="toolbox",i}(un),IV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.onclick=function(r,s){var u=this.model,f=u.get("name")||r.get("title.0.text")||"echarts",d="svg"===s.getZr().painter.getType(),p=d?"svg":u.get("type",!0)||"png",v=s.getConnectedDataURL({type:p,backgroundColor:u.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")});if("function"!=typeof MouseEvent||!Ze.browser.newEdge&&(Ze.browser.ie||Ze.browser.edge))if(window.navigator.msSaveOrOpenBlob||d){var y=v.split(","),b=y[0].indexOf("base64")>-1,w=d?decodeURIComponent(y[1]):y[1];b&&(w=window.atob(w));var S=f+"."+p;if(window.navigator.msSaveOrOpenBlob){for(var M=w.length,x=new Uint8Array(M);M--;)x[M]=w.charCodeAt(M);var T=new Blob([x]);window.navigator.msSaveOrOpenBlob(T,S)}else{var P=document.createElement("iframe");document.body.appendChild(P);var O=P.contentWindow,R=O.document;R.open("image/svg+xml","replace"),R.write(w),R.close(),O.focus(),R.execCommand("SaveAs",!0,S),document.body.removeChild(P)}}else{var V=u.get("lang"),B='',U=window.open();U.document.write(B),U.document.title=f}else{var g=document.createElement("a");g.download=f+"."+p,g.target="_blank",g.href=v;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},i.getDefaultOption=function(r){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},i}(Is);IV.prototype.unusable=!Ze.canvasSupported;var RY=IV,RV="__ec_magicType_stack__",FY=[["line","bar"],["stack"]],_E=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getIcons=function(){var r=this.model,s=r.get("icon"),u={};return q(r.get("type"),function(f){s[f]&&(u[f]=s[f])}),u},i.getDefaultOption=function(r){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},i.prototype.onclick=function(r,s,u){var f=this.model,d=f.get(["seriesIndex",u]);if(yE[u]){var p={series:[]};q(FY,function(y){Rt(y,u)>=0&&q(y,function(b){f.setIconStatus(b,"normal")})}),f.setIconStatus(u,"emphasis"),r.eachComponent({mainType:"series",query:null==d?null:{seriesIndex:d}},function(b){var M=yE[u](b.subType,b.id,b,f);M&&(tt(M,b.option),p.series.push(M));var x=b.coordinateSystem;if(x&&"cartesian2d"===x.type&&("line"===u||"bar"===u)){var T=x.getAxesByScale("ordinal")[0];if(T){var O=T.dim+"Axis",V=b.getReferringComponents(O,ai).models[0].componentIndex;p[O]=p[O]||[];for(var B=0;B<=V;B++)p[O][V]=p[O][V]||{};p[O][V].boundaryGap="bar"===u}}});var g,m=u;"stack"===u&&(g=He({stack:f.option.title.tiled,tiled:f.option.title.stack},f.option.title),"emphasis"!==f.get(["iconStatus",u])&&(m="tiled")),s.dispatchAction({type:"changeMagicType",currentType:m,newOption:p,newTitle:g,featureName:"magicType"})}},i}(Is),yE={line:function(i,r,s,u){if("bar"===i)return He({id:r,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","line"])||{},!0)},bar:function(i,r,s,u){if("line"===i)return He({id:r,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","bar"])||{},!0)},stack:function(i,r,s,u){var f=s.get("stack")===RV;if("line"===i||"bar"===i)return u.setIconStatus("stack",f?"normal":"emphasis"),He({id:r,stack:f?"":RV},u.get(["option","stack"])||{},!0)}};pl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,i){i.mergeOption(o.newOption)});var nb=_E,ld=new Array(60).join("-");function VY(o){var i=[];return q(o,function(r,s){var u=r.categoryAxis,d=r.valueAxis.dim,p=[" "].concat(Te(r.series,function(w){return w.name})),v=[u.model.getCategories()];q(r.series,function(w){var S=w.getRawData();v.push(w.getRawData().mapArray(S.mapDimension(d),function(M){return M}))});for(var g=[p.join("\t")],m=0;m=0)return!0}(u)){var d=function(o){for(var i=o.split(/\n+/g),s=[],u=Te(rb(i.shift()).split(bE),function(v){return{name:v,data:[]}}),f=0;f=0)&&d(f,u._targetInfoList)})}return o.prototype.setOutputRanges=function(i,r){return this.matchOutputRanges(i,r,function(s,u,f){if((s.coordRanges||(s.coordRanges=[])).push(u),!s.coordRange){s.coordRange=u;var d=ME[s.brushType](0,f,u);s.__rangeOffset={offset:UV[s.brushType](d.values,s.range,[1,1]),xyMinMax:d.xyMinMax}}}),i},o.prototype.matchOutputRanges=function(i,r,s){q(i,function(u){var f=this.findTargetInfo(u,r);f&&!0!==f&&q(f.coordSyses,function(d){var p=ME[u.brushType](1,d,u.range,!0);s(u,p.values,d,r)})},this)},o.prototype.setInputRanges=function(i,r){q(i,function(s){var u=this.findTargetInfo(s,r);if(s.range=s.range||[],u&&!0!==u){s.panelId=u.panelId;var f=ME[s.brushType](0,u.coordSys,s.coordRange),d=s.__rangeOffset;s.range=d?UV[s.brushType](f.values,d.offset,function(o,i){var r=qY(o),s=qY(i),u=[r[0]/s[0],r[1]/s[1]];return isNaN(u[0])&&(u[0]=1),isNaN(u[1])&&(u[1]=1),u}(f.xyMinMax,d.xyMinMax)):f.values}},this)},o.prototype.makePanelOpts=function(i,r){return Te(this._targetInfoList,function(s){var u=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:r?r(s):null,clipPath:ku(u),isTargetByCursor:yA(u,i,s.coordSysModel),getLinearBrushOtherExtent:mg(u)}})},o.prototype.controlSeries=function(i,r,s){var u=this.findTargetInfo(i,s);return!0===u||u&&Rt(u.coordSyses,r.coordinateSystem)>=0},o.prototype.findTargetInfo=function(i,r){for(var s=this._targetInfoList,u=kE(r,i),f=0;fo[1]&&o.reverse(),o}function kE(o,i){return is(o,i,{includeMainTypes:GY})}var WY={grid:function(i,r){var s=i.xAxisModels,u=i.yAxisModels,f=i.gridModels,d=et(),p={},v={};!s&&!u&&!f||(q(s,function(g){var m=g.axis.grid.model;d.set(m.id,m),p[m.id]=!0}),q(u,function(g){var m=g.axis.grid.model;d.set(m.id,m),v[m.id]=!0}),q(f,function(g){d.set(g.id,g),p[g.id]=!0,v[g.id]=!0}),d.each(function(g){var y=[];q(g.coordinateSystem.getCartesians(),function(b,w){(Rt(s,b.getAxis("x").model)>=0||Rt(u,b.getAxis("y").model)>=0)&&y.push(b)}),r.push({panelId:"grid--"+g.id,gridModel:g,coordSysModel:g,coordSys:y[0],coordSyses:y,getPanelRect:zV.grid,xAxisDeclared:p[g.id],yAxisDeclared:v[g.id]})}))},geo:function(i,r){q(i.geoModels,function(s){var u=s.coordinateSystem;r.push({panelId:"geo--"+s.id,geoModel:s,coordSysModel:s,coordSys:u,coordSyses:[u],getPanelRect:zV.geo})})}},HV=[function(o,i){var r=o.xAxisModel,s=o.yAxisModel,u=o.gridModel;return!u&&r&&(u=r.axis.grid.model),!u&&s&&(u=s.axis.grid.model),u&&u===i.gridModel},function(o,i){var r=o.geoModel;return r&&r===i.geoModel}],zV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var i=this.coordSys,r=i.getBoundingRect().clone();return r.applyTransform(Lf(i)),r}},ME={lineX:St(xE,0),lineY:St(xE,1),rect:function(i,r,s,u){var f=i?r.pointToData([s[0][0],s[1][0]],u):r.dataToPoint([s[0][0],s[1][0]],u),d=i?r.pointToData([s[0][1],s[1][1]],u):r.dataToPoint([s[0][1],s[1][1]],u),p=[rS([f[0],d[0]]),rS([f[1],d[1]])];return{values:p,xyMinMax:p}},polygon:function(i,r,s,u){var f=[[1/0,-1/0],[1/0,-1/0]];return{values:Te(s,function(p){var v=i?r.pointToData(p,u):r.dataToPoint(p,u);return f[0][0]=Math.min(f[0][0],v[0]),f[1][0]=Math.min(f[1][0],v[1]),f[0][1]=Math.max(f[0][1],v[0]),f[1][1]=Math.max(f[1][1],v[1]),v}),xyMinMax:f}}};function xE(o,i,r,s){var u=r.getAxis(["x","y"][o]),f=rS(Te([0,1],function(p){return i?u.coordToData(u.toLocalCoord(s[p]),!0):u.toGlobalCoord(u.dataToCoord(s[p]))})),d=[];return d[o]=f,d[1-o]=[NaN,NaN],{values:f,xyMinMax:d}}var UV={lineX:St(YY,0),lineY:St(YY,1),rect:function(i,r,s){return[[i[0][0]-s[0]*r[0][0],i[0][1]-s[0]*r[0][1]],[i[1][0]-s[1]*r[1][0],i[1][1]-s[1]*r[1][1]]]},polygon:function(i,r,s){return Te(i,function(u,f){return[u[0]-s[0]*r[f][0],u[1]-s[1]*r[f][1]]})}};function YY(o,i,r,s){return[i[0]-s[o]*r[0],i[1]-s[o]*r[1]]}function qY(o){return o?[o[0][1]-o[0][0],o[1][1]-o[1][0]]:[NaN,NaN]}var TE=jY,DE=q,pQ=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){this._brushController||(this._brushController=new Vy(u.getZr()),this._brushController.on("brush",Ye(this._onBrush,this)).mount()),function(o,i,r,s,u){var f=r._isZoomActive;s&&"takeGlobalCursor"===s.type&&(f="dataZoomSelect"===s.key&&s.dataZoomSelectActive),r._isZoomActive=f,o.setIconStatus("zoom",f?"emphasis":"normal");var p=new TE(ab(o),i,{include:["grid"]}).makePanelOpts(u,function(v){return v.xAxisDeclared&&!v.yAxisDeclared?"lineX":!v.xAxisDeclared&&v.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(p).enableBrush(!(!f||!p.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()})}(r,s,this,f,u),function(o,i){o.setIconStatus("back",function(o){return SE(o).length}(i)>1?"emphasis":"normal")}(r,s)},i.prototype.onclick=function(r,s,u){vQ[u].call(this)},i.prototype.remove=function(r,s){this._brushController&&this._brushController.unmount()},i.prototype.dispose=function(r,s){this._brushController&&this._brushController.dispose()},i.prototype._onBrush=function(r){var s=r.areas;if(r.isEnd&&s.length){var u={},f=this.ecModel;this._brushController.updateCovers([]),new TE(ab(this.model),f,{include:["grid"]}).matchOutputRanges(s,f,function(g,m,y){if("cartesian2d"===y.type){var b=g.brushType;"rect"===b?(p("x",y,m[0]),p("y",y,m[1])):p({lineX:"x",lineY:"y"}[b],y,m)}}),function(o,i){var r=SE(o);wE(i,function(s,u){for(var f=r.length-1;f>=0&&!r[f][u];f--);if(f<0){var p=o.queryComponents({mainType:"dataZoom",subType:"select",id:u})[0];if(p){var v=p.getPercentRange();r[0][u]={dataZoomId:u,start:v[0],end:v[1]}}}}),r.push(i)}(f,u),this._dispatchZoomAction(u)}function p(g,m,y){var b=m.getAxis(g),w=b.model,S=function(g,m,y){var b;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(w){w.getAxisModel(g,m.componentIndex)&&(b=w)}),b}(g,w,f),M=S.findRepresentativeAxisProxy(w).getMinMaxSpan();(null!=M.minValueSpan||null!=M.maxValueSpan)&&(y=kl(0,y.slice(),b.scale.getExtent(),0,M.minValueSpan,M.maxValueSpan)),S&&(u[S.id]={dataZoomId:S.id,startValue:y[0],endValue:y[1]})}},i.prototype._dispatchZoomAction=function(r){var s=[];DE(r,function(u,f){s.push(rt(u))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},i.getDefaultOption=function(r){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},i}(Is),vQ={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(o){var i=SE(o),r=i[i.length-1];i.length>1&&i.pop();var s={};return wE(r,function(u,f){for(var d=i.length-1;d>=0;d--)if(u=i[d][f]){s[f]=u;break}}),s}(this.ecModel))}};function ab(o){var i={xAxisIndex:o.get("xAxisIndex",!0),yAxisIndex:o.get("yAxisIndex",!0),xAxisId:o.get("xAxisId",!0),yAxisId:o.get("yAxisId",!0)};return null==i.xAxisIndex&&null==i.xAxisId&&(i.xAxisIndex="all"),null==i.yAxisIndex&&null==i.yAxisId&&(i.yAxisIndex="all"),i}!function(o,i){Oa(null==iC.get(o)&&i),iC.set(o,i)}("dataZoom",function(o){var i=o.getComponent("toolbox",0),r=["feature","dataZoom"];if(i&&null!=i.get(r)){var s=i.getModel(r),u=[],d=is(o,ab(s));return DE(d.xAxisModels,function(v){return p(v,"xAxis","xAxisIndex")}),DE(d.yAxisModels,function(v){return p(v,"yAxis","yAxisIndex")}),u}function p(v,g,m){var y=v.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+g+y};b[m]=y,u.push(b)}});var ZY=pQ,WV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="tooltip",i.dependencies=["axisPointer"],i.defaultOption={zlevel:0,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}},i}(qt);function EE(o){var i=o.get("confine");return null!=i?!!i:"richText"===o.get("renderMode")}function YV(o){if(Ze.domSupported)for(var i=document.documentElement.style,r=0,s=o.length;r-1?(p+="top:50%",v+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(p+="left:50%",v+="translateX(-50%) rotate("+(g="top"===f?225:45)+"deg)");var m=g*Math.PI/180,y=d+u,b=y*Math.abs(Math.cos(m))+y*Math.abs(Math.sin(m)),S=i+" solid "+u+"px;";return'
'}(s,u,f)),yt(i))d.innerHTML=i+p;else if(i){d.innerHTML="",we(i)||(i=[i]);for(var v=0;v=0;f--){var d=o[f];d&&(d instanceof Nn&&(d=d.get("tooltip",!0)),yt(d)&&(d={formatter:d}),d&&(u=new Nn(d,u,s)))}return u}function BE(o,i){return o.dispatchAction||Ye(i.dispatchAction,i)}function HE(o){return"center"===o||"middle"===o}var eB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){if(!Ze.node){var u=r.getComponent("tooltip"),f=u.get("renderMode");this._renderMode=function(o){return"auto"===o?Ze.domSupported?"html":"richText":o||"html"}(f),this._tooltipContent="richText"===this._renderMode?new gt(s):new Ac(s.getDom(),s,{appendToBody:u.get("appendToBody",!0)})}},i.prototype.render=function(r,s,u){if(!Ze.node){this.group.removeAll(),this._tooltipModel=r,this._ecModel=s,this._api=u,this._alwaysShowContent=r.get("alwaysShowContent");var f=this._tooltipContent;f.update(r),f.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow()}},i.prototype._initGlobalListener=function(){var s=this._tooltipModel.get("triggerOn");nY("itemTooltip",this._api,Bn(function(u,f,d){"none"!==s&&(s.indexOf(u)>=0?this._tryShow(f,d):"leave"===u&&this._hide(d))},this))},i.prototype._keepShow=function(){var r=this._tooltipModel,s=this._ecModel,u=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==r.get("triggerOn")){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!u.isDisposed()&&f.manuallyShowTip(r,s,u,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(r,s,u,f){if(f.from!==this.uid&&!Ze.node){var d=BE(f,u);this._ticket="";var p=f.dataByCoordSys,v=function(o,i,r){var s=f0(o).queryOptionMap,u=s.keys()[0];if(u&&"series"!==u){var v,d=d0(i,u,s.get(u),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(d&&(r.getViewOfComponentModel(d).group.traverse(function(g){var m=ht(g).tooltipConfig;if(m&&m.name===o.name)return v=g,!0}),v))return{componentMainType:u,componentIndex:d.componentIndex,el:v}}}(f,s,u);if(v){var g=v.el.getBoundingRect().clone();g.applyTransform(v.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:v.el,position:f.position,positionDefault:"bottom"},d)}else if(f.tooltip&&null!=f.x&&null!=f.y){var m=gQ;m.x=f.x,m.y=f.y,m.update(),ht(m).tooltipConfig={name:null,option:f.tooltip},this._tryShow({offsetX:f.x,offsetY:f.y,target:m},d)}else if(p)this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,dataByCoordSys:p,tooltipOption:f.tooltipOption},d);else if(null!=f.seriesIndex){if(this._manuallyAxisShowTip(r,s,u,f))return;var y=aY(f,s),b=y.point[0],w=y.point[1];null!=b&&null!=w&&this._tryShow({offsetX:b,offsetY:w,target:y.el,position:f.position,positionDefault:"bottom"},d)}else null!=f.x&&null!=f.y&&(u.dispatchAction({type:"updateAxisPointer",x:f.x,y:f.y}),this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,target:u.getZr().findHover(f.x,f.y).target},d))}},i.prototype.manuallyHideTip=function(r,s,u,f){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,f.from!==this.uid&&this._hide(BE(f,u))},i.prototype._manuallyAxisShowTip=function(r,s,u,f){var d=f.seriesIndex,p=f.dataIndex,v=s.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=p&&null!=v){var g=s.getSeriesByIndex(d);if(g&&"axis"===VE([g.getData().getItemModel(p),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return u.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:p,position:f.position}),!0}},i.prototype._tryShow=function(r,s){var u=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var d=r.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,r);else if(u){var p,v;this._lastDataByCoordSys=null,xh(u,function(g){return null!=ht(g).dataIndex?(p=g,!0):null!=ht(g).tooltipConfig?(v=g,!0):void 0},!0),p?this._showSeriesItemTooltip(r,p,s):v?this._showComponentItemTooltip(r,v,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},i.prototype._showOrMove=function(r,s){var u=r.get("showDelay");s=Ye(s,this),clearTimeout(this._showTimout),u>0?this._showTimout=setTimeout(s,u):s()},i.prototype._showAxisTooltip=function(r,s){var u=this._ecModel,d=[s.offsetX,s.offsetY],p=VE([s.tooltipOption],this._tooltipModel),v=this._renderMode,g=[],m=pi("section",{blocks:[],noHeader:!0}),y=[],b=new r_;Dl(r,function(P){Dl(P.dataByAxis,function(O){var R=u.getComponent(O.axisDim+"Axis",O.axisIndex),V=O.value;if(R&&null!=V){var B=Ps(V,R.axis,u,O.seriesDataIndices,O.valueLabelOpt),U=pi("section",{header:B,noHeader:!jc(B),sortBlocks:!0,blocks:[]});m.blocks.push(U),q(O.seriesDataIndices,function(j){var X=u.getSeriesByIndex(j.seriesIndex),Z=j.dataIndexInside,$=X.getDataParams(Z);if(!($.dataIndex<0)){$.axisDim=O.axisDim,$.axisIndex=O.axisIndex,$.axisType=O.axisType,$.axisId=O.axisId,$.axisValue=NT(R.axis,{value:V}),$.axisValueLabel=B,$.marker=b.makeTooltipMarker("item",wf($.color),v);var te=yh(X.formatTooltip(Z,!0,null));te.markupFragment&&U.blocks.push(te.markupFragment),te.markupText&&y.push(te.markupText),g.push($)}})}})}),m.blocks.reverse(),y.reverse();var w=s.position,S=p.get("order"),M=cR(m,b,v,S,u.get("useUTC"),p.get("textStyle"));M&&y.unshift(M);var T=y.join("richText"===v?"\n\n":"
");this._showOrMove(p,function(){this._updateContentNotChangedOnAxis(r,g)?this._updatePosition(p,w,d[0],d[1],this._tooltipContent,g):this._showTooltipContent(p,T,g,Math.random()+"",d[0],d[1],w,null,b)})},i.prototype._showSeriesItemTooltip=function(r,s,u){var f=this._ecModel,d=ht(s),p=d.seriesIndex,v=f.getSeriesByIndex(p),g=d.dataModel||v,m=d.dataIndex,y=d.dataType,b=g.getData(y),w=this._renderMode,S=r.positionDefault,M=VE([b.getItemModel(m),g,v&&(v.coordinateSystem||{}).model],this._tooltipModel,S?{position:S}:null),x=M.get("trigger");if(null==x||"item"===x){var T=g.getDataParams(m,y),P=new r_;T.marker=P.makeTooltipMarker("item",wf(T.color),w);var O=yh(g.formatTooltip(m,!1,y)),R=M.get("order"),V=O.markupFragment?cR(O.markupFragment,P,w,R,f.get("useUTC"),M.get("textStyle")):O.markupText,B="item_"+g.name+"_"+m;this._showOrMove(M,function(){this._showTooltipContent(M,V,T,B,r.offsetX,r.offsetY,r.position,r.target,P)}),u({type:"showTip",dataIndexInside:m,dataIndex:b.getRawIndex(m),seriesIndex:p,from:this.uid})}},i.prototype._showComponentItemTooltip=function(r,s,u){var f=ht(s),p=f.tooltipConfig.option||{};yt(p)&&(p={content:p,formatter:p});var g=[p],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);m&&g.push(m),g.push({formatter:p.content});var y=r.positionDefault,b=VE(g,this._tooltipModel,y?{position:y}:null),w=b.get("content"),S=Math.random()+"",M=new r_;this._showOrMove(b,function(){var x=rt(b.get("formatterParams")||{});this._showTooltipContent(b,w,x,S,r.offsetX,r.offsetY,r.position,s,M)}),u({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(r,s,u,f,d,p,v,g,m){if(this._ticket="",r.get("showContent")&&r.get("show")){var y=this._tooltipContent,b=r.get("formatter");v=v||r.get("position");var w=s,M=this._getNearestPoint([d,p],u,r.get("trigger"),r.get("borderColor")).color;if(b)if(yt(b)){var x=r.ecModel.get("useUTC"),T=we(u)?u[0]:u;w=b,T&&T.axisType&&T.axisType.indexOf("time")>=0&&(w=iu(T.axisValue,w,x)),w=Wm(w,u,!0)}else if(An(b)){var O=Bn(function(R,V){R===this._ticket&&(y.setContent(V,m,r,M,v),this._updatePosition(r,v,d,p,y,u,g))},this);this._ticket=f,w=b(u,f,O)}else w=b;y.setContent(w,m,r,M,v),y.show(r,M),this._updatePosition(r,v,d,p,y,u,g)}},i.prototype._getNearestPoint=function(r,s,u,f){return"axis"===u||we(s)?{color:f||("html"===this._renderMode?"#fff":"none")}:we(s)?void 0:{color:f||s.color||s.borderColor}},i.prototype._updatePosition=function(r,s,u,f,d,p,v){var g=this._api.getWidth(),m=this._api.getHeight();s=s||r.get("position");var y=d.getSize(),b=r.get("align"),w=r.get("verticalAlign"),S=v&&v.getBoundingRect().clone();if(v&&S.applyTransform(v.transform),An(s)&&(s=s([u,f],p,d.el,S,{viewSize:[g,m],contentSize:y.slice()})),we(s))u=zn(s[0],g),f=zn(s[1],m);else if(at(s)){var M=s;M.width=y[0],M.height=y[1];var x=li(M,{width:g,height:m});u=x.x,f=x.y,b=null,w=null}else if(yt(s)&&v)u=(T=function(o,i,r,s){var u=r[0],f=r[1],d=Math.ceil(Math.SQRT2*s)+8,p=0,v=0,g=i.width,m=i.height;switch(o){case"inside":p=i.x+g/2-u/2,v=i.y+m/2-f/2;break;case"top":p=i.x+g/2-u/2,v=i.y-f-d;break;case"bottom":p=i.x+g/2-u/2,v=i.y+m+d;break;case"left":p=i.x-u-d,v=i.y+m/2-f/2;break;case"right":p=i.x+g+d,v=i.y+m/2-f/2}return[p,v]}(s,S,y,r.get("borderWidth")))[0],f=T[1];else{var T;u=(T=function(o,i,r,s,u,f,d){var p=r.getSize(),v=p[0],g=p[1];return null!=f&&(o+v+f+2>s?o-=v+f:o+=f),null!=d&&(i+g+d>u?i-=g+d:i+=d),[o,i]}(u,f,d,g,m,b?null:20,w?null:20))[0],f=T[1]}b&&(u-=HE(b)?y[0]/2:"right"===b?y[0]:0),w&&(f-=HE(w)?y[1]/2:"bottom"===w?y[1]:0),EE(r)&&(u=(T=function(o,i,r,s,u){var f=r.getSize(),d=f[0],p=f[1];return o=Math.min(o+d,s)-d,i=Math.min(i+p,u)-p,[o=Math.max(o,0),i=Math.max(i,0)]}(u,f,d,g,m))[0],f=T[1]),d.moveTo(u,f)},i.prototype._updateContentNotChangedOnAxis=function(r,s){var u=this._lastDataByCoordSys,f=this._cbParamsList,d=!!u&&u.length===r.length;return d&&Dl(u,function(p,v){var g=p.dataByAxis||[],y=(r[v]||{}).dataByAxis||[];(d=d&&g.length===y.length)&&Dl(g,function(b,w){var S=y[w]||{},M=b.seriesDataIndices||[],x=S.seriesDataIndices||[];(d=d&&b.value===S.value&&b.axisType===S.axisType&&b.axisId===S.axisId&&M.length===x.length)&&Dl(M,function(T,P){var O=x[P];d=d&&T.seriesIndex===O.seriesIndex&&T.dataIndex===O.dataIndex}),f&&q(b.seriesDataIndices,function(T){var P=T.seriesIndex,O=s[P],R=f[P];O&&R&&R.data!==O.data&&(d=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=s,!!d},i.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},i.prototype.dispose=function(r,s){Ze.node||(this._tooltipContent.dispose(),iE("itemTooltip",s))},i.type="tooltip",i}(un),ud=["rect","polygon","keep","clear"];function tB(o,i){var r=jn(o?o.brush:[]);if(r.length){var s=[];q(r,function(v){var g=v.hasOwnProperty("toolbox")?v.toolbox:[];g instanceof Array&&(s=s.concat(g))});var u=o&&o.toolbox;we(u)&&(u=u[0]),u||(o.toolbox=[u={feature:{}}]);var f=u.feature||(u.feature={}),d=f.brush||(f.brush={}),p=d.type||(d.type=[]);p.push.apply(p,s),function(o){var i={};q(o,function(r){i[r]=1}),o.length=0,q(i,function(r,s){o.push(s)})}(p),i&&!p.length&&p.push.apply(p,ud)}}var oS=q;function sS(o){if(o)for(var i in o)if(o.hasOwnProperty(i))return!0}function Ka(o,i,r){var s={};return oS(i,function(f){var d=s[f]=function(){var f=function(){};return f.prototype.__hidden=f.prototype,new f}();oS(o[f],function(p,v){if(Qi.isValidType(v)){var g={type:v,visual:p};r&&r(g,f),d[v]=new Qi(g),"opacity"===v&&((g=rt(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new Qi(g))}})}),s}function jE(o,i,r){var s;q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])&&(s=!0)}),s&&q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])?o[u]=rt(i[u]):delete o[u]})}var QY={lineX:qE(0),lineY:qE(1),rect:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])},rect:function(i,r,s){return i&&s.boundingRect.intersect(i)}},polygon:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])&&Ph(s.range,i[0],i[1])},rect:function(i,r,s){var u=s.range;if(!i||u.length<=1)return!1;var f=i.x,d=i.y,p=i.width,v=i.height,g=u[0];return!!(Ph(u,f,d)||Ph(u,f+p,d)||Ph(u,f,d+v)||Ph(u,f+p,d+v)||Ft.create(i).contain(g[0],g[1])||v_(f,d,f+p,d,u)||v_(f,d,f,d+v,u)||v_(f+p,d,f+p,d+v,u)||v_(f,d+v,f+p,d+v,u))||void 0}}};function qE(o){var i=["x","y"],r=["width","height"];return{point:function(u,f,d){if(u)return lS(u[o],d.range)},rect:function(u,f,d){if(u){var p=d.range,v=[u[i[o]],u[i[o]]+u[r[o]]];return v[1]r[0][1]&&(r[0][1]=d[0]),d[1]r[1][1]&&(r[1][1]=d[1])}return r&&dS(r)}};function dS(o){return new Ft(o[0][0],o[1][0],o[0][1]-o[0][0],o[1][1]-o[1][0])}var aB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.ecModel=r,this.api=s,(this._brushController=new Vy(s.getZr())).on("brush",Ye(this._onBrush,this)).mount()},i.prototype.render=function(r,s,u,f){this.model=r,this._updateController(r,s,u,f)},i.prototype.updateTransform=function(r,s,u,f){cS(s),this._updateController(r,s,u,f)},i.prototype.updateVisual=function(r,s,u,f){this.updateTransform(r,s,u,f)},i.prototype.updateView=function(r,s,u,f){this._updateController(r,s,u,f)},i.prototype._updateController=function(r,s,u,f){(!f||f.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(u)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},i.prototype.dispose=function(){this._brushController.dispose()},i.prototype._onBrush=function(r){var s=this.model.id,u=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:s,areas:rt(u),$from:s}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:s,areas:rt(u),$from:s})},i.type="brush",i}(un);function hS(o,i){return He({brushType:o.brushType,brushMode:o.brushMode,transformable:o.transformable,brushStyle:new Nn(o.brushStyle).getItemStyle(),removeOnClick:o.removeOnClick,z:o.z},i,!0)}var yQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.areas=[],r.brushOption={},r}return he(i,o),i.prototype.optionUpdated=function(r,s){var u=this.option;!s&&jE(u,r,["inBrush","outOfBrush"]);var f=u.inBrush=u.inBrush||{};u.outOfBrush=u.outOfBrush||{color:"#ddd"},f.hasOwnProperty("liftZ")||(f.liftZ=5)},i.prototype.setAreas=function(r){!r||(this.areas=Te(r,function(s){return hS(this.option,s)},this))},i.prototype.setBrushOption=function(r){this.brushOption=hS(this.option,r),this.brushType=this.brushOption.brushType},i.type="brush",i.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],i.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},i}(qt),bQ=["rect","polygon","lineX","lineY","keep","clear"],vS=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u){var f,d,p;s.eachComponent({mainType:"brush"},function(v){f=v.brushType,d=v.brushOption.brushMode||"single",p=p||!!v.areas.length}),this._brushType=f,this._brushMode=d,q(r.get("type",!0),function(v){r.setIconStatus(v,("keep"===v?"multiple"===d:"clear"===v?p:v===f)?"emphasis":"normal")})},i.prototype.updateView=function(r,s,u){this.render(r,s,u)},i.prototype.getIcons=function(){var r=this.model,s=r.get("icon",!0),u={};return q(r.get("type",!0),function(f){s[f]&&(u[f]=s[f])}),u},i.prototype.onclick=function(r,s,u){var f=this._brushType,d=this._brushMode;"clear"===u?(s.dispatchAction({type:"axisAreaSelect",intervals:[]}),s.dispatchAction({type:"brush",command:"clear",areas:[]})):s.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===u?f:f!==u&&u,brushMode:"keep"===u?"multiple"===d?"single":"multiple":d}})},i.getDefaultOption=function(r){return{show:!0,type:bQ.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:r.getLocaleModel().get(["toolbox","brush","title"])}},i}(Is),KE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode={type:"box",ignoreSize:!0},r}return he(i,o),i.type="title",i.defaultOption={zlevel:0,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"}},i}(qt),hp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){if(this.group.removeAll(),r.get("show")){var f=this.group,d=r.getModel("textStyle"),p=r.getModel("subtextStyle"),v=r.get("textAlign"),g=ot(r.get("textBaseline"),r.get("textVerticalAlign")),m=new fn({style:Or(d,{text:r.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),y=m.getBoundingRect(),b=r.get("subtext"),w=new fn({style:Or(p,{text:b,fill:p.getTextColor(),y:y.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),S=r.get("link"),M=r.get("sublink"),x=r.get("triggerEvent",!0);m.silent=!S&&!x,w.silent=!M&&!x,S&&m.on("click",function(){J0(S,"_"+r.get("target"))}),M&&w.on("click",function(){J0(M,"_"+r.get("subtarget"))}),ht(m).eventData=ht(w).eventData=x?{componentType:"title",componentIndex:r.componentIndex}:null,f.add(m),b&&f.add(w);var T=f.getBoundingRect(),P=r.getBoxLayoutParams();P.width=T.width,P.height=T.height;var O=li(P,{width:u.getWidth(),height:u.getHeight()},r.get("padding"));v||("middle"===(v=r.get("left")||r.get("right"))&&(v="center"),"right"===v?O.x+=O.width:"center"===v&&(O.x+=O.width/2)),g||("center"===(g=r.get("top")||r.get("bottom"))&&(g="middle"),"bottom"===g?O.y+=O.height:"middle"===g&&(O.y+=O.height/2),g=g||"top"),f.x=O.x,f.y=O.y,f.markRedraw();var R={align:v,verticalAlign:g};m.setStyle(R),w.setStyle(R),T=f.getBoundingRect();var V=O.margin,B=r.getItemStyle(["color","opacity"]);B.fill=r.get("backgroundColor");var U=new sn({shape:{x:T.x-V[3],y:T.y-V[0],width:T.width+V[1]+V[3],height:T.height+V[0]+V[2],r:r.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});f.add(U)}},i.type="title",i}(un),lB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode="box",r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u),this._initData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this._initData()},i.prototype.setCurrentIndex=function(r){null==r&&(r=this.option.currentIndex);var s=this._data.count();this.option.loop?r=(r%s+s)%s:(r>=s&&(r=s-1),r<0&&(r=0)),this.option.currentIndex=r},i.prototype.getCurrentIndex=function(){return this.option.currentIndex},i.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i.prototype.setPlayState=function(r){this.option.autoPlay=!!r},i.prototype.getPlayState=function(){return!!this.option.autoPlay},i.prototype._initData=function(){var d,r=this.option,s=r.data||[],u=r.axisType,f=this._names=[];"category"===u?(d=[],q(s,function(g,m){var b,y=wi(Ee(g),"");at(g)?(b=rt(g)).value=m:b=m,d.push(b),f.push(y)})):d=s,(this._data=new Ga([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[u]||"number"}],this)).initData(d,f)},i.prototype.getData=function(){return this._data},i.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i.type="timeline",i.defaultOption={zlevel:0,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:[]},i}(qt),pp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline.slider",i.defaultOption=rh(lB.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:[]}),i}(lB);qr(pp,Ke.prototype);var CQ=pp,uB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline",i}(un),Au=function(o){function i(r,s,u,f){var d=o.call(this,r,s,u)||this;return d.type=f||"value",d}return he(i,o),i.prototype.getLabelModel=function(){return this.model.getModel("label")},i.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},i}(_l),Pc=Math.PI,Ig=pn();function ob(o,i,r,s,u,f){var d=i.get("color");u?(u.setColor(d),r.add(u),f&&f.onUpdate(u)):((u=Ir(o.get("symbol"),-1,-1,2,2,d)).setStyle("strokeNoScale",!0),r.add(u),f&&f.onCreate(u));var v=i.getItemStyle(["color"]);u.setStyle(v),s=He({rectHover:!0,z2:100},s,!0);var g=g_(o.get("symbolSize"));s.scaleX=g[0]/2,s.scaleY=g[1]/2;var m=Ah(o.get("symbolOffset"),g);m&&(s.x=(s.x||0)+m[0],s.y=(s.y||0)+m[1]);var y=o.get("symbolRotate");return s.rotation=(y||0)*Math.PI/180||0,u.attr(s),u.updateTransform(),u}function dB(o,i,r,s,u,f){if(!o.dragging){var d=u.getModel("checkpointStyle"),p=s.dataToCoord(u.getData().get("value",r));if(f||!d.get("animation",!0))o.attr({x:p,y:0}),i&&i.attr({shape:{x2:p}});else{var v={duration:d.get("animationDuration",!0),easing:d.get("animationEasing",!0)};o.stopAnimation(null,!0),o.animateTo({x:p,y:0},v),i&&i.animateTo({shape:{x2:p}},v)}}}var JE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.api=s},i.prototype.render=function(r,s,u){if(this.model=r,this.api=u,this.ecModel=s,this.group.removeAll(),r.get("show",!0)){var f=this._layout(r,u),d=this._createGroup("_mainGroup"),p=this._createGroup("_labelGroup"),v=this._axis=this._createAxis(f,r);r.formatTooltip=function(g){return pi("nameValue",{noName:!0,value:v.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,v,r)},this),this._renderAxisLabel(f,p,v,r),this._position(f,r)}this._doPlayStop(),this._updateTicksStatus()},i.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},i.prototype.dispose=function(){this._clearTimer()},i.prototype._layout=function(r,s){var p,u=r.get(["label","position"]),f=r.get("orient"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},o.get("padding"))}(r,s),v={horizontal:"center",vertical:(p=null==u||"auto"===u?"horizontal"===f?d.y+d.height/2=0||"+"===p?"left":"right"},g={horizontal:p>=0||"+"===p?"top":"bottom",vertical:"middle"},m={horizontal:0,vertical:Pc/2},y="vertical"===f?d.height:d.width,b=r.getModel("controlStyle"),w=b.get("show",!0),S=w?b.get("itemSize"):0,M=w?b.get("itemGap"):0,x=S+M,T=r.get(["label","rotate"])||0;T=T*Pc/180;var P,O,R,V=b.get("position",!0),B=w&&b.get("showPlayBtn",!0),U=w&&b.get("showPrevBtn",!0),j=w&&b.get("showNextBtn",!0),X=0,Z=y;"left"===V||"bottom"===V?(B&&(P=[0,0],X+=x),U&&(O=[X,0],X+=x),j&&(R=[Z-S,0],Z-=x)):(B&&(P=[Z-S,0],Z-=x),U&&(O=[0,0],X+=x),j&&(R=[Z-S,0],Z-=x));var $=[X,Z];return r.get("inverse")&&$.reverse(),{viewRect:d,mainLength:y,orient:f,rotation:m[f],labelRotation:T,labelPosOpt:p,labelAlign:r.get(["label","align"])||v[f],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||g[f],playPosition:P,prevBtnPosition:O,nextBtnPosition:R,axisExtent:$,controlSize:S,controlGap:M}},i.prototype._position=function(r,s){var u=this._mainGroup,f=this._labelGroup,d=r.viewRect;if("vertical"===r.orient){var p=[1,0,0,1,0,0],v=d.x,g=d.y+d.height;Oo(p,p,[-v,-g]),Od(p,p,-Pc/2),Oo(p,p,[v,g]),(d=d.clone()).applyTransform(p)}var m=P(d),y=P(u.getBoundingRect()),b=P(f.getBoundingRect()),w=[u.x,u.y],S=[f.x,f.y];S[0]=w[0]=m[0][0];var x,M=r.labelPosOpt;function T(R){R.originX=m[0][0]-R.x,R.originY=m[1][0]-R.y}function P(R){return[[R.x,R.x+R.width],[R.y,R.y+R.height]]}function O(R,V,B,U,j){R[U]+=B[U][j]-V[U][j]}null==M||yt(M)?(O(w,y,m,1,x="+"===M?0:1),O(S,b,m,1,1-x)):(O(w,y,m,1,x=M>=0?0:1),S[1]=w[1]+M),u.setPosition(w),f.setPosition(S),u.rotation=f.rotation=r.rotation,T(u),T(f)},i.prototype._createAxis=function(r,s){var u=s.getData(),f=s.get("axisType"),d=function(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getCategories(),extent:[1/0,-1/0]});case"time":return new pU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new Vv}}(s,f);d.getTicks=function(){return u.mapArray(["value"],function(g){return{value:g}})};var p=u.getDataExtent("value");d.setExtent(p[0],p[1]),d.niceTicks();var v=new Au("value",d,r.axisExtent,f);return v.model=s,v},i.prototype._createGroup=function(r){var s=this[r]=new ct;return this.group.add(s),s},i.prototype._renderAxisLine=function(r,s,u,f){var d=u.getExtent();if(f.get(["lineStyle","show"])){var p=new Ti({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:Se({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});s.add(p);var v=this._progressLine=new Ti({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:tt({lineCap:"round",lineWidth:p.style.lineWidth},f.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});s.add(v)}},i.prototype._renderAxisTick=function(r,s,u,f){var d=this,p=f.getData(),v=u.scale.getTicks();this._tickSymbols=[],q(v,function(g){var m=u.dataToCoord(g.value),y=p.getItemModel(g.value),b=y.getModel("itemStyle"),w=y.getModel(["emphasis","itemStyle"]),S=y.getModel(["progress","itemStyle"]),M={x:m,y:0,onclick:Ye(d._changeTimeline,d,g.value)},x=ob(y,b,s,M);x.ensureState("emphasis").style=w.getItemStyle(),x.ensureState("progress").style=S.getItemStyle(),qn(x);var T=ht(x);y.get("tooltip")?(T.dataIndex=g.value,T.dataModel=f):T.dataIndex=T.dataModel=null,d._tickSymbols.push(x)})},i.prototype._renderAxisLabel=function(r,s,u,f){var d=this;if(u.getLabelModel().get("show")){var v=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=v.getItemModel(y),w=b.getModel("label"),S=b.getModel(["emphasis","label"]),M=b.getModel(["progress","label"]),x=u.dataToCoord(m.tickValue),T=new fn({x:x,y:0,rotation:r.labelRotation-r.rotation,onclick:Ye(d._changeTimeline,d,y),silent:!1,style:Or(w,{text:m.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});T.ensureState("emphasis").style=Or(S),T.ensureState("progress").style=Or(M),s.add(T),qn(T),Ig(T).dataIndex=y,d._tickLabels.push(T)})}},i.prototype._renderControl=function(r,s,u,f){var d=r.controlSize,p=r.rotation,v=f.getModel("controlStyle").getItemStyle(),g=f.getModel(["emphasis","controlStyle"]).getItemStyle(),m=f.getPlayState(),y=f.get("inverse",!0);function b(w,S,M,x){if(w){var T=Ro(ot(f.get(["controlStyle",S+"BtnSize"]),d),d),O=function(o,i,r,s){var u=s.style,f=cl(o.get(["controlStyle",i]),s||{},new Ft(r[0],r[1],r[2],r[3]));return u&&f.setStyle(u),f}(f,S+"Icon",[0,-T/2,T,T],{x:w[0],y:w[1],originX:d/2,originY:0,rotation:x?-p:0,rectHover:!0,style:v,onclick:M});O.ensureState("emphasis").style=g,s.add(O),qn(O)}}b(r.nextBtnPosition,"next",Ye(this._changeTimeline,this,y?"-":"+")),b(r.prevBtnPosition,"prev",Ye(this._changeTimeline,this,y?"+":"-")),b(r.playPosition,m?"stop":"play",Ye(this._handlePlayClick,this,!m),!0)},i.prototype._renderCurrentPointer=function(r,s,u,f){var d=f.getData(),p=f.getCurrentIndex(),v=d.getItemModel(p).getModel("checkpointStyle"),g=this;this._currentPointer=ob(v,v,this._mainGroup,{},this._currentPointer,{onCreate:function(b){b.draggable=!0,b.drift=Ye(g._handlePointerDrag,g),b.ondragend=Ye(g._handlePointerDragend,g),dB(b,g._progressLine,p,u,f,!0)},onUpdate:function(b){dB(b,g._progressLine,p,u,f)}})},i.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},i.prototype._handlePointerDrag=function(r,s,u){this._clearTimer(),this._pointerChangeTimeline([u.offsetX,u.offsetY])},i.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},i.prototype._pointerChangeTimeline=function(r,s){var u=this._toAxisCoord(r)[0],d=io(this._axis.getExtent().slice());u>d[1]&&(u=d[1]),u=0&&(d[f]=+d[f].toFixed(b)),[d,y]}var tP={min:St(lb,"min"),max:St(lb,"max"),average:St(lb,"average"),median:St(lb,"median")};function ub(o,i){var r=o.getData(),s=o.coordinateSystem;if(i&&!function(o){return!isNaN(parseFloat(o.x))&&!isNaN(parseFloat(o.y))}(i)&&!we(i.coord)&&s){var u=s.dimensions,f=_B(i,r,s,o);if((i=rt(i)).type&&tP[i.type]&&f.baseAxis&&f.valueAxis){var d=Rt(u,f.baseAxis.dim),p=Rt(u,f.valueAxis.dim),v=tP[i.type](r,f.baseDataDim,f.valueDataDim,d,p);i.coord=v[0],i.value=v[1]}else{for(var g=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis],m=0;m<2;m++)tP[g[m]]&&(g[m]=nP(r,r.mapDimension(u[m]),g[m]));i.coord=g}}return i}function _B(o,i,r,s){var u={};return null!=o.valueIndex||null!=o.valueDim?(u.valueDataDim=null!=o.valueIndex?i.getDimension(o.valueIndex):o.valueDim,u.valueAxis=r.getAxis(function(o,i){var r=o.getData().getDimensionInfo(i);return r&&r.coordDim}(s,u.valueDataDim)),u.baseAxis=r.getOtherAxis(u.valueAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim)):(u.baseAxis=s.getBaseAxis(),u.valueAxis=r.getOtherAxis(u.baseAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim),u.valueDataDim=i.mapDimension(u.valueAxis.dim)),u}function cb(o,i){return!(o&&o.containData&&i.coord&&!function(o){return!(isNaN(parseFloat(o.x))&&isNaN(parseFloat(o.y)))}(i))||o.containData(i.coord)}function fb(o,i,r,s){return s<2?o.coord&&o.coord[s]:o.value}function nP(o,i,r){if("average"===r){var s=0,u=0;return o.each(i,function(f,d){isNaN(f)||(s+=f,u++)}),s/u}return"median"===r?o.getMedian(i):o.getDataExtent(i)["max"===r?1:0]}var Ic=pn(),db=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this.markerGroupMap=et()},i.prototype.render=function(r,s,u){var f=this,d=this.markerGroupMap;d.each(function(p){Ic(p).keep=!1}),s.eachSeries(function(p){var v=Al.getMarkerModelFromSeries(p,f.type);v&&f.renderSeries(p,v,s,u)}),d.each(function(p){!Ic(p).keep&&f.group.remove(p.group)})},i.prototype.markKeep=function(r){Ic(r).keep=!0},i.prototype.blurSeries=function(r){var s=this;q(r,function(u){var f=Al.getMarkerModelFromSeries(u,s.type);f&&f.getData().eachItemGraphicEl(function(p){p&&Lm(p)})})},i.type="marker",i}(un);function CS(o,i,r){var s=i.coordinateSystem;o.each(function(u){var d,f=o.getItemModel(u),p=Fe(f.get("x"),r.getWidth()),v=Fe(f.get("y"),r.getHeight());if(isNaN(p)||isNaN(v)){if(i.getMarkerPosition)d=i.getMarkerPosition(o.getValues(o.dimensions,u));else if(s){var g=o.get(s.dimensions[0],u),m=o.get(s.dimensions[1],u);d=s.dataToPoint([g,m])}}else d=[p,v];isNaN(p)||(d[0]=p),isNaN(v)||(d[1]=v),o.setItemLayout(u,d)})}var u9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markPoint");d&&(CS(d.getData(),f,u),this.markerGroupMap.get(f.id).updateLayout())},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new Y_),y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(d){return Se(Se({},i.getData().getDimensionInfo(i.getData().mapDimension(d))||{}),{name:d,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=Te(r.get("data"),St(ub,i));return o&&(f=Yn(f,St(cb,o))),u.initData(f,null,o?fb:function(d){return d.value}),u}(d,r,s);s.setData(y),CS(s.getData(),r,f),y.each(function(b){var w=y.getItemModel(b),S=w.getShallow("symbol"),M=w.getShallow("symbolSize"),x=w.getShallow("symbolRotate"),T=w.getShallow("symbolOffset"),P=w.getShallow("symbolKeepAspect");if(An(S)||An(M)||An(x)||An(T)){var O=s.getRawValue(b),R=s.getDataParams(b);An(S)&&(S=S(O,R)),An(M)&&(M=M(O,R)),An(x)&&(x=x(O,R)),An(T)&&(T=T(O,R))}var V=w.getModel("itemStyle").getItemStyle(),B=kh(v,"color");V.fill||(V.fill=B),y.setItemVisual(b,{symbol:S,symbolSize:M,symbolRotate:x,symbolOffset:T,symbolKeepAspect:P,style:V})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(b){b.traverse(function(w){ht(w).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markPoint",i}(db),yB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markLine",i.defaultOption={zlevel:0,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"},i}(Al),wS=pn(),SS=function(i,r,s,u){var d,f=i.getData();if(we(u))d=u;else{var p=u.type;if("min"===p||"max"===p||"average"===p||"median"===p||null!=u.xAxis||null!=u.yAxis){var v=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)v=r.getAxis(null!=u.yAxis?"y":"x"),g=ni(u.yAxis,u.xAxis);else{var m=_B(u,f,r,i);v=m.valueAxis,g=nP(f,MT(f,m.valueDataDim),p)}var b="x"===v.dim?0:1,w=1-b,S=rt(u),M={coord:[]};S.type=null,S.coord=[],S.coord[w]=-1/0,M.coord[w]=1/0;var x=s.get("precision");x>=0&&"number"==typeof g&&(g=+g.toFixed(Math.min(x,20))),S.coord[b]=M.coord[b]=g,d=[S,M,{type:p,valueIndex:u.valueIndex,value:g}]}else d=[]}var T=[ub(i,d[0]),ub(i,d[1]),Se({},d[2])];return T[2].type=T[2].type||null,He(T[2],T[0]),He(T[2],T[1]),T};function kS(o){return!isNaN(o)&&!isFinite(o)}function iP(o,i,r,s){var u=1-o,f=s.dimensions[o];return kS(i[u])&&kS(r[u])&&i[o]===r[o]&&s.getAxis(f).containData(i[o])}function d9(o,i){if("cartesian2d"===o.type){var r=i[0].coord,s=i[1].coord;if(r&&s&&(iP(1,r,s,o)||iP(0,r,s,o)))return!0}return cb(o,i[0])&&cb(o,i[1])}function MS(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get("x"),u.getWidth()),g=Fe(d.get("y"),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(o.dimensions,i));else{var y=o.get((m=f.dimensions)[0],i),b=o.get(m[1],i);p=f.dataToPoint([y,b])}if(uc(f,"cartesian2d")){var m,w=f.getAxis("x"),S=f.getAxis("y");kS(o.get((m=f.dimensions)[0],i))?p[0]=w.toGlobalCoord(w.getExtent()[r?0:1]):kS(o.get(m[1],i))&&(p[1]=S.toGlobalCoord(S.getExtent()[r?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];o.setItemLayout(i,p)}var aP=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markLine");if(d){var p=d.getData(),v=wS(d).from,g=wS(d).to;v.each(function(m){MS(v,m,!0,f,u),MS(g,m,!1,f,u)}),p.each(function(m){p.setItemLayout(m,[v.getItemLayout(m),g.getItemLayout(m)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new gN);this.group.add(m.group);var y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(g){return Se(Se({},i.getData().getDimensionInfo(i.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=new Ga(s,r),d=new Ga([],r),p=Te(r.get("data"),St(SS,i,o,r));o&&(p=Yn(p,St(d9,o)));var v=o?fb:function(g){return g.value};return u.initData(Te(p,function(g){return g[0]}),null,v),f.initData(Te(p,function(g){return g[1]}),null,v),d.initData(Te(p,function(g){return g[2]})),d.hasItemOption=!0,{from:u,to:f,line:d}}(d,r,s),b=y.from,w=y.to,S=y.line;wS(s).from=b,wS(s).to=w,s.setData(S);var M=s.get("symbol"),x=s.get("symbolSize"),T=s.get("symbolRotate"),P=s.get("symbolOffset");function O(R,V,B){var U=R.getItemModel(V);MS(R,V,B,r,f);var j=U.getModel("itemStyle").getItemStyle();null==j.fill&&(j.fill=kh(v,"color")),R.setItemVisual(V,{symbolKeepAspect:U.get("symbolKeepAspect"),symbolOffset:ot(U.get("symbolOffset",!0),P[B?0:1]),symbolRotate:ot(U.get("symbolRotate",!0),T[B?0:1]),symbolSize:ot(U.get("symbolSize"),x[B?0:1]),symbol:ot(U.get("symbol",!0),M[B?0:1]),style:j})}we(M)||(M=[M,M]),we(x)||(x=[x,x]),we(T)||(T=[T,T]),we(P)||(P=[P,P]),y.from.each(function(R){O(b,R,!0),O(w,R,!1)}),S.each(function(R){var V=S.getItemModel(R).getModel("lineStyle").getLineStyle();S.setItemLayout(R,[b.getItemLayout(R),w.getItemLayout(R)]),null==V.stroke&&(V.stroke=b.getItemVisual(R,"style").fill),S.setItemVisual(R,{fromSymbolKeepAspect:b.getItemVisual(R,"symbolKeepAspect"),fromSymbolOffset:b.getItemVisual(R,"symbolOffset"),fromSymbolRotate:b.getItemVisual(R,"symbolRotate"),fromSymbolSize:b.getItemVisual(R,"symbolSize"),fromSymbol:b.getItemVisual(R,"symbol"),toSymbolKeepAspect:w.getItemVisual(R,"symbolKeepAspect"),toSymbolOffset:w.getItemVisual(R,"symbolOffset"),toSymbolRotate:w.getItemVisual(R,"symbolRotate"),toSymbolSize:w.getItemVisual(R,"symbolSize"),toSymbol:w.getItemVisual(R,"symbol"),style:V})}),m.updateData(S),y.line.eachItemGraphicEl(function(R,V){R.traverse(function(B){ht(B).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markLine",i}(db),v9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markArea",i.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},i}(Al),xS=pn(),g9=function(i,r,s,u){var f=ub(i,u[0]),d=ub(i,u[1]),p=f.coord,v=d.coord;p[0]=ni(p[0],-1/0),p[1]=ni(p[1],-1/0),v[0]=ni(v[0],1/0),v[1]=ni(v[1],1/0);var g=Lb([{},f,d]);return g.coord=[f.coord,d.coord],g.x0=f.x,g.y0=f.y,g.x1=d.x,g.y1=d.y,g};function hb(o){return!isNaN(o)&&!isFinite(o)}function TS(o,i,r,s){var u=1-o;return hb(i[u])&&hb(r[u])}function bB(o,i){var r=i.coord[0],s=i.coord[1];return!!(uc(o,"cartesian2d")&&r&&s&&(TS(1,r,s)||TS(0,r,s)))||cb(o,{coord:r,x:i.x0,y:i.y0})||cb(o,{coord:s,x:i.x1,y:i.y1})}function CB(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get(r[0]),u.getWidth()),g=Fe(d.get(r[1]),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(r,i));else{var b=[m=o.get(r[0],i),y=o.get(r[1],i)];f.clampData&&f.clampData(b,b),p=f.dataToPoint(b,!0)}if(uc(f,"cartesian2d")){var w=f.getAxis("x"),S=f.getAxis("y"),m=o.get(r[0],i),y=o.get(r[1],i);hb(m)?p[0]=w.toGlobalCoord(w.getExtent()["x0"===r[0]?0:1]):hb(y)&&(p[1]=S.toGlobalCoord(S.getExtent()["y0"===r[1]?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];return p}var wB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],y9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markArea");if(d){var p=d.getData();p.each(function(v){var g=Te(wB,function(y){return CB(p,v,y,f,u)});p.setItemLayout(v,g),p.getItemGraphicEl(v).setShape("points",g)})}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,{group:new ct});this.group.add(m.group),this.markKeep(m);var y=function(o,i,r){var s,u;o?(s=Te(o&&o.dimensions,function(v){var g=i.getData();return Se(Se({},g.getDimensionInfo(g.mapDimension(v))||{}),{name:v,ordinalMeta:null})}),u=new Ga(Te(["x0","y0","x1","y1"],function(v,g){return{name:v,type:s[g%2].type}}),r)):u=new Ga(s=[{name:"value",type:"float"}],r);var d=Te(r.get("data"),St(g9,i,o,r));return o&&(d=Yn(d,St(bB,o))),u.initData(d,null,o?function(v,g,m,y){return v.coord[Math.floor(y/2)][y%2]}:function(v){return v.value}),u.hasItemOption=!0,u}(d,r,s);s.setData(y),y.each(function(b){var w=Te(wB,function(j){return CB(y,b,j,r,f)}),S=d.getAxis("x").scale,M=d.getAxis("y").scale,x=S.getExtent(),T=M.getExtent(),P=[S.parse(y.get("x0",b)),S.parse(y.get("x1",b))],O=[M.parse(y.get("y0",b)),M.parse(y.get("y1",b))];io(P),io(O),y.setItemLayout(b,{points:w,allClipped:!!(x[0]>P[1]||x[1]O[1]||T[1]=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.defaultOption={zlevel:0,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",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,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",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},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}},i}(qt),Rg=St,oP=q,pb=ct;function sP(o,i,r,s){vb(o,i,r,s),r.dispatchAction({type:"legendToggleSelect",name:null!=o?o:i}),Co(o,i,r,s)}function kB(o){for(var r,i=o.getZr().storage.getDisplayList(),s=0,u=i.length;s0?2:0:g[b]=w}var S=i.getModel("lineStyle"),M=q0.concat([["inactiveColor"],["inactiveWidth"]]),x={};for(m=0;m0?2:0:x[b]=w}if("auto"===g.fill&&(g.fill=u.fill),"auto"===g.stroke&&(g.stroke=u.fill),"auto"===x.stroke&&(x.stroke=u.fill),!d){var T=i.get("inactiveBorderWidth"),P=g[o.indexOf("empty")>-1?"fill":"stroke"];g.lineWidth="auto"===T?u.lineWidth>0&&P?2:0:g.lineWidth,g.fill=i.get("inactiveColor"),g.stroke=i.get("inactiveBorderColor"),x.stroke=r.get("inactiveColor"),x.lineWidth=r.get("inactiveWidth")}return{itemStyle:g,lineStyle:x}}(m=T||m||"roundRect",f,d.getModel("lineStyle"),v,g,b,M),R=new pb,V=f.getModel("textStyle");if("function"!=typeof r.getLegendIcon||T&&"inherit"!==T){var B="inherit"===T&&r.getData().getVisual("symbol")?"inherit"===x?r.getData().getVisual("symbolRotate"):x:0;R.add(function(o){var i=o.icon||"roundRect",r=Ir(i,0,0,o.itemWidth,o.itemHeight,o.itemStyle.fill);return r.setStyle(o.itemStyle),r.rotation=(o.iconRotate||0)*Math.PI/180,r.setOrigin([o.itemWidth/2,o.itemHeight/2]),i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}({itemWidth:w,itemHeight:S,icon:m,iconRotate:B,itemStyle:O.itemStyle,lineStyle:O.lineStyle}))}else R.add(r.getLegendIcon({itemWidth:w,itemHeight:S,icon:m,iconRotate:x,itemStyle:O.itemStyle,lineStyle:O.lineStyle}));var U="left"===p?w+5:-5,j=p,X=d.get("formatter"),Z=s;"string"==typeof X&&X?Z=X.replace("{name}",null!=s?s:""):"function"==typeof X&&(Z=X(s));var $=f.get("inactiveColor");R.add(new fn({style:Or(V,{text:Z,x:U,y:S/2,fill:M?V.getTextColor():$,align:j,verticalAlign:"middle"})}));var te=new sn({shape:R.getBoundingRect(),invisible:!0}),ee=f.getModel("tooltip");return ee.get("show")&&Av({el:te,componentModel:d,itemName:s,itemTooltipOption:ee.option}),R.add(te),R.eachChild(function(le){le.silent=!0}),te.silent=!y,this.getContentGroup().add(R),qn(R),R.__legendDataIndex=u,R},i.prototype.layoutInner=function(r,s,u,f,d,p){var v=this.getContentGroup(),g=this.getSelectorGroup();Sf(r.get("orient"),v,r.get("itemGap"),u.width,u.height);var m=v.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),v.markRedraw(),d){Sf("horizontal",g,r.get("selectorItemGap",!0));var b=g.getBoundingRect(),w=[-b.x,-b.y],S=r.get("selectorButtonGap",!0),M=r.getOrient().index,x=0===M?"width":"height",T=0===M?"height":"width",P=0===M?"y":"x";"end"===p?w[M]+=m[x]+S:y[M]+=b[x]+S,w[1-M]+=m[T]/2-b[T]/2,g.x=w[0],g.y=w[1],v.x=y[0],v.y=y[1];var O={x:0,y:0};return O[x]=m[x]+S+b[x],O[T]=Math.max(m[T],b[T]),O[P]=Math.min(0,b[P]+w[1-M]),O}return v.x=y[0],v.y=y[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(un);function lP(o){var i=o.findComponents({mainType:"legend"});i&&i.length&&o.filterSeries(function(r){for(var s=0;su[d],x=[-w.x,-w.y];s||(x[f]=m[g]);var T=[0,0],P=[-S.x,-S.y],O=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));M&&("end"===r.get("pageButtonPosition",!0)?P[f]+=u[d]-S[d]:T[f]+=S[d]+O),P[1-f]+=w[p]/2-S[p]/2,m.setPosition(x),y.setPosition(T),b.setPosition(P);var V={x:0,y:0};if(V[d]=M?u[d]:w[d],V[p]=Math.max(w[p],S[p]),V[v]=Math.min(0,S[v]+P[1-f]),y.__rectSize=u[d],M){var B={x:0,y:0};B[d]=Math.max(u[d]-S[d]-O,0),B[p]=V[p],y.setClipPath(new sn({shape:B})),y.__rectSize=B[d]}else b.eachChild(function(j){j.attr({invisible:!0,silent:!0})});var U=this._getPageInfo(r);return null!=U.pageIndex&&ln(m,{x:U.contentPosition[0],y:U.contentPosition[1]},M?r:null),this._updatePageInfoView(r,U),V},i.prototype._pageGo=function(r,s,u){var f=this._getPageInfo(s)[r];null!=f&&u.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:s.id})},i.prototype._updatePageInfoView=function(r,s){var u=this._controllerGroup;q(["pagePrev","pageNext"],function(m){var b=null!=s[m+"DataIndex"],w=u.childOfName(m);w&&(w.setStyle("fill",r.get(b?"pageIconColor":"pageIconInactiveColor",!0)),w.cursor=b?"pointer":"default")});var f=u.childOfName("pageText"),d=r.get("pageFormatter"),p=s.pageIndex,v=null!=p?p+1:0,g=s.pageCount;f&&d&&f.setStyle("text",yt(d)?d.replace("{current}",null==v?"":v+"").replace("{total}",null==g?"":g+""):d({current:v,total:g}))},i.prototype._getPageInfo=function(r){var s=r.get("scrollDataIndex",!0),u=this.getContentGroup(),f=this._containerGroup.__rectSize,d=r.getOrient().index,p=PS[d],v=OS[d],g=this._findTargetItemIndex(s),m=u.children(),y=m[g],b=m.length,w=b?1:0,S={contentPosition:[u.x,u.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var M=R(y);S.contentPosition[d]=-M.s;for(var x=g+1,T=M,P=M,O=null;x<=b;++x)(!(O=R(m[x]))&&P.e>T.s+f||O&&!V(O,T.s))&&(T=P.i>T.i?P:O)&&(null==S.pageNextDataIndex&&(S.pageNextDataIndex=T.i),++S.pageCount),P=O;for(x=g-1,T=M,P=M,O=null;x>=-1;--x)(!(O=R(m[x]))||!V(P,O.s))&&T.i=U&&B.s<=U+f}},i.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(d,p){var v=d.__legendDataIndex;null==f&&null!=v&&(f=p),v===r&&(s=p)}),null!=s?s:f):0;var s,f},i.type="legend.scroll",i}(Lg);function Rs(o){Ot(AS),o.registerComponentModel(ES),o.registerComponentView(IS),function(o){o.registerAction("legendScroll","legendscroll",function(i,r){var s=i.scrollDataIndex;null!=s&&r.eachComponent({mainType:"legend",subType:"scroll",query:i},function(u){u.setScrollDataIndex(s)})})}(o)}var D9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.inside",i.defaultOption=rh(eS.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),i}(eS),RS=pn();function A9(o,i,r){RS(o).coordSysRecordMap.each(function(s){var u=s.dataZoomInfoMap.get(i.uid);u&&(u.getRange=r)})}function mb(o,i){if(i){o.removeKey(i.model.uid);var r=i.controller;r&&r.dispose()}}function E9(o,i){o.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:i})}function uP(o,i,r,s){return o.coordinateSystem.containPoint([r,s])}var EB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return he(i,o),i.prototype.render=function(r,s,u){o.prototype.render.apply(this,arguments),r.noTarget()?this._clear():(this.range=r.getPercentRange(),A9(u,r,{pan:Ye(LS.pan,this),zoom:Ye(LS.zoom,this),scrollMove:Ye(LS.scrollMove,this)}))},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){(function(o,i){for(var r=RS(o).coordSysRecordMap,s=r.keys(),u=0;u0?v.pixelStart+v.pixelLength-v.pixel:v.pixel-v.pixelStart)/v.pixelLength*(d[1]-d[0])+d[0],m=Math.max(1/u.scale,0);d[0]=(d[0]-g)*m+g,d[1]=(d[1]-g)*m+g;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(kl(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:PB(function(o,i,r,s,u,f){var d=cP[s]([f.oldX,f.oldY],[f.newX,f.newY],i,u,r);return d.signal*(o[1]-o[0])*d.pixel/d.pixelLength}),scrollMove:PB(function(o,i,r,s,u,f){return cP[s]([0,0],[f.scrollDelta,f.scrollDelta],i,u,r).signal*(o[1]-o[0])*f.scrollDelta})};function PB(o){return function(i,r,s,u){var f=this.range,d=f.slice(),p=i.axisModels[0];if(p&&(kl(o(d,p,i,r,s,u),d,[0,100],"all"),this.range=d,f[0]!==d[0]||f[1]!==d[1]))return d}}var cP={grid:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem.getRect();return i=i||[0,0],"x"===d.dim?(p.pixel=r[0]-i[0],p.pixelLength=v.width,p.pixelStart=v.x,p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=v.height,p.pixelStart=v.y,p.signal=d.inverse?-1:1),p},polar:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem,g=v.getRadiusAxis().getExtent(),m=v.getAngleAxis().getExtent();return i=i?v.pointToCoord(i):[0,0],r=v.pointToCoord(r),"radiusAxis"===s.mainType?(p.pixel=r[0]-i[0],p.pixelLength=g[1]-g[0],p.pixelStart=g[0],p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=m[1]-m[0],p.pixelStart=m[0],p.signal=d.inverse?-1:1),p},singleAxis:function(i,r,s,u,f){var d=s.axis,p=f.model.coordinateSystem.getRect(),v={};return i=i||[0,0],"horizontal"===d.orient?(v.pixel=r[0]-i[0],v.pixelLength=p.width,v.pixelStart=p.x,v.signal=d.inverse?1:-1):(v.pixel=r[1]-i[1],v.pixelLength=p.height,v.pixelStart=p.y,v.signal=d.inverse?-1:1),v}},OB=EB;function IB(o){vE(o),o.registerComponentModel(D9),o.registerComponentView(OB),function(o){o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,function(i,r){var s=RS(r),u=s.coordSysRecordMap||(s.coordSysRecordMap=et());u.each(function(f){f.dataZoomInfoMap=null}),i.eachComponent({mainType:"dataZoom",subType:"inside"},function(f){q(MV(f).infoList,function(p){var v=p.model.uid,g=u.get(v)||u.set(v,function(o,i){var r={model:i,containsPoint:St(uP,i),dispatchAction:St(E9,o),dataZoomInfoMap:null,controller:null},s=r.controller=new hy(o.getZr());return q(["pan","zoom","scrollMove"],function(u){s.on(u,function(f){var d=[];r.dataZoomInfoMap.each(function(p){if(f.isAvailableBehavior(p.model.option)){var v=(p.getRange||{})[u],g=v&&v(p.dzReferCoordSysInfo,r.model.mainType,r.controller,f);!p.model.get("disabled",!0)&&g&&d.push({dataZoomId:p.model.id,start:g[0],end:g[1]})}}),d.length&&r.dispatchAction(d)})}),r}(r,p.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=et())).set(f.uid,{dzReferCoordSysInfo:p,model:f,getRange:null})})}),u.each(function(f){var p,d=f.controller,v=f.dataZoomInfoMap;if(v){var g=v.keys()[0];null!=g&&(p=v.get(g))}if(p){var m=function(o){var i,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return o.each(function(f){var d=f.model,p=!d.get("disabled",!0)&&(!d.get("zoomLock",!0)||"move");s[r+p]>s[r+i]&&(i=p),u=u&&d.get("preventDefaultMouseMove",!0)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}(v);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),il(f,"dispatchAction",p.model.get("throttle",!0),"fixRate")}else mb(u,f)})})}(o)}var RB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.slider",i.layoutMode="box",i.defaultOption=rh(eS.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"}}}),i}(eS),vp=sn,yb="horizontal",LB="vertical",L9=["line","bar","candlestick","scatter"],F9={easing:"cubicOut",duration:100,delay:0};function BB(o){return"vertical"===o?"ns-resize":"ew-resize"}var N9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._displayables={},r}return he(i,o),i.prototype.init=function(r,s){this.api=s,this._onBrush=Ye(this._onBrush,this),this._onBrushEnd=Ye(this._onBrushEnd,this)},i.prototype.render=function(r,s,u,f){if(o.prototype.render.apply(this,arguments),il(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),!1!==r.get("show"))return r.noTarget()?(this._clear(),void this.group.removeAll()):((!f||"dataZoom"!==f.type||f.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){!function(o,i){var r=o[i];r&&r[J]&&(o[i]=r[J])}(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},i.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(s),this._positionGroup()},i.prototype._resetLocation=function(){var r=this.dataZoomModel,s=this.api,f=r.get("brushSelect")?7:0,d=this._findCoordRect(),p={width:s.getWidth(),height:s.getHeight()},v=this._orient===yb?{right:p.width-d.x-d.width,top:p.height-30-7-f,width:d.width,height:30}:{right:7,top:d.y,width:30,height:d.height},g=av(r.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=v[y])});var m=li(g,p);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===LB&&this._size.reverse()},i.prototype._positionGroup=function(){var r=this.group,s=this._location,u=this._orient,f=this.dataZoomModel.getFirstTargetAxisModel(),d=f&&f.get("inverse"),p=this._displayables.sliderGroup,v=(this._dataShadowInfo||{}).otherAxisInverse;p.attr(u!==yb||d?u===yb&&d?{scaleY:v?1:-1,scaleX:-1}:u!==LB||d?{scaleY:v?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:v?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:v?1:-1,scaleX:1});var g=r.getBoundingRect([p]);r.x=s.x-g.x,r.y=s.y-g.y,r.markRedraw()},i.prototype._getViewExtent=function(){return[0,this._size[0]]},i.prototype._renderBackground=function(){var r=this.dataZoomModel,s=this._size,u=this._displayables.sliderGroup,f=r.get("brushSelect");u.add(new vp({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var d=new vp({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:Ye(this._onClickPanel,this)}),p=this.api.getZr();f?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",p.on("mousemove",this._onBrush),p.on("mouseup",this._onBrushEnd)):(p.off("mousemove",this._onBrush),p.off("mouseup",this._onBrushEnd)),u.add(d)},i.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],r){var s=this._size,u=r.series,f=u.getRawData(),d=u.getShadowDim?u.getShadowDim():r.otherDim;if(null!=d){var p=f.getDataExtent(d),v=.3*(p[1]-p[0]);p=[p[0]-v,p[1]+v];var x,g=[0,s[1]],y=[[s[0],0],[0,0]],b=[],w=s[0]/(f.count()-1),S=0,M=Math.round(f.count()/s[0]);f.each([d],function(V,B){if(M>0&&B%M)S+=w;else{var U=null==V||isNaN(V)||""===V,j=U?0:bn(V,p,g,!0);U&&!x&&B?(y.push([y[y.length-1][0],0]),b.push([b[b.length-1][0],0])):!U&&x&&(y.push([S,0]),b.push([S,0])),y.push([S,j]),b.push([S,j]),S+=w,x=U}});for(var B,U,j,X,T=this.dataZoomModel,O=0;O<3;O++){var R=(B=void 0,U=void 0,void 0,void 0,B=T.getModel(1===O?"selectedDataBackground":"dataBackground"),U=new ct,j=new ya({shape:{points:y},segmentIgnoreThreshold:1,style:B.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),X=new br({shape:{points:b},segmentIgnoreThreshold:1,style:B.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),U.add(j),U.add(X),U);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}}}},i.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,s=r.get("showDataShadow");if(!1!==s){var u,f=this.ecModel;return r.eachTargetAxis(function(d,p){q(r.getAxisProxy(d,p).getTargetSeriesModels(),function(g){if(!(u||!0!==s&&Rt(L9,g.get("type"))<0)){var b,m=f.getComponent(Dc(d),p).axis,y=function(o){return{x:"y",y:"x",radius:"angle",angle:"radius"}[o]}(d),w=g.coordinateSystem;null!=y&&w.getOtherAxis&&(b=w.getOtherAxis(m).inverse),y=g.getData().mapDimension(y),u={thisAxis:m,series:g,thisDim:d,otherDim:y,otherAxisInverse:b}}},this)},this),u}},i.prototype._renderHandle=function(){var r=this.group,s=this._displayables,u=s.handles=[null,null],f=s.handleLabels=[null,null],d=this._displayables.sliderGroup,p=this._size,v=this.dataZoomModel,g=this.api,m=v.get("borderRadius")||0,y=v.get("brushSelect"),b=s.filler=new vp({silent:y,style:{fill:v.get("fillerColor")},textConfig:{position:"inside"}});d.add(b),d.add(new vp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:p[0],height:p[1],r:m},style:{stroke:v.get("dataBackgroundColor")||v.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(O){var R=v.get("handleIcon");!EC[R]&&R.indexOf("path://")<0&&R.indexOf("image://")<0&&(R="path://"+R);var V=Ir(R,-1,0,2,2,null,!0);V.attr({cursor:BB(this._orient),draggable:!0,drift:Ye(this._onDragMove,this,O),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1),z2:5});var B=V.getBoundingRect(),U=v.get("handleSize");this._handleHeight=Fe(U,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,V.setStyle(v.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=v.getModel(["emphasis","handleStyle"]).getItemStyle(),qn(V);var j=v.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[O]=V);var X=v.getModel("textStyle");r.add(f[O]=new fn({silent:!0,invisible:!0,style:Or(X,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:X.getTextColor(),font:X.getFont()}),z2:10}))},this);var w=b;if(y){var S=Fe(v.get("moveHandleSize"),p[1]),M=s.moveHandle=new sn({style:v.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:p[1]-.5,height:S}}),x=.8*S,T=s.moveHandleIcon=Ir(v.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);T.silent=!0,T.y=p[1]+S/2-.5,M.ensureState("emphasis").style=v.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var P=Math.min(p[1]/2,Math.max(S,10));(w=s.moveZone=new sn({invisible:!0,shape:{y:p[1]-P,height:S+P}})).on("mouseover",function(){g.enterEmphasis(M)}).on("mouseout",function(){g.leaveEmphasis(M)}),d.add(M),d.add(T),d.add(w)}w.attr({draggable:!0,cursor:BB(this._orient),drift:Ye(this._onDragMove,this,"all"),ondragstart:Ye(this._showDataInfo,this,!0),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1)})},i.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[bn(r[0],[0,100],s,!0),bn(r[1],[0,100],s,!0)]},i.prototype._updateInterval=function(r,s){var u=this.dataZoomModel,f=this._handleEnds,d=this._getViewExtent(),p=u.findRepresentativeAxisProxy().getMinMaxSpan(),v=[0,100];kl(s,f,d,u.get("zoomLock")?"all":r,null!=p.minSpan?bn(p.minSpan,v,d,!0):null,null!=p.maxSpan?bn(p.maxSpan,v,d,!0):null);var g=this._range,m=this._range=io([bn(f[0],d,v,!0),bn(f[1],d,v,!0)]);return!g||g[0]!==m[0]||g[1]!==m[1]},i.prototype._updateView=function(r){var s=this._displayables,u=this._handleEnds,f=io(u.slice()),d=this._size;q([0,1],function(w){var M=this._handleHeight;s.handles[w].attr({scaleX:M/2,scaleY:M/2,x:u[w]+(w?-1:1),y:d[1]/2-M/2})},this),s.filler.setShape({x:f[0],y:0,width:f[1]-f[0],height:d[1]});var p={x:f[0],width:f[1]-f[0]};s.moveHandle&&(s.moveHandle.setShape(p),s.moveZone.setShape(p),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",p.x+p.width/2));for(var v=s.dataShadowSegs,g=[0,f[0],f[1],d[0]],m=0;ms[0]||u[1]<0||u[1]>s[1])){var f=this._handleEnds,p=this._updateInterval("all",u[0]-(f[0]+f[1])/2);this._updateView(),p&&this._dispatchZoomAction(!1)}},i.prototype._onBrushStart=function(r){this._brushStart=new Tt(r.offsetX,r.offsetY),this._brushing=!0,this._brushStartTime=+new Date},i.prototype._onBrushEnd=function(r){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,s){s.attr("ignore",!0);var u=s.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(u.width)<5)){var d=this._getViewExtent(),p=[0,100];this._range=io([bn(u.x,d,p,!0),bn(u.x+u.width,d,p,!0)]),this._handleEnds=[u.x,u.x+u.width],this._updateView(),this._dispatchZoomAction(!1)}}}},i.prototype._onBrush=function(r){this._brushing&&(Vl(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},i.prototype._updateBrushRect=function(r,s){var u=this._displayables,d=u.brushRect;d||(d=u.brushRect=new vp({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),u.sliderGroup.add(d)),d.attr("ignore",!1);var p=this._brushStart,v=this._displayables.sliderGroup,g=v.transformCoordToLocal(r,s),m=v.transformCoordToLocal(p.x,p.y),y=this._size;g[0]=Math.max(Math.min(y[0],g[0]),0),d.setShape({x:m[0],y:0,width:g[0]-m[0],height:y[1]})},i.prototype._dispatchZoomAction=function(r){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?F9:null,start:s[0],end:s[1]})},i.prototype._findCoordRect=function(){var r,s=MV(this.dataZoomModel).infoList;if(!r&&s.length){var u=s[0].model.coordinateSystem;r=u.getRect&&u.getRect()}if(!r){var f=this.api.getWidth(),d=this.api.getHeight();r={x:.2*f,y:.2*d,width:.6*f,height:.6*d}}return r},i.type="dataZoom.slider",i}(Tu);function HB(o){o.registerComponentModel(RB),o.registerComponentView(N9),vE(o)}var MQ={get:function(i,r,s){var u=rt((UB[i]||{})[r]);return s&&we(u)?u[u.length-1]:u}},UB={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]}},GB=MQ,jB=Qi.mapVisual,WB=Qi.eachVisual,V9=we,YB=q,B9=io,qB=bn,bb=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u)},i.prototype.optionUpdated=function(r,s){var u=this.option;Ze.canvasSupported||(u.realtime=!1),!s&&jE(u,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(r){var s=this.stateList;r=Ye(r,this),this.controllerVisuals=Ka(this.option.controller,s,r),this.targetVisuals=Ka(this.option.target,s,r)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,s=[];return null==r||"all"===r?this.ecModel.eachSeries(function(u,f){s.push(f)}):s=jn(r),s},i.prototype.eachTargetSeries=function(r,s){q(this.getTargetSeriesIndices(),function(u){var f=this.ecModel.getSeriesByIndex(u);f&&r.call(s,f)},this)},i.prototype.isTargetSeries=function(r){var s=!1;return this.eachTargetSeries(function(u){u===r&&(s=!0)}),s},i.prototype.formatValueText=function(r,s,u){var g,f=this.option,d=f.precision,p=this.dataBound,v=f.formatter;u=u||["<",">"],we(r)&&(r=r.slice(),g=!0);var m=s?r:g?[y(r[0]),y(r[1])]:y(r);return yt(v)?v.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):An(v)?g?v(r[0],r[1]):v(r):g?r[0]===p[0]?u[0]+" "+m[1]:r[1]===p[1]?u[1]+" "+m[0]:m[0]+" - "+m[1]:m;function y(b){return b===p[0]?"min":b===p[1]?"max":(+b).toFixed(Math.min(d,20))}},i.prototype.resetExtent=function(){var r=this.option,s=B9([r.min,r.max]);this._dataExtent=s},i.prototype.getDataDimensionIndex=function(r){var s=this.option.dimension;if(null!=s)return r.getDimensionIndex(s);for(var u=r.dimensions,f=u.length-1;f>=0;f--){var p=r.getDimensionInfo(u[f]);if(!p.isCalculationCoord)return p.storeDimIndex}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var r=this.ecModel,s=this.option,u={inRange:s.inRange,outOfRange:s.outOfRange},f=s.target||(s.target={}),d=s.controller||(s.controller={});He(f,u),He(d,u);var p=this.isCategory();function v(y){V9(s.color)&&!y.inRange&&(y.inRange={color:s.color.slice().reverse()}),y.inRange=y.inRange||{color:r.get("gradientColor")}}v.call(this,f),v.call(this,d),function(y,b,w){var S=y[b],M=y[w];S&&!M&&(M=y[w]={},YB(S,function(x,T){if(Qi.isValidType(T)){var P=GB.get(T,"inactive",p);null!=P&&(M[T]=P,"color"===T&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}}))}.call(this,f,"inRange","outOfRange"),function(y){var b=(y.inRange||{}).symbol||(y.outOfRange||{}).symbol,w=(y.inRange||{}).symbolSize||(y.outOfRange||{}).symbolSize,S=this.get("inactiveColor"),x=this.getItemSymbol()||"roundRect";YB(this.stateList,function(T){var P=this.itemSize,O=y[T];O||(O=y[T]={color:p?S:[S]}),null==O.symbol&&(O.symbol=b&&rt(b)||(p?x:[x])),null==O.symbolSize&&(O.symbolSize=w&&rt(w)||(p?P[0]:[P[0],P[0]])),O.symbol=jB(O.symbol,function(B){return"none"===B?x:B});var R=O.symbolSize;if(null!=R){var V=-1/0;WB(R,function(B){B>V&&(V=B)}),O.symbolSize=jB(R,function(B){return qB(B,[0,V],[0,P[0]],!0)})}},this)}.call(this,d)},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(r){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(r){return null},i.prototype.getVisualMeta=function(r){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,zlevel: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"}},i}(qt),XB=[20,140];function KB(o,i,r){if(r[0]===r[1])return r.slice();for(var u=(r[1]-r[0])/200,f=r[0],d=[],p=0;p<=200&&fs[1]&&s.reverse(),s[0]=Math.max(s[0],r[0]),s[1]=Math.min(s[1],r[1]))},i.prototype.completeVisualOption=function(){o.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(r){var s=this.option.controller[r].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},i.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},i.prototype.getSelected=function(){var r=this.getExtent(),s=io((this.get("range")||[]).slice());return s[0]>r[1]&&(s[0]=r[1]),s[1]>r[1]&&(s[1]=r[1]),s[0]=u[1]||r<=s[1])?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[];return this.eachTargetSeries(function(u){var f=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(p,v){r[0]<=p&&p<=r[1]&&f.push(v)},this),s.push({seriesId:u.id,dataIndex:f})},this),s},i.prototype.getVisualMeta=function(r){var s=KB(0,0,this.getExtent()),u=KB(0,0,this.option.range.slice()),f=[];function d(w,S){f.push({value:w,color:r(w,S)})}for(var p=0,v=0,g=u.length,m=s.length;vr[1])break;f.push({color:this.getControllerVisual(v,"color",s),offset:p/100})}return f.push({color:this.getControllerVisual(r[1],"color",s),offset:1}),f},i.prototype._createBarPoints=function(r,s){var u=this.visualMapModel.itemSize;return[[u[0]-s[0],r[0]],[u[0],r[0]],[u[0],r[1]],[u[0]-s[1],r[1]]]},i.prototype._createBarGroup=function(r){var s=this._orient,u=this.visualMapModel.get("inverse");return new ct("horizontal"!==s||u?"horizontal"===s&&u?{scaleX:"bottom"===r?-1:1,rotation:-Math.PI/2}:"vertical"!==s||u?{scaleX:"left"===r?1:-1}:{scaleX:"left"===r?1:-1,scaleY:-1}:{scaleX:"bottom"===r?1:-1,rotation:Math.PI/2})},i.prototype._updateHandle=function(r,s){if(this._useHandle){var u=this._shapes,f=this.visualMapModel,d=u.handleThumbs,p=u.handleLabels,v=f.itemSize,g=f.getExtent();e5([0,1],function(m){var y=d[m];y.setStyle("fill",s.handlesColor[m]),y.y=r[m];var b=Un(r[m],[0,v[1]],g,!0),w=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=w/v[0],y.x=v[0]-w/2;var S=ul(u.handleLabelPoints[m],Lf(y,this.group));p[m].setStyle({x:S[0],y:S[1],text:f.formatValueText(this._dataInterval[m]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",u.mainGroup):"center"})},this)}},i.prototype._showIndicator=function(r,s,u,f){var d=this.visualMapModel,p=d.getExtent(),v=d.itemSize,g=[0,v[1]],m=this._shapes,y=m.indicator;if(y){y.attr("invisible",!1);var w=this.getControllerVisual(r,"color",{convertOpacityToAlpha:!0}),S=this.getControllerVisual(r,"symbolSize"),M=Un(r,p,g,!0),x=v[0]-S/2,T={x:y.x,y:y.y};y.y=M,y.x=x;var P=ul(m.indicatorLabelPoint,Lf(y,this.group)),O=m.indicatorLabel;O.attr("invisible",!1);var R=this._applyTransform("left",m.mainGroup),B="horizontal"===this._orient;O.setStyle({text:(u||"")+d.formatValueText(s),verticalAlign:B?R:"middle",align:B?"center":R});var U={x:x,y:M,style:{fill:w}},j={style:{x:P[0],y:P[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var X={duration:100,easing:"cubicInOut",additive:!0};y.x=T.x,y.y=T.y,y.animateTo(U,X),O.animateTo(j,X)}else y.attr(U),O.attr(j);this._firstShowIndicator=!1;var Z=this._shapes.handleLabels;if(Z)for(var $=0;$d[1]&&(y[1]=1/0),s&&(y[0]===-1/0?this._showIndicator(m,y[1],"< ",v):y[1]===1/0?this._showIndicator(m,y[0],"> ",v):this._showIndicator(m,m,"\u2248 ",v));var b=this._hoverLinkDataIndices,w=[];(s||n5(u))&&(w=this._hoverLinkDataIndices=u.findTargetDataIndices(y));var S=function(o,i){var r={},s={};return u(o||[],r),u(i||[],s,r),[f(r),f(s)];function u(d,p,v){for(var g=0,m=d.length;g=0&&(d.dimension=p,u.push(d))}}),i.getData().setVisual("visualMeta",u)}}];function q9(o,i,r,s){for(var u=i.targetVisuals[s],f=Qi.prepareVisualTypes(u),d={color:kh(o.getData(),"color")},p=0,v=f.length;p0:i.splitNumber>0)&&!i.calculable?"piecewise":"continuous"}),o.registerAction(W9,Y9),q(i5,function(i){o.registerVisual(o.PRIORITY.VISUAL.COMPONENT,i)}),o.registerPreprocessor($t))}function gp(o){o.registerComponentModel(H9),o.registerComponentView(TQ),El(o)}var HS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._pieceList=[],r}return he(i,o),i.prototype.optionUpdated=function(r,s){o.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var u=this._mode=this._determineMode();this._pieceList=[],o5[this._mode].call(this,this._pieceList),this._resetSelected(r,s);var f=this.option.categories;this.resetVisual(function(d,p){"categories"===u?(d.mappingMethod="category",d.categories=rt(f)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=Te(this._pieceList,function(v){return v=rt(v),"inRange"!==p&&(v.visual=null),v}))})},i.prototype.completeVisualOption=function(){var r=this.option,s={},u=Qi.listVisualTypes(),f=this.isCategory();function d(p,v,g){return p&&p[v]&&p[v].hasOwnProperty(g)}q(r.pieces,function(p){q(u,function(v){p.hasOwnProperty(v)&&(s[v]=1)})}),q(s,function(p,v){var g=!1;q(this.stateList,function(m){g=g||d(r,m,v)||d(r.target,m,v)},this),!g&&q(this.stateList,function(m){(r[m]||(r[m]={}))[v]=GB.get(v,"inRange"===m?"active":"inactive",f)})},this),o.prototype.completeVisualOption.apply(this,arguments)},i.prototype._resetSelected=function(r,s){var u=this.option,f=this._pieceList,d=(s?u:r).selected||{};if(u.selected=d,q(f,function(v,g){var m=this.getSelectedMapKey(v);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var p=!1;q(f,function(v,g){var m=this.getSelectedMapKey(v);d[m]&&(p?d[m]=!1:p=!0)},this)}},i.prototype.getItemSymbol=function(){return this.get("itemSymbol")},i.prototype.getSelectedMapKey=function(r){return"categories"===this._mode?r.value+"":r.index+""},i.prototype.getPieceList=function(){return this._pieceList},i.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},i.prototype.setSelected=function(r){this.option.selected=rt(r)},i.prototype.getValueState=function(r){var s=Qi.findPieceIndex(r,this._pieceList);return null!=s&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[],u=this._pieceList;return this.eachTargetSeries(function(f){var d=[],p=f.getData();p.each(this.getDataDimensionIndex(p),function(v,g){Qi.findPieceIndex(v,u)===r&&d.push(g)},this),s.push({seriesId:f.id,dataIndex:d})},this),s},i.prototype.getRepresentValue=function(r){var s;if(this.isCategory())s=r.value;else if(null!=r.value)s=r.value;else{var u=r.interval||[];s=u[0]===-1/0&&u[1]===1/0?0:(u[0]+u[1])/2}return s},i.prototype.getVisualMeta=function(r){if(!this.isCategory()){var s=[],u=["",""],f=this,p=this._pieceList.slice();if(p.length){var v=p[0].interval[0];v!==-1/0&&p.unshift({interval:[-1/0,v]}),(v=p[p.length-1].interval[1])!==1/0&&p.push({interval:[v,1/0]})}else p.push({interval:[-1/0,1/0]});var g=-1/0;return q(p,function(m){var y=m.interval;y&&(y[0]>g&&d([g,y[0]],"outOfRange"),d(y.slice()),g=y[1])},this),{stops:s,outerColors:u}}function d(m,y){var b=f.getRepresentValue({interval:m});y||(y=f.getValueState(b));var w=r(b,y);m[0]===-1/0?u[0]=w:m[1]===1/0?u[1]=w:s.push({value:m[0],color:w},{value:m[1],color:w})}},i.type="visualMap.piecewise",i.defaultOption=rh(bb.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}),i}(bb),o5={splitNumber:function(i){var r=this.option,s=Math.min(r.precision,20),u=this.getExtent(),f=r.splitNumber;f=Math.max(parseInt(f,10),1),r.splitNumber=f;for(var d=(u[1]-u[0])/f;+d.toFixed(s)!==d&&s<5;)s++;r.precision=s,d=+d.toFixed(s),r.minOpen&&i.push({interval:[-1/0,u[0]],close:[0,0]});for(var p=0,v=u[0];p","\u2265"][u[0]]])},this)}};function hP(o,i){var r=o.inverse;("vertical"===o.orient?!r:r)&&i.reverse()}var X9=HS,Pu=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.doRender=function(){var r=this.group;r.removeAll();var s=this.visualMapModel,u=s.get("textGap"),f=s.textStyleModel,d=f.getFont(),p=f.getTextColor(),v=this._getItemAlign(),g=s.itemSize,m=this._getViewData(),y=m.endsText,b=ni(s.get("showLabel",!0),!y);y&&this._renderEndsText(r,y[0],g,b,v),q(m.viewPieceList,function(w){var S=w.piece,M=new ct;M.onclick=Ye(this._onItemClick,this,S),this._enableHoverLink(M,w.indexInModelPieceList);var x=s.getRepresentValue(S);if(this._createItemSymbol(M,x,[0,0,g[0],g[1]]),b){var T=this.visualMapModel.getValueState(x);M.add(new fn({style:{x:"right"===v?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:v,font:d,fill:p,opacity:"outOfRange"===T?.5:1}}))}r.add(M)},this),y&&this._renderEndsText(r,y[1],g,b,v),Sf(s.get("orient"),r,s.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},i.prototype._enableHoverLink=function(r,s){var u=this;r.on("mouseover",function(){return f("highlight")}).on("mouseout",function(){return f("downplay")});var f=function(p){var v=u.visualMapModel;v.option.hoverLink&&u.api.dispatchAction({type:p,batch:VS(v.findTargetDataIndices(s),v)})}},i.prototype._getItemAlign=function(){var r=this.visualMapModel,s=r.option;if("vertical"===s.orient)return JB(r,this.api,r.itemSize);var u=s.align;return(!u||"auto"===u)&&(u="left"),u},i.prototype._renderEndsText=function(r,s,u,f,d){if(s){var p=new ct,v=this.visualMapModel.textStyleModel;p.add(new fn({style:{x:f?"right"===d?u[0]:0:u[0]/2,y:u[1]/2,verticalAlign:"middle",align:f?d:"center",text:s,font:v.getFont(),fill:v.getTextColor()}})),r.add(p)}},i.prototype._getViewData=function(){var r=this.visualMapModel,s=Te(r.getPieceList(),function(p,v){return{piece:p,indexInModelPieceList:v}}),u=r.get("text"),f=r.get("orient"),d=r.get("inverse");return("horizontal"===f?d:!d)?s.reverse():u&&(u=u.slice().reverse()),{viewPieceList:s,endsText:u}},i.prototype._createItemSymbol=function(r,s,u){r.add(Ir(this.getControllerVisual(s,"symbol"),u[0],u[1],u[2],u[3],this.getControllerVisual(s,"color")))},i.prototype._onItemClick=function(r){var s=this.visualMapModel,u=s.option,f=rt(u.selected),d=s.getSelectedMapKey(r);"single"===u.selectedMode?(f[d]=!0,q(f,function(p,v){f[v]=v===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},i.type="visualMap.piecewise",i}($B);function fd(o){o.registerComponentModel(X9),o.registerComponentView(Pu),El(o)}var K9={label:{enabled:!0},decal:{show:!1}},s5=pn(),$9={};function Q9(o,i){var r=o.getModel("aria");if(r.get("enabled")){var s=rt(K9);He(s.label,o.getLocaleModel().get("aria"),!1),He(r.option,s,!1),function(){if(r.getModel("decal").get("show")){var y=et();o.eachSeries(function(b){if(!b.isColorBySeries()){var w=y.get(b.type);w||y.set(b.type,w={}),s5(b).scope=w}}),o.eachRawSeries(function(b){if(!o.isSeriesFiltered(b))if("function"!=typeof b.enableAriaDecal){var w=b.getData();if(b.isColorBySeries()){var P=KM(b.ecModel,b.name,$9,o.getSeriesCount()),O=w.getVisual("decal");w.setVisual("decal",R(O,P))}else{var S=b.getRawData(),M={},x=s5(b).scope;w.each(function(V){var B=w.getRawIndex(V);M[B]=V});var T=S.count();S.each(function(V){var B=M[V],U=S.getName(V)||V+"",j=KM(b.ecModel,U,x,T),X=w.getItemVisual(B,"decal");w.setItemVisual(B,"decal",R(X,j))})}}else b.enableAriaDecal();function R(V,B){var U=V?Se(Se({},B),V):B;return U.dirty=!0,U}})}}(),function(){var g=o.getLocaleModel().get("aria"),m=r.getModel("label");if(m.option=tt(m.option,g),m.get("enabled")){var y=i.getZr().dom;if(m.get("description"))return void y.setAttribute("aria-label",m.get("description"));var x,b=o.getSeriesCount(),w=m.get(["data","maxCount"])||10,S=m.get(["series","maxCount"])||10,M=Math.min(b,S);if(!(b<1)){var T=function(){var g=o.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();if(T)x=d(m.get(["general","withTitle"]),{title:T});else x=m.get(["general","withoutTitle"]);var O=[];x+=d(m.get(b>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:b}),o.eachSeries(function(j,X){if(X1?["series","multiple",te]:["series","single",te]),{seriesId:j.seriesIndex,seriesName:j.get("name"),seriesType:v(j.subType)});var ee=j.getData();ee.count()>w?Z+=d(m.get(["data","partialData"]),{displayCnt:w}):Z+=m.get(["data","allData"]);for(var oe=[],de=0;de":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eq=function(){function o(i){null==(this._condVal=yt(i)?new RegExp(i):SH(i)?i:null)&&Mn("")}return o.prototype.evaluate=function(i){var r=typeof i;return"string"===r?this._condVal.test(i):"number"===r&&this._condVal.test(i+"")},o}(),tq=function(){function o(){}return o.prototype.evaluate=function(){return this.value},o}(),nq=function(){function o(){}return o.prototype.evaluate=function(){for(var i=this.children,r=0;r2&&s.push(u),u=[ee,le]}function m(ee,le,oe,de){Vg(ee,oe)&&Vg(le,de)||u.push(ee,le,oe,de,oe,de)}for(var b,w,S,M,x=0;xj:$2&&s.push(u),s}function Bg(o,i,r,s,u,f,d,p,v,g){if(Vg(o,r)&&Vg(i,s)&&Vg(u,d)&&Vg(f,p))v.push(d,p);else{var m=2/g,y=m*m,b=d-o,w=p-i,S=Math.sqrt(b*b+w*w);b/=S,w/=S;var M=r-o,x=s-i,T=u-d,P=f-p,O=M*M+x*x,R=T*T+P*P;if(O=0&&R-B*B=0)v.push(d,p);else{var X=[],Z=[];Xu(o,r,u,d,.5,X),Xu(i,s,f,p,.5,Z),Bg(X[0],Z[0],X[1],Z[1],X[2],Z[2],X[3],Z[3],v,g),Bg(X[4],Z[4],X[5],Z[5],X[6],Z[6],X[7],Z[7],v,g)}}}}function f5(o,i,r){var f=Math.abs(o[i]/o[1-i]),d=Math.ceil(Math.sqrt(f*r)),p=Math.floor(r/d);0===p&&(p=1,d=r);for(var v=[],g=0;g0)for(g=0;gMath.abs(g),y=f5([v,g],m?0:1,i),b=(m?p:g)/y.length,w=0;w1?null:new Tt(M*v+o,M*g+i)}function d5(o,i,r){var s=new Tt;Tt.sub(s,r,i),s.normalize();var u=new Tt;return Tt.sub(u,o,i),u.dot(s)}function Hg(o,i){var r=o[o.length-1];r&&r[0]===i[0]&&r[1]===i[1]||o.push(i)}function jS(o){var i=o.points,r=[],s=[];wm(i,r,s);var u=new Ft(r[0],r[1],s[0]-r[0],s[1]-r[1]),f=u.width,d=u.height,p=u.x,v=u.y,g=new Tt,m=new Tt;return f>d?(g.x=m.x=p+f/2,g.y=v,m.y=v+d):(g.y=m.y=v+d/2,g.x=p,m.x=p+f),function(o,i,r){for(var s=o.length,u=[],f=0;f0;g/=2){var m=0,y=0;(o&g)>0&&(m=1),(i&g)>0&&(y=1),p+=g*g*(3*m^y),0===y&&(1===m&&(o=g-1-o,i=g-1-i),v=o,o=i,i=v)}return p}function Lr(o){var i=1/0,r=1/0,s=-1/0,u=-1/0,f=Te(o,function(p){var v=p.getBoundingRect(),g=p.getComputedTransform(),m=v.x+v.width/2+(g?g[4]:0),y=v.y+v.height/2+(g?g[5]:0);return i=Math.min(m,i),r=Math.min(y,r),s=Math.max(m,s),u=Math.max(y,u),[m,y]});return Te(f,function(p,v){return{cp:p,z:gq(p[0],p[1],i,r,s,u),path:o[v]}}).sort(function(p,v){return p.z-v.z}).map(function(p){return p.path})}function Wr(o){return function(o,i){var u,r=[],s=o.shape;switch(o.type){case"rect":(function(o,i,r){for(var s=o.width,u=o.height,f=s>u,d=f5([s,u],f?0:1,i),p=f?"width":"height",v=f?"height":"width",g=f?"x":"y",m=f?"y":"x",y=o[p]/d.length,b=0;b=0;u--)if(!r[u].many.length){var v=r[p].many;if(v.length<=1){if(!p)return r;p=0}f=v.length;var g=Math.ceil(f/2);r[u].many=v.slice(g,f),r[p].many=v.slice(0,g),p++}return r}var mq={clone:function(i){for(var r=[],s=1-Math.pow(1-i.path.style.opacity,1/i.count),u=0;u0){var g,m,p=s.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);m5(o)&&(g=o,m=i),m5(i)&&(g=i,m=o);for(var b=g?g===o:o.length>i.length,w=g?_5(m,g):_5(b?i:o,[b?o:i]),S=0,M=0;M1e4))for(var u=s.getIndices(),f=function(o){for(var i=o.dimensions,r=0;r0&&R.group.traverse(function(B){B instanceof Nt&&!B.animators.length&&B.animateFrom({style:{opacity:0}},V)})})}function w5(o){return o.getModel("universalTransition").get("seriesKey")||o.id}function S5(o){return we(o)?o.sort().join(","):o}function Ou(o){if(o.hostModel)return o.hostModel.getModel("universalTransition").get("divideShape")}function Pl(o,i){for(var r=0;r=0&&u.push({data:i.oldData[p],divide:Ou(i.oldData[p]),dim:d.dimension})}),q(jn(o.to),function(d){var p=Pl(r.updatedSeries,d);if(p>=0){var v=r.updatedSeries[p].getData();f.push({data:v,divide:Ou(v),dim:d.dimension})}}),u.length>0&&f.length>0&&C5(u,f,s)}(b,u,s,r)});else{var d=function(o,i){var r=et(),s=et(),u=et();return q(o.oldSeries,function(d,p){var v=o.oldData[p],g=w5(d),m=S5(g);s.set(m,v),we(g)&&q(g,function(y){u.set(y,{data:v,key:m})})}),q(i.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var p=d.getData(),v=w5(d),g=S5(v),m=s.get(g);if(m)r.set(g,{oldSeries:[{divide:Ou(m),data:m}],newSeries:[{divide:Ou(p),data:p}]});else if(we(v)){var y=[];q(v,function(S){var M=s.get(S);M&&y.push({divide:Ou(M),data:M})}),y.length&&r.set(g,{oldSeries:y,newSeries:[{data:p,divide:Ou(p)}]})}else{var b=u.get(v);if(b){var w=r.get(b.key);w||(w={oldSeries:[{data:b.data,divide:Ou(b.data)}],newSeries:[]},r.set(b.key,w)),w.newSeries.push({data:p,divide:Ou(p)})}}}}),r}(u,s);q(d.keys(),function(b){var w=d.get(b);C5(w.oldSeries,w.newSeries,r)})}q(s.updatedSeries,function(b){b[N]&&(b[N]=!1)})}for(var p=i.getSeries(),v=u.oldSeries=[],g=u.oldData=[],m=0;m=200&&_t.status<=299}function Ie(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(ae){var _t=document.createEvent("MouseEvents");_t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(_t)}}var ko=sr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=sr.saveAs||("object"!=typeof window||window!==sr?function(){}:"download"in HTMLAnchorElement.prototype&&!ko?function(_t,ae,xr){var Gn=sr.URL||sr.webkitURL,It=document.createElement("a");It.download=ae=ae||_t.name||"download",It.rel="noopener","string"==typeof _t?(It.href=_t,It.origin!==location.origin?Ui(It.href)?Oe(_t,ae,xr):Ie(It,It.target="_blank"):Ie(It)):(It.href=Gn.createObjectURL(_t),setTimeout(function(){Gn.revokeObjectURL(It.href)},4e4),setTimeout(function(){Ie(It)},0))}:"msSaveOrOpenBlob"in navigator?function(_t,ae,xr){if(ae=ae||_t.name||"download","string"==typeof _t)if(Ui(_t))Oe(_t,ae,xr);else{var Gn=document.createElement("a");Gn.href=_t,Gn.target="_blank",setTimeout(function(){Ie(Gn)})}else navigator.msSaveOrOpenBlob(function(F,_t){return void 0===_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(F.type)?new Blob([String.fromCharCode(65279),F],{type:F.type}):F}(_t,xr),ae)}:function(_t,ae,xr,Gn){if((Gn=Gn||open("","_blank"))&&(Gn.document.title=Gn.document.body.innerText="downloading..."),"string"==typeof _t)return Oe(_t,ae,xr);var It="application/octet-stream"===_t.type,Vu=/constructor/i.test(sr.HTMLElement)||sr.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||It&&Vu||ko)&&"undefined"!=typeof FileReader){var he=new FileReader;he.onloadend=function(){var Ko=he.result;Ko=ue?Ko:Ko.replace(/^data:[^;]*;/,"data:attachment/file;"),Gn?Gn.location.href=Ko:location=Ko,Gn=null},he.readAsDataURL(_t)}else{var ei=sr.URL||sr.webkitURL,tn=ei.createObjectURL(_t);Gn?Gn.location=tn:location.href=tn,Gn=null,setTimeout(function(){ei.revokeObjectURL(tn)},4e4)}});sr.saveAs=W.saveAs=W,Zo.exports=W},45579:function(Zo){var sr=function(Dt){"use strict";var Ie,Oe=Object.prototype,Ui=Oe.hasOwnProperty,ko="function"==typeof Symbol?Symbol:{},W=ko.iterator||"@@iterator",F=ko.asyncIterator||"@@asyncIterator",_t=ko.toStringTag||"@@toStringTag";function ae(nt,Ge,Qe){return Object.defineProperty(nt,Ge,{value:Qe,enumerable:!0,configurable:!0,writable:!0}),nt[Ge]}try{ae({},"")}catch(nt){ae=function(Qe,Be,vn){return Qe[Be]=vn}}function xr(nt,Ge,Qe,Be){var cn=Object.create((Ge&&Ge.prototype instanceof tn?Ge:tn).prototype),tr=new Nl(Be||[]);return cn._invoke=function(nt,Ge,Qe){var Be=It;return function(cn,tr){if(Be===ue)throw new Error("Generator is already running");if(Be===he){if("throw"===cn)throw tr;return Xg()}for(Qe.method=cn,Qe.arg=tr;;){var ti=Qe.delegate;if(ti){var Oi=At(ti,Qe);if(Oi){if(Oi===ei)continue;return Oi}}if("next"===Qe.method)Qe.sent=Qe._sent=Qe.arg;else if("throw"===Qe.method){if(Be===It)throw Be=he,Qe.arg;Qe.dispatchException(Qe.arg)}else"return"===Qe.method&&Qe.abrupt("return",Qe.arg);Be=ue;var fr=Gn(nt,Ge,Qe);if("normal"===fr.type){if(Be=Qe.done?he:Vu,fr.arg===ei)continue;return{value:fr.arg,done:Qe.done}}"throw"===fr.type&&(Be=he,Qe.method="throw",Qe.arg=fr.arg)}}}(nt,Qe,tr),cn}function Gn(nt,Ge,Qe){try{return{type:"normal",arg:nt.call(Ge,Qe)}}catch(Be){return{type:"throw",arg:Be}}}Dt.wrap=xr;var It="suspendedStart",Vu="suspendedYield",ue="executing",he="completed",ei={};function tn(){}function Ko(){}function zc(){}var Yg={};ae(Yg,W,function(){return this});var cr=Object.getPrototypeOf,pd=cr&&cr(cr(Bu([])));pd&&pd!==Oe&&Ui.call(pd,W)&&(Yg=pd);var Fl=zc.prototype=tn.prototype=Object.create(Yg);function pk(nt){["next","throw","return"].forEach(function(Ge){ae(nt,Ge,function(Qe){return this._invoke(Ge,Qe)})})}function vd(nt,Ge){function Qe(cn,tr,ti,Oi){var fr=Gn(nt[cn],nt,tr);if("throw"!==fr.type){var gd=fr.arg,Ze=gd.value;return Ze&&"object"==typeof Ze&&Ui.call(Ze,"__await")?Ge.resolve(Ze.__await).then(function(Fs){Qe("next",Fs,ti,Oi)},function(Fs){Qe("throw",Fs,ti,Oi)}):Ge.resolve(Ze).then(function(Fs){gd.value=Fs,ti(gd)},function(Fs){return Qe("throw",Fs,ti,Oi)})}Oi(fr.arg)}var Be;this._invoke=function(cn,tr){function ti(){return new Ge(function(Oi,fr){Qe(cn,tr,Oi,fr)})}return Be=Be?Be.then(ti,ti):ti()}}function At(nt,Ge){var Qe=nt.iterator[Ge.method];if(Qe===Ie){if(Ge.delegate=null,"throw"===Ge.method){if(nt.iterator.return&&(Ge.method="return",Ge.arg=Ie,At(nt,Ge),"throw"===Ge.method))return ei;Ge.method="throw",Ge.arg=new TypeError("The iterator does not provide a 'throw' method")}return ei}var Be=Gn(Qe,nt.iterator,Ge.arg);if("throw"===Be.type)return Ge.method="throw",Ge.arg=Be.arg,Ge.delegate=null,ei;var vn=Be.arg;return vn?vn.done?(Ge[nt.resultName]=vn.value,Ge.next=nt.nextLoc,"return"!==Ge.method&&(Ge.method="next",Ge.arg=Ie),Ge.delegate=null,ei):vn:(Ge.method="throw",Ge.arg=new TypeError("iterator result is not an object"),Ge.delegate=null,ei)}function $o(nt){var Ge={tryLoc:nt[0]};1 in nt&&(Ge.catchLoc=nt[1]),2 in nt&&(Ge.finallyLoc=nt[2],Ge.afterLoc=nt[3]),this.tryEntries.push(Ge)}function qg(nt){var Ge=nt.completion||{};Ge.type="normal",delete Ge.arg,nt.completion=Ge}function Nl(nt){this.tryEntries=[{tryLoc:"root"}],nt.forEach($o,this),this.reset(!0)}function Bu(nt){if(nt){var Ge=nt[W];if(Ge)return Ge.call(nt);if("function"==typeof nt.next)return nt;if(!isNaN(nt.length)){var Qe=-1,Be=function vn(){for(;++Qe=0;--vn){var cn=this.tryEntries[vn],tr=cn.completion;if("root"===cn.tryLoc)return Be("end");if(cn.tryLoc<=this.prev){var ti=Ui.call(cn,"catchLoc"),Oi=Ui.call(cn,"finallyLoc");if(ti&&Oi){if(this.prev=0;--Be){var vn=this.tryEntries[Be];if(vn.tryLoc<=this.prev&&Ui.call(vn,"finallyLoc")&&this.prev=0;--Qe){var Be=this.tryEntries[Qe];if(Be.finallyLoc===Ge)return this.complete(Be.completion,Be.afterLoc),qg(Be),ei}},catch:function(Ge){for(var Qe=this.tryEntries.length-1;Qe>=0;--Qe){var Be=this.tryEntries[Qe];if(Be.tryLoc===Ge){var vn=Be.completion;if("throw"===vn.type){var cn=vn.arg;qg(Be)}return cn}}throw new Error("illegal catch attempt")},delegateYield:function(Ge,Qe,Be){return this.delegate={iterator:Bu(Ge),resultName:Qe,nextLoc:Be},"next"===this.method&&(this.arg=Ie),ei}},Dt}(Zo.exports);try{regeneratorRuntime=sr}catch(Dt){"object"==typeof globalThis?globalThis.regeneratorRuntime=sr:Function("r","regeneratorRuntime = r")(sr)}},33516:function(Zo,sr,Dt){"use strict";function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Ie(e,a,t){return(Ie="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(l,c,h){var _=function(e,a){for(;!Object.prototype.hasOwnProperty.call(e,a)&&null!==(e=Oe(e)););return e}(l,c);if(_){var C=Object.getOwnPropertyDescriptor(_,c);return C.get?C.get.call(h):C.value}})(e,a,t||e)}function ko(e,a){for(var t=0;te.length)&&(a=e.length);for(var t=0,n=new Array(a);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(k){throw k},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,c=!0,h=!1;return{s:function(){t=t.call(e)},n:function(){var k=t.next();return c=k.done,k},e:function(k){h=!0,_=k},f:function(){try{!c&&null!=t.return&&t.return()}finally{if(h)throw _}}}}function cr(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var h,_,n=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(h=t.next()).done)&&(n.push(h.value),!a||n.length!==a);l=!0);}catch(C){c=!0,_=C}finally{try{!l&&null!=t.return&&t.return()}finally{if(c)throw _}}return n}}(e,a)||ei(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pd(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function At(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $o(e,a,t){return($o=xr()?Reflect.construct:function(l,c,h){var _=[null];_.push.apply(_,c);var k=new(Function.bind.apply(l,_));return h&&_t(k,h.prototype),k}).apply(null,arguments)}function Nl(e){var a="function"==typeof Map?new Map:void 0;return(Nl=function(n){if(null===n||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==a){if(a.has(n))return a.get(n);a.set(n,l)}function l(){return $o(n,arguments,Oe(this).constructor)}return l.prototype=Object.create(n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_t(l,n)})(e)}var Bu=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Xg(e){return null!==e&&"object"==typeof e}function nt(e){return"function"==typeof e}var Qe=function(){function e(a){return Error.call(this),this.message=a?"".concat(a.length," errors occurred during unsubscription:\n").concat(a.map(function(t,n){return"".concat(n+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=a,this}return e.prototype=Object.create(Error.prototype),e}(),Be=function(){var a,e=function(){function a(t){F(this,a),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return W(a,[{key:"unsubscribe",value:function(){var n;if(!this.closed){var l=this._parentOrParents,c=this._ctorUnsubscribe,h=this._unsubscribe,_=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,l instanceof a)l.remove(this);else if(null!==l)for(var C=0;C2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof a?function(n){return n.pipe(Xr(function(l,c){return yt(e(l,c)).pipe(He(function(h,_){return a(l,h,c,_)}))},t))}:("number"==typeof a&&(t=a),function(n){return n.lift(new jP(e,t))})}var jP=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;F(this,e),this.project=a,this.concurrent=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new WP(t,this.project,this.concurrent))}}]),e}(),WP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return F(this,t),(c=a.call(this,n)).project=l,c.concurrent=h,c.hasCompleted=!1,c.buffer=[],c.active=0,c.index=0,c}return W(t,[{key:"_next",value:function(l){this.active0?this._next(l.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(at);function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Xr(Ob,e)}function ni(e,a){return a?_k(e,a):new gn(tt(e))}function ot(){for(var e=Number.POSITIVE_INFINITY,a=null,t=arguments.length,n=new Array(t),l=0;l1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof c&&(e=n.pop()),null===a&&1===n.length&&n[0]instanceof gn?n[0]:Uu(e)(ni(n,a))}function Qo(){return function(a){return a.lift(new Fb(a))}}var Fb=function(){function e(a){F(this,e),this.connectable=a}return W(e,[{key:"call",value:function(t,n){var l=this.connectable;l._refCount++;var c=new Nb(t,l),h=n.subscribe(c);return c.closed||(c.connection=l.connect()),h}}]),e}(),Nb=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._refCount;if(c<=0)this.connection=null;else if(l._refCount=c-1,c>1)this.connection=null;else{var h=this.connection,_=l._connection;this.connection=null,_&&(!h||_===h)&&_.unsubscribe()}}else this.connection=null}}]),t}(Ze),Oa=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).source=n,c.subjectFactory=l,c._refCount=0,c._isComplete=!1,c}return W(t,[{key:"_subscribe",value:function(l){return this.getSubject().subscribe(l)}},{key:"getSubject",value:function(){var l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var l=this._connection;return l||(this._isComplete=!1,(l=this._connection=new Be).add(this.source.subscribe(new YP(this.getSubject(),this))),l.closed&&(this._connection=null,l=Be.EMPTY)),l}},{key:"refCount",value:function(){return Qo()(this)}}]),t}(gn),jc=function(){var e=Oa.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),YP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_error",value:function(l){this._unsubscribe(),Ie(Oe(t.prototype),"_error",this).call(this,l)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Ie(Oe(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._connection;l._refCount=0,l._subject=null,l._connection=null,c&&c.unsubscribe()}}}]),t}(zP);function Bb(){return new qe}function Ae(e){for(var a in e)if(e[a]===Ae)return a;throw Error("Could not find renamed property on target object.")}function Mo(e,a){for(var t in a)a.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=a[t])}function hn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(hn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var a=e.toString();if(null==a)return""+a;var t=a.indexOf("\n");return-1===t?a:a.substring(0,t)}function Ln(e,a){return null==e||""===e?null===a?"":a:null==a||""===a?e:e+" "+a}var XP=Ae({__forward_ref__:Ae});function Sn(e){return e.__forward_ref__=Sn,e.toString=function(){return hn(this())},e}function Et(e){return kH(e)?e():e}function kH(e){return"function"==typeof e&&e.hasOwnProperty(XP)&&e.__forward_ref__===Sn}var xp=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,function(e,a){var t=e?"NG0".concat(e,": "):"";return"".concat(t).concat(a)}(n,l))).code=n,c}return t}(Nl(Error));function nn(e){return"string"==typeof e?e:null==e?"":String(e)}function sa(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():nn(e)}function bk(e,a){var t=a?" in ".concat(a):"";throw new xp("201","No provider for ".concat(sa(e)," found").concat(t))}function Ja(e,a){null==e&&function(e,a,t,n){throw new Error("ASSERTION ERROR: ".concat(e)+(null==n?"":" [Expected=> ".concat(t," ").concat(n," ").concat(a," <=Actual]")))}(a,e,null,"!=")}function We(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yc(e){return KP(e,qc)||KP(e,wk)}function KP(e,a){return e.hasOwnProperty(a)?e[a]:null}function bd(e){return e&&(e.hasOwnProperty(Vs)||e.hasOwnProperty(Xc))?e[Vs]:null}var Cd,qc=Ae({"\u0275prov":Ae}),Vs=Ae({"\u0275inj":Ae}),wk=Ae({ngInjectableDef:Ae}),Xc=Ae({ngInjectorDef:Ae}),yn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function _i(){return Cd}function Ia(e){var a=Cd;return Cd=e,a}function ju(e,a,t){var n=Yc(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&yn.Optional?null:void 0!==a?a:void bk(hn(e),"Injector")}function Zc(e){return{toString:e}.toString()}var $g=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Hs=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Sk="undefined"!=typeof globalThis&&globalThis,$P="undefined"!=typeof window&&window,QP="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kk="undefined"!=typeof global&&global,Kn=Sk||kk||$P||QP,Tp={},nr=[],Dp=Ae({"\u0275cmp":Ae}),Mk=Ae({"\u0275dir":Ae}),Qg=Ae({"\u0275pipe":Ae}),Gb=Ae({"\u0275mod":Ae}),eO=Ae({"\u0275loc":Ae}),zs=Ae({"\u0275fac":Ae}),ca=Ae({__NG_ELEMENT_ID__:Ae}),TH=0;function ke(e){return Zc(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===$g.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||nr,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Hs.Emulated,id:"c",styles:e.styles||nr,_:null,setInput:null,schemas:e.schemas||null,tView:null},l=e.directives,c=e.features,h=e.pipes;return n.id+=TH++,n.inputs=rO(e.inputs,t),n.outputs=rO(e.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(Vl)}:null,n.pipeDefs=h?function(){return("function"==typeof h?h():h).map(xk)}:null,n})}function Vl(e){return Ra(e)||function(e){return e[Mk]||null}(e)}function xk(e){return function(e){return e[Qg]||null}(e)}var DH={};function bt(e){return Zc(function(){var a={type:e.type,bootstrap:e.bootstrap||nr,declarations:e.declarations||nr,imports:e.imports||nr,exports:e.exports||nr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(DH[e.id]=e.type),a})}function rO(e,a){if(null==e)return Tp;var t={};for(var n in e)if(e.hasOwnProperty(n)){var l=e[n],c=l;Array.isArray(l)&&(c=l[1],l=l[0]),t[l]=n,a&&(a[l]=c)}return t}var ve=ke;function Gi(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ra(e){return e[Dp]||null}function fa(e,a){var t=e[Gb]||null;if(!t&&!0===a)throw new Error("Type ".concat(hn(e)," does not have '\u0275mod' property."));return t}function Hl(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gs(e){return Array.isArray(e)&&!0===e[1]}function Td(e){return 0!=(8&e.flags)}function rm(e){return 2==(2&e.flags)}function to(e){return 1==(1&e.flags)}function js(e){return null!==e.template}function im(e){return 0!=(512&e[2])}function Ad(e,a){return e.hasOwnProperty(zs)?e[zs]:null}var Xb=function(){function e(a,t,n){F(this,e),this.previousValue=a,this.currentValue=t,this.firstChange=n}return W(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function an(){return fO}function fO(e){return e.type.prototype.ngOnChanges&&(e.setInput=RH),dO}function dO(){var e=Ak(this),a=null==e?void 0:e.current;if(a){var t=e.previous;if(t===Tp)e.previous=a;else for(var n in a)t[n]=a[n];e.current=null,this.ngOnChanges(a)}}function RH(e,a,t,n){var l=Ak(e)||function(e,a){return e[om]=a}(e,{previous:Tp,current:null}),c=l.current||(l.current={}),h=l.previous,_=this.declaredInputs[t],C=h[_];c[_]=new Xb(C&&C.currentValue,a,h===Tp),e[n]=a}an.ngInherit=!0;var om="__ngSimpleChanges__";function Ak(e){return e[om]||null}var hO="http://www.w3.org/2000/svg",Ed=void 0;function Pd(){return void 0!==Ed?Ed:"undefined"!=typeof document?document:void 0}function Kr(e){return!!e.listen}var pO={createRenderer:function(a,t){return Pd()}};function di(e){for(;Array.isArray(e);)e=e[0];return e}function sm(e,a){return di(a[e])}function Ao(e,a){return di(a[e.index])}function Rk(e,a){return e.data[a]}function Jc(e,a){return e[a]}function Eo(e,a){var t=a[e];return Hl(t)?t:t[0]}function Lk(e){return 4==(4&e[2])}function Fk(e){return 128==(128&e[2])}function Ul(e,a){return null==a?null:e[a]}function gO(e){e[18]=0}function Nk(e,a){e[5]+=a;for(var t=e,n=e[3];null!==n&&(1===a&&1===t[5]||-1===a&&0===t[5]);)n[5]+=a,t=n,n=n[3]}var Lt={lFrame:nf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vk(){return Lt.bindingsEnabled}function Re(){return Lt.lFrame.lView}function En(){return Lt.lFrame.tView}function pe(e){return Lt.lFrame.contextLView=e,e[8]}function bi(){for(var e=no();null!==e&&64===e.type;)e=e.parent;return e}function no(){return Lt.lFrame.currentTNode}function Po(e,a){var t=Lt.lFrame;t.currentTNode=e,t.isParent=a}function Jo(){return Lt.lFrame.isParent}function Oo(){Lt.lFrame.isParent=!1}function Gl(){return Lt.isInCheckNoChangesMode}function lm(e){Lt.isInCheckNoChangesMode=e}function ha(){var e=Lt.lFrame,a=e.bindingRootIndex;return-1===a&&(a=e.bindingRootIndex=e.tView.bindingStartIndex),a}function qs(){return Lt.lFrame.bindingIndex}function es(){return Lt.lFrame.bindingIndex++}function ro(e){var a=Lt.lFrame,t=a.bindingIndex;return a.bindingIndex=a.bindingIndex+e,t}function HH(e,a){var t=Lt.lFrame;t.bindingIndex=t.bindingRootIndex=e,Xs(a)}function Xs(e){Lt.lFrame.currentDirectiveIndex=e}function Hk(e){var a=Lt.lFrame.currentDirectiveIndex;return-1===a?null:e[a]}function Tt(){return Lt.lFrame.currentQueryIndex}function Rp(e){Lt.lFrame.currentQueryIndex=e}function Jb(e){var a=e[1];return 2===a.type?a.declTNode:1===a.type?e[6]:null}function ef(e,a,t){if(t&yn.SkipSelf){for(var n=a,l=e;!(null!==(n=n.parent)||t&yn.Host||null===(n=Jb(l))||(l=l[15],10&n.type)););if(null===n)return!1;a=n,e=l}var c=Lt.lFrame=tf();return c.currentTNode=a,c.lView=e,!0}function jl(e){var a=tf(),t=e[1];Lt.lFrame=a,a.currentTNode=t.firstChild,a.lView=e,a.tView=t,a.contextLView=e,a.bindingIndex=t.bindingStartIndex,a.inI18n=!1}function tf(){var e=Lt.lFrame,a=null===e?null:e.child;return null===a?nf(e):a}function nf(e){var a={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=a),a}function Lp(){var e=Lt.lFrame;return Lt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Fp=Lp;function e0(){var e=Lp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ft(e){return(Lt.lFrame.contextLView=function(e,a){for(;e>0;)a=a[15],e--;return a}(e,Lt.lFrame.contextLView))[8]}function ri(){return Lt.lFrame.selectedIndex}function Zs(e){Lt.lFrame.selectedIndex=e}function zr(){var e=Lt.lFrame;return Rk(e.tView,e.selectedIndex)}function pa(){Lt.lFrame.currentNamespace=hO}function t0(){Lt.lFrame.currentNamespace=null}function rf(e,a){for(var t=a.directiveStart,n=a.directiveEnd;t=n)break}else a[C]<0&&(e[18]+=65536),(_>11>16&&(3&e[2])===a){e[2]+=2048;try{c.call(_)}finally{}}}else try{c.call(_)}finally{}}var Rd=function e(a,t,n){F(this,e),this.factory=a,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function dm(e,a,t){for(var n=Kr(e),l=0;la){h=c-1;break}}}for(;c>16}(e),n=a;t>0;)n=n[15],t--;return n}var Wk=!0;function Hp(e){var a=Wk;return Wk=e,a}var xO=0;function zp(e,a){var t=Yk(e,a);if(-1!==t)return t;var n=a[1];n.firstCreatePass&&(e.injectorIndex=a.length,a0(n.data,e),a0(a,null),a0(n.blueprint,null));var l=bn(e,a),c=e.injectorIndex;if(Vp(l))for(var h=ts(l),_=Bp(l,a),C=_[1].data,k=0;k<8;k++)a[c+k]=_[h+k]|C[h+k];return a[c+8]=l,c}function a0(e,a){e.push(0,0,0,0,0,0,0,0,a)}function Yk(e,a){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===a[e.injectorIndex+8]?-1:e.injectorIndex}function bn(e,a){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,l=a;null!==l;){var c=l[1],h=c.type;if(null===(n=2===h?c.declTNode:1===h?l[6]:null))return-1;if(t++,l=l[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function Fe(e,a,t){!function(e,a,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(ca)&&(n=t[ca]),null==n&&(n=t[ca]=xO++);var l=255&n;a.data[e+(l>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:yn.Default,l=arguments.length>4?arguments[4]:void 0;if(null!==e){var c=hm(t);if("function"==typeof c){if(!ef(a,e,n))return n&yn.Host?io(l,t,n):ns(a,t,n,l);try{var h=c(n);if(null!=h||n&yn.Optional)return h;bk(t)}finally{Fp()}}else if("number"==typeof c){var _=null,C=Yk(e,a),k=-1,D=n&yn.Host?a[16][6]:null;for((-1===C||n&yn.SkipSelf)&&(-1!==(k=-1===C?bn(e,a):a[C+8])&&ao(n,!1)?(_=a[1],C=ts(k),a=Bp(k,a)):C=-1);-1!==C;){var I=a[1];if(DO(c,C,I.data)){var L=WH(C,a,t,_,n,D);if(L!==o0)return L}-1!==(k=a[C+8])&&ao(n,a[1].data[C+8]===D)&&DO(c,C,a)?(_=I,C=ts(k),a=Bp(k,a)):C=-1}}}return ns(a,t,n,l)}var o0={};function TO(){return new Fd(bi(),Re())}function WH(e,a,t,n,l,c){var h=a[1],_=h.data[e+8],D=Up(_,h,t,null==n?rm(_)&&Wk:n!=h&&0!=(3&_.type),l&yn.Host&&c===_);return null!==D?Ld(a,h,D,_):o0}function Up(e,a,t,n,l){for(var c=e.providerIndexes,h=a.data,_=1048575&c,C=e.directiveStart,D=c>>20,L=l?_+D:e.directiveEnd,G=n?_:_+D;G=C&&Y.type===t)return G}if(l){var Q=h[C];if(Q&&js(Q)&&Q.type===t)return C}return null}function Ld(e,a,t,n){var l=e[t],c=a.data;if(function(e){return e instanceof Rd}(l)){var h=l;h.resolving&&function(e,a){throw new xp("200","Circular dependency in DI detected for ".concat(e).concat(""))}(sa(c[t]));var _=Hp(h.canSeeViewProviders);h.resolving=!0;var C=h.injectImpl?Ia(h.injectImpl):null;ef(e,n,yn.Default);try{l=e[t]=h.factory(void 0,c,e,n),a.firstCreatePass&&t>=n.directiveStart&&function(e,a,t){var n=a.type.prototype,c=n.ngOnInit,h=n.ngDoCheck;if(n.ngOnChanges){var _=fO(a);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,_),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,_)}c&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,c),h&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,h),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,h))}(t,c[t],a)}finally{null!==C&&Ia(C),Hp(_),h.resolving=!1,Fp()}}return l}function hm(e){if("string"==typeof e)return e.charCodeAt(0)||0;var a=e.hasOwnProperty(ca)?e[ca]:void 0;return"number"==typeof a?a>=0?255&a:TO:a}function DO(e,a,t){return!!(t[a+(e>>5)]&1<=e.length?e.push(t):e.splice(a,0,t)}function Vd(e,a){return a>=e.length-1?e.pop():e.splice(a,1)[0]}function is(e,a){for(var t=[],n=0;n=0?e[1|n]=t:function(e,a,t,n){var l=e.length;if(l==a)e.push(t,n);else if(1===l)e.push(n,e[0]),e[0]=t;else{for(l--,e.push(e[l-1],e[l]);l>a;)e[l]=e[l-2],l--;e[a]=t,e[a+1]=n}}(e,n=~n,a,t),n}function vm(e,a){var t=Bd(e,a);if(t>=0)return e[1|t]}function Bd(e,a){return function(e,a,t){for(var n=0,l=e.length>>t;l!==n;){var c=n+(l-n>>1),h=e[c<a?l=c:n=c+1}return~(l<1&&void 0!==arguments[1]?arguments[1]:yn.Default;if(void 0===zd)throw new Error("inject() must be called from an injection context");return null===zd?ju(e,void 0,a):zd.get(e,a&yn.Optional?null:void 0,a)}function ce(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn.Default;return(_i()||g0)(Et(e),a)}var tM=ce;function uf(e){for(var a=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var l=hn(a);if(Array.isArray(a))l=a.map(hn).join(" -> ");else if("object"==typeof a){var c=[];for(var h in a)if(a.hasOwnProperty(h)){var _=a[h];c.push(h+":"+("string"==typeof _?JSON.stringify(_):hn(_)))}l="{".concat(c.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(l,"]: ").concat(e.replace(nz,"\n "))}("\n"+e.message,l,t,n),e.ngTokenPath=l,e[qu]=null,e}var jd,pr,jp=_m(sf("Inject",function(a){return{token:a}}),-1),oi=_m(sf("Optional"),8),Fo=_m(sf("SkipSelf"),4);function ji(e){var a;return(null===(a=function(){if(void 0===jd&&(jd=null,Kn.trustedTypes))try{jd=Kn.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return jd}())||void 0===a?void 0:a.createHTML(e))||e}function C0(e){var a;return(null===(a=function(){if(void 0===pr&&(pr=null,Kn.trustedTypes))try{pr=Kn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return pr}())||void 0===a?void 0:a.createHTML(e))||e}var ff=function(){function e(a){F(this,e),this.changingThisBreaksApplicationSecurity=a}return W(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),cz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(ff),Fi=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(ff),oM=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(ff),fz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(ff),LO=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(ff);function Wi(e){return e instanceof ff?e.changingThisBreaksApplicationSecurity:e}function Ks(e,a){var t=FO(e);if(null!=t&&t!==a){if("ResourceURL"===t&&"URL"===a)return!0;throw new Error("Required a safe ".concat(a,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===a}function FO(e){return e instanceof ff&&e.getTypeName()||null}var w0=function(){function e(a){F(this,e),this.inertDocumentHelper=a}return W(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(ji(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(l){return null}}}]),e}(),S0=function(){function e(a){if(F(this,e),this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return W(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=ji(t),n;var l=this.inertDocument.createElement("body");return l.innerHTML=ji(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(l),l}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,l=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();Yd.hasOwnProperty(n)&&!df.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(M0(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),cM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,km=/([^\#-~ |!])/g;function M0(e){return e.replace(/&/g,"&").replace(cM,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(km,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}function HO(e,a){var t=null;try{Mm=Mm||function(e){var a=new S0(e);return function(){try{return!!(new window.DOMParser).parseFromString(ji(""),"text/html")}catch(e){return!1}}()?new w0(a):a}(e);var n=a?String(a):"";t=Mm.getInertBodyElement(n);var l=5,c=n;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,n=c,c=t.innerHTML,t=Mm.getInertBodyElement(n)}while(n!==c);return ji((new vf).sanitizeChildren(Qs(t)||t))}finally{if(t)for(var C=Qs(t)||t;C.firstChild;)C.removeChild(C.firstChild)}}function Qs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ss=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Si(e){var a=ga();return a?C0(a.sanitize(ss.HTML,e)||""):Ks(e,"HTML")?C0(Wi(e)):HO(Pd(),nn(e))}function Gt(e){var a=ga();return a?a.sanitize(ss.URL,e)||"":Ks(e,"URL")?Wi(e):Sm(nn(e))}function ga(){var e=Re();return e&&e[12]}var GO="__ngContext__";function Yi(e,a){e[GO]=a}function dM(e){var a=function(e){return e[GO]||null}(e);return a?Array.isArray(a)?a:a.lView:null}function Dm(e){return e.ngOriginalError}function Cz(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;n0&&(e[t-1][4]=n[4]);var c=Vd(e,10+a);!function(e,a){Jp(e,a,a[11],2,null,null),a[0]=null,a[6]=null}(n[1],n);var h=c[19];null!==h&&h.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function rI(e,a){if(!(256&a[2])){var t=a[11];Kr(t)&&t.destroyNode&&Jp(e,a,t,3,null,null),function(e){var a=e[13];if(!a)return yM(e[1],e);for(;a;){var t=null;if(Hl(a))t=a[13];else{var n=a[10];n&&(t=n)}if(!t){for(;a&&!a[4]&&a!==e;)Hl(a)&&yM(a[1],a),a=a[3];null===a&&(a=e),Hl(a)&&yM(a[1],a),t=a&&a[4]}a=t}}(a)}}function yM(e,a){if(!(256&a[2])){a[2]&=-129,a[2]|=256,function(e,a){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[l=k]():n[l=-k].unsubscribe(),c+=2}else{var D=n[l=t[c+1]];t[c].call(D)}if(null!==n){for(var I=l+1;Ic?"":l[I+1].toLowerCase();var G=8&n?L:null;if(G&&-1!==th(G,k,0)||2&n&&k!==L){if(fs(n))return!1;h=!0}}}}else{if(!h&&!fs(n)&&!fs(C))return!1;if(h&&fs(C))continue;h=!1,n=C|1&n}}return fs(n)||h}function fs(e){return 0==(1&e)}function B0(e,a,t,n){if(null===a)return-1;var l=0;if(n||!t){for(var c=!1;l-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+_+'"':"")+"]"}else 8&n?l+="."+h:4&n&&(l+=" "+h);else""!==l&&!fs(h)&&(a+=AM(c,l),l=""),n=h,c=c||!fs(n);t++}return""!==l&&(a+=AM(c,l)),a}var jt={};function H(e){z0(En(),Re(),ri()+e,Gl())}function z0(e,a,t,n){if(!n)if(3==(3&a[2])){var c=e.preOrderCheckHooks;null!==c&&Yu(a,c,t)}else{var h=e.preOrderHooks;null!==h&&Id(a,h,0,t)}Zs(t)}function Mi(e,a){return e<<17|a<<2}function lr(e){return e>>17&32767}function EM(e){return 2|e}function Qu(e){return(131068&e)>>2}function G0(e,a){return-131069&e|a<<2}function j0(e){return 1|e}function K0(e,a){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&z0(e,a,20,Gl()),t(n,l)}finally{Zs(c)}}function ah(e,a,t){if(Td(a))for(var l=a.directiveEnd,c=a.directiveStart;c2&&void 0!==arguments[2]?arguments[2]:Ao,n=a.localNames;if(null!==n)for(var l=a.index+1,c=0;c0;){var t=e[--a];if("number"==typeof t&&t<0)return t}return 0})(_)!=C&&_.push(C),_.push(n,l,h)}}function wf(e,a){null!==e.hostBindings&&e.hostBindings(1,a)}function Ym(e,a){a.flags|=2,(e.components||(e.components=[])).push(a.index)}function uh(e,a,t){if(t){if(a.exportAs)for(var n=0;n0&&WM(t)}}function WM(e){for(var a=Jd(e);null!==a;a=Kp(a))for(var t=10;t0&&WM(n)}var h=e[1].components;if(null!==h)for(var _=0;_0&&WM(C)}}function ov(e,a){var t=Eo(a,e),n=t[1];(function(e,a){for(var t=a.length;t1&&void 0!==arguments[1]?arguments[1]:mm;if(n===mm){var l=new Error("NullInjectorError: No provider for ".concat(hn(t),"!"));throw l.name="NullInjectorError",l}return n}}]),e}(),qm=new Ee("Set Injector scope."),Xm={},DI={},ZM=void 0;function aC(){return void 0===ZM&&(ZM=new iC),ZM}function AI(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new EI(e,t,a||aC(),n)}var EI=function(){function e(a,t,n){var l=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;F(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var h=[];t&&va(t,function(C){return l.processProvider(C,a,t)}),va([a],function(C){return l.processInjectorType(C,[],h)}),this.records.set(uv,fh(void 0,this));var _=this.records.get(qm);this.scope=null!=_?_.value:null,this.source=c||("object"==typeof a?null:hn(a))}return W(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;this.assertNotDestroyed();var c=v0(this),h=Ia(void 0);try{if(!(l&yn.SkipSelf)){var _=this.records.get(t);if(void 0===_){var C=qz(t)&&Yc(t);_=C&&this.injectableDefInScope(C)?fh($M(t),Xm):null,this.records.set(t,_)}if(null!=_)return this.hydrate(t,_)}var k=l&yn.Self?aC():this.parent;return k.get(t,n=l&yn.Optional&&n===mm?null:n)}catch(I){if("NullInjectorError"===I.name){var D=I[qu]=I[qu]||[];if(D.unshift(hn(t)),c)throw I;return az(I,t,"R3InjectorError",this.source)}throw I}finally{Ia(h),v0(c)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(l,c){return t.push(hn(c))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,n,l){var c=this;if(!(t=Et(t)))return!1;var h=bd(t),_=null==h&&t.ngModule||void 0,C=void 0===_?t:_,I=-1!==l.indexOf(C);if(void 0!==_&&(h=bd(_)),null==h)return!1;if(null!=h.imports&&!I){var L;l.push(C);try{va(h.imports,function(se){c.processInjectorType(se,n,l)&&(void 0===L&&(L=[]),L.push(se))})}finally{}if(void 0!==L)for(var G=function(be){var Ce=L[be],je=Ce.ngModule,$e=Ce.providers;va($e,function(kt){return c.processProvider(kt,je,$e||nr)})},Y=0;Y0){var t=is(a,"?");throw new Error("Can't resolve all parameters for ".concat(hn(e),": (").concat(t.join(", "),")."))}var n=function(e){var a=e&&(e[qc]||e[wk]);if(a){var t=function(e){if(e.hasOwnProperty("name"))return e.name;var a=(""+e).match(/^function\s*([^\s(]+)/);return null===a?"":a[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),a}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function QM(e,a,t){var n=void 0;if(dh(e)){var l=Et(e);return Ad(l)||$M(l)}if(PI(e))n=function(){return Et(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,At(uf(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))n=function(){return ce(Et(e.useExisting))};else{var c=Et(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ad(c)||$M(c);n=function(){return $o(c,At(uf(e.deps)))}}return n}function fh(e,a){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:a,multi:t?[]:void 0}}function PI(e){return null!==e&&"object"==typeof e&&Jk in e}function dh(e){return"function"==typeof e}function qz(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ee}var JM=function(e,a,t){return function(e){var l=AI(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return l._resolveInjectorDefTypes(),l}({name:t},a,e,t)},kn=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"create",value:function(n,l){return Array.isArray(n)?JM(n,l,""):JM(n.providers,n.parent,n.name||"")}}]),a}();return e.THROW_IF_NOT_FOUND=mm,e.NULL=new iC,e.\u0275prov=We({token:e,providedIn:"any",factory:function(){return ce(uv)}}),e.__NG_ELEMENT_ID__=-1,e}();function l4(e,a){rf(dM(e)[1],bi())}function Pe(e){for(var a=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];a;){var l=void 0;if(js(e))l=a.\u0275cmp||a.\u0275dir;else{if(a.\u0275cmp)throw new Error("Directives cannot inherit Components");l=a.\u0275dir}if(l){if(t){n.push(l);var c=e;c.inputs=cC(e.inputs),c.declaredInputs=cC(e.declaredInputs),c.outputs=cC(e.outputs);var h=l.hostBindings;h&&gh(e,h);var _=l.viewQuery,C=l.contentQueries;if(_&&GI(e,_),C&&vh(e,C),Mo(e.inputs,l.inputs),Mo(e.declaredInputs,l.declaredInputs),Mo(e.outputs,l.outputs),js(l)&&l.data.animation){var k=e.data;k.animation=(k.animation||[]).concat(l.data.animation)}}var D=l.features;if(D)for(var I=0;I=0;n--){var l=e[n];l.hostVars=a+=l.hostVars,l.hostAttrs=ct(l.hostAttrs,t=ct(t,l.hostAttrs))}}(n)}function cC(e){return e===Tp?{}:e===nr?[]:e}function GI(e,a){var t=e.viewQuery;e.viewQuery=t?function(n,l){a(n,l),t(n,l)}:a}function vh(e,a){var t=e.contentQueries;e.contentQueries=t?function(n,l,c){a(n,l,c),t(n,l,c)}:a}function gh(e,a){var t=e.hostBindings;e.hostBindings=t?function(n,l){a(n,l),t(n,l)}:a}var Qm=null;function _h(){if(!Qm){var e=Kn.Symbol;if(e&&e.iterator)Qm=e.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:yn.Default,t=Re();if(null===t)return ce(e,a);var n=bi();return qk(n,t,Et(e),a)}function z(e,a,t){var n=Re();return Vi(n,es(),a)&&Na(En(),zr(),n,e,a,n[11],t,!1),z}function vx(e,a,t,n,l){var h=l?"class":"style";TI(e,t,a.inputs[h],h,n)}function A(e,a,t,n){var l=Re(),c=En(),h=20+e,_=l[11],C=l[h]=O0(_,a,Lt.lFrame.currentNamespace),k=c.firstCreatePass?function(e,a,t,n,l,c,h){var _=a.consts,k=nv(a,e,2,l,Ul(_,c));return Wm(a,t,k,Ul(_,h)),null!==k.attrs&&lv(k,k.attrs,!1),null!==k.mergedAttrs&&lv(k,k.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,k),k}(h,c,l,0,a,t,n):c.data[h];Po(k,!0);var D=k.mergedAttrs;null!==D&&dm(_,C,D);var I=k.classes;null!==I&&ki(_,C,I);var L=k.styles;null!==L&&sI(_,C,L),64!=(64&k.flags)&&Qp(c,l,C,k),0===Lt.lFrame.elementDepthCount&&Yi(C,l),Lt.lFrame.elementDepthCount++,to(k)&&(rv(c,l,k),ah(c,k,l)),null!==n&&oh(l,k)}function E(){var e=bi();Jo()?Oo():Po(e=e.parent,!1);var a=e;Lt.lFrame.elementDepthCount--;var t=En();t.firstCreatePass&&(rf(t,e),Td(e)&&t.queries.elementEnd(e)),null!=a.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(a)&&vx(t,a,Re(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(a)&&vx(t,a,Re(),a.stylesWithoutHost,!1)}function me(e,a,t,n){A(e,a,t,n),E()}function vt(e,a,t){var n=Re(),l=En(),c=e+20,h=l.firstCreatePass?function(e,a,t,n,l){var c=a.consts,h=Ul(c,n),_=nv(a,e,8,"ng-container",h);return null!==h&&lv(_,h,!0),Wm(a,t,_,Ul(c,l)),null!==a.queries&&a.queries.elementStart(a,_),_}(c,l,n,a,t):l.data[c];Po(h,!0);var _=n[c]=n[11].createComment("");Qp(l,n,_,h),Yi(_,n),to(h)&&(rv(l,n,h),ah(l,h,n)),null!=t&&oh(n,h)}function xn(){var e=bi(),a=En();Jo()?Oo():Po(e=e.parent,!1),a.firstCreatePass&&(rf(a,e),Td(e)&&a.queries.elementEnd(e))}function un(e,a,t){vt(e,a,t),xn()}function De(){return Re()}function vv(e){return!!e&&"function"==typeof e.then}function dR(e){return!!e&&"function"==typeof e.subscribe}var gv=dR;function ne(e,a,t,n){var l=Re(),c=En(),h=bi();return hR(c,l,l[11],h,e,a,!!t,n),ne}function mv(e,a){var t=bi(),n=Re(),l=En();return hR(l,n,Ni(Hk(l.data),t,n),t,e,a,!1),mv}function hR(e,a,t,n,l,c,h,_){var C=to(n),D=e.firstCreatePass&&ch(e),I=a[8],L=tl(a),G=!0;if(3&n.type||_){var Y=Ao(n,a),Q=_?_(Y):Y,ie=L.length,fe=_?function(Nu){return _(di(Nu[n.index]))}:n.index;if(Kr(t)){var se=null;if(!_&&C&&(se=function(e,a,t,n){var l=e.cleanup;if(null!=l)for(var c=0;cC?_[C]:null}"string"==typeof h&&(c+=2)}return null}(e,a,l,n.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=c,se.__ngLastListenerFn__=c,G=!1;else{c=Vn(n,a,I,c,!1);var Ce=t.listen(Q,l,c);L.push(c,Ce),D&&D.push(l,fe,ie,ie+1)}}else c=Vn(n,a,I,c,!0),Q.addEventListener(l,c,h),L.push(c),D&&D.push(l,fe,ie,h)}else c=Vn(n,a,I,c,!1);var $e,je=n.outputs;if(G&&null!==je&&($e=je[l])){var kt=$e.length;if(kt)for(var Dn=0;Dn0&&void 0!==arguments[0]?arguments[0]:1;return Ft(e)}function vR(e,a){for(var t=null,n=function(e){var a=e.attrs;if(null!=a){var t=a.indexOf(5);if(0==(1&t))return a[t+1]}return null}(e),l=0;l1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Re(),l=En(),c=nv(l,20+e,16,null,t||null);null===c.projection&&(c.projection=a),Oo(),64!=(64&c.flags)&&Ez(l,n,c)}function il(e,a,t){return mx(e,"",a,"",t),il}function mx(e,a,t,n,l){var c=Re(),h=su(c,a,t,n);return h!==jt&&Na(En(),zr(),c,e,h,c[11],l,!1),mx}function i_(e,a,t,n,l){for(var c=e[t+1],h=null===a,_=n?lr(c):Qu(c),C=!1;0!==_&&(!1===C||h);){var D=e[_+1];vC(e[_],a)&&(C=!0,e[_+1]=n?j0(D):EM(D)),_=n?lr(D):Qu(D)}C&&(e[t+1]=n?EM(c):j0(c))}function vC(e,a){return null===e||null==a||(Array.isArray(e)?e[1]:e)===a||!(!Array.isArray(e)||"string"!=typeof a)&&Bd(e,a)>=0}var xi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bR(e){return e.substring(xi.key,xi.keyEnd)}function CR(e,a){var t=xi.textEnd;return t===a?-1:(a=xi.keyEnd=function(e,a,t){for(;a32;)a++;return a}(e,xi.key=a,t),yv(e,a,t))}function yv(e,a,t){for(;a=0;t=CR(a,t))Lo(e,bR(a),!0)}function uo(e,a,t,n){var l=Re(),c=En(),h=ro(2);c.firstUpdatePass&&xR(c,e,h,n),a!==jt&&Vi(l,h,a)&&xh(c,c.data[ri()],l,l[11],e,l[h+1]=function(e,a){return null==e||("string"==typeof a?e+=a:"object"==typeof e&&(e=hn(Wi(e)))),e}(a,t),n,h)}function Mx(e,a){return a>=e.expandoStartIndex}function xR(e,a,t,n){var l=e.data;if(null===l[t+1]){var c=l[ri()],h=Mx(e,t);Tx(c,n)&&null===a&&!h&&(a=!1),a=function(e,a,t,n){var l=Hk(e),c=n?a.residualClasses:a.residualStyles;if(null===l)0===(n?a.classBindings:a.styleBindings)&&(t=bv(t=kh(null,e,a,t,n),a.attrs,n),c=null);else{var _=a.directiveStylingLast;if(-1===_||e[_]!==l)if(t=kh(l,e,a,t,n),null===c){var k=function(e,a,t){var n=t?a.classBindings:a.styleBindings;if(0!==Qu(n))return e[lr(n)]}(e,a,n);void 0!==k&&Array.isArray(k)&&function(e,a,t,n){e[lr(t?a.classBindings:a.styleBindings)]=n}(e,a,n,k=bv(k=kh(null,e,a,k[1],n),a.attrs,n))}else c=function(e,a,t){for(var n=void 0,l=a.directiveEnd,c=1+a.directiveStylingLast;c0)&&(k=!0):D=t,l)if(0!==C){var G=lr(e[_+1]);e[n+1]=Mi(G,_),0!==G&&(e[G+1]=G0(e[G+1],n)),e[_+1]=function(e,a){return 131071&e|a<<17}(e[_+1],n)}else e[n+1]=Mi(_,0),0!==_&&(e[_+1]=G0(e[_+1],n)),_=n;else e[n+1]=Mi(C,0),0===_?_=n:e[C+1]=G0(e[C+1],n),C=n;k&&(e[n+1]=EM(e[n+1])),i_(e,D,n,!0),i_(e,D,n,!1),function(e,a,t,n,l){var c=l?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof a&&Bd(c,a)>=0&&(t[n+1]=j0(t[n+1]))}(a,D,e,n,c),h=Mi(_,C),c?a.classBindings=h:a.styleBindings=h}(l,c,a,t,h,n)}}function kh(e,a,t,n,l){var c=null,h=t.directiveEnd,_=t.directiveStylingLast;for(-1===_?_=t.directiveStart:_++;_0;){var C=e[l],k=Array.isArray(C),D=k?C[1]:C,I=null===D,L=t[l+1];L===jt&&(L=I?nr:void 0);var G=I?vm(L,n):D===n?L:void 0;if(k&&!gC(G)&&(G=vm(C,n)),gC(G)&&(_=G,h))return _;var Y=e[l+1];l=h?lr(Y):Qu(Y)}if(null!==a){var Q=c?a.residualClasses:a.residualStyles;null!=Q&&(_=vm(Q,n))}return _}function gC(e){return void 0!==e}function Tx(e,a){return 0!=(e.flags&(a?16:32))}function K(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Re(),n=En(),l=e+20,c=n.firstCreatePass?nv(n,l,1,a,null):n.data[l],h=t[l]=P0(t[11],a);Qp(n,t,h,c),Po(c,!1)}function On(e){return Ve("",e,""),On}function Ve(e,a,t){var n=Re(),l=su(n,e,a,t);return l!==jt&&au(n,ri(),l),Ve}function Cv(e,a,t,n,l){var c=Re(),h=function(e,a,t,n,l,c){var _=zo(e,qs(),t,l);return ro(2),_?a+nn(t)+n+nn(l)+c:jt}(c,e,a,t,n,l);return h!==jt&&au(c,ri(),h),Cv}function Ex(e,a,t){!function(e,a,t,n){var l=En(),c=ro(2);l.firstUpdatePass&&xR(l,null,c,n);var h=Re();if(t!==jt&&Vi(h,c,t)){var _=l.data[ri()];if(Tx(_,n)&&!Mx(l,c)){var k=n?_.classesWithoutHost:_.stylesWithoutHost;null!==k&&(t=Ln(k,t||"")),vx(l,_,h,t,n)}else!function(e,a,t,n,l,c,h,_){l===jt&&(l=nr);for(var C=0,k=0,D=0>20;if(dh(e)||!e.multi){var Y=new Rd(k,l,N),Q=Qx(C,a,l?I:I+G,L);-1===Q?(Fe(zp(D,_),h,C),IC(h,e,a.length),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Y),_.push(Y)):(t[Q]=Y,_[Q]=Y)}else{var ie=Qx(C,a,I+G,L),fe=Qx(C,a,I,I+G),be=fe>=0&&t[fe];if(l&&!be||!l&&!(ie>=0&&t[ie])){Fe(zp(D,_),h,C);var Ce=function(e,a,t,n,l){var c=new Rd(e,t,N);return c.multi=[],c.index=a,c.componentProviders=0,$x(c,l,n&&!t),c}(l?g8:n2,t.length,l,n,k);!l&&be&&(t[fe].providerFactory=Ce),IC(h,e,a.length,0),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Ce),_.push(Ce)}else IC(h,e,ie>-1?ie:fe,$x(t[l?fe:ie],k,!l&&n));!l&&n&&be&&t[fe].componentProviders++}}}function IC(e,a,t,n){var l=dh(a);if(l||function(e){return!!e.useClass}(a)){var h=(a.useClass||a).prototype.ngOnDestroy;if(h){var _=e.destroyHooks||(e.destroyHooks=[]);if(!l&&a.multi){var C=_.indexOf(t);-1===C?_.push(t,[n,h]):_[C+1].push(n,h)}else _.push(t,h)}}}function $x(e,a,t){return t&&e.componentProviders++,e.multi.push(a)-1}function Qx(e,a,t,n){for(var l=t;l1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,l){return t2(n,l?l(e):e,a)}}}var a2=function e(){F(this,e)},eT=function e(){F(this,e)},tT=function(){function e(){F(this,e)}return W(e,[{key:"resolveComponentFactory",value:function(t){throw function(e){var a=Error("No component factory found for ".concat(hn(e),". Did you add it to @NgModule.entryComponents?"));return a.ngComponent=e,a}(t)}}]),e}(),Ki=function(){var e=function a(){F(this,a)};return e.NULL=new tT,e}();function __(){}function lu(e,a){return new Ue(Ao(e,a))}var y8=function(){return lu(bi(),Re())},Ue=function(){var e=function a(t){F(this,a),this.nativeElement=t};return e.__NG_ELEMENT_ID__=y8,e}();function rT(e){return e instanceof Ue?e.nativeElement:e}var Ff=function e(){F(this,e)},fl=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=function(){return FC()},e}(),FC=function(){var e=Re(),t=Eo(bi().index,e);return function(e){return e[11]}(Hl(t)?t:e)},NC=function(){var e=function a(){F(this,a)};return e.\u0275prov=We({token:e,providedIn:"root",factory:function(){return null}}),e}(),nc=function e(a){F(this,e),this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")},u2=new nc("12.2.4"),Uo=function(){function e(){F(this,e)}return W(e,[{key:"supports",value:function(t){return fv(t)}},{key:"create",value:function(t){return new w8(t)}}]),e}(),c2=function(a,t){return t},w8=function(){function e(a){F(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||c2}return W(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,l=this._removalsHead,c=0,h=null;n||l;){var _=!l||n&&n.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==t;){var c=a[t.index];if(null!==c&&n.push(di(c)),Gs(c))for(var h=10;h-1&&(nI(t,l),Vd(n,l))}this._attachedToViewContainer=!1}rI(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){HM(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){nC(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){rC(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,a,t){lm(!0);try{rC(e,a,t)}finally{lm(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,a){Jp(e,a,a[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),e}(),m2=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n))._view=n,l}return W(t,[{key:"detectChanges",value:function(){Ho(this._view)}},{key:"checkNoChanges",value:function(){!function(e){lm(!0);try{Ho(e)}finally{lm(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(b_),_2=function(e){return function(e,a,t){if(rm(e)&&!t){var n=Eo(e.index,a);return new b_(n,n)}return 47&e.type?new b_(a[16],a):null}(bi(),Re(),16==(16&e))},Vt=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=_2,e}(),T8=[new y_],A8=new ys([new Uo]),E8=new Eh(T8),aT=function(){return BC(bi(),Re())},Xn=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=aT,e}(),Ih=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._declarationLView=n,h._declarationTContainer=l,h.elementRef=c,h}return W(t,[{key:"createEmbeddedView",value:function(l){var c=this._declarationTContainer.tViews,h=ru(this._declarationLView,c,l,16,null,c.declTNode,null,null,null,null);h[17]=this._declarationLView[this._declarationTContainer.index];var C=this._declarationLView[19];return null!==C&&(h[19]=C.createEmbeddedView(c)),Um(c,h,l),new b_(h)}}]),t}(Xn);function BC(e,a){return 4&e.type?new Ih(a,e,lu(e,a)):null}var rc=function e(){F(this,e)},C2=function e(){F(this,e)},O8=function(){return uu(bi(),Re())},$n=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=O8,e}(),w2=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._lContainer=n,h._hostTNode=l,h._hostLView=c,h}return W(t,[{key:"element",get:function(){return lu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Fd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var l=bn(this._hostTNode,this._hostLView);if(Vp(l)){var c=Bp(l,this._hostLView),h=ts(l);return new Fd(c[1].data[h+8],c)}return new Fd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(l){var c=S2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,h){var _=l.createEmbeddedView(c||{});return this.insert(_,h),_}},{key:"createComponent",value:function(l,c,h,_,C){var k=h||this.parentInjector;if(!C&&null==l.ngModule&&k){var D=k.get(rc,null);D&&(C=D)}var I=l.create(k,_,void 0,C);return this.insert(I.hostView,c),I}},{key:"insert",value:function(l,c){var h=l._lView,_=h[1];if(function(e){return Gs(e[3])}(h)){var C=this.indexOf(l);if(-1!==C)this.detach(C);else{var k=h[3],D=new w2(k,k[6],k[3]);D.detach(D.indexOf(l))}}var I=this._adjustIndex(c),L=this._lContainer;!function(e,a,t,n){var l=10+n,c=t.length;n>0&&(t[l-1][4]=a),n1&&void 0!==arguments[1]?arguments[1]:0;return null==l?this.length+c:l}}]),t}($n);function S2(e){return e[8]}function Rh(e){return e[8]||(e[8]=[])}function uu(e,a){var t,n=a[e.index];if(Gs(n))t=n;else{var l;if(8&e.type)l=di(n);else{var c=a[11];l=c.createComment("");var h=Ao(e,a);bf(c,Lm(c,h),l,function(e,a){return Kr(e)?e.nextSibling(a):a.nextSibling}(c,h),!1)}a[e.index]=t=iv(n,a,l,e),qt(a,t)}return new w2(t,e,a)}var Vh={},wT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).ngModule=n,l}return W(t,[{key:"resolveComponentFactory",value:function(l){var c=Ra(l);return new Rv(c,this.ngModule)}}]),t}(Ki);function X2(e){var a=[];for(var t in e)e.hasOwnProperty(t)&&a.push({propName:e[t],templateName:t});return a}var Z2=new Ee("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return gM}}),Rv=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).componentDef=n,c.ngModule=l,c.componentType=n.type,c.selector=function(e){return e.map(Fm).join(",")}(n.selectors),c.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],c.isBoundToModule=!!l,c}return W(t,[{key:"inputs",get:function(){return X2(this.componentDef.inputs)}},{key:"outputs",get:function(){return X2(this.componentDef.outputs)}},{key:"create",value:function(l,c,h,_){var se,be,C=(_=_||this.ngModule)?function(e,a){return{get:function(n,l,c){var h=e.get(n,Vh,c);return h!==Vh||l===Vh?h:a.get(n,l,c)}}}(l,_.injector):l,k=C.get(Ff,pO),D=C.get(NC,null),I=k.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",G=h?function(e,a,t){if(Kr(e))return e.selectRootElement(a,t===Hs.ShadowDom);var l="string"==typeof a?e.querySelector(a):a;return l.textContent="",l}(I,h,this.componentDef.encapsulation):O0(k.createRenderer(null,this.componentDef),L,function(e){var a=e.toLowerCase();return"svg"===a?hO:"math"===a?"http://www.w3.org/1998/MathML/":null}(L)),Y=this.componentDef.onPush?576:528,Q=function(e,a){return{components:[],scheduler:e||gM,clean:xI,playerHandler:a||null,flags:0}}(),ie=sh(0,null,null,1,0,null,null,null,null,null),fe=ru(null,ie,Q,Y,null,null,k,I,D,C);jl(fe);try{var Ce=function(e,a,t,n,l,c){var h=t[1];t[20]=e;var C=nv(h,20,2,"#host",null),k=C.mergedAttrs=a.hostAttrs;null!==k&&(lv(C,k,!0),null!==e&&(dm(l,e,k),null!==C.classes&&ki(l,e,C.classes),null!==C.styles&&sI(l,e,C.styles)));var D=n.createRenderer(e,a),I=ru(t,Gm(a),null,a.onPush?64:16,t[20],C,n,D,c||null,null);return h.firstCreatePass&&(Fe(zp(C,t),h,a.type),Ym(h,C),eC(C,t.length,1)),qt(t,I),t[20]=I}(G,this.componentDef,fe,k,I);if(G)if(h)dm(I,G,["ng-version",u2.full]);else{var je=function(e){for(var a=[],t=[],n=1,l=2;n0&&ki(I,G,kt.join(" "))}if(be=Rk(ie,20),void 0!==c)for(var Dn=be.projection=[],Zn=0;Zn1&&void 0!==arguments[1]?arguments[1]:kn.THROW_IF_NOT_FOUND,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;return l===kn||l===rc||l===uv?this:this._r3Injector.get(l,c,h)}},{key:"destroy",value:function(){var l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(function(c){return c()}),this.destroyCbs=null}},{key:"onDestroy",value:function(l){this.destroyCbs.push(l)}}]),t}(rc),kT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).moduleType=n,null!==fa(n)&&function(e){var a=new Set;!function t(n){var l=fa(n,!0),c=l.id;null!==c&&(function(e,a,t){if(a&&a!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(hn(a)," vs ").concat(hn(a.name)))}(c,Lv.get(c),n),Lv.set(c,n));var k,C=tn(cs(l.imports));try{for(C.s();!(k=C.n()).done;){var D=k.value;a.has(D)||(a.add(D),t(D))}}catch(I){C.e(I)}finally{C.f()}}(e)}(n),l}return W(t,[{key:"create",value:function(l){return new eU(this.moduleType,l)}}]),t}(C2);function rw(e,a,t){var n=ha()+e,l=Re();return l[n]===jt?ou(l,n,t?a.call(t):a()):function(e,a){return e[a]}(l,n)}function vl(e,a,t,n){return eL(Re(),ha(),e,a,t,n)}function zf(e,a,t,n,l){return gl(Re(),ha(),e,a,t,n,l)}function O_(e,a){var t=e[a];return t===jt?void 0:t}function eL(e,a,t,n,l,c){var h=a+t;return Vi(e,h,l)?ou(e,h+1,c?n.call(c,l):n(l)):O_(e,h+1)}function gl(e,a,t,n,l,c,h){var _=a+t;return zo(e,_,l,c)?ou(e,_+2,h?n.call(h,l,c):n(l,c)):O_(e,_+2)}function Uf(e,a){var n,t=En(),l=e+20;t.firstCreatePass?(n=function(e,a){if(a)for(var t=a.length-1;t>=0;t--){var n=a[t];if(e===n.name)return n}throw new xp("302","The pipe '".concat(e,"' could not be found!"))}(a,t.pipeRegistry),t.data[l]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(l,n.onDestroy)):n=t.data[l];var c=n.factory||(n.factory=Ad(n.type)),h=Ia(N);try{var _=Hp(!1),C=c();return Hp(_),function(e,a,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),a[t]=n}(t,Re(),l,C),C}finally{Ia(h)}}function Gf(e,a,t){var n=e+20,l=Re(),c=Jc(l,n);return jf(l,I_(l,n)?eL(l,ha(),a,c.transform,t,c):c.transform(t))}function iw(e,a,t,n){var l=e+20,c=Re(),h=Jc(c,l);return jf(c,I_(c,l)?gl(c,ha(),a,h.transform,t,n,h):h.transform(t,n))}function I_(e,a){return e[1].data[a].pure}function jf(e,a){return xf.isWrapped(a)&&(a=xf.unwrap(a),e[qs()]=jt),a}function Nv(e){return function(a){setTimeout(e,void 0,a)}}var ye=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return F(this,t),(n=a.call(this)).__isAsync=l,n}return W(t,[{key:"emit",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,l)}},{key:"subscribe",value:function(l,c,h){var _,C,k,D=l,I=c||function(){return null},L=h;if(l&&"object"==typeof l){var G=l;D=null===(_=G.next)||void 0===_?void 0:_.bind(G),I=null===(C=G.error)||void 0===C?void 0:C.bind(G),L=null===(k=G.complete)||void 0===k?void 0:k.bind(G)}this.__isAsync&&(I=Nv(I),D&&(D=Nv(D)),L&&(L=Nv(L)));var Y=Ie(Oe(t.prototype),"subscribe",this).call(this,{next:D,error:I,complete:L});return l instanceof Be&&l.add(Y),Y}}]),t}(qe);function TT(){return this._results[_h()]()}var Wo=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];F(this,e),this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=_h(),n=e.prototype;n[t]||(n[t]=TT)}return W(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ye)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var l=this;l.dirty=!1;var c=rs(t);(this._changesDetected=!function(e,a,t){if(e.length!==a.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var l=null!==t.contentQueries?t.contentQueries[0]:n.length,c=[],h=0;h2&&void 0!==arguments[2]?arguments[2]:null;F(this,e),this.predicate=a,this.flags=t,this.read=n},AT=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"elementStart",value:function(t,n){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:-1;F(this,e),this.metadata=a,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return W(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,l=t.parent;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var l=this.metadata.predicate;if(Array.isArray(l))for(var c=0;c0)n.push(h[_/2]);else{for(var k=c[_+1],D=a[-C],I=10;I0&&(_=setTimeout(function(){h._callbacks=h._callbacks.filter(function(C){return C.timeoutId!==_}),n(h._didWork,h.getPendingTasks())},l)),this._callbacks.push({doneCb:n,timeoutId:_,updateCb:c})}},{key:"whenStable",value:function(n,l,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,l,c),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,l,c){return[]}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),U_=function(){var e=function(){function a(){F(this,a),this._applications=new Map,_w.addToWindow(this)}return W(a,[{key:"registerApplication",value:function(n,l){this._applications.set(n,l)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return _w.findTestabilityInTree(this,n,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),_w=new(function(){function e(){F(this,e)}return W(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,l){return null}}]),e}()),XT=!0,oc=!1;function yw(){return oc=!0,XT}var ho,sc=function(e,a,t){var n=new kT(t);return Promise.resolve(n)},LL=new Ee("AllowMultipleToken"),Yv=function e(a,t){F(this,e),this.name=a,this.token=t};function FL(e){if(ho&&!ho.destroyed&&!ho.injector.get(LL,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ho=e.get(QT);var a=e.get(HT,null);return a&&a.forEach(function(t){return t()}),ho}function NL(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(a),l=new Ee(n);return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=$T();if(!h||h.injector.get(LL,!1))if(e)e(t.concat(c).concat({provide:l,useValue:!0}));else{var _=t.concat(c).concat({provide:l,useValue:!0},{provide:qm,useValue:"platform"});FL(kn.create({providers:_,name:n}))}return qU(l)}}function qU(e){var a=$T();if(!a)throw new Error("No platform exists!");if(!a.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return a}function $T(){return ho&&!ho.destroyed?ho:null}var QT=function(){var e=function(){function a(t){F(this,a),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return W(a,[{key:"bootstrapModuleFactory",value:function(n,l){var c=this,k=function(e,a){return"noop"===e?new GU:("zone.js"===e?void 0:e)||new ft({enableLongStackTrace:yw(),shouldCoalesceEventChangeDetection:!!(null==a?void 0:a.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==a?void 0:a.ngZoneRunCoalescing)})}(l?l.ngZone:void 0,{ngZoneEventCoalescing:l&&l.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:l&&l.ngZoneRunCoalescing||!1}),D=[{provide:ft,useValue:k}];return k.run(function(){var I=kn.create({providers:D,parent:c.injector,name:n.moduleType.name}),L=n.create(I),G=L.injector.get($d,null);if(!G)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return k.runOutsideAngular(function(){var Y=k.onError.subscribe({next:function(ie){G.handleError(ie)}});L.onDestroy(function(){Cw(c._modules,L),Y.unsubscribe()})}),function(e,a,t){try{var n=((Y=L.injector.get(zh)).runInitializers(),Y.donePromise.then(function(){return SC(L.injector.get(vu,l_)||l_),c._moduleDoBootstrap(L),L}));return vv(n)?n.catch(function(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}):n}catch(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}var Y}(G,k)})}},{key:"bootstrapModule",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],h=JT({},c);return sc(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,h)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(lc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(c){return l.bootstrap(c)});else{if(!n.instance.ngDoBootstrap)throw new Error("The module ".concat(hn(n.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");n.instance.ngDoBootstrap(l)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(n){return n.destroy()}),this._destroyListeners.forEach(function(n){return n()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function JT(e,a){return Array.isArray(a)?a.reduce(JT,e):Object.assign(Object.assign({},e),a)}var lc=function(){var e=function(){function a(t,n,l,c,h){var _=this;F(this,a),this._zone=t,this._injector=n,this._exceptionHandler=l,this._componentFactoryResolver=c,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){_._zone.run(function(){_.tick()})}});var C=new gn(function(D){_._stable=_._zone.isStable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks,_._zone.runOutsideAngular(function(){D.next(_._stable),D.complete()})}),k=new gn(function(D){var I;_._zone.runOutsideAngular(function(){I=_._zone.onStable.subscribe(function(){ft.assertNotInAngularZone(),WT(function(){!_._stable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks&&(_._stable=!0,D.next(!0))})})});var L=_._zone.onUnstable.subscribe(function(){ft.assertInAngularZone(),_._stable&&(_._stable=!1,_._zone.runOutsideAngular(function(){D.next(!1)}))});return function(){I.unsubscribe(),L.unsubscribe()}});this.isStable=ot(C,k.pipe(function(e){return Qo()(function(e,a){return function(n){var l;l="function"==typeof e?e:function(){return e};var c=Object.create(n,jc);return c.source=n,c.subjectFactory=l,c}}(Bb)(e))}))}return W(a,[{key:"bootstrap",value:function(n,l){var h,c=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");h=n instanceof eT?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(h.componentType);var _=function(e){return e.isBoundToModule}(h)?void 0:this._injector.get(rc),k=h.create(kn.NULL,[],l||h.selector,_),D=k.location.nativeElement,I=k.injector.get(qT,null),L=I&&k.injector.get(U_);return I&&L&&L.registerApplication(D,I),k.onDestroy(function(){c.detachView(k.hostView),Cw(c.components,k),L&&L.unregisterApplication(D)}),this._loadComponent(k),k}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var c,l=tn(this._views);try{for(l.s();!(c=l.n()).done;)c.value.detectChanges()}catch(D){l.e(D)}finally{l.f()}}catch(D){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(D)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var l=n;this._views.push(l),l.attachToAppRef(this)}},{key:"detachView",value:function(n){var l=n;Cw(this._views,l),l.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(dw,[]).concat(this._bootstrapListeners).forEach(function(c){return c(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(kn),ce($d),ce(Ki),ce(zh))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function Cw(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var qf=function e(){F(this,e)},QU=function e(){F(this,e)},JU={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},eG=function(){var e=function(){function a(t,n){F(this,a),this._compiler=t,this._config=n||JU}return W(a,[{key:"load",value:function(n){return this.loadAndCompile(n)}},{key:"loadAndCompile",value:function(n){var l=this,h=cr(n.split("#"),2),_=h[0],C=h[1];return void 0===C&&(C="default"),Dt(98255)(_).then(function(k){return k[C]}).then(function(k){return HL(k,_,C)}).then(function(k){return l._compiler.compileModuleAsync(k)})}},{key:"loadFactory",value:function(n){var c=cr(n.split("#"),2),h=c[0],_=c[1],C="NgFactory";return void 0===_&&(_="default",C=""),Dt(98255)(this._config.factoryPathPrefix+h+this._config.factoryPathSuffix).then(function(k){return k[_+C]}).then(function(k){return HL(k,h,_)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(gu),ce(QU,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function HL(e,a,t){if(!e)throw new Error("Cannot find '".concat(t,"' in '").concat(a,"'"));return e}var dG=NL(null,"core",[{provide:jv,useValue:"unknown"},{provide:QT,deps:[kn]},{provide:U_,deps:[]},{provide:hw,deps:[]}]),hG=[{provide:lc,useClass:lc,deps:[ft,kn,$d,Ki,zh]},{provide:Z2,deps:[ft],useFactory:function(e){var a=[];return e.onStable.subscribe(function(){for(;a.length;)a.pop()()}),function(t){a.push(t)}}},{provide:zh,useClass:zh,deps:[[new oi,fo]]},{provide:gu,useClass:gu,deps:[]},xL,{provide:ys,useFactory:function(){return A8},deps:[]},{provide:Eh,useFactory:function(){return E8},deps:[]},{provide:vu,useFactory:function(e){return SC(e=e||"undefined"!=typeof $localize&&$localize.locale||l_),e},deps:[[new jp(vu),new oi,new Fo]]},{provide:DL,useValue:"USD"}],WL=function(){var e=function a(t){F(this,a)};return e.\u0275fac=function(t){return new(t||e)(ce(lc))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:hG}),e}(),Nw=null;function _u(){return Nw}var pF=function e(){F(this,e)},lt=new Ee("DocumentToken"),fc=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:vF,token:e,providedIn:"platform"}),e}();function vF(){return ce(mF)}var gF=new Ee("Location Initialized"),mF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c._init(),c}return W(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return _u().getBaseHref(this._doc)}},{key:"onPopState",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("popstate",c,!1),function(){return h.removeEventListener("popstate",c)}}},{key:"onHashChange",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("hashchange",c,!1),function(){return h.removeEventListener("hashchange",c)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(c){this.location.pathname=c}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(c,h,_){_F()?this._history.pushState(c,h,_):this.location.hash=_}},{key:"replaceState",value:function(c,h,_){_F()?this._history.replaceState(c,h,_):this.location.hash=_}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(c)}},{key:"getState",value:function(){return this._history.state}}]),n}(fc);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:Qf,token:e,providedIn:"platform"}),e}();function _F(){return!!window.history.pushState}function Qf(){return new mF(ce(lt))}function dc(e,a){if(0==e.length)return a;if(0==a.length)return e;var t=0;return e.endsWith("/")&&t++,a.startsWith("/")&&t++,2==t?e+a.substring(1):1==t?e+a:e+"/"+a}function gD(e){var a=e.match(/#|\?|$/),t=a&&a.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function hc(e){return e&&"?"!==e[0]?"?"+e:e}var Qv=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:Ms,token:e,providedIn:"root"}),e}();function Ms(e){var a=ce(lt).location;return new mD(ce(fc),a&&a.origin||"")}var Vw=new Ee("appBaseHref"),mD=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;if(F(this,n),(h=t.call(this))._platformLocation=l,h._removeListenerFns=[],null==c&&(c=h._platformLocation.getBaseHrefFromDOM()),null==c)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return h._baseHref=c,h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(c){return dc(this._baseHref,c)}},{key:"path",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],h=this._platformLocation.pathname+hc(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(h).concat(_):h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Qv);return e.\u0275fac=function(t){return new(t||e)(ce(fc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),yF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._platformLocation=l,h._baseHref="",h._removeListenerFns=[],null!=c&&(h._baseHref=c),h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var h=this._platformLocation.hash;return null==h&&(h="#"),h.length>0?h.substring(1):h}},{key:"prepareExternalUrl",value:function(c){var h=dc(this._baseHref,c);return h.length>0?"#"+h:h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Qv);return e.\u0275fac=function(t){return new(t||e)(ce(fc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Jv=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._subject=new ye,this._urlChangeListeners=[],this._platformStrategy=t;var c=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=gD(yu(c)),this._platformStrategy.onPopState(function(h){l._subject.emit({url:l.path(!0),pop:!0,state:h.state,type:h.type})})}return W(a,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+hc(l))}},{key:"normalize",value:function(n){return a.stripTrailingSlash(function(e,a){return e&&a.startsWith(e)?a.substring(e.length):a}(this._baseHref,yu(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hc(l)),c)}},{key:"replaceState",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hc(l)),c)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var l,c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(c=(l=this._platformStrategy).historyGo)||void 0===c||c.call(l,n)}},{key:"onUrlChange",value:function(n){var l=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(c){l._notifyUrlChangeListeners(c.url,c.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(c){return c(n,l)})}},{key:"subscribe",value:function(n,l,c){return this._subject.subscribe({next:n,error:l,complete:c})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Qv),ce(fc))},e.normalizeQueryParams=hc,e.joinWithSlash=dc,e.stripTrailingSlash=gD,e.\u0275prov=We({factory:KG,token:e,providedIn:"root"}),e}();function KG(){return new Jv(ce(Qv),ce(fc))}function yu(e){return e.replace(/\/index.html$/,"")}var iy=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),t6=function(e){return function(e){var a=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=Mv(a);if(t)return t;var n=a.split("-")[0];if(t=Mv(n))return t;if("en"===n)return Z4;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Tr.PluralCase]},vy=function e(){F(this,e)},IF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).locale=l,c}return W(n,[{key:"getPluralCategory",value:function(c,h){switch(t6(h||this.locale)(c)){case iy.Zero:return"zero";case iy.One:return"one";case iy.Two:return"two";case iy.Few:return"few";case iy.Many:return"many";default:return"other"}}}]),n}(vy);return e.\u0275fac=function(t){return new(t||e)(ce(vu))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function RF(e,a){a=encodeURIComponent(a);var n,t=tn(e.split(";"));try{for(t.s();!(n=t.n()).done;){var l=n.value,c=l.indexOf("="),_=cr(-1==c?[l,""]:[l.slice(0,c),l.slice(c+1)],2),k=_[1];if(_[0].trim()===a)return decodeURIComponent(k)}}catch(D){t.e(D)}finally{t.f()}return null}var Ts=function(){var e=function(){function a(t,n,l,c){F(this,a),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=l,this._renderer=c,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return W(a,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(fv(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var l=this._keyValueDiffer.diff(this._rawClass);l&&this._applyKeyValueChanges(l)}}},{key:"_applyKeyValueChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachChangedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachRemovedItem(function(c){c.previousValue&&l._toggleClass(c.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){if("string"!=typeof c.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(hn(c.item)));l._toggleClass(c.item,!0)}),n.forEachRemovedItem(function(c){return l._toggleClass(c.item,!1)})}},{key:"_applyClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!0)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!!n[c])}))}},{key:"_removeClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!1)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!1)}))}},{key:"_toggleClass",value:function(n,l){var c=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(h){l?c._renderer.addClass(c._ngEl.nativeElement,h):c._renderer.removeClass(c._ngEl.nativeElement,h)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(ys),N(Eh),N(Ue),N(fl))},e.\u0275dir=ve({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),FF=function(){function e(a,t,n,l){F(this,e),this.$implicit=a,this.ngForOf=t,this.index=n,this.count=l}return W(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),er=function(){var e=function(){function a(t,n,l){F(this,a),this._viewContainer=t,this._template=n,this._differs=l,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return W(a,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(c){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function(e){return e.name||typeof e}(n),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var l=this._differ.diff(this._ngForOf);l&&this._applyChanges(l)}}},{key:"_applyChanges",value:function(n){var l=this,c=[];n.forEachOperation(function(D,I,L){if(null==D.previousIndex){var G=l._viewContainer.createEmbeddedView(l._template,new FF(null,l._ngForOf,-1,-1),null===L?void 0:L),Y=new TD(D,G);c.push(Y)}else if(null==L)l._viewContainer.remove(null===I?void 0:I);else if(null!==I){var Q=l._viewContainer.get(I);l._viewContainer.move(Q,L);var ie=new TD(D,Q);c.push(ie)}});for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:RD;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var h=this.differ.diff(n),_=c!==this.compareFn;return h&&(this.keyValues=[],h.forEachItem(function(C){l.keyValues.push(O6(C.key,C.currentValue))})),(h||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Eh,16))},e.\u0275pipe=Gi({name:"keyvalue",type:e,pure:!1}),e}();function RD(e,a){var t=e.key,n=a.key;if(t===n)return 0;if(void 0===t)return 1;if(void 0===n)return-1;if(null===t)return 1;if(null===n)return-1;if("string"==typeof t&&"string"==typeof n)return t1&&void 0!==arguments[1])||arguments[1],h=t.findTestabilityInTree(l,c);if(null==h)throw new Error("Could not find testability for element.");return h},Kn.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Kn.getAllAngularRootElements=function(){return t.getAllRootElements()},Kn.frameworkStabilizers||(Kn.frameworkStabilizers=[]),Kn.frameworkStabilizers.push(function(c){var h=Kn.getAllAngularTestabilities(),_=h.length,C=!1,k=function(I){C=C||I,0==--_&&c(C)};h.forEach(function(D){D.whenStable(k)})})}},{key:"findTestabilityInTree",value:function(t,n,l){if(null==n)return null;var c=t.getTestability(n);return null!=c?c:l?_u().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){_w=e}(new e)}}]),e}(),j6=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"build",value:function(){return new XMLHttpRequest}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ng=new Ee("EventManagerPlugins"),yy=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(c){return c.manager=l}),this._plugins=t.slice().reverse()}return W(a,[{key:"addEventListener",value:function(n,l,c){return this._findPluginFor(l).addEventListener(n,l,c)}},{key:"addGlobalEventListener",value:function(n,l,c){return this._findPluginFor(l).addGlobalEventListener(n,l,c)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var l=this._eventNameToPlugin.get(n);if(l)return l;for(var c=this._plugins,h=0;h-1&&(h.splice(L,1),k+=I+".")}),k+=C,0!=h.length||0===C.length)return null;var D={};return D.domEventName=_,D.fullKey=k,D}},{key:"getEventFullKey",value:function(c){var h="",_=function(e){var a=e.key;if(null==a){if(null==(a=e.keyIdentifier))return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===e.location&&QF.hasOwnProperty(a)&&(a=QF[a]))}return $F[a]||a}(c);return" "===(_=_.toLowerCase())?_="space":"."===_&&(_="dot"),ZD.forEach(function(C){C!=_&&(0,$D[C])(c)&&(h+=C+".")}),h+=_}},{key:"eventCallback",value:function(c,h,_){return function(C){n.getEventFullKey(C)===c&&_.runGuarded(function(){return h(C)})}}},{key:"_normalizeKey",value:function(c){switch(c){case"esc":return"escape";default:return c}}}]),n}(Jw);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ed=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return ce(Ty)},token:e,providedIn:"root"}),e}(),Ty=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c}return W(n,[{key:"sanitize",value:function(c,h){if(null==h)return null;switch(c){case ss.NONE:return h;case ss.HTML:return Ks(h,"HTML")?Wi(h):HO(this._doc,String(h)).toString();case ss.STYLE:return Ks(h,"Style")?Wi(h):h;case ss.SCRIPT:if(Ks(h,"Script"))return Wi(h);throw new Error("unsafe value used in a script context");case ss.URL:return FO(h),Ks(h,"URL")?Wi(h):Sm(String(h));case ss.RESOURCE_URL:if(Ks(h,"ResourceURL"))return Wi(h);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(c," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(c){return function(e){return new cz(e)}(c)}},{key:"bypassSecurityTrustStyle",value:function(c){return function(e){return new Fi(e)}(c)}},{key:"bypassSecurityTrustScript",value:function(c){return function(e){return new oM(e)}(c)}},{key:"bypassSecurityTrustUrl",value:function(c){return function(e){return new fz(e)}(c)}},{key:"bypassSecurityTrustResourceUrl",value:function(c){return function(e){return new LO(e)}(c)}}]),n}(ed);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return function(e){return new Ty(e.get(lt))}(ce(uv))},token:e,providedIn:"root"}),e}(),vj=NL(dG,"browser",[{provide:jv,useValue:"browser"},{provide:HT,useValue:function(){B6.makeCurrent(),jF.init()},multi:!0},{provide:lt,useFactory:function(){return e=document,Ed=e,document;var e},deps:[]}]),gj=[[],{provide:qm,useValue:"root"},{provide:$d,useFactory:function(){return new $d},deps:[]},{provide:ng,useClass:ky,multi:!0,deps:[lt,ft,jv]},{provide:ng,useClass:sj,multi:!0,deps:[lt]},[],{provide:qh,useClass:qh,deps:[yy,by,Yf]},{provide:Ff,useExisting:qh},{provide:jD,useExisting:by},{provide:by,useClass:by,deps:[lt]},{provide:qT,useClass:qT,deps:[ft]},{provide:yy,useClass:yy,deps:[ng,ft]},{provide:zD,useClass:j6,deps:[]},[]],QD=function(){var e=function(){function a(t){if(F(this,a),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return W(a,null,[{key:"withServerTransition",value:function(n){return{ngModule:a,providers:[{provide:Yf,useValue:n.appId},{provide:GF,useExisting:Yf},G6]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(e,12))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:gj,imports:[Wa,WL]}),e}();function ut(){for(var e=arguments.length,a=new Array(e),t=0;t0){var c=n.slice(0,l),h=c.toLowerCase(),_=n.slice(l+1).trim();t.maybeSetNormalizedName(c,h),t.headers.has(h)?t.headers.get(h).push(_):t.headers.set(h,[_])}})}:function(){t.headers=new Map,Object.keys(a).forEach(function(n){var l=a[n],c=n.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(t.headers.set(c,l),t.maybeSetNormalizedName(n,c))})}:this.headers=new Map}return W(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(l){n.headers.set(l,t.headers.get(l)),n.normalizedNames.set(l,t.normalizedNames.get(l))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var l=t.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(t.name,n);var c=("a"===t.op?this.headers.get(n):void 0)||[];c.push.apply(c,At(l)),this.headers.set(n,c);break;case"d":var h=t.value;if(h){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(C){return-1===h.indexOf(C)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,_)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(l){return t(n.normalizedNames.get(l),n.headers.get(l))})}}]),e}(),kj=function(){function e(){F(this,e)}return W(e,[{key:"encodeKey",value:function(t){return sN(t)}},{key:"encodeValue",value:function(t){return sN(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function Mj(e,a){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(l){var c=l.indexOf("="),_=cr(-1==c?[a.decodeKey(l),""]:[a.decodeKey(l.slice(0,c)),a.decodeValue(l.slice(c+1))],2),C=_[0],k=_[1],D=t.get(C)||[];D.push(k),t.set(C,D)}),t}var ig=/%(\d[a-f0-9])/gi,xj={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function sN(e){return encodeURIComponent(e).replace(ig,function(a,t){var n;return null!==(n=xj[t])&&void 0!==n?n:a})}function lN(e){return"".concat(e)}var ag=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(F(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new kj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Mj(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var l=t.fromObject[n];a.map.set(n,Array.isArray(l)?l:[l])})):this.map=null}return W(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(l){var c=t[l];Array.isArray(c)?c.forEach(function(h){n.push({param:l,value:h,op:"a"})}):n.push({param:l,value:c,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var l=t.encoder.encodeKey(n);return t.map.get(n).map(function(c){return l+"="+t.encoder.encodeValue(c)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var l=("a"===n.op?t.map.get(n.param):void 0)||[];l.push(lN(n.value)),t.map.set(n.param,l);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var c=t.map.get(n.param)||[],h=c.indexOf(lN(n.value));-1!==h&&c.splice(h,1),c.length>0?t.map.set(n.param,c):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),rA=function(){function e(){F(this,e),this.map=new Map}return W(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Dj(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function a1(e){return"undefined"!=typeof Blob&&e instanceof Blob}function cN(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Py=function(){function e(a,t,n,l){var c;if(F(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=a.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,c=l):c=n,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new Zh),this.context||(this.context=new rA),this.params){var h=this.params.toString();if(0===h.length)this.urlWithParams=t;else{var _=t.indexOf("?");this.urlWithParams=t+(-1===_?"?":_0&&void 0!==arguments[0]?arguments[0]:{},l=t.method||this.method,c=t.url||this.url,h=t.responseType||this.responseType,_=void 0!==t.body?t.body:this.body,C=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,k=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,D=t.headers||this.headers,I=t.params||this.params,L=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(D=Object.keys(t.setHeaders).reduce(function(G,Y){return G.set(Y,t.setHeaders[Y])},D)),t.setParams&&(I=Object.keys(t.setParams).reduce(function(G,Y){return G.set(Y,t.setParams[Y])},I)),new e(l,c,_,{params:I,headers:D,context:L,reportProgress:k,responseType:h,withCredentials:C})}}]),e}(),og=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),o1=function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";F(this,e),this.headers=a.headers||new Zh,this.status=void 0!==a.status?a.status:t,this.statusText=a.statusText||n,this.url=a.url||null,this.ok=this.status>=200&&this.status<300},Ej=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.ResponseHeader,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),s1=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.Response,n.body=void 0!==l.body?l.body:null,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==l.body?l.body:this.body,headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),fN=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",l.ok=!1,l.message=l.status>=200&&l.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),l.error=n.error||null,l}return t}(o1);function Oy(e,a){return{body:a,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var dN=function(){var e=function(){function a(t){F(this,a),this.handler=t}return W(a,[{key:"request",value:function(n,l){var _,c=this,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Py)_=n;else{var C=void 0;C=h.headers instanceof Zh?h.headers:new Zh(h.headers);var k=void 0;h.params&&(k=h.params instanceof ag?h.params:new ag({fromObject:h.params})),_=new Py(n,l,void 0!==h.body?h.body:null,{headers:C,context:h.context,params:k,reportProgress:h.reportProgress,responseType:h.responseType||"json",withCredentials:h.withCredentials})}var D=ut(_).pipe(Xh(function(L){return c.handler.handle(L)}));if(n instanceof Py||"events"===h.observe)return D;var I=D.pipe(vr(function(L){return L instanceof s1}));switch(h.observe||"body"){case"body":switch(_.responseType){case"arraybuffer":return I.pipe(He(function(L){if(null!==L.body&&!(L.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return L.body}));case"blob":return I.pipe(He(function(L){if(null!==L.body&&!(L.body instanceof Blob))throw new Error("Response is not a Blob.");return L.body}));case"text":return I.pipe(He(function(L){if(null!==L.body&&"string"!=typeof L.body)throw new Error("Response is not a string.");return L.body}));case"json":default:return I.pipe(He(function(L){return L.body}))}case"response":return I;default:throw new Error("Unreachable: unhandled observe type ".concat(h.observe,"}"))}}},{key:"delete",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,l)}},{key:"get",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,l)}},{key:"head",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,l)}},{key:"jsonp",value:function(n,l){return this.request("JSONP",n,{params:(new ag).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,l)}},{key:"patch",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,Oy(c,l))}},{key:"post",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,Oy(c,l))}},{key:"put",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,Oy(c,l))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(nA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),hN=function(){function e(a,t){F(this,e),this.next=a,this.interceptor=t}return W(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),iA=new Ee("HTTP_INTERCEPTORS"),pN=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"intercept",value:function(n,l){return l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),CN=/^\)\]\}',?\n/,l1=function(){var e=function(){function a(t){F(this,a),this.xhrFactory=t}return W(a,[{key:"handle",value:function(n){var l=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new gn(function(c){var h=l.xhrFactory.build();if(h.open(n.method,n.urlWithParams),n.withCredentials&&(h.withCredentials=!0),n.headers.forEach(function(fe,se){return h.setRequestHeader(fe,se.join(","))}),n.headers.has("Accept")||h.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&h.setRequestHeader("Content-Type",_)}if(n.responseType){var C=n.responseType.toLowerCase();h.responseType="json"!==C?C:"text"}var k=n.serializeBody(),D=null,I=function(){if(null!==D)return D;var se=1223===h.status?204:h.status,be=h.statusText||"OK",Ce=new Zh(h.getAllResponseHeaders()),je=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(h)||n.url;return D=new Ej({headers:Ce,status:se,statusText:be,url:je})},L=function(){var se=I(),be=se.headers,Ce=se.status,je=se.statusText,$e=se.url,kt=null;204!==Ce&&(kt=void 0===h.response?h.responseText:h.response),0===Ce&&(Ce=kt?200:0);var Dn=Ce>=200&&Ce<300;if("json"===n.responseType&&"string"==typeof kt){var Zn=kt;kt=kt.replace(CN,"");try{kt=""!==kt?JSON.parse(kt):null}catch(Hr){kt=Zn,Dn&&(Dn=!1,kt={error:Hr,text:kt})}}Dn?(c.next(new s1({body:kt,headers:be,status:Ce,statusText:je,url:$e||void 0})),c.complete()):c.error(new fN({error:kt,headers:be,status:Ce,statusText:je,url:$e||void 0}))},G=function(se){var be=I(),je=new fN({error:se,status:h.status||0,statusText:h.statusText||"Unknown Error",url:be.url||void 0});c.error(je)},Y=!1,Q=function(se){Y||(c.next(I()),Y=!0);var be={type:og.DownloadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),"text"===n.responseType&&!!h.responseText&&(be.partialText=h.responseText),c.next(be)},ie=function(se){var be={type:og.UploadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),c.next(be)};return h.addEventListener("load",L),h.addEventListener("error",G),h.addEventListener("timeout",G),h.addEventListener("abort",G),n.reportProgress&&(h.addEventListener("progress",Q),null!==k&&h.upload&&h.upload.addEventListener("progress",ie)),h.send(k),c.next({type:og.Sent}),function(){h.removeEventListener("error",G),h.removeEventListener("abort",G),h.removeEventListener("load",L),h.removeEventListener("timeout",G),n.reportProgress&&(h.removeEventListener("progress",Q),null!==k&&h.upload&&h.upload.removeEventListener("progress",ie)),h.readyState!==h.DONE&&h.abort()}})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(zD))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),u1=new Ee("XSRF_COOKIE_NAME"),aA=new Ee("XSRF_HEADER_NAME"),SN=function e(){F(this,e)},sg=function(){var e=function(){function a(t,n,l){F(this,a),this.doc=t,this.platform=n,this.cookieName=l,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return W(a,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=RF(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(jv),ce(u1))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),oA=function(){var e=function(){function a(t,n){F(this,a),this.tokenService=t,this.headerName=n}return W(a,[{key:"intercept",value:function(n,l){var c=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||c.startsWith("http://")||c.startsWith("https://"))return l.handle(n);var h=this.tokenService.getToken();return null!==h&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,h)})),l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(SN),ce(aA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Kh=function(){var e=function(){function a(t,n){F(this,a),this.backend=t,this.injector=n,this.chain=null}return W(a,[{key:"handle",value:function(n){if(null===this.chain){var l=this.injector.get(iA,[]);this.chain=l.reduceRight(function(c,h){return new hN(c,h)},this.backend)}return this.chain.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(i1),ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Ij=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"disable",value:function(){return{ngModule:a,providers:[{provide:oA,useClass:pN}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:a,providers:[n.cookieName?{provide:u1,useValue:n.cookieName}:[],n.headerName?{provide:aA,useValue:n.headerName}:[]]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[oA,{provide:iA,useExisting:oA,multi:!0},{provide:SN,useClass:sg},{provide:u1,useValue:"XSRF-TOKEN"},{provide:aA,useValue:"X-XSRF-TOKEN"}]}),e}(),kN=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dN,{provide:nA,useClass:Kh},l1,{provide:i1,useExisting:l1}],imports:[[Ij.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Ma=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this))._value=n,l}return W(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(l){var c=Ie(Oe(t.prototype),"_subscribe",this).call(this,l);return c&&!c.closed&&l.next(this._value),c}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Hu;return this._value}},{key:"next",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,this._value=l)}}]),t}(qe),Rj=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"notifyNext",value:function(l,c,h,_,C){this.destination.next(c)}},{key:"notifyError",value:function(l,c){this.destination.error(l)}},{key:"notifyComplete",value:function(l){this.destination.complete()}}]),t}(Ze),Lj=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).parent=n,h.outerValue=l,h.outerIndex=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){this.parent.notifyNext(this.outerValue,l,this.outerIndex,this.index++,this)}},{key:"_error",value:function(l){this.parent.notifyError(l,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),t}(Ze);function Fj(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Lj(e,t,n);if(!l.closed)return a instanceof gn?a.subscribe(l):Yn(a)(l)}var MN={};function Ry(){for(var e=arguments.length,a=new Array(e),t=0;t=2&&(t=!0),function(l){return l.lift(new Wj(e,a,t))}}var Wj=function(){function e(a,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];F(this,e),this.accumulator=a,this.seed=t,this.hasSeed=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new DN(t,this.accumulator,this.seed,this.hasSeed))}}]),e}(),DN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n)).accumulator=l,_._seed=c,_.hasSeed=h,_.index=0,_}return W(t,[{key:"seed",get:function(){return this._seed},set:function(l){this.hasSeed=!0,this._seed=l}},{key:"_next",value:function(l){if(this.hasSeed)return this._tryNext(l);this.seed=l,this.destination.next(l)}},{key:"_tryNext",value:function(l){var h,c=this.index++;try{h=this.accumulator(this.seed,l,c)}catch(_){this.destination.error(_)}this.seed=h,this.destination.next(h)}}]),t}(Ze);function _o(e){return function(t){var n=new AN(e),l=t.lift(n);return n.caught=l}}var AN=function(){function e(a){F(this,e),this.selector=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new lA(t,this.selector,this.caught))}}]),e}(),lA=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).selector=l,h.caught=c,h}return W(t,[{key:"error",value:function(l){if(!this.isStopped){var c;try{c=this.selector(l,this.caught)}catch(C){return void Ie(Oe(t.prototype),"error",this).call(this,C)}this._unsubscribeAndRecycle();var h=new Gc(this);this.add(h);var _=Ii(c,h);_!==h&&this.add(_)}}}]),t}(at);function uA(e){return function(t){return 0===e?h1():t.lift(new Yj(e))}}var Yj=function(){function e(a){if(F(this,e),this.total=a,this.total<0)throw new xN}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new qj(t,this.total))}}]),e}(),qj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.ring=new Array,c.count=0,c}return W(t,[{key:"_next",value:function(l){var c=this.ring,h=this.total,_=this.count++;c.length0)for(var h=this.count>=this.total?this.total:this.count,_=this.ring,C=0;C0&&void 0!==arguments[0]?arguments[0]:Kj;return function(a){return a.lift(new Xj(e))}}var Xj=function(){function e(a){F(this,e),this.errorFactory=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Zj(t,this.errorFactory))}}]),e}(),Zj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).errorFactory=l,c.hasValue=!1,c}return W(t,[{key:"_next",value:function(l){this.hasValue=!0,this.destination.next(l)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var l;try{l=this.errorFactory()}catch(c){l=c}this.destination.error(l)}}]),t}(Ze);function Kj(){return new f1}function PN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(a){return a.lift(new $j(e))}}var $j=function(){function e(a){F(this,e),this.defaultValue=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Qj(t,this.defaultValue))}}]),e}(),Qj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).defaultValue=l,c.isEmpty=!0,c}return W(t,[{key:"_next",value:function(l){this.isEmpty=!1,this.destination.next(l)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),t}(Ze);function lg(e,a){var t=arguments.length>=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,or(1),t?PN(a):EN(function(){return new f1}))}}function td(){}function Ya(e,a,t){return function(l){return l.lift(new e7(e,a,t))}}var e7=function(){function e(a,t,n){F(this,e),this.nextOrObserver=a,this.error=t,this.complete=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new cA(t,this.nextOrObserver,this.error,this.complete))}}]),e}(),cA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n))._tapNext=td,_._tapError=td,_._tapComplete=td,_._tapError=c||td,_._tapComplete=h||td,nt(l)?(_._context=It(_),_._tapNext=l):l&&(_._context=l,_._tapNext=l.next||td,_._tapError=l.error||td,_._tapComplete=l.complete||td),_}return W(t,[{key:"_next",value:function(l){try{this._tapNext.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.next(l)}},{key:"_error",value:function(l){try{this._tapError.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.error(l)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(l){return void this.destination.error(l)}return this.destination.complete()}}]),t}(Ze),n7=function(){function e(a){F(this,e),this.callback=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new r7(t,this.callback))}}]),e}(),r7=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).add(new Be(l)),c}return t}(Ze),_c=function e(a,t){F(this,e),this.id=a,this.url=t},fA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return F(this,t),(c=a.call(this,n,l)).navigationTrigger=h,c.restoredState=_,c}return W(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_c),kl=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).urlAfterRedirects=c,h}return W(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(_c),p1=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).reason=c,h}return W(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_c),ug=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).error=c,h}return W(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(_c),dA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),ON=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),IN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C;return F(this,t),(C=a.call(this,n,l)).urlAfterRedirects=c,C.state=h,C.shouldActivate=_,C}return W(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(_c),RN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),i7=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),hA=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),LN=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),a7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),v1=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),o7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),s7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),FN=function(){function e(a,t,n){F(this,e),this.routerEvent=a,this.position=t,this.anchor=n}return W(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),Cn="primary",l7=function(){function e(a){F(this,e),this.params=a||{}}return W(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function cg(e){return new l7(e)}var pA="ngNavigationCancelingError";function g1(e){var a=Error("NavigationCancelingError: "+e);return a[pA]=!0,a}function Fy(e,a,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(a.hasChildren()||n.length0?e[e.length-1]:null}function Ji(e,a){for(var t in e)e.hasOwnProperty(t)&&a(e[t],t)}function Su(e){return gv(e)?e:vv(e)?yt(Promise.resolve(e)):ut(e)}var c7={exact:function gA(e,a,t){if(!rd(e.segments,a.segments)||!dg(e.segments,a.segments,t)||e.numberOfChildren!==a.numberOfChildren)return!1;for(var n in a.children)if(!e.children[n]||!gA(e.children[n],a.children[n],t))return!1;return!0},subset:m1},zN={exact:function(e,a){return wu(e,a)},subset:function(e,a){return Object.keys(a).length<=Object.keys(e).length&&Object.keys(a).every(function(t){return NN(e[t],a[t])})},ignored:function(){return!0}};function vA(e,a,t){return c7[t.paths](e.root,a.root,t.matrixParams)&&zN[t.queryParams](e.queryParams,a.queryParams)&&!("exact"===t.fragment&&e.fragment!==a.fragment)}function m1(e,a,t){return _1(e,a,a.segments,t)}function _1(e,a,t,n){if(e.segments.length>t.length){var l=e.segments.slice(0,t.length);return!(!rd(l,t)||a.hasChildren()||!dg(l,t,n))}if(e.segments.length===t.length){if(!rd(e.segments,t)||!dg(e.segments,t,n))return!1;for(var c in a.children)if(!e.children[c]||!m1(e.children[c],a.children[c],n))return!1;return!0}var h=t.slice(0,e.segments.length),_=t.slice(e.segments.length);return!!(rd(e.segments,h)&&dg(e.segments,h,n)&&e.children[Cn])&&_1(e.children[Cn],a,_,n)}function dg(e,a,t){return a.every(function(n,l){return zN[t](e[l].parameters,n.parameters)})}var nd=function(){function e(a,t,n){F(this,e),this.root=a,this.queryParams=t,this.fragment=n}return W(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return yc.serialize(this)}}]),e}(),wn=function(){function e(a,t){var n=this;F(this,e),this.segments=a,this.children=t,this.parent=null,Ji(t,function(l,c){return l.parent=n})}return W(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return hg(this)}}]),e}(),Ml=function(){function e(a,t){F(this,e),this.path=a,this.parameters=t}return W(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=cg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return S1(this)}}]),e}();function rd(e,a){return e.length===a.length&&e.every(function(t,n){return t.path===a[n].path})}var y1=function e(){F(this,e)},b1=function(){function e(){F(this,e)}return W(e,[{key:"parse",value:function(t){var n=new g7(t);return new nd(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(pg(t.root,!0)),l=function(e){var a=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(l){return"".concat(vg(t),"=").concat(vg(l))}).join("&"):"".concat(vg(t),"=").concat(vg(n))}).filter(function(t){return!!t});return a.length?"?".concat(a.join("&")):""}(t.queryParams),c="string"==typeof t.fragment?"#".concat(function(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(l).concat(c)}}]),e}(),yc=new b1;function hg(e){return e.segments.map(function(a){return S1(a)}).join("/")}function pg(e,a){if(!e.hasChildren())return hg(e);if(a){var t=e.children[Cn]?pg(e.children[Cn],!1):"",n=[];return Ji(e.children,function(c,h){h!==Cn&&n.push("".concat(h,":").concat(pg(c,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var l=function(e,a){var t=[];return Ji(e.children,function(n,l){l===Cn&&(t=t.concat(a(n,l)))}),Ji(e.children,function(n,l){l!==Cn&&(t=t.concat(a(n,l)))}),t}(e,function(c,h){return h===Cn?[pg(e.children[Cn],!1)]:["".concat(h,":").concat(pg(c,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[Cn]?"".concat(hg(e),"/").concat(l[0]):"".concat(hg(e),"/(").concat(l.join("//"),")")}function WN(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vg(e){return WN(e).replace(/%3B/gi,";")}function C1(e){return WN(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function w1(e){return decodeURIComponent(e)}function mA(e){return w1(e.replace(/\+/g,"%20"))}function S1(e){return"".concat(C1(e.path)).concat(function(e){return Object.keys(e).map(function(a){return";".concat(C1(a),"=").concat(C1(e[a]))}).join("")}(e.parameters))}var _A=/^[^\/()?;=#]+/;function gg(e){var a=e.match(_A);return a?a[0]:""}var YN=/^[^=?&#]+/,v7=/^[^?&#]+/,g7=function(){function e(a){F(this,e),this.url=a,this.remaining=a}return W(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(l[Cn]=new wn(t,n)),l}},{key:"parseSegment",value:function(){var t=gg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Ml(w1(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=gg(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=gg(this.remaining);c&&this.capture(l=c)}t[w1(n)]=w1(l)}}},{key:"parseQueryParam",value:function(t){var n=function(e){var a=e.match(YN);return a?a[0]:""}(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=function(e){var a=e.match(v7);return a?a[0]:""}(this.remaining);c&&this.capture(l=c)}var h=mA(n),_=mA(l);if(t.hasOwnProperty(h)){var C=t[h];Array.isArray(C)||(t[h]=C=[C]),C.push(_)}else t[h]=_}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var l=gg(this.remaining),c=this.remaining[l.length];if("/"!==c&&")"!==c&&";"!==c)throw new Error("Cannot parse url '".concat(this.url,"'"));var h=void 0;l.indexOf(":")>-1?(h=l.substr(0,l.indexOf(":")),this.capture(h),this.capture(":")):t&&(h=Cn);var _=this.parseChildren();n[h]=1===Object.keys(_).length?_[Cn]:new wn([],_),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),e}(),Ny=function(){function e(a){F(this,e),this._root=a}return W(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=k1(t,this._root);return n?n.children.map(function(l){return l.value}):[]}},{key:"firstChild",value:function(t){var n=k1(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Vy(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(c){return c.value}).filter(function(c){return c!==t})}},{key:"pathFromRoot",value:function(t){return Vy(t,this._root).map(function(n){return n.value})}}]),e}();function k1(e,a){if(e===a.value)return a;var n,t=tn(a.children);try{for(t.s();!(n=t.n()).done;){var c=k1(e,n.value);if(c)return c}}catch(h){t.e(h)}finally{t.f()}return null}function Vy(e,a){if(e===a.value)return[a];var n,t=tn(a.children);try{for(t.s();!(n=t.n()).done;){var c=Vy(e,n.value);if(c.length)return c.unshift(a),c}}catch(h){t.e(h)}finally{t.f()}return[]}var ku=function(){function e(a,t){F(this,e),this.value=a,this.children=t}return W(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function mg(e){var a={};return e&&e.children.forEach(function(t){return a[t.value.outlet]=t}),a}var yA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).snapshot=l,bA(It(c),n),c}return W(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(Ny);function M1(e,a){var t=function(e,a){var h=new x1([],{},{},"",{},Cn,a,null,e.root,-1,{});return new KN("",new ku(h,[]))}(e,a),n=new Ma([new Ml("",{})]),l=new Ma({}),c=new Ma({}),h=new Ma({}),_=new Ma(""),C=new kr(n,l,h,_,c,Cn,a,t.root);return C.snapshot=t.root,new yA(new ku(C,[]),t)}var kr=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this._futureSnapshot=C}return W(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(He(function(t){return cg(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(He(function(t){return cg(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ZN(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==a)for(n=t.length-1;n>=1;){var l=t[n],c=t[n-1];if(l.routeConfig&&""===l.routeConfig.path)n--;else{if(c.component)break;n--}}return _7(t.slice(n))}function _7(e){return e.reduce(function(a,t){return{params:Object.assign(Object.assign({},a.params),t.params),data:Object.assign(Object.assign({},a.data),t.data),resolve:Object.assign(Object.assign({},a.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var x1=function(){function e(a,t,n,l,c,h,_,C,k,D,I){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this.routeConfig=C,this._urlSegment=k,this._lastPathIndex=D,this._resolve=I}return W(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=cg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(l){return l.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),KN=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,l)).url=n,bA(It(c),l),c}return W(t,[{key:"toString",value:function(){return $N(this._root)}}]),t}(Ny);function bA(e,a){a.value._routerState=e,a.children.forEach(function(t){return bA(e,t)})}function $N(e){var a=e.children.length>0?" { ".concat(e.children.map($N).join(", ")," } "):"";return"".concat(e.value).concat(a)}function CA(e){if(e.snapshot){var a=e.snapshot,t=e._futureSnapshot;e.snapshot=t,wu(a.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),a.fragment!==t.fragment&&e.fragment.next(t.fragment),wu(a.params,t.params)||e.params.next(t.params),function(e,a){if(e.length!==a.length)return!1;for(var t=0;tl;){if(c-=l,!(n=n.parent))throw new Error("Invalid number of '../'");l=n.segments.length}return new SA(n,!1,l-c)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+c,e.numberOfDoubleDots)}(c,a,e),_=h.processChildren?E1(h.segmentGroup,h.index,c.commands):n3(h.segmentGroup,h.index,c.commands);return wA(h.segmentGroup,_,a,n,l)}function A1(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function By(e){return"object"==typeof e&&null!=e&&e.outlets}function wA(e,a,t,n,l){var c={};return n&&Ji(n,function(h,_){c[_]=Array.isArray(h)?h.map(function(C){return"".concat(C)}):"".concat(h)}),new nd(t.root===e?a:JN(t.root,e,a),c,l)}function JN(e,a,t){var n={};return Ji(e.children,function(l,c){n[c]=l===a?t:JN(l,a,t)}),new wn(e.segments,n)}var e3=function(){function e(a,t,n){if(F(this,e),this.isAbsolute=a,this.numberOfDoubleDots=t,this.commands=n,a&&n.length>0&&A1(n[0]))throw new Error("Root segment cannot have matrix parameters");var l=n.find(By);if(l&&l!==BN(n))throw new Error("{outlets:{}} has to be the last command")}return W(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),SA=function e(a,t,n){F(this,e),this.segmentGroup=a,this.processChildren=t,this.index=n};function n3(e,a,t){if(e||(e=new wn([],{})),0===e.segments.length&&e.hasChildren())return E1(e,a,t);var n=function(e,a,t){for(var n=0,l=a,c={match:!1,pathIndex:0,commandIndex:0};l=t.length)return c;var h=e.segments[l],_=t[n];if(By(_))break;var C="".concat(_),k=n0&&void 0===C)break;if(C&&k&&"object"==typeof k&&void 0===k.outlets){if(!i3(C,k,h))return c;n+=2}else{if(!i3(C,{},h))return c;n++}l++}return{match:!0,pathIndex:l,commandIndex:n}}(e,a,t),l=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},yg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var c=(a.matcher||Fy)(t,e,a);if(!c)return Object.assign({},yg);var h={};Ji(c.posParams,function(C,k){h[k]=C.path});var _=c.consumed.length>0?Object.assign(Object.assign({},h),c.consumed[c.consumed.length-1].parameters):h;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:_,positionalParamSegments:null!==(n=c.posParams)&&void 0!==n?n:{}}}function O1(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&R7(e,t,n)){var c=new wn(a,I7(e,a,n,new wn(t,e.children)));return c._sourceSegment=e,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===t.length&&L7(e,t,n)){var h=new wn(e.segments,O7(e,a,t,n,e.children,l));return h._sourceSegment=e,h._segmentIndexShift=a.length,{segmentGroup:h,slicedSegments:t}}var _=new wn(e.segments,e.children);return _._sourceSegment=e,_._segmentIndexShift=a.length,{segmentGroup:_,slicedSegments:t}}function O7(e,a,t,n,l,c){var C,h={},_=tn(n);try{for(_.s();!(C=_.n()).done;){var k=C.value;if(I1(e,t,k)&&!l[As(k)]){var D=new wn([],{});D._sourceSegment=e,D._segmentIndexShift="legacy"===c?e.segments.length:a.length,h[As(k)]=D}}}catch(I){_.e(I)}finally{_.f()}return Object.assign(Object.assign({},l),h)}function I7(e,a,t,n){var l={};l[Cn]=n,n._sourceSegment=e,n._segmentIndexShift=a.length;var h,c=tn(t);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(""===_.path&&As(_)!==Cn){var C=new wn([],{});C._sourceSegment=e,C._segmentIndexShift=a.length,l[As(_)]=C}}}catch(k){c.e(k)}finally{c.f()}return l}function R7(e,a,t){return t.some(function(n){return I1(e,a,n)&&As(n)!==Cn})}function L7(e,a,t){return t.some(function(n){return I1(e,a,n)})}function I1(e,a,t){return(!(e.hasChildren()||a.length>0)||"full"!==t.pathMatch)&&""===t.path}function h3(e,a,t,n){return!!(As(e)===n||n!==Cn&&I1(a,t,e))&&("**"===e.path||P1(a,e,t).matched)}function p3(e,a,t){return 0===a.length&&!e.children[t]}var Uy=function e(a){F(this,e),this.segmentGroup=a||null},v3=function e(a){F(this,e),this.urlTree=a};function bg(e){return new gn(function(a){return a.error(new Uy(e))})}function TA(e){return new gn(function(a){return a.error(new v3(e))})}function DA(e){return new gn(function(a){return a.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var g3=function(){function e(a,t,n,l,c){F(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=l,this.config=c,this.allowRedirects=!0,this.ngModule=a.get(rc)}return W(e,[{key:"apply",value:function(){var t=this,n=O1(this.urlTree.root,[],[],this.config).segmentGroup,l=new wn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Cn).pipe(He(function(_){return t.createUrlTree(R1(_),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(_o(function(_){if(_ instanceof v3)return t.allowRedirects=!1,t.match(_.urlTree);throw _ instanceof Uy?t.noMatchError(_):_}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Cn).pipe(He(function(h){return n.createUrlTree(R1(h),t.queryParams,t.fragment)})).pipe(_o(function(h){throw h instanceof Uy?n.noMatchError(h):h}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,l){var c=t.segments.length>0?new wn([],pd({},Cn,t)):t;return new nd(c,n,l)}},{key:"expandSegmentGroup",value:function(t,n,l,c){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(t,n,l).pipe(He(function(h){return new wn([],h)})):this.expandSegment(t,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(t,n,l){for(var c=this,h=[],_=0,C=Object.keys(l.children);_=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,uA(1),t?PN(a):EN(function(){return new f1}))}}())}},{key:"expandSegment",value:function(t,n,l,c,h,_){var C=this;return yt(l).pipe(Xh(function(k){return C.expandSegmentAgainstRoute(t,n,l,k,c,h,_).pipe(_o(function(I){if(I instanceof Uy)return ut(null);throw I}))}),lg(function(k){return!!k}),_o(function(k,D){if(k instanceof f1||"EmptyError"===k.name){if(p3(n,c,h))return ut(new wn([],{}));throw new Uy(n)}throw k}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,l,c,h,_,C){return h3(c,n,h,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(t,n,c,h,_):C&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_):bg(n):bg(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,l,c){var h=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TA(_):this.lineralizeSegments(l,_).pipe(Xr(function(C){var k=new wn(C,{});return h.expandSegment(t,k,n,C,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){var C=this,k=P1(n,c,h),I=k.consumedSegments,L=k.lastChild,G=k.positionalParamSegments;if(!k.matched)return bg(n);var Y=this.applyRedirectCommands(I,c.redirectTo,G);return c.redirectTo.startsWith("/")?TA(Y):this.lineralizeSegments(c,Y).pipe(Xr(function(Q){return C.expandSegment(t,n,l,Q.concat(h.slice(L)),_,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,l,c,h){var _=this;if("**"===l.path)return l.loadChildren?(l._loadedConfig?ut(l._loadedConfig):this.configLoader.load(t.injector,l)).pipe(He(function(Q){return l._loadedConfig=Q,new wn(c,{})})):ut(new wn(c,{}));var k=P1(n,l,c),I=k.consumedSegments,L=k.lastChild;if(!k.matched)return bg(n);var G=c.slice(L);return this.getChildConfig(t,l,c).pipe(Xr(function(Q){var ie=Q.module,fe=Q.routes,se=O1(n,I,G,fe),be=se.segmentGroup,Ce=se.slicedSegments,je=new wn(be.segments,be.children);if(0===Ce.length&&je.hasChildren())return _.expandChildren(ie,fe,je).pipe(He(function(Zn){return new wn(I,Zn)}));if(0===fe.length&&0===Ce.length)return ut(new wn(I,{}));var kt=As(l)===h;return _.expandSegment(ie,je,fe,Ce,kt?Cn:h,!0).pipe(He(function(Zn){return new wn(I.concat(Zn.segments),Zn.children)}))}))}},{key:"getChildConfig",value:function(t,n,l){var c=this;return n.children?ut(new _g(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?ut(n._loadedConfig):this.runCanLoadGuards(t.injector,n,l).pipe(Xr(function(h){return h?c.configLoader.load(t.injector,n).pipe(He(function(_){return n._loadedConfig=_,_})):function(e){return new gn(function(a){return a.error(g1("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(n)})):ut(new _g([],t))}},{key:"runCanLoadGuards",value:function(t,n,l){var c=this,h=n.canLoad;return h&&0!==h.length?ut(h.map(function(C){var D,k=t.get(C);if(function(e){return e&&qa(e.canLoad)}(k))D=k.canLoad(n,l);else{if(!qa(k))throw new Error("Invalid CanLoad guard");D=k(n,l)}return Su(D)})).pipe(zy(),Ya(function(C){if(Qh(C)){var k=g1('Redirecting to "'.concat(c.urlSerializer.serialize(C),'"'));throw k.url=C,k}}),He(function(C){return!0===C})):ut(!0)}},{key:"lineralizeSegments",value:function(t,n){for(var l=[],c=n.root;;){if(l=l.concat(c.segments),0===c.numberOfChildren)return ut(l);if(c.numberOfChildren>1||!c.children[Cn])return DA(t.redirectTo);c=c.children[Cn]}}},{key:"applyRedirectCommands",value:function(t,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,l)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,l,c){var h=this.createSegmentGroup(t,n.root,l,c);return new nd(h,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var l={};return Ji(t,function(c,h){if("string"==typeof c&&c.startsWith(":")){var C=c.substring(1);l[h]=n[C]}else l[h]=c}),l}},{key:"createSegmentGroup",value:function(t,n,l,c){var h=this,_=this.createSegments(t,n.segments,l,c),C={};return Ji(n.children,function(k,D){C[D]=h.createSegmentGroup(t,k,l,c)}),new wn(_,C)}},{key:"createSegments",value:function(t,n,l,c){var h=this;return n.map(function(_){return _.path.startsWith(":")?h.findPosParam(t,_,c):h.findOrReturn(_,l)})}},{key:"findPosParam",value:function(t,n,l){var c=l[n.path.substring(1)];if(!c)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return c}},{key:"findOrReturn",value:function(t,n){var h,l=0,c=tn(n);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(_.path===t.path)return n.splice(l),_;l++}}catch(C){c.e(C)}finally{c.f()}return t}}]),e}();function R1(e){for(var a={},t=0,n=Object.keys(e.children);t0||h.hasChildren())&&(a[l]=h)}return function(e){if(1===e.numberOfChildren&&e.children[Cn]){var a=e.children[Cn];return new wn(e.segments.concat(a.segments),a.children)}return e}(new wn(e.segments,a))}var AA=function e(a){F(this,e),this.path=a,this.route=this.path[this.path.length-1]},L1=function e(a,t){F(this,e),this.component=a,this.route=t};function B7(e,a,t){var n=e._root;return Gy(n,a?a._root:null,t,[n.value])}function F1(e,a,t){var n=function(e){if(!e)return null;for(var a=e.parent;a;a=a.parent){var t=a.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(a);return(n?n.module.injector:t).get(e)}function Gy(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=mg(a);return e.children.forEach(function(h){U7(h,c[h.value.outlet],t,n.concat([h.value]),l),delete c[h.value.outlet]}),Ji(c,function(h,_){return jy(h,t.getContext(_),l)}),l}function U7(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=e.value,h=a?a.value:null,_=t?t.getContext(e.value.outlet):null;if(h&&c.routeConfig===h.routeConfig){var C=G7(h,c,c.routeConfig.runGuardsAndResolvers);C?l.canActivateChecks.push(new AA(n)):(c.data=h.data,c._resolvedData=h._resolvedData),Gy(e,a,c.component?_?_.children:null:t,n,l),C&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new L1(_.outlet.component,h))}else h&&jy(a,_,l),l.canActivateChecks.push(new AA(n)),Gy(e,null,c.component?_?_.children:null:t,n,l);return l}function G7(e,a,t){if("function"==typeof t)return t(e,a);switch(t){case"pathParamsChange":return!rd(e.url,a.url);case"pathParamsOrQueryParamsChange":return!rd(e.url,a.url)||!wu(e.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!T1(e,a)||!wu(e.queryParams,a.queryParams);case"paramsChange":default:return!T1(e,a)}}function jy(e,a,t){var n=mg(e),l=e.value;Ji(n,function(c,h){jy(c,l.component?a?a.children.getContext(h):null:a,t)}),t.canDeactivateChecks.push(new L1(l.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,l))}var K7=function e(){F(this,e)};function b3(e){return new gn(function(a){return a.error(e)})}var Q7=function(){function e(a,t,n,l,c,h){F(this,e),this.rootComponentType=a,this.config=t,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=h}return W(e,[{key:"recognize",value:function(){var t=O1(this.urlTree.root,[],[],this.config.filter(function(_){return void 0===_.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,Cn);if(null===n)return null;var l=new x1([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Cn,this.rootComponentType,null,this.urlTree.root,-1,{}),c=new ku(l,n),h=new KN(this.url,c);return this.inheritParamsAndData(h._root),h}},{key:"inheritParamsAndData",value:function(t){var n=this,l=t.value,c=ZN(l,this.paramsInheritanceStrategy);l.params=Object.freeze(c.params),l.data=Object.freeze(c.data),t.children.forEach(function(h){return n.inheritParamsAndData(h)})}},{key:"processSegmentGroup",value:function(t,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,l)}},{key:"processChildren",value:function(t,n){for(var l=[],c=0,h=Object.keys(n.children);c0?BN(l).parameters:{};h=new x1(l,k,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+l.length,EA(t))}else{var D=P1(n,t,l);if(!D.matched)return null;_=D.consumedSegments,C=l.slice(D.lastChild),h=new x1(_,D.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+_.length,EA(t))}var I=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),L=O1(n,_,C,I.filter(function(se){return void 0===se.redirectTo}),this.relativeLinkResolution),G=L.segmentGroup,Y=L.slicedSegments;if(0===Y.length&&G.hasChildren()){var Q=this.processChildren(I,G);return null===Q?null:[new ku(h,Q)]}if(0===I.length&&0===Y.length)return[new ku(h,[])];var ie=As(t)===c,fe=this.processSegment(I,G,Y,ie?Cn:c);return null===fe?null:[new ku(h,fe)]}}]),e}();function w3(e){var l,a=[],t=new Set,n=tn(e);try{var c=function(){var L=l.value;if(!function(e){var a=e.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}(L))return a.push(L),"continue";var Y,G=a.find(function(Q){return L.value.routeConfig===Q.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,At(L.children)),t.add(G)):a.push(L)};for(n.s();!(l=n.n()).done;)c()}catch(I){n.e(I)}finally{n.f()}var C,_=tn(t);try{for(_.s();!(C=_.n()).done;){var k=C.value,D=w3(k.children);a.push(new ku(k.value,D))}}catch(I){_.e(I)}finally{_.f()}return a.filter(function(I){return!t.has(I)})}function S3(e){for(var a=e;a._sourceSegment;)a=a._sourceSegment;return a}function k3(e){for(var a=e,t=a._segmentIndexShift?a._segmentIndexShift:0;a._sourceSegment;)t+=(a=a._sourceSegment)._segmentIndexShift?a._segmentIndexShift:0;return t-1}function M3(e){return e.data||{}}function EA(e){return e.resolve||{}}function PA(e){return xa(function(a){var t=e(a);return t?yt(t).pipe(He(function(){return a})):ut(a)})}var T3=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return t}(function(){function e(){F(this,e)}return W(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}()),OA=new Ee("ROUTES"),D3=function(){function e(a,t,n,l){F(this,e),this.loader=a,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=l}return W(e,[{key:"load",value:function(t,n){var l=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var h=this.loadModuleFactory(n.loadChildren).pipe(He(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var C=_.create(t);return new _g(VN(C.injector.get(OA,void 0,yn.Self|yn.Optional)).map(xA),C)}),_o(function(_){throw n._loader$=void 0,_}));return n._loader$=new Oa(h,function(){return new qe}).pipe(Qo()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return"string"==typeof t?yt(this.loader.load(t)):Su(t()).pipe(Xr(function(l){return l instanceof C2?ut(l):yt(n.compiler.compileModuleAsync(l))}))}}]),e}(),N1=function e(){F(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Cg,this.attachRef=null},Cg=function(){function e(){F(this,e),this.contexts=new Map}return W(e,[{key:"onChildOutletCreated",value:function(t,n){var l=this.getOrCreateContext(t);l.outlet=n,this.contexts.set(t,l)}},{key:"onChildOutletDestroyed",value:function(t){var n=this.getContext(t);n&&(n.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var n=this.getContext(t);return n||(n=new N1,this.contexts.set(t,n)),n}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),e}(),uW=function(){function e(){F(this,e)}return W(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function cW(e){throw e}function fW(e,a,t){return a.parse("/")}function A3(e,a){return ut(null)}var dW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ta=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=l,this.location=c,this.config=k,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new qe,this.errorHandler=cW,this.malformedUriErrorHandler=fW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:A3,afterPreactivation:A3},this.urlHandlingStrategy=new uW,this.routeReuseStrategy=new T3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=h.get(rc),this.console=h.get(hw);var G=h.get(ft);this.isNgZoneEnabled=G instanceof ft&&ft.isInAngularZone(),this.resetConfig(k),this.currentUrlTree=new nd(new wn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new D3(_,C,function(Q){return D.triggerEvent(new hA(Q))},function(Q){return D.triggerEvent(new LN(Q))}),this.routerState=M1(this.currentUrlTree,this.rootComponentType),this.transitions=new Ma({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return W(a,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var l=this,c=this.events;return n.pipe(vr(function(h){return 0!==h.id}),He(function(h){return Object.assign(Object.assign({},h),{extractedUrl:l.urlHandlingStrategy.extract(h.rawUrl)})}),xa(function(h){var _=!1,C=!1;return ut(h).pipe(Ya(function(k){l.currentNavigation={id:k.id,initialUrl:k.currentRawUrl,extractedUrl:k.extractedUrl,trigger:k.source,extras:k.extras,previousNavigation:l.lastSuccessfulNavigation?Object.assign(Object.assign({},l.lastSuccessfulNavigation),{previousNavigation:null}):null}}),xa(function(k){var D=!l.navigated||k.extractedUrl.toString()!==l.browserUrlTree.toString(),I=("reload"===l.onSameUrlNavigation||D)&&l.urlHandlingStrategy.shouldProcessUrl(k.rawUrl);if(V1(k.source)&&(l.browserUrlTree=k.rawUrl),I)return ut(k).pipe(xa(function(Ce){var je=l.transitions.getValue();return c.next(new fA(Ce.id,l.serializeUrl(Ce.extractedUrl),Ce.source,Ce.restoredState)),je!==l.transitions.getValue()?Ar:Promise.resolve(Ce)}),function(e,a,t,n){return xa(function(l){return function(e,a,t,n,l){return new g3(e,a,t,n,l).apply()}(e,a,t,l.extractedUrl,n).pipe(He(function(c){return Object.assign(Object.assign({},l),{urlAfterRedirects:c})}))})}(l.ngModule.injector,l.configLoader,l.urlSerializer,l.config),Ya(function(Ce){l.currentNavigation=Object.assign(Object.assign({},l.currentNavigation),{finalUrl:Ce.urlAfterRedirects})}),function(e,a,t,n,l){return Xr(function(c){return function(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var h=new Q7(e,a,t,n,l,c).recognize();return null===h?b3(new K7):ut(h)}catch(_){return b3(_)}}(e,a,c.urlAfterRedirects,t(c.urlAfterRedirects),n,l).pipe(He(function(h){return Object.assign(Object.assign({},c),{targetSnapshot:h})}))})}(l.rootComponentType,l.config,function(Ce){return l.serializeUrl(Ce)},l.paramsInheritanceStrategy,l.relativeLinkResolution),Ya(function(Ce){"eager"===l.urlUpdateStrategy&&(Ce.extras.skipLocationChange||l.setBrowserUrl(Ce.urlAfterRedirects,Ce),l.browserUrlTree=Ce.urlAfterRedirects);var je=new dA(Ce.id,l.serializeUrl(Ce.extractedUrl),l.serializeUrl(Ce.urlAfterRedirects),Ce.targetSnapshot);c.next(je)}));if(D&&l.rawUrlTree&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){var Y=k.extractedUrl,Q=k.source,ie=k.restoredState,fe=k.extras,se=new fA(k.id,l.serializeUrl(Y),Q,ie);c.next(se);var be=M1(Y,l.rootComponentType).snapshot;return ut(Object.assign(Object.assign({},k),{targetSnapshot:be,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},fe),{skipLocationChange:!1,replaceUrl:!1})}))}return l.rawUrlTree=k.rawUrl,l.browserUrlTree=k.urlAfterRedirects,k.resolve(null),Ar}),PA(function(k){var Y=k.extras;return l.hooks.beforePreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),Ya(function(k){var D=new ON(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot);l.triggerEvent(D)}),He(function(k){return Object.assign(Object.assign({},k),{guards:B7(k.targetSnapshot,k.currentSnapshot,l.rootContexts)})}),function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.currentSnapshot,c=t.guards,h=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===h.length?ut(Object.assign(Object.assign({},t),{guardsResult:!0})):function(e,a,t,n){return yt(e).pipe(Xr(function(l){return function(e,a,t,n,l){var c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;return c&&0!==c.length?ut(c.map(function(_){var k,C=F1(_,a,l);if(function(e){return e&&qa(e.canDeactivate)}(C))k=Su(C.canDeactivate(e,a,t,n));else{if(!qa(C))throw new Error("Invalid CanDeactivate guard");k=Su(C(e,a,t,n))}return k.pipe(lg())})).pipe(zy()):ut(!0)}(l.component,l.route,t,a,n)}),lg(function(l){return!0!==l},!0))}(_,n,l,e).pipe(Xr(function(C){return C&&function(e){return"boolean"==typeof e}(C)?function(e,a,t,n){return yt(a).pipe(Xh(function(l){return d1(function(e,a){return null!==e&&a&&a(new a7(e)),ut(!0)}(l.route.parent,n),function(e,a){return null!==e&&a&&a(new o7(e)),ut(!0)}(l.route,n),function(e,a,t){var n=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(function(h){return function(e){var a=e.routeConfig?e.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:e,guards:a}:null}(h)}).filter(function(h){return null!==h}).map(function(h){return Ly(function(){return ut(h.guards.map(function(C){var D,k=F1(C,h.node,t);if(function(e){return e&&qa(e.canActivateChild)}(k))D=Su(k.canActivateChild(n,e));else{if(!qa(k))throw new Error("Invalid CanActivateChild guard");D=Su(k(n,e))}return D.pipe(lg())})).pipe(zy())})});return ut(c).pipe(zy())}(e,l.path,t),function(e,a,t){var n=a.routeConfig?a.routeConfig.canActivate:null;return n&&0!==n.length?ut(n.map(function(c){return Ly(function(){var _,h=F1(c,a,t);if(function(e){return e&&qa(e.canActivate)}(h))_=Su(h.canActivate(a,e));else{if(!qa(h))throw new Error("Invalid CanActivate guard");_=Su(h(a,e))}return _.pipe(lg())})})).pipe(zy()):ut(!0)}(e,l.route,t))}),lg(function(l){return!0!==l},!0))}(n,h,e,a):ut(C)}),He(function(C){return Object.assign(Object.assign({},t),{guardsResult:C})}))})}(l.ngModule.injector,function(k){return l.triggerEvent(k)}),Ya(function(k){if(Qh(k.guardsResult)){var D=g1('Redirecting to "'.concat(l.serializeUrl(k.guardsResult),'"'));throw D.url=k.guardsResult,D}var I=new IN(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot,!!k.guardsResult);l.triggerEvent(I)}),vr(function(k){return!!k.guardsResult||(l.restoreHistory(k),l.cancelNavigationTransition(k,""),!1)}),PA(function(k){if(k.guards.canActivateChecks.length)return ut(k).pipe(Ya(function(D){var I=new RN(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}),xa(function(D){var I=!1;return ut(D).pipe(function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.guards.canActivateChecks;if(!l.length)return ut(t);var c=0;return yt(l).pipe(Xh(function(h){return function(e,a,t,n){return function(e,a,t,n){var l=Object.keys(e);if(0===l.length)return ut({});var c={};return yt(l).pipe(Xr(function(h){return function(e,a,t,n){var l=F1(e,a,n);return Su(l.resolve?l.resolve(a,t):l(a,t))}(e[h],a,t,n).pipe(Ya(function(_){c[h]=_}))}),uA(1),Xr(function(){return Object.keys(c).length===l.length?ut(c):Ar}))}(e._resolve,e,a,n).pipe(He(function(c){return e._resolvedData=c,e.data=Object.assign(Object.assign({},e.data),ZN(e,t).resolve),null}))}(h.route,n,e,a)}),Ya(function(){return c++}),uA(1),Xr(function(h){return c===l.length?ut(t):Ar}))})}(l.paramsInheritanceStrategy,l.ngModule.injector),Ya({next:function(){return I=!0},complete:function(){I||(l.restoreHistory(D),l.cancelNavigationTransition(D,"At least one route resolver didn't emit any value."))}}))}),Ya(function(D){var I=new i7(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}))}),PA(function(k){var Y=k.extras;return l.hooks.afterPreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),He(function(k){var D=function(e,a,t){var n=D1(e,a._root,t?t._root:void 0);return new yA(n,a)}(l.routeReuseStrategy,k.targetSnapshot,k.currentRouterState);return Object.assign(Object.assign({},k),{targetRouterState:D})}),Ya(function(k){l.currentUrlTree=k.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,k.rawUrl),l.routerState=k.targetRouterState,"deferred"===l.urlUpdateStrategy&&(k.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,k),l.browserUrlTree=k.urlAfterRedirects)}),function(a,t,n){return He(function(l){return new D7(t,l.targetRouterState,l.currentRouterState,n).activate(a),l})}(l.rootContexts,l.routeReuseStrategy,function(k){return l.triggerEvent(k)}),Ya({next:function(){_=!0},complete:function(){_=!0}}),function(e){return function(a){return a.lift(new n7(e))}}(function(){if(!_&&!C){var k="Navigation ID ".concat(h.id," is not equal to the current navigation id ").concat(l.navigationId);"replace"===l.canceledNavigationResolution&&l.restoreHistory(h),l.cancelNavigationTransition(h,k)}l.currentNavigation=null}),_o(function(k){if(C=!0,function(e){return e&&e[pA]}(k)){var D=Qh(k.url);D||(l.navigated=!0,l.restoreHistory(h,!0));var I=new p1(h.id,l.serializeUrl(h.extractedUrl),k.message);c.next(I),D?setTimeout(function(){var G=l.urlHandlingStrategy.merge(k.url,l.rawUrlTree),Y={skipLocationChange:h.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||V1(h.source)};l.scheduleNavigation(G,"imperative",null,Y,{resolve:h.resolve,reject:h.reject,promise:h.promise})},0):h.resolve(!1)}else{l.restoreHistory(h,!0);var L=new ug(h.id,l.serializeUrl(h.extractedUrl),k);c.next(L);try{h.resolve(l.errorHandler(k))}catch(G){h.reject(G)}}return Ar}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(l){var c=n.extractLocationChangeInfoFromEvent(l);n.shouldScheduleNavigation(n.lastLocationChangeInfo,c)&&setTimeout(function(){var h=c.source,_=c.state,C=c.urlTree,k={replaceUrl:!0};if(_){var D=Object.assign({},_);delete D.navigationId,delete D.\u0275routerPageId,0!==Object.keys(D).length&&(k.state=D)}n.scheduleNavigation(C,h,_,k)},0),n.lastLocationChangeInfo=c}))}},{key:"extractLocationChangeInfoFromEvent",value:function(n){var l;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(l=n.state)||void 0===l?void 0:l.navigationId)?n.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(n,l){if(!n)return!0;var c=l.urlTree.toString()===n.urlTree.toString();return!(l.transitionId===n.transitionId&&c&&("hashchange"===l.source&&"popstate"===n.source||"popstate"===l.source&&"hashchange"===n.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){u3(n),this.config=n.map(xA),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.relativeTo,h=l.queryParams,_=l.fragment,C=l.queryParamsHandling,k=l.preserveFragment,D=c||this.routerState.root,I=k?this.currentUrlTree.fragment:_,L=null;switch(C){case"merge":L=Object.assign(Object.assign({},this.currentUrlTree.queryParams),h);break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=h||null}return null!==L&&(L=this.removeEmptyProps(L)),w7(D,this.currentUrlTree,n,L,null!=I?I:null)}},{key:"navigateByUrl",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},c=Qh(n)?n:this.parseUrl(n),h=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(h,"imperative",null,l)}},{key:"navigate",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return pW(n),this.navigateByUrl(this.createUrlTree(n,l),l)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var l;try{l=this.urlSerializer.parse(n)}catch(c){l=this.malformedUriErrorHandler(c,this.urlSerializer,n)}return l}},{key:"isActive",value:function(n,l){var c;if(c=!0===l?Object.assign({},dW):!1===l?Object.assign({},hW):l,Qh(n))return vA(this.currentUrlTree,n,c);var h=this.parseUrl(n);return vA(this.currentUrlTree,h,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var h=n[c];return null!=h&&(l[c]=h),l},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(l){n.navigated=!0,n.lastSuccessfulId=l.id,n.currentPageId=l.targetPageId,n.events.next(new kl(l.id,n.serializeUrl(l.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,l.resolve(!0)},function(l){n.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(n,l,c,h,_){var C,k;if(this.disposed)return Promise.resolve(!1);var Q,ie,fe,D=this.getTransition(),I=V1(l)&&D&&!V1(D.source),Y=(this.lastSuccessfulId===D.id||this.currentNavigation?D.rawUrl:D.urlAfterRedirects).toString()===n.toString();if(I&&Y)return Promise.resolve(!0);_?(Q=_.resolve,ie=_.reject,fe=_.promise):fe=new Promise(function(je,$e){Q=je,ie=$e});var be,se=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(c=this.location.getState()),be=c&&c.\u0275routerPageId?c.\u0275routerPageId:h.replaceUrl||h.skipLocationChange?null!==(C=this.browserPageId)&&void 0!==C?C:0:(null!==(k=this.browserPageId)&&void 0!==k?k:0)+1):be=0,this.setTransition({id:se,targetPageId:be,source:l,restoredState:c,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:h,resolve:Q,reject:ie,promise:fe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fe.catch(function(je){return Promise.reject(je)})}},{key:"setBrowserUrl",value:function(n,l){var c=this.urlSerializer.serialize(n),h=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",h):this.location.go(c,"",h)}},{key:"restoreHistory",value:function(n){var c,h,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var _=this.currentPageId-n.targetPageId,C="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl);C&&0!==_?this.location.historyGo(_):this.currentUrlTree===(null===(h=this.currentNavigation)||void 0===h?void 0:h.finalUrl)&&0===_&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,l){var c=new p1(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(c),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":l}:{navigationId:n}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Yl),ce(y1),ce(Cg),ce(Jv),ce(kn),ce(qf),ce(gu),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function pW(e){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{};F(this,a),this.router=t,this.viewportScroller=n,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration=l.scrollPositionRestoration||"disabled",l.anchorScrolling=l.anchorScrolling||"disabled"}return W(a,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof fA?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=l.navigationTrigger,n.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof kl&&(n.lastId=l.id,n.scheduleScrollEvent(l,n.router.parseUrl(l.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof FN&&(l.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,l){this.router.triggerEvent(new FN(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ta),ce(Kw),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ad=new Ee("ROUTER_CONFIGURATION"),LA=new Ee("ROUTER_FORROOT_GUARD"),I3=[Jv,{provide:y1,useClass:b1},{provide:Ta,useFactory:function(e,a,t,n,l,c,h){var _=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9?arguments[9]:void 0,D=new Ta(null,e,a,t,n,l,c,VN(h));return C&&(D.urlHandlingStrategy=C),k&&(D.routeReuseStrategy=k),V3(_,D),_.enableTracing&&D.events.subscribe(function(I){var L,G;null===(L=console.group)||void 0===L||L.call(console,"Router Event: ".concat(I.constructor.name)),console.log(I.toString()),console.log(I),null===(G=console.groupEnd)||void 0===G||G.call(console)}),D},deps:[y1,Cg,Jv,kn,qf,gu,OA,ad,[function e(){F(this,e)},new oi],[function e(){F(this,e)},new oi]]},Cg,{provide:kr,useFactory:function(e){return e.routerState.root},deps:[Ta]},{provide:qf,useClass:eG},P3,H1,mW,{provide:ad,useValue:{enableTracing:!1}}];function R3(){return new Yv("Router",Ta)}var FA=function(){var e=function(){function a(t,n){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n,l){return{ngModule:a,providers:[I3,F3(n),{provide:LA,useFactory:L3,deps:[[Ta,new oi,new Fo]]},{provide:ad,useValue:l||{}},{provide:Qv,useFactory:yW,deps:[fc,[new jp(Vw),new oi],ad]},{provide:RA,useFactory:_W,deps:[Ta,Kw,ad]},{provide:IA,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:H1},{provide:Yv,multi:!0,useFactory:R3},[od,{provide:fo,multi:!0,useFactory:B3,deps:[od]},{provide:z3,useFactory:H3,deps:[od]},{provide:dw,multi:!0,useExisting:z3}]]}}},{key:"forChild",value:function(n){return{ngModule:a,providers:[F3(n)]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(LA,8),ce(Ta,8))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function _W(e,a,t){return t.scrollOffset&&a.setOffset(t.scrollOffset),new RA(e,a,t)}function yW(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new yF(e,a):new mD(e,a)}function L3(e){return"guarded"}function F3(e){return[{provide:XH,multi:!0,useValue:e},{provide:OA,multi:!0,useValue:e}]}function V3(e,a){e.errorHandler&&(a.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(a.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(a.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(a.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(a.urlUpdateStrategy=e.urlUpdateStrategy)}var od=function(){var e=function(){function a(t){F(this,a),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qe}return W(a,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(gF,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var c=null,h=new Promise(function(k){return c=k}),_=n.injector.get(Ta),C=n.injector.get(ad);return"disabled"===C.initialNavigation?(_.setUpLocationChangeListener(),c(!0)):"enabled"===C.initialNavigation||"enabledBlocking"===C.initialNavigation?(_.hooks.afterPreactivation=function(){return n.initNavigation?ut(null):(n.initNavigation=!0,c(!0),n.resultOfPreactivationDone)},_.initialNavigation()):c(!0),h})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(ad),c=this.injector.get(P3),h=this.injector.get(RA),_=this.injector.get(Ta),C=this.injector.get(lc);n===C.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&_.initialNavigation(),c.setUpPreloading(),h.init(),_.resetRootComponentType(C.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function B3(e){return e.appInitializer.bind(e)}function H3(e){return e.bootstrapListener.bind(e)}var z3=new Ee("Router Initializer"),CW=function(){function e(a){this.user=a.user,this.role=a.role,this.admin=a.admin}return Object.defineProperty(e.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),e}();function it(e){return null!=e&&"false"!=="".concat(e)}function Di(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U3(e)?Number(e):a}function U3(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Sg(e){return Array.isArray(e)?e:[e]}function mi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function bc(e){return e instanceof Ue?e.nativeElement:e}function G3(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,t=[];if(null!=e){var c,n=Array.isArray(e)?e:"".concat(e).split(a),l=tn(n);try{for(l.s();!(c=l.n()).done;){var h=c.value,_="".concat(h).trim();_&&t.push(_)}}catch(C){l.e(C)}finally{l.f()}}return t}function Tl(e,a,t,n){return nt(t)&&(n=t,t=void 0),n?Tl(e,a,t).pipe(He(function(l){return Bu(l)?n.apply(void 0,At(l)):n(l)})):new gn(function(l){j3(e,a,function(h){l.next(arguments.length>1?Array.prototype.slice.call(arguments):h)},l,t)})}function j3(e,a,t,n,l){var c;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var h=e;e.addEventListener(a,t,l),c=function(){return h.removeEventListener(a,t,l)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var _=e;e.on(a,t),c=function(){return _.off(a,t)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var C=e;e.addListener(a,t),c=function(){return C.removeListener(a,t)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var k=0,D=e.length;k1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=l;var h=this.id,_=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(_,h,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(l.flush.bind(l,this),h)}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&this.delay===h&&!1===this.pending)return c;clearInterval(c)}},{key:"execute",value:function(l,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var h=this._execute(l,c);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var h=!1,_=void 0;try{this.work(l)}catch(C){h=!0,_=!!C&&C||new Error(C)}if(h)return this.unsubscribe(),_}},{key:"_unsubscribe",value:function(){var l=this.id,c=this.scheduler,h=c.actions,_=h.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==_&&h.splice(_,1),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null}}]),t}(function(e){ae(t,e);var a=ue(t);function t(n,l){return F(this,t),a.call(this)}return W(t,[{key:"schedule",value:function(l){return this}}]),t}(Be)),q3=function(){var e=function(){function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.now;F(this,a),this.SchedulerAction=t,this.now=n}return W(a,[{key:"schedule",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,n).schedule(c,l)}}]),a}();return e.now=function(){return Date.now()},e}(),z1=function(e){ae(t,e);var a=ue(t);function t(n){var l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q3.now;return F(this,t),(l=a.call(this,n,function(){return t.delegate&&t.delegate!==It(l)?t.delegate.now():c()})).actions=[],l.active=!1,l.scheduled=void 0,l}return W(t,[{key:"schedule",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,h=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(l,c,h):Ie(Oe(t.prototype),"schedule",this).call(this,l,c,h)}},{key:"flush",value:function(l){var c=this.actions;if(this.active)c.push(l);else{var h;this.active=!0;do{if(h=l.execute(l.state,l.delay))break}while(l=c.shift());if(this.active=!1,h){for(;l=c.shift();)l.unsubscribe();throw h}}}}]),t}(q3),X3=1,DW=function(){return Promise.resolve()}(),Yy={};function Z3(e){return e in Yy&&(delete Yy[e],!0)}var VA_setImmediate=function(a){var t=X3++;return Yy[t]=!0,DW.then(function(){return Z3(t)&&a()}),t},VA_clearImmediate=function(a){Z3(a)},AW=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n,l)).scheduler=n,c.work=l,c}return W(t,[{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==h&&h>0?Ie(Oe(t.prototype),"requestAsyncId",this).call(this,l,c,h):(l.actions.push(this),l.scheduled||(l.scheduled=VA_setImmediate(l.flush.bind(l,null))))}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&h>0||null===h&&this.delay>0)return Ie(Oe(t.prototype),"recycleAsyncId",this).call(this,l,c,h);0===l.actions.length&&(VA_clearImmediate(c),l.scheduled=void 0)}}]),t}(kg),BA=new(function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"flush",value:function(l){this.active=!0,this.scheduled=void 0;var h,c=this.actions,_=-1,C=c.length;l=l||c.shift();do{if(h=l.execute(l.state,l.delay))break}while(++_=0}function K3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=-1;return zA(a)?n=Number(a)<1?1:Number(a):rt(a)&&(t=a),rt(t)||(t=Mg),new gn(function(l){var c=zA(e)?e:+e-t.now();return t.schedule(VW,c,{index:0,period:n,subscriber:l})})}function VW(e){var a=e.index,t=e.period,n=e.subscriber;if(n.next(a),!n.closed){if(-1===t)return n.complete();e.index=a+1,this.schedule(e,t)}}function U1(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return LW(function(){return K3(e,a)})}function Ht(e){return function(a){return a.lift(new $3(e))}}var $3=function(){function e(a){F(this,e),this.notifier=a}return W(e,[{key:"call",value:function(t,n){var l=new Q3(t),c=Ii(this.notifier,new Gc(l));return c&&!l.seenValue?(l.add(c),n.subscribe(l)):l}}]),e}(),Q3=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n)).seenValue=!1,l}return W(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),t}(at);function GA(e,a){return new gn(a?function(t){return a.schedule(nV,0,{error:e,subscriber:t})}:function(t){return t.error(e)})}function nV(e){e.subscriber.error(e.error)}var Mu,qy=function(){var e=function(){function a(t,n,l){F(this,a),this.kind=t,this.value=n,this.error=l,this.hasValue="N"===t}return W(a,[{key:"observe",value:function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}},{key:"do",value:function(n,l,c){switch(this.kind){case"N":return n&&n(this.value);case"E":return l&&l(this.error);case"C":return c&&c()}}},{key:"accept",value:function(n,l,c){return n&&"function"==typeof n.next?this.observe(n):this.do(n,l,c)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return ut(this.value);case"E":return GA(this.error);case"C":return h1()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(n){return void 0!==n?new a("N",n):a.undefinedValueNotification}},{key:"createError",value:function(n){return new a("E",void 0,n)}},{key:"createComplete",value:function(){return a.completeNotification}}]),a}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();try{Mu="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Mu=!1}var qo,Xy,wc,WA,en=function(){var e=function a(t){F(this,a),this._platformId=t,this.isBrowser=this._platformId?function(e){return"browser"===e}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Mu)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(ce(jv))},e.\u0275prov=We({factory:function(){return new e(ce(jv))},token:e,providedIn:"root"}),e}(),ep=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),G1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function j1(){if(qo)return qo;if("object"!=typeof document||!document)return qo=new Set(G1);var e=document.createElement("input");return qo=new Set(G1.filter(function(a){return e.setAttribute("type",a),e.type===a}))}function tp(e){return function(){if(null==Xy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Xy=!0}}))}finally{Xy=Xy||!1}return Xy}()?e:!!e.capture}function rV(){if(null==wc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wc=!1;if("scrollBehavior"in document.documentElement.style)wc=!0;else{var e=Element.prototype.scrollTo;wc=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return wc}function W1(e){if(function(){if(null==WA){var e="undefined"!=typeof document?document.head:null;WA=!(!e||!e.createShadowRoot&&!e.attachShadow)}return WA}()){var a=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Ky(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var a=e.shadowRoot.activeElement;if(a===e)break;e=a}return e}function rp(e){return e.composedPath?e.composedPath()[0]:e.target}var iV=new Ee("cdk-dir-doc",{providedIn:"root",factory:function(){return tM(lt)}}),Mr=function(){var e=function(){function a(t){if(F(this,a),this.value="ltr",this.change=new ye,t){var c=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===c||"rtl"===c?c:"ltr"}}return W(a,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(iV,8))},e.\u0275prov=We({factory:function(){return new e(ce(iV,8))},token:e,providedIn:"root"}),e}(),$y=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),qA=function e(){F(this,e)};function Y1(e){return e&&"function"==typeof e.connect}var XA=function(){function e(){F(this,e)}return W(e,[{key:"applyChanges",value:function(t,n,l,c,h){t.forEachOperation(function(_,C,k){var D,I;if(null==_.previousIndex){var L=l(_,C,k);D=n.createEmbeddedView(L.templateRef,L.context,L.index),I=1}else null==k?(n.remove(C),I=3):(D=n.get(C),n.move(D,k),I=2);h&&h({context:null==D?void 0:D.context,operation:I,record:_})})}},{key:"detach",value:function(){}}]),e}(),ip=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];F(this,e),this._multiple=t,this._emitChanges=l,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,n&&n.length&&(t?n.forEach(function(c){return a._markSelected(c)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return W(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,n=arguments.length,l=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new gn(function(c){n._globalSubscription||n._addGlobalListener();var h=l>0?n._scrolled.pipe(U1(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){h.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):ut()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(l,c){return n.deregister(c)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,l){var c=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe(vr(function(h){return!h||c.indexOf(h)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(h,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=bc(l),h=n.getElementRef().nativeElement;do{if(c==h)return!0}while(c=c.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Tl(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(lt,8))},token:e,providedIn:"root"}),e}(),yo=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._platform=t,this._change=new qe,this._changeListener=function(h){c._change.next(h)},this._document=l,n.runOutsideAngular(function(){if(t.isBrowser){var h=c._getWindow();h.addEventListener("resize",c._changeListener),h.addEventListener("orientationchange",c._changeListener)}c.change().subscribe(function(){return c._viewportSize=null})})}return W(a,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),l=this.getViewportSize(),c=l.width,h=l.height;return{top:n.top,left:n.left,bottom:n.top+h,right:n.left+c,height:h,width:c}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,l=this._getWindow(),c=n.documentElement,h=c.getBoundingClientRect();return{top:-h.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-h.left||n.body.scrollLeft||l.scrollX||c.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(U1(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt,8))},token:e,providedIn:"root"}),e}(),lp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),q1=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$y,ep,lp],$y,lp]}),e}(),X1=function(){function e(){F(this,e)}return W(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),sd=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=h,_}return t}(X1),Ps=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).templateRef=n,h.viewContainerRef=l,h.context=c,h}return W(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=c,Ie(Oe(t.prototype),"attach",this).call(this,l)}},{key:"detach",value:function(){return this.context=void 0,Ie(Oe(t.prototype),"detach",this).call(this)}}]),t}(X1),eE=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).element=n instanceof Ue?n.nativeElement:n,l}return t}(X1),Jy=function(){function e(){F(this,e),this._isDisposed=!1,this.attachDomPortal=null}return W(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof sd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ps?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof eE?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),tE=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C,k;return F(this,t),(k=a.call(this)).outletElement=n,k._componentFactoryResolver=l,k._appRef=c,k._defaultInjector=h,k.attachDomPortal=function(D){var I=D.element,L=k._document.createComment("dom-portal");I.parentNode.insertBefore(L,I),k.outletElement.appendChild(I),k._attachedPortal=D,Ie((C=It(k),Oe(t.prototype)),"setDisposeFn",C).call(C,function(){L.parentNode&&L.parentNode.replaceChild(I,L)})},k._document=_,k}return W(t,[{key:"attachComponentPortal",value:function(l){var C,c=this,_=(l.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(l.component);return l.viewContainerRef?(C=l.viewContainerRef.createComponent(_,l.viewContainerRef.length,l.injector||l.viewContainerRef.injector),this.setDisposeFn(function(){return C.destroy()})):(C=_.create(l.injector||this._defaultInjector),this._appRef.attachView(C.hostView),this.setDisposeFn(function(){c._appRef.detachView(C.hostView),C.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(C)),this._attachedPortal=l,C}},{key:"attachTemplatePortal",value:function(l){var c=this,h=l.viewContainerRef,_=h.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(C){return c.outletElement.appendChild(C)}),_.detectChanges(),this.setDisposeFn(function(){var C=h.indexOf(_);-1!==C&&h.remove(C)}),this._attachedPortal=l,_}},{key:"dispose",value:function(){Ie(Oe(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(l){return l.hostView.rootNodes[0]}}]),t}(Jy),nE=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){return F(this,n),t.call(this,l,c)}return n}(Ps);return e.\u0275fac=function(t){return new(t||e)(N(Xn),N($n))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Pe]}),e}(),Os=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _,C;return F(this,n),(C=t.call(this))._componentFactoryResolver=l,C._viewContainerRef=c,C._isInitialized=!1,C.attached=new ye,C.attachDomPortal=function(k){var D=k.element,I=C._document.createComment("dom-portal");k.setAttachedHost(It(C)),D.parentNode.insertBefore(I,D),C._getRootNode().appendChild(D),C._attachedPortal=k,Ie((_=It(C),Oe(n.prototype)),"setDisposeFn",_).call(_,function(){I.parentNode&&I.parentNode.replaceChild(D,I)})},C._document=h,C}return W(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(c){this.hasAttached()&&!c&&!this._isInitialized||(this.hasAttached()&&Ie(Oe(n.prototype),"detach",this).call(this),c&&Ie(Oe(n.prototype),"attach",this).call(this,c),this._attachedPortal=c)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(c){c.setAttachedHost(this);var h=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,C=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),k=h.createComponent(C,h.length,c.injector||h.injector);return h!==this._viewContainerRef&&this._getRootNode().appendChild(k.hostView.rootNodes[0]),Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return k.destroy()}),this._attachedPortal=c,this._attachedRef=k,this.attached.emit(k),k}},{key:"attachTemplatePortal",value:function(c){var h=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return h._viewContainerRef.clear()}),this._attachedPortal=c,this._attachedRef=_,this.attached.emit(_),_}},{key:"_getRootNode",value:function(){var c=this._viewContainerRef.element.nativeElement;return c.nodeType===c.ELEMENT_NODE?c:c.parentNode}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(Ki),N($n),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Pe]}),e}(),xg=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Sc=function(){function e(a,t){F(this,e),this.predicate=a,this.inclusive=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new tY(t,this.predicate,this.inclusive))}}]),e}(),tY=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).predicate=l,h.inclusive=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){var h,c=this.destination;try{h=this.predicate(l,this.index++)}catch(_){return void c.error(_)}this.nextOrComplete(l,h)}},{key:"nextOrComplete",value:function(l,c){var h=this.destination;Boolean(c)?h.next(l):(this.inclusive&&h.next(l),h.complete())}}]),t}(Ze);function Bi(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;nl.height||n.scrollWidth>l.width}}]),e}(),SV=function(){function e(a,t,n,l){var c=this;F(this,e),this._scrollDispatcher=a,this._ngZone=t,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=function(){c.disable(),c._overlayRef.hasAttached()&&c._ngZone.run(function(){return c._overlayRef.detach()})}}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var l=t._viewportRuler.getViewportScrollPosition().top;Math.abs(l-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),kV=function(){function e(){F(this,e)}return W(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function fE(e,a){return a.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Dc(e,a){return a.some(function(t){return e.topt.bottom||e.leftt.right})}var lQ=function(){function e(a,t,n,l){F(this,e),this._scrollDispatcher=a,this._viewportRuler=t,this._ngZone=n,this._config=l,this._scrollSubscription=null}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var l=t._overlayRef.overlayElement.getBoundingClientRect(),c=t._viewportRuler.getViewportSize(),h=c.width,_=c.height;fE(l,[{width:h,height:_,bottom:_,right:h,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),uQ=function(){var e=function a(t,n,l,c){var h=this;F(this,a),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new kV},this.close=function(_){return new SV(h._scrollDispatcher,h._ngZone,h._viewportRuler,_)},this.block=function(){return new kY(h._viewportRuler,h._document)},this.reposition=function(_){return new lQ(h._scrollDispatcher,h._viewportRuler,h._ngZone,_)},this._document=c};return e.\u0275fac=function(t){return new(t||e)(ce(op),ce(yo),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(op),ce(yo),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),up=function e(a){if(F(this,e),this.scrollStrategy=new kV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a)for(var n=0,l=Object.keys(a);n-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),TY=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this,l))._keydownListener=function(h){for(var _=c._attachedOverlays,C=_.length-1;C>-1;C--)if(_[C]._keydownEvents.observers.length>0){_[C]._keydownEvents.next(h);break}},c}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"add",this).call(this,c),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),DY=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._platform=c,h._cursorStyleIsSet=!1,h._clickListener=function(_){for(var C=rp(_),k=h._attachedOverlays.slice(),D=k.length-1;D>-1;D--){var I=k[D];if(!(I._outsidePointerEvents.observers.length<1)&&I.hasAttached()){if(I.overlayElement.contains(C))break;I._outsidePointerEvents.next(_)}}},h}return W(n,[{key:"add",value:function(c){if(Ie(Oe(n.prototype),"add",this).call(this,c),!this._isAttached){var h=this._document.body;h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=h.style.cursor,h.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var c=this._document.body;c.removeEventListener("click",this._clickListener,!0),c.removeEventListener("auxclick",this._clickListener,!0),c.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(c.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(lt),ce(en))},token:e,providedIn:"root"}),e}(),Tu="undefined"!=typeof window?window:{},DV=void 0!==Tu.__karma__&&!!Tu.__karma__||void 0!==Tu.jasmine&&!!Tu.jasmine||void 0!==Tu.jest&&!!Tu.jest||void 0!==Tu.Mocha&&!!Tu.Mocha,tb=function(){var e=function(){function a(t,n){F(this,a),this._platform=n,this._document=t}return W(a,[{key:"ngOnDestroy",value:function(){var n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var n="cdk-overlay-container";if(this._platform.isBrowser||DV)for(var l=this._document.querySelectorAll(".".concat(n,'[platform="server"], ')+".".concat(n,'[platform="test"]')),c=0;cY&&(Y=se,G=fe)}}catch(be){Q.e(be)}finally{Q.f()}return this._isPushed=!1,void this._applyPosition(G.position,G.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&cp(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,t);this._applyPosition(t,n)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n){var l;if("center"==n.originX)l=t.left+t.width/2;else{var c=this._isRtl()?t.right:t.left,h=this._isRtl()?t.left:t.right;l="start"==n.originX?c:h}return{x:l,y:"center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,n,l){var c;return c="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+c,y:t.y+("center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,l,c){var h=EV(n),_=t.x,C=t.y,k=this._getOffset(c,"x"),D=this._getOffset(c,"y");k&&(_+=k),D&&(C+=D);var G=0-C,Y=C+h.height-l.height,Q=this._subtractOverflows(h.width,0-_,_+h.width-l.width),ie=this._subtractOverflows(h.height,G,Y),fe=Q*ie;return{visibleArea:fe,isCompletelyWithinViewport:h.width*h.height===fe,fitsInViewportVertically:ie===h.height,fitsInViewportHorizontally:Q==h.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,h=l.right-n.x,_=AV(this._overlayRef.getConfig().minHeight),C=AV(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=_&&_<=c)&&(t.fitsInViewportHorizontally||null!=C&&C<=h)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var I,L,c=EV(n),h=this._viewportRect,_=Math.max(t.x+c.width-h.width,0),C=Math.max(t.y+c.height-h.height,0),k=Math.max(h.top-l.top-t.y,0),D=Math.max(h.left-l.left-t.x,0);return this._previousPushAmount={x:I=c.width<=h.width?D||-_:t.xD&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.y-D/2)}if("end"===n.overlayX&&!c||"start"===n.overlayX&&c)Q=l.width-t.x+this._viewportMargin,G=t.x-this._viewportMargin;else if("start"===n.overlayX&&!c||"end"===n.overlayX&&c)Y=t.x,G=l.right-t.x;else{var ie=Math.min(l.right-t.x+l.left,t.x),fe=this._lastBoundingBoxSize.width;Y=t.x-ie,(G=2*ie)>fe&&!this._isInitialRender&&!this._growAfterOpen&&(Y=t.x-fe/2)}return{top:_,left:Y,bottom:C,right:Q,width:G,height:h}}},{key:"_setBoundingBoxStyles",value:function(t,n){var l=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var h=this._overlayRef.getConfig().maxHeight,_=this._overlayRef.getConfig().maxWidth;c.height=mi(l.height),c.top=mi(l.top),c.bottom=mi(l.bottom),c.width=mi(l.width),c.left=mi(l.left),c.right=mi(l.right),c.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",c.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",h&&(c.maxHeight=mi(h)),_&&(c.maxWidth=mi(_))}this._lastBoundingBoxSize=l,cp(this._boundingBox.style,c)}},{key:"_resetBoundingBoxStyles",value:function(){cp(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){cp(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var l={},c=this._hasExactPosition(),h=this._hasFlexibleDimensions,_=this._overlayRef.getConfig();if(c){var C=this._viewportRuler.getViewportScrollPosition();cp(l,this._getExactOverlayY(n,t,C)),cp(l,this._getExactOverlayX(n,t,C))}else l.position="static";var k="",D=this._getOffset(n,"x"),I=this._getOffset(n,"y");D&&(k+="translateX(".concat(D,"px) ")),I&&(k+="translateY(".concat(I,"px)")),l.transform=k.trim(),_.maxHeight&&(c?l.maxHeight=mi(_.maxHeight):h&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=mi(_.maxWidth):h&&(l.maxWidth="")),cp(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(t,n,l){var c={top:"",bottom:""},h=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l));var _=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return h.y-=_,"bottom"===t.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(h.y+this._overlayRect.height),"px"):c.top=mi(h.y),c}},{key:"_getExactOverlayX",value:function(t,n,l){var c={left:"",right:""},h=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(h.x+this._overlayRect.width),"px"):c.left=mi(h.x),c}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(function(c){return c.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Dc(t,l),isOriginOutsideView:fE(t,l),isOverlayClipped:Dc(n,l),isOverlayOutsideView:fE(n,l)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),c=l.width,h=l.height,_=l.maxWidth,C=l.maxHeight,k=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),D=!("100%"!==h&&"100vh"!==h||C&&"100%"!==C&&"100vh"!==C);t.position=this._cssPosition,t.marginLeft=k?"0":this._leftOffset,t.marginTop=D?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,k?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=D?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(pE),l.justifyContent=l.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),PY=function(){var e=function(){function a(t,n,l,c){F(this,a),this._viewportRuler=t,this._document=n,this._platform=l,this._overlayContainer=c}return W(a,[{key:"global",value:function(){return new vE}},{key:"connectedTo",value:function(n,l,c){return new EY(l,c,n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(n){return new hE(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(yo),ce(lt),ce(en),ce(tb))},e.\u0275prov=We({factory:function(){return new e(ce(yo),ce(lt),ce(en),ce(tb))},token:e,providedIn:"root"}),e}(),Is=0,Ai=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=h,this._injector=_,this._ngZone=C,this._document=k,this._directionality=D,this._location=I,this._outsideClickDispatcher=L}return W(a,[{key:"create",value:function(n){var l=this._createHostElement(),c=this._createPaneElement(l),h=this._createPortalOutlet(c),_=new up(n);return _.direction=_.direction||this._directionality.value,new Ag(h,l,c,_,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var l=this._document.createElement("div");return l.id="cdk-overlay-".concat(Is++),l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(lc)),new tE(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(uQ),ce(tb),ce(Ki),ce(PY),ce(TY),ce(kn),ce(ft),ce(lt),ce(Mr),ce(Jv),ce(DY))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Eg=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],gE=new Ee("cdk-connected-overlay-scroll-strategy"),OY=function(){var e=function a(t){F(this,a),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),PV=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._overlay=t,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Be.EMPTY,this._attachSubscription=Be.EMPTY,this._detachSubscription=Be.EMPTY,this._positionSubscription=Be.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ye,this.positionChange=new ye,this.attach=new ye,this.detach=new ye,this.overlayKeydown=new ye,this.overlayOutsideClick=new ye,this._templatePortal=new Ps(n,l),this._scrollStrategyFactory=c,this.scrollStrategy=this._scrollStrategyFactory()}return W(a,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=it(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=it(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=it(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=it(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=it(n)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=Eg);var l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=l.detachments().subscribe(function(){return n.detach.emit()}),l.keydownEvents().subscribe(function(c){n.overlayKeydown.next(c),27===c.keyCode&&!n.disableClose&&!Bi(c)&&(c.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(c){n.overlayOutsideClick.next(c)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),l=new up({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}},{key:"_updatePositionStrategy",value:function(n){var l=this,c=this.positions.map(function(h){return{originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||l.offsetX,offsetY:h.offsetY||l.offsetY,panelClass:h.panelClass||void 0}});return n.setOrigin(this.origin.elementRef).withPositions(c).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(n),n}},{key:"_attachOverlay",value:function(){var n=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(l){n.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){return t.lift(new Sc(e,a))}}(function(){return n.positionChange.observers.length>0})).subscribe(function(l){n.positionChange.emit(l),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Xn),N($n),N(gE),N(Mr,8))},e.\u0275dir=ve({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[an]}),e}(),OV={provide:gE,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},fp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Ai,OV],imports:[[$y,xg,q1],q1]}),e}();function mE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return function(t){return t.lift(new IV(e,a))}}var IV=function(){function e(a,t){F(this,e),this.dueTime=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new RY(t,this.dueTime,this.scheduler))}}]),e}(),RY=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).dueTime=l,h.scheduler=c,h.debouncedSubscription=null,h.lastValue=null,h.hasValue=!1,h}return W(t,[{key:"_next",value:function(l){this.clearDebounce(),this.lastValue=l,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(RV,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var l=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(l)}}},{key:"clearDebounce",value:function(){var l=this.debouncedSubscription;null!==l&&(this.remove(l),l.unsubscribe(),this.debouncedSubscription=null)}}]),t}(Ze);function RV(e){e.debouncedNext()}function LY(e){return function(a){return a.lift(new fQ(e))}}var fQ=function(){function e(a){F(this,e),this.total=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new FY(t,this.total))}}]),e}(),FY=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.count=0,c}return W(t,[{key:"_next",value:function(l){++this.count>this.total&&this.destination.next(l)}}]),t}(Ze),_E=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),yE=function(){var e=function(){function a(t){F(this,a),this._mutationObserverFactory=t,this._observedElements=new Map}return W(a,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(l,c){return n._cleanupObserver(c)})}},{key:"observe",value:function(n){var l=this,c=bc(n);return new gn(function(h){var C=l._observeElement(c).subscribe(h);return function(){C.unsubscribe(),l._unobserveElement(c)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var l=new qe,c=this._mutationObserverFactory.create(function(h){return l.next(h)});c&&c.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:c,stream:l,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var l=this._observedElements.get(n),c=l.observer,h=l.stream;c&&c.disconnect(),h.complete(),this._observedElements.delete(n)}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(_E))},e.\u0275prov=We({factory:function(){return new e(ce(_E))},token:e,providedIn:"root"}),e}(),nb=function(){var e=function(){function a(t,n,l){F(this,a),this._contentObserver=t,this._elementRef=n,this._ngZone=l,this.event=new ye,this._disabled=!1,this._currentSubscription=null}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Di(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?l.pipe(mE(n.debounce)):l).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(yE),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),ld=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[_E]}),e}();function tS(e,a){return(e.getAttribute(a)||"").match(/\S+/g)||[]}var LV="cdk-describedby-message-container",rb="cdk-describedby-message",nS="cdk-describedby-host",bE=0,Du=new Map,na=null,FV=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var h=CE(l,c);"string"!=typeof l?(NV(l),Du.set(h,{messageElement:l,referenceCount:0})):Du.has(h)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,h)||this._addMessageReference(n,h)}}},{key:"removeDescription",value:function(n,l,c){if(l&&this._isElementNode(n)){var h=CE(l,c);if(this._isElementDescribedByMessage(n,h)&&this._removeMessageReference(n,h),"string"==typeof l){var _=Du.get(h);_&&0===_.referenceCount&&this._deleteMessageElement(h)}na&&0===na.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var n=this._document.querySelectorAll("[".concat(nS,"]")),l=0;l-1&&c!==t._activeItemIndex&&(t._activeItemIndex=c)}})}return W(e,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ya(function(l){return t._pressedLetters.push(l)}),mE(n),vr(function(){return t._pressedLetters.length>0}),He(function(){return t._pressedLetters.join("")})).subscribe(function(l){for(var c=t._getItemsArray(),h=1;h0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var n=this._activeItem;this.updateActiveItem(t),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var n=this,l=t.keyCode,h=["altKey","ctrlKey","metaKey","shiftKey"].every(function(_){return!t[_]||n._allowedModifierKeys.indexOf(_)>-1});switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&h){this.setNextItemActive();break}return;case 38:if(this._vertical&&h){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&h){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&h){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&h){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&h){this.setLastItemActive();break}return;default:return void((h||Bi(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(l>=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var n=this._getItemsArray(),l="number"==typeof t?t:n.indexOf(t),c=n[l];this._activeItem=null==c?null:c,this._activeItemIndex=l}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var n=this._getItemsArray(),l=1;l<=n.length;l++){var c=(this._activeItemIndex+t*l+n.length)%n.length;if(!this._skipPredicateFn(n[c]))return void this.setActiveItem(c)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,n){var l=this._getItemsArray();if(l[t]){for(;this._skipPredicateFn(l[t]);)if(!l[t+=n])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Wo?this._items.toArray():this._items}}]),e}(),wE=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"setActiveItem",value:function(l){this.activeItem&&this.activeItem.setInactiveStyles(),Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.setActiveStyles()}}]),t}(VV),ib=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._origin="program",n}return W(t,[{key:"setFocusOrigin",value:function(l){return this._origin=l,this}},{key:"setActiveItem",value:function(l){Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.focus(this._origin)}}]),t}(VV),BV=function(){var e=function(){function a(t){F(this,a),this._platform=t}return W(a,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var l=function(e){try{return e.frameElement}catch(a){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(l&&(-1===kE(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),h=kE(n);return n.hasAttribute("contenteditable")?-1!==h:!("iframe"===c||"object"===c||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var a=e.nodeName.toLowerCase(),t="input"===a&&e.type;return"text"===t||"password"===t||"select"===a||"textarea"===a}(n))&&("audio"===c?!!n.hasAttribute("controls")&&-1!==h:"video"===c?-1!==h&&(null!==h||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,l){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var a=e.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||rS(e))}(n)&&!this.isDisabled(n)&&((null==l?void 0:l.ignoreVisibility)||this.isVisible(n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function rS(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var a=e.getAttribute("tabindex");return"-32768"!=a&&!(!a||isNaN(parseInt(a,10)))}function kE(e){if(!rS(e))return null;var a=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}var ME=function(){function e(a,t,n,l){var c=this,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4];F(this,e),this._element=a,this._checker=t,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=function(){return c.focusLastTabbableElement()},this.endAnchorListener=function(){return c.focusFirstTabbableElement()},this._enabled=!0,h||this.attachAnchors()}return W(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),n&&(n.removeEventListener("focus",this.endAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),l=0;l=0;l--){var c=n[l].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[l]):null;if(c)return c}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(or(1)).subscribe(t)}}]),e}(),xE=function(){var e=function(){function a(t,n,l){F(this,a),this._checker=t,this._ngZone=n,this._document=l}return W(a,[{key:"create",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new ME(n,this._checker,this._ngZone,this._document,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(BV),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(BV),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),UV=function(){var e=function(){function a(t,n,l){F(this,a),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return W(a,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(n){this.focusTrap.enabled=it(n)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(n){this._autoCapture=it(n)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(n){var l=n.autoCapture;l&&!l.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=Ky(),this.focusTrap.focusInitialElementWhenReady()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[an]}),e}();function ab(e){return 0===e.offsetX&&0===e.offsetY}function AE(e){var a=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}"undefined"!=typeof Element&∈var GV=new Ee("cdk-input-modality-detector-options"),ZY={ignoreKeys:[18,17,224,91,16]},Pg=tp({passive:!0,capture:!0}),WV=function(){var e=function(){function a(t,n,l,c){var h=this;F(this,a),this._platform=t,this._mostRecentTarget=null,this._modality=new Ma(null),this._lastTouchMs=0,this._onKeydown=function(_){var C,k;(null===(k=null===(C=h._options)||void 0===C?void 0:C.ignoreKeys)||void 0===k?void 0:k.some(function(D){return D===_.keyCode}))||(h._modality.next("keyboard"),h._mostRecentTarget=rp(_))},this._onMousedown=function(_){Date.now()-h._lastTouchMs<650||(h._modality.next(ab(_)?"keyboard":"mouse"),h._mostRecentTarget=rp(_))},this._onTouchstart=function(_){AE(_)?h._modality.next("keyboard"):(h._lastTouchMs=Date.now(),h._modality.next("touch"),h._mostRecentTarget=rp(_))},this._options=Object.assign(Object.assign({},ZY),c),this.modalityDetected=this._modality.pipe(LY(1)),this.modalityChanged=this.modalityDetected.pipe(Xa()),t.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",h._onKeydown,Pg),l.addEventListener("mousedown",h._onMousedown,Pg),l.addEventListener("touchstart",h._onTouchstart,Pg)})}return W(a,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,Pg),document.removeEventListener("mousedown",this._onMousedown,Pg),document.removeEventListener("touchstart",this._onTouchstart,Pg))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt),ce(GV,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt),ce(GV,8))},token:e,providedIn:"root"}),e}(),EE=new Ee("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),PE=new Ee("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),iS=function(){var e=function(){function a(t,n,l,c){F(this,a),this._ngZone=n,this._defaultOptions=c,this._document=l,this._liveElement=t||this._createLiveElement()}return W(a,[{key:"announce",value:function(n){for(var h,_,l=this,c=this._defaultOptions,C=arguments.length,k=new Array(C>1?C-1:0),D=1;D1&&void 0!==arguments[1]&&arguments[1],c=bc(n);if(!this._platform.isBrowser||1!==c.nodeType)return ut(null);var h=W1(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var C={checkChildren:l,subject:new qe,rootNode:h};return this._elementInfo.set(c,C),this._registerGlobalListeners(C),C.subject}},{key:"stopMonitoring",value:function(n){var l=bc(n),c=this._elementInfo.get(l);c&&(c.subject.complete(),this._setClasses(l),this._elementInfo.delete(l),this._removeGlobalListeners(c))}},{key:"focusVia",value:function(n,l,c){var h=this,_=bc(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(k){var D=cr(k,2);return h._originChanged(D[0],l,D[1])}):(this._setOrigin(l),"function"==typeof _.focus&&_.focus(c))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(l,c){return n.stopMonitoring(c)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(n,l,c){c?n.classList.add(l):n.classList.remove(l)}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,l){this._toggleClass(n,"cdk-focused",!!l),this._toggleClass(n,"cdk-touch-focused","touch"===l),this._toggleClass(n,"cdk-keyboard-focused","keyboard"===l),this._toggleClass(n,"cdk-mouse-focused","mouse"===l),this._toggleClass(n,"cdk-program-focused","program"===l)}},{key:"_setOrigin",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){l._origin=n,l._originFromTouchInteraction="touch"===n&&c,0===l._detectionMode&&(clearTimeout(l._originTimeoutId),l._originTimeoutId=setTimeout(function(){return l._origin=null},l._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,l){var c=this._elementInfo.get(l),h=rp(n);!c||!c.checkChildren&&l!==h||this._originChanged(l,this._getFocusOrigin(h),c)}},{key:"_onBlur",value:function(n,l){var c=this._elementInfo.get(l);!c||c.checkChildren&&n.relatedTarget instanceof Node&&l.contains(n.relatedTarget)||(this._setClasses(l),this._emitOrigin(c.subject,null))}},{key:"_emitOrigin",value:function(n,l){this._ngZone.run(function(){return n.next(l)})}},{key:"_registerGlobalListeners",value:function(n){var l=this;if(this._platform.isBrowser){var c=n.rootNode,h=this._rootNodeFocusListenerCount.get(c)||0;h||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,aS),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,aS)}),this._rootNodeFocusListenerCount.set(c,h+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){l._getWindow().addEventListener("focus",l._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ht(this._stopInputModalityDetector)).subscribe(function(_){l._setOrigin(_,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var l=n.rootNode;if(this._rootNodeFocusListenerCount.has(l)){var c=this._rootNodeFocusListenerCount.get(l);c>1?this._rootNodeFocusListenerCount.set(l,c-1):(l.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aS),l.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aS),this._rootNodeFocusListenerCount.delete(l))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,l,c){this._setClasses(n,l),this._emitOrigin(c.subject,l),this._lastFocusOrigin=l}},{key:"_getClosestElementsInfo",value:function(n){var l=[];return this._elementInfo.forEach(function(c,h){(h===n||c.checkChildren&&h.contains(n))&&l.push([h,c])}),l}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},token:e,providedIn:"root"}),e}(),OE=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new ye}return W(a,[{key:"ngAfterViewInit",value:function(){var n=this,l=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(l,1===l.nodeType&&l.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return n.cdkFocusChange.emit(c)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ra))},e.\u0275dir=ve({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),ZV="cdk-high-contrast-black-on-white",KV="cdk-high-contrast-white-on-black",IE="cdk-high-contrast-active",RE=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._document=n}return W(a,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var l=this._document.defaultView||window,c=l&&l.getComputedStyle?l.getComputedStyle(n):null,h=(c&&c.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(n),h){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(IE),n.remove(ZV),n.remove(KV),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(IE),n.add(ZV)):2===l&&(n.add(IE),n.add(KV))}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(lt))},token:e,providedIn:"root"}),e}(),LE=function(){var e=function a(t){F(this,a),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ce(RE))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep,ld]]}),e}(),$V=new nc("12.2.4"),FE=function e(){F(this,e)},KY=function e(){F(this,e)},Ac="*";function Ei(e,a){return{type:7,name:e,definitions:a,options:{}}}function Tn(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:a,timings:e}}function NE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:a}}function gt(e){return{type:6,styles:e,offset:null}}function Bn(e,a,t){return{type:0,name:e,styles:a,options:t}}function Dl(e){return{type:5,steps:e}}function zn(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:a,options:t}}function QV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function BE(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:a,options:t}}function JV(e){Promise.resolve(null).then(e)}var Og=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+t}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;JV(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),HE=function(){function e(a){var t=this;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;var n=0,l=0,c=0,h=this.players.length;0==h?JV(function(){return t._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==h&&t._onFinish()}),_.onDestroy(function(){++l==h&&t._onDestroy()}),_.onStart(function(){++c==h&&t._onStart()})}),this.totalTime=this.players.reduce(function(_,C){return Math.max(_,C.totalTime)},0)}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(l){var c=l.totalTime?Math.min(1,n/l.totalTime):1;l.setPosition(c)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,l){return null===n||l.totalTime>n.totalTime?l:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}();function eB(){return"undefined"!=typeof window&&void 0!==window.document}function UE(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ud(e){switch(e.length){case 0:return new Og;case 1:return e[0];default:return new HE(e)}}function tB(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=[],_=[],C=-1,k=null;if(n.forEach(function(I){var L=I.offset,G=L==C,Y=G&&k||{};Object.keys(I).forEach(function(Q){var ie=Q,fe=I[Q];if("offset"!==Q)switch(ie=a.normalizePropertyName(ie,h),fe){case"!":fe=l[Q];break;case Ac:fe=c[Q];break;default:fe=a.normalizeStyleValue(Q,ie,fe,h)}Y[ie]=fe}),G||_.push(Y),k=Y,C=L}),h.length){var D="\n - ";throw new Error("Unable to animate due to the following errors:".concat(D).concat(h.join(D)))}return _}function GE(e,a,t,n){switch(a){case"start":e.onStart(function(){return n(t&&oS(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&oS(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&oS(t,"destroy",e))})}}function oS(e,a,t){var n=t.totalTime,c=sS(e.element,e.triggerName,e.fromState,e.toState,a||e.phaseName,null==n?e.totalTime:n,!!t.disabled),h=e._data;return null!=h&&(c._data=h),c}function sS(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:a,fromState:t,toState:n,phaseName:l,totalTime:c,disabled:!!h}}function Ka(e,a,t){var n;return e instanceof Map?(n=e.get(a))||e.set(a,n=t):(n=e[a])||(n=e[a]=t),n}function jE(e){var a=e.indexOf(":");return[e.substring(1,a),e.substr(a+1)]}var WE=function(a,t){return!1},YE=function(a,t){return!1},qE=function(a,t,n){return[]},JY=UE();(JY||"undefined"!=typeof Element)&&(WE=eB()?function(a,t){for(;t&&t!==document.documentElement;){if(t===a)return!0;t=t.parentNode||t.host}return!1}:function(a,t){return a.contains(t)},YE=function(){if(JY||Element.prototype.matches)return function(t,n){return t.matches(n)};var e=Element.prototype,a=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return a?function(t,n){return a.apply(t,[n])}:YE}(),qE=function(a,t,n){var l=[];if(n)for(var c=a.querySelectorAll(t),h=0;h1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){a[t]=e[t]}),a}function cd(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)for(var n in e)t[n]=e[n];else pp(e,t);return t}function uB(e,a,t){return t?a+":"+t+";":""}function cB(e){for(var a="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void a.push(n);e=n}var l=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return t.push('The provided transition expression "'.concat(e,'" is not supported')),a;var c=l[1],h=l[2],_=l[3];a.push(vB(c,_)),"<"==h[0]&&!("*"==c&&"*"==_)&&a.push(vB(_,c))}(n,t,a)}):t.push(e),t}var sb=new Set(["true","1"]),Al=new Set(["false","0"]);function vB(e,a){var t=sb.has(e)||Al.has(e),n=sb.has(a)||Al.has(a);return function(l,c){var h="*"==e||e==l,_="*"==a||a==c;return!h&&t&&"boolean"==typeof l&&(h=l?sb.has(e):Al.has(e)),!_&&n&&"boolean"==typeof c&&(_=c?sb.has(a):Al.has(a)),h&&_}}var a9=new RegExp("s*".concat(":self","s*,?"),"g");function mB(e,a,t){return new tP(e).build(a,t)}var tP=function(){function e(a){F(this,e),this._driver=a}return W(e,[{key:"build",value:function(t,n){var l=new o9(n);return this._resetContextStyleTimingState(l),bo(this,Ig(t),l)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var l=this,c=n.queryCount=0,h=n.depCount=0,_=[],C=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(k){if(l._resetContextStyleTimingState(n),0==k.type){var D=k,I=D.name;I.toString().split(/\s*,\s*/).forEach(function(G){D.name=G,_.push(l.visitState(D,n))}),D.name=I}else if(1==k.type){var L=l.visitTransition(k,n);c+=L.queryCount,h+=L.depCount,C.push(L)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:_,transitions:C,queryCount:c,depCount:h,options:null}}},{key:"visitState",value:function(t,n){var l=this.visitStyle(t.styles,n),c=t.options&&t.options.params||null;if(l.containsDynamicStyles){var h=new Set,_=c||{};if(l.styles.forEach(function(k){if(fb(k)){var D=k;Object.keys(D).forEach(function(I){fB(D[I]).forEach(function(L){_.hasOwnProperty(L)||h.add(L)})})}}),h.size){var C=ob(h.values());n.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(C.join(", ")))}}return{type:0,name:t.name,style:l,options:c?{params:c}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var l=bo(this,Ig(t.animation),n);return{type:1,matchers:eP(t.expr,n.errors),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Ic(t.options)}}},{key:"visitSequence",value:function(t,n){var l=this;return{type:2,steps:t.steps.map(function(c){return bo(l,c,n)}),options:Ic(t.options)}}},{key:"visitGroup",value:function(t,n){var l=this,c=n.currentTime,h=0,_=t.steps.map(function(C){n.currentTime=c;var k=bo(l,C,n);return h=Math.max(h,n.currentTime),k});return n.currentTime=h,{type:3,steps:_,options:Ic(t.options)}}},{key:"visitAnimate",value:function(t,n){var l=function(e,a){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return rP(gS(e,a).duration,0,"");var l=e;if(l.split(/\s+/).some(function(_){return"{"==_.charAt(0)&&"{"==_.charAt(1)})){var h=rP(0,0,"");return h.dynamic=!0,h.strValue=l,h}return rP((t=t||gS(l,a)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=l;var c,h=t.styles?t.styles:gt({});if(5==h.type)c=this.visitKeyframes(h,n);else{var _=t.styles,C=!1;if(!_){C=!0;var k={};l.easing&&(k.easing=l.easing),_=gt(k)}n.currentTime+=l.duration+l.delay;var D=this.visitStyle(_,n);D.isEmptyStep=C,c=D}return n.currentAnimateTimings=null,{type:4,timings:l,style:c,options:null}}},{key:"visitStyle",value:function(t,n){var l=this._makeStyleAst(t,n);return this._validateStyleAst(l,n),l}},{key:"_makeStyleAst",value:function(t,n){var l=[];Array.isArray(t.styles)?t.styles.forEach(function(_){"string"==typeof _?_==Ac?l.push(_):n.errors.push("The provided style string value ".concat(_," is not allowed.")):l.push(_)}):l.push(t.styles);var c=!1,h=null;return l.forEach(function(_){if(fb(_)){var C=_,k=C.easing;if(k&&(h=k,delete C.easing),!c)for(var D in C)if(C[D].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:h,offset:t.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(t,n){var l=this,c=n.currentAnimateTimings,h=n.currentTime,_=n.currentTime;c&&_>0&&(_-=c.duration+c.delay),t.styles.forEach(function(C){"string"!=typeof C&&Object.keys(C).forEach(function(k){if(l._driver.validateStyleProperty(k)){var D=n.collectedStyles[n.currentQuerySelector],I=D[k],L=!0;I&&(_!=h&&_>=I.startTime&&h<=I.endTime&&(n.errors.push('The CSS property "'.concat(k,'" that exists between the times of "').concat(I.startTime,'ms" and "').concat(I.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(_,'ms" and "').concat(h,'ms"')),L=!1),_=I.startTime),L&&(D[k]={startTime:_,endTime:h}),n.options&&function(e,a,t){var n=a.params||{},l=fB(e);l.length&&l.forEach(function(c){n.hasOwnProperty(c)||t.push("Unable to resolve the local animation param ".concat(c," in the given list of values"))})}(C[k],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(k,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,n){var l=this,c={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),c;var _=0,C=[],k=!1,D=!1,I=0,L=t.steps.map(function(be){var Ce=l._makeStyleAst(be,n),je=null!=Ce.offset?Ce.offset:function(e){if("string"==typeof e)return null;var a=null;if(Array.isArray(e))e.forEach(function(n){if(fb(n)&&n.hasOwnProperty("offset")){var l=n;a=parseFloat(l.offset),delete l.offset}});else if(fb(e)&&e.hasOwnProperty("offset")){var t=e;a=parseFloat(t.offset),delete t.offset}return a}(Ce.styles),$e=0;return null!=je&&(_++,$e=Ce.offset=je),D=D||$e<0||$e>1,k=k||$e0&&_0?Ce==Q?1:Y*Ce:C[Ce],$e=je*se;n.currentTime=ie+fe.delay+$e,fe.duration=$e,l._validateStyleAst(be,n),be.offset=je,c.styles.push(be)}),c}},{key:"visitReference",value:function(t,n){return{type:8,animation:bo(this,Ig(t.animation),n),options:Ic(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:Ic(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Ic(t.options)}}},{key:"visitQuery",value:function(t,n){var l=n.currentQuerySelector,c=t.options||{};n.queryCount++,n.currentQuery=t;var _=cr(function(e){var a=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return a&&(e=e.replace(a9,"")),[e=e.replace(/@\*/g,vS).replace(/@\w+/g,function(t){return vS+"-"+t.substr(1)}).replace(/:animating/g,KE),a]}(t.selector),2),C=_[0],k=_[1];n.currentQuerySelector=l.length?l+" "+C:C,Ka(n.collectedStyles,n.currentQuerySelector,{});var D=bo(this,Ig(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=l,{type:11,selector:C,limit:c.limit||0,optional:!!c.optional,includeSelf:k,animation:D,originalSelector:t.selector,options:Ic(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var l="full"===t.timings?{duration:0,delay:0,easing:"full"}:gS(t.timings,n.errors,!0);return{type:12,animation:bo(this,Ig(t.animation),n),timings:l,options:null}}}]),e}(),o9=function e(a){F(this,e),this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function fb(e){return!Array.isArray(e)&&"object"==typeof e}function Ic(e){return e?(e=pp(e)).params&&(e.params=function(e){return e?pp(e):null}(e.params)):e={},e}function rP(e,a,t){return{duration:e,delay:a,easing:t}}function db(e,a,t,n,l,c){var h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,_=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:a,preStyleProps:t,postStyleProps:n,duration:l,delay:c,totalTime:l+c,easing:h,subTimeline:_}}var CS=function(){function e(){F(this,e),this._map=new Map}return W(e,[{key:"consume",value:function(t){var n=this._map.get(t);return n?this._map.delete(t):n=[],n}},{key:"append",value:function(t,n){var l,c=this._map.get(t);c||this._map.set(t,c=[]),(l=c).push.apply(l,At(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),u9=new RegExp(":enter","g"),f9=new RegExp(":leave","g");function yB(e,a,t,n,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new wS).buildKeyframes(e,a,t,n,l,c,h,_,C,k)}var wS=function(){function e(){F(this,e)}return W(e,[{key:"buildKeyframes",value:function(t,n,l,c,h,_,C,k,D){var I=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];D=D||new CS;var L=new kS(t,n,D,c,h,I,[]);L.options=k,L.currentTimeline.setStyles([_],null,L.errors,k),bo(this,l,L);var G=L.timelines.filter(function(Q){return Q.containsAnimation()});if(G.length&&Object.keys(C).length){var Y=G[G.length-1];Y.allowOnlyTimelineStyles()||Y.setStyles([C],null,L.errors,k)}return G.length?G.map(function(Q){return Q.buildKeyframes()}):[db(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var l=n.subInstructions.consume(n.element);if(l){var c=n.createSubContext(t.options),h=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);h!=_&&n.transformIntoNewTimeline(_)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var l=n.createSubContext(t.options);l.transformIntoNewTimeline(),this.visitReference(t.animation,l),n.transformIntoNewTimeline(l.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,l){var h=n.currentTimeline.currentTime,_=null!=l.duration?hp(l.duration):null,C=null!=l.delay?hp(l.delay):null;return 0!==_&&t.forEach(function(k){var D=n.appendInstructionToTimeline(k,_,C);h=Math.max(h,D.duration+D.delay)}),h}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),bo(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var l=this,c=n.subContextCount,h=n,_=t.options;if(_&&(_.params||_.delay)&&((h=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==h.previousNode.type&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=SS);var C=hp(_.delay);h.delayNextStep(C)}t.steps.length&&(t.steps.forEach(function(k){return bo(l,k,h)}),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>c&&h.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var l=this,c=[],h=n.currentTimeline.currentTime,_=t.options&&t.options.delay?hp(t.options.delay):0;t.steps.forEach(function(C){var k=n.createSubContext(t.options);_&&k.delayNextStep(_),bo(l,C,k),h=Math.max(h,k.currentTimeline.currentTime),c.push(k.currentTimeline)}),c.forEach(function(C){return n.currentTimeline.mergeTimelineCollectedStyles(C)}),n.transformIntoNewTimeline(h),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var l=t.strValue;return gS(n.params?mS(l,n.params,n.errors):l,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var l=n.currentAnimateTimings=this._visitTiming(t.timings,n),c=n.currentTimeline;l.delay&&(n.incrementTime(l.delay),c.snapshotCurrentStyles());var h=t.style;5==h.type?this.visitKeyframes(h,n):(n.incrementTime(l.duration),this.visitStyle(h,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var l=n.currentTimeline,c=n.currentAnimateTimings;!c&&l.getCurrentStyleProperties().length&&l.forwardFrame();var h=c&&c.easing||t.easing;t.isEmptyStep?l.applyEmptyStep(h):l.setStyles(t.styles,h,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,h=l.duration,C=n.createSubContext().currentTimeline;C.easing=l.easing,t.styles.forEach(function(k){C.forwardTime((k.offset||0)*h),C.setStyles(k.styles,k.easing,n.errors,n.options),C.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(C),n.transformIntoNewTimeline(c+h),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var l=this,c=n.currentTimeline.currentTime,h=t.options||{},_=h.delay?hp(h.delay):0;_&&(6===n.previousNode.type||0==c&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=SS);var C=c,k=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!h.optional,n.errors);n.currentQueryTotal=k.length;var D=null;k.forEach(function(I,L){n.currentQueryIndex=L;var G=n.createSubContext(t.options,I);_&&G.delayNextStep(_),I===n.element&&(D=G.currentTimeline),bo(l,t.animation,G),G.currentTimeline.applyStylesToKeyframe(),C=Math.max(C,G.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(C),D&&(n.currentTimeline.mergeTimelineCollectedStyles(D),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var l=n.parentContext,c=n.currentTimeline,h=t.timings,_=Math.abs(h.duration),C=_*(n.currentQueryTotal-1),k=_*n.currentQueryIndex;switch(h.duration<0?"reverse":h.easing){case"reverse":k=C-k;break;case"full":k=l.currentStaggerTime}var I=n.currentTimeline;k&&I.delayNextStep(k);var L=I.currentTime;bo(this,t.animation,n),n.previousNode=t,l.currentStaggerTime=c.currentTime-L+(c.startTime-l.currentTimeline.startTime)}}]),e}(),SS={},kS=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this._driver=a,this.element=t,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=h,this.timelines=_,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=SS,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new iP(this._driver,t,0),_.push(this.currentTimeline)}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var l=this;if(t){var c=t,h=this.options;null!=c.duration&&(h.duration=hp(c.duration)),null!=c.delay&&(h.delay=hp(c.delay));var _=c.params;if(_){var C=h.params;C||(C=this.options.params={}),Object.keys(_).forEach(function(k){(!n||!C.hasOwnProperty(k))&&(C[k]=mS(_[k],C,l.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var l=t.params={};Object.keys(n).forEach(function(c){l[c]=n[c]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=n||this.element,h=new e(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return h.previousNode=this.previousNode,h.currentAnimateTimings=this.currentAnimateTimings,h.options=this._copyOptions(),h.updateOptions(t),h.currentQueryIndex=this.currentQueryIndex,h.currentQueryTotal=this.currentQueryTotal,h.parentContext=this,this.subContextCount++,h}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=SS,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,l){var c={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=l?l:0)+t.delay,easing:""},h=new d9(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,c,t.stretchStartingKeyframe);return this.timelines.push(h),c}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,l,c,h,_){var C=[];if(c&&C.push(this.element),t.length>0){t=(t=t.replace(u9,"."+this._enterClassName)).replace(f9,"."+this._leaveClassName);var D=this._driver.query(this.element,t,1!=l);0!==l&&(D=l<0?D.slice(D.length+l,D.length):D.slice(0,l)),C.push.apply(C,At(D))}return!h&&0==C.length&&_.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),C}}]),e}(),iP=function(){function e(a,t,n,l){F(this,e),this._driver=a,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=l,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return W(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(l){n._backFill[l]=n._globalTimelineStyles[l]||Ac,n._currentKeyframe[l]=Ac}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,l,c){var h=this;n&&(this._previousKeyframe.easing=n);var _=c&&c.params||{},C=function(e,a){var n,t={};return e.forEach(function(l){"*"===l?(n=n||Object.keys(a)).forEach(function(c){t[c]=Ac}):cd(l,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(C).forEach(function(k){var D=mS(C[k],_,l);h._pendingStyles[k]=D,h._localTimelineStyles.hasOwnProperty(k)||(h._backFill[k]=h._globalTimelineStyles.hasOwnProperty(k)?h._globalTimelineStyles[k]:Ac),h._updateStyle(k,D)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,l=Object.keys(n);0!=l.length&&(this._pendingStyles={},l.forEach(function(c){t._currentKeyframe[c]=n[c]}),Object.keys(this._localTimelineStyles).forEach(function(c){t._currentKeyframe.hasOwnProperty(c)||(t._currentKeyframe[c]=t._localTimelineStyles[c])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var l=t._localTimelineStyles[n];t._pendingStyles[n]=l,t._updateStyle(n,l)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(l){var c=n._styleSummary[l],h=t._styleSummary[l];(!c||h.time>c.time)&&n._updateStyle(l,h.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,l=new Set,c=1===this._keyframes.size&&0===this.duration,h=[];this._keyframes.forEach(function(I,L){var G=cd(I,!0);Object.keys(G).forEach(function(Y){var Q=G[Y];"!"==Q?n.add(Y):Q==Ac&&l.add(Y)}),c||(G.offset=L/t.duration),h.push(G)});var _=n.size?ob(n.values()):[],C=l.size?ob(l.values()):[];if(c){var k=h[0],D=pp(k);k.offset=0,D.offset=1,h=[k,D]}return db(this.element,h,_,C,this.duration,this.startTime,this.easing,!1)}}]),e}(),d9=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_,C){var k,D=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return F(this,t),(k=a.call(this,n,l,C.delay)).keyframes=c,k.preStyleProps=h,k.postStyleProps=_,k._stretchStartingKeyframe=D,k.timings={duration:C.duration,delay:C.delay,easing:C.easing},k}return W(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var l=this.keyframes,c=this.timings,h=c.delay,_=c.duration,C=c.easing;if(this._stretchStartingKeyframe&&h){var k=[],D=_+h,I=h/D,L=cd(l[0],!1);L.offset=0,k.push(L);var G=cd(l[0],!1);G.offset=MS(I),k.push(G);for(var Y=l.length-1,Q=1;Q<=Y;Q++){var ie=cd(l[Q],!1);ie.offset=MS((h+ie.offset*_)/D),k.push(ie)}_=D,h=0,C="",l=k}return db(this.element,l,this.preStyleProps,this.postStyleProps,_,h,C,!0)}}]),t}(iP);function MS(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,a-1);return Math.round(e*t)/t}var aP=function e(){F(this,e)},p9=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"normalizePropertyName",value:function(l,c){return JE(l)}},{key:"normalizeStyleValue",value:function(l,c,h,_){var C="",k=h.toString().trim();if(xS[c]&&0!==h&&"0"!==h)if("number"==typeof h)C="px";else{var D=h.match(/^[+-]?[\d\.]+([a-z]*)$/);D&&0==D[1].length&&_.push("Please provide a CSS unit value for ".concat(l,":").concat(h))}return k+C}}]),t}(aP),xS=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),a={},e.forEach(function(t){return a[t]=!0}),a;var e,a}();function hb(e,a,t,n,l,c,h,_,C,k,D,I,L){return{type:0,element:e,triggerName:a,isRemovalTransition:l,fromState:t,fromStyles:c,toState:n,toStyles:h,timelines:_,queriedElements:C,preStyleProps:k,postStyleProps:D,totalTime:I,errors:L}}var TS={},bB=function(){function e(a,t,n){F(this,e),this._triggerName=a,this.ast=t,this._stateStyles=n}return W(e,[{key:"match",value:function(t,n,l,c){return function(e,a,t,n,l){return e.some(function(c){return c(a,t,n,l)})}(this.ast.matchers,t,n,l,c)}},{key:"buildStyles",value:function(t,n,l){var c=this._stateStyles["*"],h=this._stateStyles[t],_=c?c.buildStyles(n,l):{};return h?h.buildStyles(n,l):_}},{key:"build",value:function(t,n,l,c,h,_,C,k,D,I){var L=[],G=this.ast.options&&this.ast.options.params||TS,Q=this.buildStyles(l,C&&C.params||TS,L),ie=k&&k.params||TS,fe=this.buildStyles(c,ie,L),se=new Set,be=new Map,Ce=new Map,je="void"===c,$e={params:Object.assign(Object.assign({},G),ie)},kt=I?[]:yB(t,n,this.ast.animation,h,_,Q,fe,$e,D,L),Dn=0;if(kt.forEach(function(Hr){Dn=Math.max(Hr.duration+Hr.delay,Dn)}),L.length)return hb(n,this._triggerName,l,c,je,Q,fe,[],[],be,Ce,Dn,L);kt.forEach(function(Hr){var zi=Hr.element,Ll=Ka(be,zi,{});Hr.preStyleProps.forEach(function(Qa){return Ll[Qa]=!0});var Fu=Ka(Ce,zi,{});Hr.postStyleProps.forEach(function(Qa){return Fu[Qa]=!0}),zi!==n&&se.add(zi)});var Zn=ob(se.values());return hb(n,this._triggerName,l,c,je,Q,fe,kt,Zn,be,Ce,Dn)}}]),e}(),wB=function(){function e(a,t,n){F(this,e),this.styles=a,this.defaultParams=t,this.normalizer=n}return W(e,[{key:"buildStyles",value:function(t,n){var l=this,c={},h=pp(this.defaultParams);return Object.keys(t).forEach(function(_){var C=t[_];null!=C&&(h[_]=C)}),this.styles.styles.forEach(function(_){if("string"!=typeof _){var C=_;Object.keys(C).forEach(function(k){var D=C[k];D.length>1&&(D=mS(D,h,n));var I=l.normalizer.normalizePropertyName(k,n);D=l.normalizer.normalizeStyleValue(k,I,D,n),c[I]=D})}}),c}}]),e}(),_9=function(){function e(a,t,n){var l=this;F(this,e),this.name=a,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(c){l.states[c.name]=new wB(c.style,c.options&&c.options.params||{},n)}),SB(this.states,"true","1"),SB(this.states,"false","0"),t.transitions.forEach(function(c){l.transitionFactories.push(new bB(a,c,l.states))}),this.fallbackTransition=function(e,a,t){return new bB(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(h,_){return!0}],options:null,queryCount:0,depCount:0},a)}(a,this.states)}return W(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,l,c){return this.transitionFactories.find(function(_){return _.match(t,n,l,c)})||null}},{key:"matchStyles",value:function(t,n,l){return this.fallbackTransition.buildStyles(t,n,l)}}]),e}();function SB(e,a,t){e.hasOwnProperty(a)?e.hasOwnProperty(t)||(e[t]=e[a]):e.hasOwnProperty(t)&&(e[a]=e[t])}var b9=new CS,C9=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return W(e,[{key:"register",value:function(t,n){var l=[],c=mB(this._driver,n,l);if(l.length)throw new Error("Unable to build the animation due to the following errors: ".concat(l.join("\n")));this._animations[t]=c}},{key:"_buildPlayer",value:function(t,n,l){var c=t.element,h=tB(this._driver,this._normalizer,c,t.keyframes,n,l);return this._driver.animate(c,h,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var C,l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=[],_=this._animations[t],k=new Map;if(_?(C=yB(this._driver,n,_,oB,hS,{},{},c,b9,h)).forEach(function(L){var G=Ka(k,L.element,{});L.postStyleProps.forEach(function(Y){return G[Y]=null})}):(h.push("The requested animation doesn't exist or has already been destroyed"),C=[]),h.length)throw new Error("Unable to create the animation due to the following errors: ".concat(h.join("\n")));k.forEach(function(L,G){Object.keys(L).forEach(function(Y){L[Y]=l._driver.computeStyle(G,Y,Ac)})});var D=C.map(function(L){var G=k.get(L.element);return l._buildPlayer(L,{},G)}),I=ud(D);return this._playersById[t]=I,I.onDestroy(function(){return l.destroy(t)}),this.players.push(I),I}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var l=this.players.indexOf(n);l>=0&&this.players.splice(l,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(t));return n}},{key:"listen",value:function(t,n,l,c){var h=sS(n,"","","");return GE(this._getPlayer(t),l,h,c),function(){}}},{key:"command",value:function(t,n,l,c){if("register"!=l)if("create"!=l){var _=this._getPlayer(t);switch(l){case"play":_.play();break;case"pause":_.pause();break;case"reset":_.reset();break;case"restart":_.restart();break;case"finish":_.finish();break;case"init":_.init();break;case"setPosition":_.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,c[0]||{});else this.register(t,c[0])}}]),e}(),DS="ng-animate-queued",oP="ng-animate-disabled",pb=".ng-animate-disabled",w9="ng-star-inserted",k9=[],sP={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Co="__ng_removed",vb=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";F(this,e),this.namespaceId=t;var n=a&&a.hasOwnProperty("value"),l=n?a.value:a;if(this.value=MB(l),n){var c=pp(a);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var l=this.options.params;Object.keys(n).forEach(function(c){null==l[c]&&(l[c]=n[c])})}}}]),e}(),Lg="void",lP=new vb(Lg),gb=function(){function e(a,t,n){F(this,e),this.id=a,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Rs(t,this._hostClassName)}return W(e,[{key:"listen",value:function(t,n,l,c){var h=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(l,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==l||0==l.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(l))throw new Error('The provided animation trigger event "'.concat(l,'" for the animation trigger "').concat(n,'" is not supported!'));var _=Ka(this._elementListeners,t,[]),C={name:n,phase:l,callback:c};_.push(C);var k=Ka(this._engine.statesByElement,t,{});return k.hasOwnProperty(n)||(Rs(t,pS),Rs(t,pS+"-"+n),k[n]=lP),function(){h._engine.afterFlush(function(){var D=_.indexOf(C);D>=0&&_.splice(D,1),h._triggers[n]||delete k[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return n}},{key:"trigger",value:function(t,n,l){var c=this,h=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_=this._getTrigger(n),C=new AS(this.id,n,t),k=this._engine.statesByElement.get(t);k||(Rs(t,pS),Rs(t,pS+"-"+n),this._engine.statesByElement.set(t,k={}));var D=k[n],I=new vb(l,this.id),L=l&&l.hasOwnProperty("value");!L&&D&&I.absorbOptions(D.options),k[n]=I,D||(D=lP);var G=I.value===Lg;if(G||D.value!==I.value){var fe=Ka(this._engine.playersByElement,t,[]);fe.forEach(function(Ce){Ce.namespaceId==c.id&&Ce.triggerName==n&&Ce.queued&&Ce.destroy()});var se=_.matchTransition(D.value,I.value,t,I.params),be=!1;if(!se){if(!h)return;se=_.fallbackTransition,be=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:se,fromState:D,toState:I,player:C,isFallbackTransition:be}),be||(Rs(t,DS),C.onStart(function(){Fg(t,DS)})),C.onDone(function(){var Ce=c.players.indexOf(C);Ce>=0&&c.players.splice(Ce,1);var je=c._engine.playersByElement.get(t);if(je){var $e=je.indexOf(C);$e>=0&&je.splice($e,1)}}),this.players.push(C),fe.push(C),C}if(!A9(D.params,I.params)){var Y=[],Q=_.matchStyles(D.value,D.params,Y),ie=_.matchStyles(I.value,I.params,Y);Y.length?this._engine.reportError(Y):this._engine.afterFlush(function(){Pc(t,Q),Au(t,ie)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(l,c){delete l[t]}),this._elementListeners.forEach(function(l,c){n._elementListeners.set(c,l.filter(function(h){return h.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(l){return l.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var l=this,c=this._engine.driver.query(t,vS,!0);c.forEach(function(h){if(!h[Co]){var _=l._engine.fetchNamespacesByElement(h);_.size?_.forEach(function(C){return C.triggerLeaveAnimation(h,n,!1,!0)}):l.clearElementCache(h)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(h){return l.clearElementCache(h)})})}},{key:"triggerLeaveAnimation",value:function(t,n,l,c){var h=this,_=this._engine.statesByElement.get(t);if(_){var C=[];if(Object.keys(_).forEach(function(k){if(h._triggers[k]){var D=h.trigger(t,k,Lg,c);D&&C.push(D)}}),C.length)return this._engine.markElementAsRemoved(this.id,t,!0,n),l&&ud(C).onDone(function(){return h._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,l=this._elementListeners.get(t),c=this._engine.statesByElement.get(t);if(l&&c){var h=new Set;l.forEach(function(_){var C=_.name;if(!h.has(C)){h.add(C);var D=n._triggers[C].fallbackTransition,I=c[C]||lP,L=new vb(Lg),G=new AS(n.id,C,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:C,transition:D,fromState:I,toState:L,player:G,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var l=this,c=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var h=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(t):[];if(_&&_.length)h=!0;else for(var C=t;C=C.parentNode;)if(c.statesByElement.get(C)){h=!0;break}}if(this.prepareLeaveAnimationListeners(t),h)c.markElementAsRemoved(this.id,t,!1,n);else{var D=t[Co];(!D||D===sP)&&(c.afterFlush(function(){return l.clearElementCache(t)}),c.destroyInnerAnimations(t),c._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,l=[];return this._queue.forEach(function(c){var h=c.player;if(!h.destroyed){var _=c.element,C=n._elementListeners.get(_);C&&C.forEach(function(k){if(k.name==c.triggerName){var D=sS(_,c.triggerName,c.fromState.value,c.toState.value);D._data=t,GE(c.player,k.phase,D,k.callback)}}),h.markedForDestroy?n._engine.afterFlush(function(){h.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,h){var _=c.transition.ast.depCount,C=h.transition.ast.depCount;return 0==_||0==C?_-C:n._engine.driver.containsElement(c.element,h.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(l){return l.element===t})||n}}]),e}(),M9=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(l,c){}}return W(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(l){l.queued&&t.push(l)})}),t}},{key:"createNamespace",value:function(t,n){var l=new gb(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(l,n):(this.newHostElements.set(n,l),this.collectEnterElement(n)),this._namespaceLookup[t]=l}},{key:"_balanceNamespaceList",value:function(t,n){var l=this._namespaceList.length-1;if(l>=0){for(var c=!1,h=l;h>=0;h--)if(this.driver.containsElement(this._namespaceList[h].hostElement,n)){this._namespaceList.splice(h+1,0,t),c=!0;break}c||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t}},{key:"register",value:function(t,n){var l=this._namespaceLookup[t];return l||(l=this.createNamespace(t,n)),l}},{key:"registerTrigger",value:function(t,n,l){var c=this._namespaceLookup[t];c&&c.register(n,l)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var l=this;if(t){var c=this._fetchNamespace(t);this.afterFlush(function(){l.namespacesByHostElement.delete(c.hostElement),delete l._namespaceLookup[t];var h=l._namespaceList.indexOf(c);h>=0&&l._namespaceList.splice(h,1)}),this.afterFlushAnimationsDone(function(){return c.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,l=this.statesByElement.get(t);if(l)for(var c=Object.keys(l),h=0;h=0&&this.collectedLeaveElements.splice(_,1)}if(t){var C=this._fetchNamespace(t);C&&C.insertNode(n,l)}c&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,oP)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fg(t,oP))}},{key:"removeNode",value:function(t,n,l,c){if(ES(n)){var h=t?this._fetchNamespace(t):null;if(h?h.removeNode(n,c):this.markElementAsRemoved(t,n,!1,c),l){var _=this.namespacesByHostElement.get(n);_&&_.id!==t&&_.removeNode(n,c)}}else this._onRemovalComplete(n,c)}},{key:"markElementAsRemoved",value:function(t,n,l,c){this.collectedLeaveElements.push(n),n[Co]={namespaceId:t,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1}}},{key:"listen",value:function(t,n,l,c,h){return ES(n)?this._fetchNamespace(t).listen(n,l,c,h):function(){}}},{key:"_buildInstruction",value:function(t,n,l,c,h){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,l,c,t.fromState.options,t.toState.options,n,h)}},{key:"destroyInnerAnimations",value:function(t){var n=this,l=this.driver.query(t,vS,!0);l.forEach(function(c){return n.destroyActiveAnimationsForElement(c)}),0!=this.playersByQueriedElement.size&&(l=this.driver.query(t,KE,!0)).forEach(function(c){return n.finishActiveQueriedAnimationOnElement(c)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(l){l.queued?l.markedForDestroy=!0:l.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(l){return l.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return ud(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var n=this,l=t[Co];if(l&&l.setForRemoval){if(t[Co]=sP,l.namespaceId){this.destroyInnerAnimations(t);var c=this._fetchNamespace(l.namespaceId);c&&c.clearElementCache(t)}this._onRemovalComplete(t,l.setForRemoval)}this.driver.matchesElement(t,pb)&&this.markElementAsDisabled(t,!1),this.driver.query(t,pb,!0).forEach(function(h){n.markElementAsDisabled(h,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,l=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(L,G){return t._balanceNamespaceList(L,G)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var c=0;c=0;Ll--)this._namespaceList[Ll].drainQueuedTransitions(n).forEach(function(Ct){var Jt=Ct.player,dn=Ct.element;if(Hr.push(Jt),l.collectedEnterElements.length){var oa=dn[Co];if(oa&&oa.setForMove)return void Jt.destroy()}var Ab=!G||!l.driver.containsElement(G,dn),hk=Dn.get(dn),CH=ie.get(dn),So=l._buildInstruction(Ct,c,CH,hk,Ab);if(So.errors&&So.errors.length)zi.push(So);else{if(Ab)return Jt.onStart(function(){return Pc(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);if(Ct.isFallbackTransition)return Jt.onStart(function(){return Pc(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);So.timelines.forEach(function(Hc){return Hc.stretchStartingKeyframe=!0}),c.append(dn,So.timelines),C.push({instruction:So,player:Jt,element:dn}),So.queriedElements.forEach(function(Hc){return Ka(k,Hc,[]).push(Jt)}),So.preStyleProps.forEach(function(Hc,Eb){var wH=Object.keys(Hc);if(wH.length){var Pb=D.get(Eb);Pb||D.set(Eb,Pb=new Set),wH.forEach(function(DX){return Pb.add(DX)})}}),So.postStyleProps.forEach(function(Hc,Eb){var wH=Object.keys(Hc),Pb=I.get(Eb);Pb||I.set(Eb,Pb=new Set),wH.forEach(function(DX){return Pb.add(DX)})})}});if(zi.length){var Qa=[];zi.forEach(function(Ct){Qa.push("@".concat(Ct.triggerName," has failed due to:\n")),Ct.errors.forEach(function(Jt){return Qa.push("- ".concat(Jt,"\n"))})}),Hr.forEach(function(Ct){return Ct.destroy()}),this.reportError(Qa)}var Nu=new Map,Bc=new Map;C.forEach(function(Ct){var Jt=Ct.element;c.has(Jt)&&(Bc.set(Jt,Jt),l._beforeAnimationBuild(Ct.player.namespaceId,Ct.instruction,Nu))}),h.forEach(function(Ct){var Jt=Ct.element;l._getPreviousPlayers(Jt,!1,Ct.namespaceId,Ct.triggerName,null).forEach(function(oa){Ka(Nu,Jt,[]).push(oa),oa.destroy()})});var Tb=se.filter(function(Ct){return DB(Ct,D,I)}),Db=new Map;OS(Db,this.driver,Ce,I,Ac).forEach(function(Ct){DB(Ct,D,I)&&Tb.push(Ct)});var LP=new Map;Q.forEach(function(Ct,Jt){OS(LP,l.driver,new Set(Ct),D,"!")}),Tb.forEach(function(Ct){var Jt=Db.get(Ct),dn=LP.get(Ct);Db.set(Ct,Object.assign(Object.assign({},Jt),dn))});var FP=[],_H=[],NP={};C.forEach(function(Ct){var Jt=Ct.element,dn=Ct.player,oa=Ct.instruction;if(c.has(Jt)){if(L.has(Jt))return dn.onDestroy(function(){return Au(Jt,oa.toStyles)}),dn.disabled=!0,dn.overrideTotalTime(oa.totalTime),void h.push(dn);var Ab=NP;if(Bc.size>1){for(var hk=Jt,CH=[];hk=hk.parentNode;){var So=Bc.get(hk);if(So){Ab=So;break}CH.push(hk)}CH.forEach(function(Eb){return Bc.set(Eb,Ab)})}var TX=l._buildAnimation(dn.namespaceId,oa,Nu,_,LP,Db);if(dn.setRealPlayer(TX),Ab===NP)FP.push(dn);else{var Hc=l.playersByElement.get(Ab);Hc&&Hc.length&&(dn.parentPlayer=ud(Hc)),h.push(dn)}}else Pc(Jt,oa.fromStyles),dn.onDestroy(function(){return Au(Jt,oa.toStyles)}),_H.push(dn),L.has(Jt)&&h.push(dn)}),_H.forEach(function(Ct){var Jt=_.get(Ct.element);if(Jt&&Jt.length){var dn=ud(Jt);Ct.setRealPlayer(dn)}}),h.forEach(function(Ct){Ct.parentPlayer?Ct.syncPlayerEvents(Ct.parentPlayer):Ct.destroy()});for(var VP=0;VP0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,l):new Og(t.duration,t.delay)}}]),e}(),AS=function(){function e(a,t,n){F(this,e),this.namespaceId=a,this.triggerName=t,this.element=n,this._player=new Og,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return W(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(l){n._queuedCallbacks[l].forEach(function(c){return GE(t,l,void 0,c)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,l=this._player;l.triggerCallback&&t.onStart(function(){return l.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){Ka(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function MB(e){return null!=e?e:null}function ES(e){return e&&1===e.nodeType}function PS(e,a){var t=e.style.display;return e.style.display=null!=a?a:"none",t}function OS(e,a,t,n,l){var c=[];t.forEach(function(C){return c.push(PS(C))});var h=[];n.forEach(function(C,k){var D={};C.forEach(function(I){var L=D[I]=a.computeStyle(k,I,l);(!L||0==L.length)&&(k[Co]=kB,h.push(k))}),e.set(k,D)});var _=0;return t.forEach(function(C){return PS(C,c[_++])}),h}function TB(e,a){var t=new Map;if(e.forEach(function(_){return t.set(_,[])}),0==a.length)return t;var l=new Set(a),c=new Map;function h(_){if(!_)return 1;var C=c.get(_);if(C)return C;var k=_.parentNode;return C=t.has(k)?k:l.has(k)?1:h(k),c.set(_,C),C}return a.forEach(function(_){var C=h(_);1!==C&&t.get(C).push(_)}),t}var IS="$$classes";function Rs(e,a){if(e.classList)e.classList.add(a);else{var t=e[IS];t||(t=e[IS]={}),t[a]=!0}}function Fg(e,a){if(e.classList)e.classList.remove(a);else{var t=e[IS];t&&delete t[a]}}function T9(e,a,t){ud(t).onDone(function(){return e.processLeaveNode(a)})}function RS(e,a){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function AB(e,a){var t=null,n=null;return Array.isArray(a)&&a.length?(t=uP(a[0]),a.length>1&&(n=uP(a[a.length-1]))):a&&(t=uP(a)),t||n?new E9(e,t,n):null}var E9=function(){var e=function(){function a(t,n,l){F(this,a),this._element=t,this._startStyles=n,this._endStyles=l,this._state=0;var c=a.initialStylesByElement.get(t);c||a.initialStylesByElement.set(t,c={}),this._initialStyles=c}return W(a,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Au(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Au(this._element,this._initialStyles),this._endStyles&&(Au(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(Pc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pc(this._element,this._endStyles),this._endStyles=null),Au(this._element,this._initialStyles),this._state=3)}}]),a}();return e.initialStylesByElement=new WeakMap,e}();function uP(e){for(var a=null,t=Object.keys(e),n=0;n=this._delay&&l>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),fP(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,a){var n=_b(e,"").split(","),l=vp(n,a);l>=0&&(n.splice(l,1),FS(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function OB(e,a,t){FS(e,"PlayState",t,RB(e,a))}function RB(e,a){var t=_b(e,"");return t.indexOf(",")>0?vp(t.split(","),a):vp([t],a)}function vp(e,a){for(var t=0;t=0)return t;return-1}function fP(e,a,t){t?e.removeEventListener(LS,a):e.addEventListener(LS,a)}function FS(e,a,t,n){var l=EB+a;if(null!=n){var c=e.style[l];if(c.length){var h=c.split(",");h[n]=t,t=h.join(",")}}e.style[l]=t}function _b(e,a){return e.style[EB+a]||""}var FB=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.element=a,this.keyframes=t,this.animationName=n,this._duration=l,this._delay=c,this._finalStyles=_,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=h||"linear",this.totalTime=l+c,this._buildStyler()}return W(e,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new cP(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var n={};if(this.hasStarted()){var l=this._state>=3;Object.keys(this._finalStyles).forEach(function(c){"offset"!=c&&(n[c]=l?t._finalStyles[c]:Oc(t.element,c))})}this.currentSnapshot=n}}]),e}(),L9=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).element=n,c._startingStyles={},c.__initialized=!1,c._styles=rB(l),c}return W(t,[{key:"init",value:function(){var l=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(c){l._startingStyles[c]=l.element.style[c]}),Ie(Oe(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var l=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(c){return l.element.style.setProperty(c,l._styles[c])}),Ie(Oe(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var l=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(c){var h=l._startingStyles[c];h?l.element.style.setProperty(c,h):l.element.style.removeProperty(c)}),this._startingStyles=null,Ie(Oe(t.prototype),"destroy",this).call(this))}}]),t}(Og),F9="gen_css_kf_",VB=function(){function e(){F(this,e),this._count=0}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"buildKeyframeElement",value:function(t,n,l){l=l.map(function(C){return rB(C)});var c="@keyframes ".concat(n," {\n"),h="";l.forEach(function(C){h=" ";var k=parseFloat(C.offset);c+="".concat(h).concat(100*k,"% {\n"),h+=" ",Object.keys(C).forEach(function(D){var I=C[D];switch(D){case"offset":return;case"easing":return void(I&&(c+="".concat(h,"animation-timing-function: ").concat(I,";\n")));default:return void(c+="".concat(h).concat(D,": ").concat(I,";\n"))}}),c+="".concat(h,"}\n")}),c+="}\n";var _=document.createElement("style");return _.textContent=c,_}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],k=_.filter(function(fe){return fe instanceof FB}),D={};hB(l,c)&&k.forEach(function(fe){var se=fe.currentSnapshot;Object.keys(se).forEach(function(be){return D[be]=se[be]})});var I=N9(n=pB(t,n,D));if(0==l)return new L9(t,I);var L="".concat(F9).concat(this._count++),G=this.buildKeyframeElement(t,L,n),Y=BB(t);Y.appendChild(G);var Q=AB(t,n),ie=new FB(t,n,L,l,c,h,I,Q);return ie.onDestroy(function(){return HB(G)}),ie}}]),e}();function BB(e){var a,t=null===(a=e.getRootNode)||void 0===a?void 0:a.call(e);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head}function N9(e){var a={};return e&&(Array.isArray(e)?e:[e]).forEach(function(n){Object.keys(n).forEach(function(l){"offset"==l||"easing"==l||(a[l]=n[l])})}),a}function HB(e){e.parentNode.removeChild(e)}var UB=function(){function e(a,t,n,l){F(this,e),this.element=a,this.keyframes=t,this.options=n,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,n,l){return t.animate(n,l)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(l){"offset"!=l&&(n[l]=t._finished?t._finalKeyframe[l]:Oc(t.element,l))}),this.currentSnapshot=n}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),GB=function(){function e(){F(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(WB().toString()),this._cssKeyframesDriver=new VB}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],C=arguments.length>6?arguments[6]:void 0,k=!C&&!this._isNativeImpl;if(k)return this._cssKeyframesDriver.animate(t,n,l,c,h,_);var D=0==c?"both":"forwards",I={duration:l,delay:c,fill:D};h&&(I.easing=h);var L={},G=_.filter(function(Q){return Q instanceof UB});hB(l,c)&&G.forEach(function(Q){var ie=Q.currentSnapshot;Object.keys(ie).forEach(function(fe){return L[fe]=ie[fe]})});var Y=AB(t,n=pB(t,n=n.map(function(Q){return cd(Q,!1)}),L));return new UB(t,n,I,Y)}}]),e}();function WB(){return eB()&&Element.prototype.animate||{}}var V9=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._nextAnimationId=0,h._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Hs.None,styles:[],data:{animation:[]}}),h}return W(n,[{key:"build",value:function(c){var h=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?NE(c):c;return qB(this._renderer,null,h,"register",[_]),new YB(h,this._renderer)}}]),n}(FE);return e.\u0275fac=function(t){return new(t||e)(ce(Ff),ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),YB=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this))._id=n,c._renderer=l,c}return W(t,[{key:"create",value:function(l,c){return new B9(this._id,l,c||{},this._renderer)}}]),t}(KY),B9=function(){function e(a,t,n,l){F(this,e),this.id=a,this.element=t,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return W(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,l),this.engine.onInsert(this.namespaceId,n,t,c)}},{key:"removeChild",value:function(t,n,l){this.engine.onRemove(this.namespaceId,n,this.delegate,l)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,l,c){this.delegate.setAttribute(t,n,l,c)}},{key:"removeAttribute",value:function(t,n,l){this.delegate.removeAttribute(t,n,l)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,l,c){this.delegate.setStyle(t,n,l,c)}},{key:"removeStyle",value:function(t,n,l){this.delegate.removeStyle(t,n,l)}},{key:"setProperty",value:function(t,n,l){"@"==n.charAt(0)&&n==bb?this.disableAnimations(t,!!l):this.delegate.setProperty(t,n,l)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,l){return this.delegate.listen(t,n,l)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),KB=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,l,c,h)).factory=n,_.namespaceId=l,_}return W(t,[{key:"setProperty",value:function(l,c,h){"@"==c.charAt(0)?"."==c.charAt(1)&&c==bb?this.disableAnimations(l,h=void 0===h||!!h):this.engine.process(this.namespaceId,l,c.substr(1),h):this.delegate.setProperty(l,c,h)}},{key:"listen",value:function(l,c,h){var _=this;if("@"==c.charAt(0)){var C=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(l),k=c.substr(1),D="";if("@"!=k.charAt(0)){var L=cr(function(e){var a=e.indexOf(".");return[e.substring(0,a),e.substr(a+1)]}(k),2);k=L[0],D=L[1]}return this.engine.listen(this.namespaceId,C,k,D,function(G){_.factory.scheduleListenerCallback(G._data||-1,h,G)})}return this.delegate.listen(l,c,h)}}]),t}(ZB),$B=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l.body,c,h)}return W(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(mb);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(dS),ce(aP))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Un=new Ee("AnimationModuleType"),e5=[{provide:FE,useClass:V9},{provide:aP,useFactory:function(){return new p9}},{provide:mb,useClass:$B},{provide:Ff,useFactory:function(e,a,t){return new XB(e,a,t)},deps:[qh,mb,ft]}],dP=[{provide:dS,useFactory:function(){return"function"==typeof WB()?new GB:new VB}},{provide:Un,useValue:"BrowserAnimations"}].concat(e5),BS=[{provide:dS,useClass:iB},{provide:Un,useValue:"NoopAnimations"}].concat(e5),U9=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:n.disableAnimations?BS:dP}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:dP,imports:[QD]}),e}();function j9(e,a){if(1&e&&me(0,"mat-pseudo-checkbox",4),2&e){var t=J();z("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function n5(e,a){if(1&e&&(A(0,"span",5),K(1),E()),2&e){var t=J();H(1),Ve("(",t.group.label,")")}}var r5=["*"],W9=function(){var e=function a(){F(this,a)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Y9=function(){var e=function a(){F(this,a)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),i5=new nc("12.2.4"),a5=new Ee("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),$t=function(){var e=function(){function a(t,n,l){F(this,a),this._hasDoneGlobalChecks=!1,this._document=l,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return W(a,[{key:"_getWindow",value:function(){var n=this._document.defaultView||window;return"object"==typeof n&&n?n:null}},{key:"_checkIsEnabled",value:function(n){return!(!yw()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}},{key:"_isTestEnv",value:function(){var n=this._getWindow();return n&&(n.__karma__||n.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var n=this._document.createElement("div");n.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(n);var l=getComputedStyle(n);l&&"none"!==l.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&i5.full!==$V.full&&console.warn("The Angular Material version ("+i5.full+") does not match the Angular CDK version ("+$V.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(RE),ce(a5,8),ce(lt))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$y],$y]}),e}();function ia(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_1&&void 0!==arguments[1]?arguments[1]:0;return function(t){ae(l,t);var n=ue(l);function l(){var c;F(this,l);for(var h=arguments.length,_=new Array(h),C=0;C0?l:t}}]),e}(),Pu=new Ee("mat-date-formats");try{fd="undefined"!=typeof Intl}catch(e){fd=!1}var Z9={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},s5=zS(31,function(a){return String(a+1)}),$9={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Q9=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function zS(e,a){for(var t=Array(e),n=0;n9999)&&(c=this.clone(c)).setFullYear(Math.max(1,Math.min(9999,c.getFullYear()))),h=Object.assign(Object.assign({},h),{timeZone:"utc"});var _=new Intl.DateTimeFormat(this.locale,h);return this._stripDirectionalityCharacters(this._format(_,c))}return this._stripDirectionalityCharacters(c.toDateString())}},{key:"addCalendarYears",value:function(c,h){return this.addCalendarMonths(c,12*h)}},{key:"addCalendarMonths",value:function(c,h){var _=this._createDateWithOverflow(this.getYear(c),this.getMonth(c)+h,this.getDate(c));return this.getMonth(_)!=((this.getMonth(c)+h)%12+12)%12&&(_=this._createDateWithOverflow(this.getYear(_),this.getMonth(_),0)),_}},{key:"addCalendarDays",value:function(c,h){return this._createDateWithOverflow(this.getYear(c),this.getMonth(c),this.getDate(c)+h)}},{key:"toIso8601",value:function(c){return[c.getUTCFullYear(),this._2digit(c.getUTCMonth()+1),this._2digit(c.getUTCDate())].join("-")}},{key:"deserialize",value:function(c){if("string"==typeof c){if(!c)return null;if(Q9.test(c)){var h=new Date(c);if(this.isValid(h))return h}}return Ie(Oe(n.prototype),"deserialize",this).call(this,c)}},{key:"isDateInstance",value:function(c){return c instanceof Date}},{key:"isValid",value:function(c){return!isNaN(c.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(c,h,_){var C=new Date;return C.setFullYear(c,h,_),C.setHours(0,0,0,0),C}},{key:"_2digit",value:function(c){return("00"+c).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(c){return c.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(c,h){var _=new Date;return _.setUTCFullYear(h.getFullYear(),h.getMonth(),h.getDate()),_.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),c.format(_)}}]),n}(Gr);return e.\u0275fac=function(t){return new(t||e)(ce(hP,8),ce(en))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),eq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:Gr,useClass:J9}],imports:[[ep]]}),e}(),tq={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},nq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:Pu,useValue:tq}],imports:[[eq]]}),e}(),dd=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"isErrorState",value:function(n,l){return!!(n&&n.invalid&&(n.touched||l&&l.submitted))}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),rq=function(){function e(a,t,n){F(this,e),this._renderer=a,this.element=t,this.config=n,this.state=3}return W(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),pP={enterDuration:225,exitDuration:150},vP=tp({passive:!0}),c5=["mousedown","touchstart"],aq=["mouseup","mouseleave","touchend","touchcancel"],gP=function(){function e(a,t,n,l){F(this,e),this._target=a,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,l.isBrowser&&(this._containerElement=bc(n))}return W(e,[{key:"fadeInRipple",value:function(t,n){var l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},pP),c.animation);c.centered&&(t=h.left+h.width/2,n=h.top+h.height/2);var C=c.radius||sq(t,n,h),k=t-h.left,D=n-h.top,I=_.enterDuration,L=document.createElement("div");L.classList.add("mat-ripple-element"),L.style.left="".concat(k-C,"px"),L.style.top="".concat(D-C,"px"),L.style.height="".concat(2*C,"px"),L.style.width="".concat(2*C,"px"),null!=c.color&&(L.style.backgroundColor=c.color),L.style.transitionDuration="".concat(I,"ms"),this._containerElement.appendChild(L),oq(L),L.style.transform="scale(1)";var G=new rq(this,L,c);return G.state=0,this._activeRipples.add(G),c.persistent||(this._mostRecentTransientRipple=G),this._runTimeoutOutsideZone(function(){var Y=G===l._mostRecentTransientRipple;G.state=1,!c.persistent&&(!Y||!l._isPointerDown)&&G.fadeOut()},I),G}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var l=t.element,c=Object.assign(Object.assign({},pP),t.config.animation);l.style.transitionDuration="".concat(c.exitDuration,"ms"),l.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,l.parentNode.removeChild(l)},c.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=bc(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(c5))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(aq),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=ab(t),l=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(l){n._triggerElement.addEventListener(l,n,vP)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(c5.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}),this._pointerUpEventsRegistered&&aq.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}))}}]),e}();function oq(e){window.getComputedStyle(e).getPropertyValue("opacity")}function sq(e,a,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),l=Math.max(Math.abs(a-t.top),Math.abs(a-t.bottom));return Math.sqrt(n*n+l*l)}var US=new Ee("mat-ripple-global-options"),Ls=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._elementRef=t,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new gP(this,n,t,l)}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,l,Object.assign(Object.assign({},this.rippleConfig),c)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&dt("mat-ripple-unbounded",n.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),Da=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,ep],$t]}),e}(),Vg=function(){var e=function a(t){F(this,a),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,n){2&t&&dt("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,n){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),mP=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t]]}),e}(),Bg=new Ee("MAT_OPTION_PARENT_COMPONENT"),lq=ia(function(){return function e(){F(this,e)}}()),f5=0,_P=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c,h;return F(this,n),(c=t.call(this))._labelId="mat-optgroup-label-".concat(f5++),c._inert=null!==(h=null==l?void 0:l.inertGroups)&&void 0!==h&&h,c}return n}(lq);return e.\u0275fac=function(t){return new(t||e)(N(Bg,8))},e.\u0275dir=ve({type:e,inputs:{label:"label"},features:[Pe]}),e}(),GS=new Ee("MatOptgroup"),cq=0,d5=function e(a){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];F(this,e),this.source=a,this.isUserInput=t},Hg=function(){var e=function(){function a(t,n,l,c){F(this,a),this._element=t,this._changeDetectorRef=n,this._parent=l,this.group=c,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(cq++),this.onSelectionChange=new ye,this._stateChanges=new qe}return W(a,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(n){this._disabled=it(n)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(n,l){var c=this._getHostElement();"function"==typeof c.focus&&c.focus(l)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(n){(13===n.keyCode||32===n.keyCode)&&!Bi(n)&&(this._selectViaInteraction(),n.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new d5(this,n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(void 0),N(_P))},e.\u0275dir=ve({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Pi=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(Hg);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Bg,8),N(GS,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,n){1&t&&ne("click",function(){return n._selectViaInteraction()})("keydown",function(c){return n._handleKeydown(c)}),2&t&&(Zi("id",n.id),Ke("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),dt("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[Pe],ngContentSelectors:r5,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,n){1&t&&(rr(),re(0,j9,1,2,"mat-pseudo-checkbox",0),A(1,"span",1),Wt(2),E(),re(3,n5,2,1,"span",2),me(4,"div",3)),2&t&&(z("ngIf",n.multiple),H(3),z("ngIf",n.group&&n.group._inert),H(1),z("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[Kt,Ls,Vg],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function jS(e,a,t){if(t.length){for(var n=a.toArray(),l=t.toArray(),c=0,h=0;ht+n?Math.max(0,e-n+a):t}var WS=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Da,Wa,$t,mP]]}),e}();function fq(e,a){}var yP=function e(){F(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},dq={dialogContainer:Ei("dialogContainer",[Bn("void, exit",gt({opacity:0,transform:"scale(0.7)"})),Bn("enter",gt({transform:"none"})),zn("* => enter",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",gt({transform:"none",opacity:1}))),zn("* => void, * => exit",Tn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",gt({opacity:0})))])},h5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._elementRef=l,D._focusTrapFactory=c,D._changeDetectorRef=h,D._config=C,D._focusMonitor=k,D._animationStateChanged=new ye,D._elementFocusedBeforeDialogWasOpened=null,D._closeInteractionType=null,D.attachDomPortal=function(I){return D._portalOutlet.hasAttached(),D._portalOutlet.attachDomPortal(I)},D._ariaLabelledBy=C.ariaLabelledBy||null,D._document=_,D}return W(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(c)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var c=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&c&&"function"==typeof c.focus){var h=Ky(),_=this._elementRef.nativeElement;(!h||h===this._document.body||h===_||_.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ky())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var c=this._elementRef.nativeElement,h=Ky();return c===h||c.contains(h)}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(Vt),N(lt,8),N(yP),N(ra))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},features:[Pe]}),e}(),hq=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._state="enter",l}return W(n,[{key:"_onAnimationDone",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===h&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===h||"void"===h)&&this._animationStateChanged.next({state:"closing",totalTime:_})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(h5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&mv("@dialogContainer.start",function(c){return n._onAnimationStart(c)})("@dialogContainer.done",function(c){return n._onAnimationDone(c)}),2&t&&(Zi("id",n._id),Ke("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Ba("@dialogContainer",n._state))},features:[Pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&re(0,fq,0,0,"ng-template",0)},directives:[Os],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[dq.dialogContainer]}}),e}(),p5=0,Er=function(){function e(a,t){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(p5++);F(this,e),this._overlayRef=a,this._containerInstance=t,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new qe,this._afterClosed=new qe,this._beforeClosed=new qe,this._state=0,t._id=l,t._animationStateChanged.pipe(vr(function(c){return"opened"===c.state}),or(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(vr(function(c){return"closed"===c.state}),or(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),a.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),a.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!n.disableClose&&!Bi(c)})).subscribe(function(c){c.preventDefault(),bP(n,"keyboard")}),a.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():bP(n,"mouse")})}return W(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(vr(function(l){return"closing"===l.state}),or(1)).subscribe(function(l){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},l.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function bP(e,a,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=a),e.close(t)}var jr=new Ee("MatDialogData"),YS=new Ee("mat-dialog-default-options"),pq=new Ee("mat-dialog-scroll-strategy"),wb={provide:pq,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},v5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){var I=this;F(this,a),this._overlay=t,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=h,this._dialogRefConstructor=C,this._dialogContainerType=k,this._dialogDataToken=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=Ly(function(){return I.openDialogs.length?I._getAfterAllClosed():I._getAfterAllClosed().pipe($r(void 0))}),this._scrollStrategy=_}return W(a,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,l){var c=this;(l=function(e,a){return Object.assign(Object.assign({},a),e)}(l,this._defaultOptions||new yP)).id&&this.getDialogById(l.id);var h=this._createOverlay(l),_=this._attachDialogContainer(h,l),C=this._attachDialogContent(n,_,h,l);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(C),C.afterClosed().subscribe(function(){return c._removeOpenDialog(C)}),this.afterOpened.next(C),_._initializeWithAttachedContent(),C}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(l){return l.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var l=this._getOverlayConfig(n);return this._overlay.create(l)}},{key:"_getOverlayConfig",value:function(n){var l=new up({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(l.backdropClass=n.backdropClass),l}},{key:"_attachDialogContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:yP,useValue:l}]}),_=new sd(this._dialogContainerType,l.viewContainerRef,h,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,h){var _=new this._dialogRefConstructor(c,l,h.id);if(n instanceof Xn)l.attachTemplatePortal(new Ps(n,null,{$implicit:h.data,dialogRef:_}));else{var C=this._createInjector(h,_,l),k=l.attachComponentPortal(new sd(n,h.viewContainerRef,C));_.componentInstance=k.instance}return _.updateSize(h.width,h.height).updatePosition(h.position),_}},{key:"_createInjector",value:function(n,l,c){var h=n&&n.viewContainerRef&&n.viewContainerRef.injector,_=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:l}];return n.direction&&(!h||!h.get(Mr,null,yn.Optional))&&_.push({provide:Mr,useValue:{value:n.direction,change:ut()}}),kn.create({parent:h||this._injector,providers:_})}},{key:"_removeOpenDialog",value:function(n){var l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,h){c?h.setAttribute("aria-hidden",c):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var l=n.parentElement.children,c=l.length-1;c>-1;c--){var h=l[c];h!==n&&"SCRIPT"!==h.nodeName&&"STYLE"!==h.nodeName&&!h.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(h,h.getAttribute("aria-hidden")),h.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var l=n.length;l--;)n[l].close()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(kn),N(void 0),N(void 0),N(tb),N(void 0),N(Yl),N(Yl),N(Ee))},e.\u0275dir=ve({type:e}),e}(),Sb=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,_,k,D,C,Er,hq,jr)}return n}(v5);return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(kn),ce(Jv,8),ce(YS,8),ce(pq),ce(e,12),ce(tb))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),gq=0,Lr=function(){var e=function(){function a(t,n,l){F(this,a),this.dialogRef=t,this._elementRef=n,this._dialog=l,this.type="button"}return W(a,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=g5(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var l=n._matDialogClose||n._matDialogCloseResult;l&&(this.dialogResult=l.currentValue)}},{key:"_onButtonClick",value:function(n){bP(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._onButtonClick(c)}),2&t&&Ke("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[an]}),e}(),Wr=function(){var e=function(){function a(t,n,l){F(this,a),this._dialogRef=t,this._elementRef=n,this._dialog=l,this.id="mat-dialog-title-".concat(gq++)}return W(a,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=g5(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var l=n._dialogRef._containerInstance;l&&!l._ariaLabelledBy&&(l._ariaLabelledBy=n.id)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Zi("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),Fr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),Qr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function g5(e,a){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?a.find(function(n){return n.id===t.id}):null}var m5=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Sb,wb],imports:[[fp,xg,$t],$t]}),e}();function mq(e){var a=e.subscriber,t=e.counter,n=e.period;a.next(t),this.schedule({subscriber:a,counter:t+1,period:n},n)}var XS=["mat-button",""],hd=["*"],wP=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",yq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y5=Eu(ia(El(function(){return function e(a){F(this,e),this._elementRef=a}}()))),Rn=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;F(this,n),(_=t.call(this,l))._focusMonitor=c,_._animationMode=h,_.isRoundButton=_._hasHostAttributes("mat-fab","mat-mini-fab"),_.isIconButton=_._hasHostAttributes("mat-icon-button");var k,C=tn(yq);try{for(C.s();!(k=C.n()).done;){var D=k.value;_._hasHostAttributes(D)&&_._getHostElement().classList.add(D)}}catch(I){C.e(I)}finally{C.f()}return l.nativeElement.classList.add("mat-button-base"),_.isRoundButton&&(_.color="accent"),_}return W(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(c,h){c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var c=this,h=arguments.length,_=new Array(h),C=0;C0&&(this.dialogRef.afterClosed().subscribe(function(t){a.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return(!zA(e)||e<0)&&(e=0),(!a||"function"!=typeof a.schedule)&&(a=Mg),new gn(function(t){return t.add(a.schedule(mq,e,{subscriber:t,counter:0,period:e})),t})}(1e3).subscribe(function(t){var n=a.data.autoclose-1e3*(t+1);a.setExtra(n),n<=0&&a.close()}))},e.prototype.initYesNo=function(){},e.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Ou.yesno?this.initYesNo():this.initAlert()},e.\u0275fac=function(t){return new(t||e)(N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),me(2,"mat-dialog-content",1),Uf(3,"safeHtml"),A(4,"mat-dialog-actions"),re(5,C5,4,1,"button",2),re(6,w5,3,1,"button",3),re(7,S5,3,1,"button",3),E()),2&t&&(z("innerHtml",Gf(1,5,n.data.title),Si),H(2),z("innerHTML",Gf(3,7,n.data.body),Si),H(3),z("ngIf",0==n.data.type),H(1),z("ngIf",1==n.data.type),H(1),z("ngIf",1==n.data.type))},directives:[Wr,Fr,Qr,Kt,Rn,Lr,Hn],pipes:[b5],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),Pl=function(e){return e.TEXT="text",e.TEXT_AUTOCOMPLETE="text-autocomplete",e.TEXTBOX="textbox",e.NUMERIC="numeric",e.PASSWORD="password",e.HIDDEN="hidden",e.CHOICE="choice",e.MULTI_CHOICE="multichoice",e.EDITLIST="editlist",e.CHECKBOX="checkbox",e.IMAGECHOICE="imgchoice",e.DATE="date",e.DATETIME="datetime",e.TAGLIST="taglist",e}({}),M5=function(){function e(){}return e.locateChoice=function(a,t){var n=t.gui.values.find(function(l){return l.id===a});if(void 0===n)try{n=t.gui.values[0]}catch(l){n={id:"",img:"",text:""}}return n},e}();function o(e,a){return new gn(function(t){var n=e.length;if(0!==n)for(var l=new Array(n),c=0,h=0,_=function(D){var I=yt(e[D]),L=!1;t.add(I.subscribe({next:function(Y){L||(L=!0,h++),l[D]=Y},error:function(Y){return t.error(Y)},complete:function(){(++c===n||!L)&&(h===n&&t.next(a?a.reduce(function(Y,Q,ie){return Y[Q]=l[ie],Y},{}):l),t.complete())}}))},C=0;Ce?{max:{max:e,actual:a.value}}:null}}(t)}},{key:"required",value:function(t){return P(t)}},{key:"requiredTrue",value:function(t){return O(t)}},{key:"email",value:function(t){return function(e){return m(e.value)||S.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(e){return function(a){return m(a.value)||!y(a.value)?null:a.value.lengthe?{maxlength:{requiredLength:e,actualLength:a.value.length}}:null}}function j(e){return null}function X(e){return null!=e}function Z(e){var a=vv(e)?yt(e):e;return gv(a),a}function $(e){var a={};return e.forEach(function(t){a=null!=t?Object.assign(Object.assign({},a),t):a}),0===Object.keys(a).length?null:a}function te(e,a){return a.map(function(t){return t(e)})}function le(e){return e.map(function(a){return function(e){return!e.validate}(a)?a:function(t){return a.validate(t)}})}function oe(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return $(te(t,a))}}function de(e){return null!=e?oe(le(e)):null}function ge(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return function(){for(var e=arguments.length,a=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(n)}},{key:"hasError",value:function(n,l){return!!this.control&&this.control.hasError(n,l)}},{key:"getError",value:function(n,l){return this.control?this.control.getError(n,l):null}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),Yt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(xt);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,features:[Pe]}),e}(),Ut=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return t}(xt),Wn=function(){function e(a){F(this,e),this._cd=a}return W(e,[{key:"is",value:function(t){var n,l,c;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(c=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===c?void 0:c[t])}}]),e}(),Mt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Ut,2))},e.\u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&dt("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Pe]}),e}(),Nr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Yt,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&dt("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Pe]}),e}();function SP(e,a){wq(e,a),a.valueAccessor.writeValue(e.value),function(e,a){a.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&OQ(e,a)})}(e,a),function(e,a){var t=function(l,c){a.valueAccessor.writeValue(l),c&&a.viewToModelUpdate(l)};e.registerOnChange(t),a._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,a),function(e,a){a.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&OQ(e,a),"submit"!==e.updateOn&&e.markAsTouched()})}(e,a),function(e,a){if(a.valueAccessor.setDisabledState){var t=function(l){a.valueAccessor.setDisabledState(l)};e.registerOnDisabledChange(t),a._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,a)}function D5(e,a){var n=function(){};a.valueAccessor&&(a.valueAccessor.registerOnChange(n),a.valueAccessor.registerOnTouched(n)),E5(e,a),e&&(a._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function A5(e,a){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(a)})}function wq(e,a){var t=Me(e);null!==a.validator?e.setValidators(xe(t,a.validator)):"function"==typeof t&&e.setValidators([t]);var n=ze(e);null!==a.asyncValidator?e.setAsyncValidators(xe(n,a.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var l=function(){return e.updateValueAndValidity()};A5(a._rawValidators,l),A5(a._rawAsyncValidators,l)}function E5(e,a){var t=!1;if(null!==e){if(null!==a.validator){var n=Me(e);if(Array.isArray(n)&&n.length>0){var l=n.filter(function(C){return C!==a.validator});l.length!==n.length&&(t=!0,e.setValidators(l))}}if(null!==a.asyncValidator){var c=ze(e);if(Array.isArray(c)&&c.length>0){var h=c.filter(function(C){return C!==a.asyncValidator});h.length!==c.length&&(t=!0,e.setAsyncValidators(h))}}}var _=function(){};return A5(a._rawValidators,_),A5(a._rawAsyncValidators,_),t}function OQ(e,a){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function IQ(e,a){wq(e,a)}function RQ(e,a){e._syncPendingControls(),a.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function P5(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var kP="VALID",O5="INVALID",KS="PENDING",MP="DISABLED";function Mq(e){return(Tq(e)?e.validators:e)||null}function LQ(e){return Array.isArray(e)?de(e):e||null}function xq(e,a){return(Tq(a)?a.asyncValidators:e)||null}function FQ(e){return Array.isArray(e)?_e(e):e||null}function Tq(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Dq=function(){function e(a,t){F(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=t,this._composedValidatorFn=LQ(this._rawValidators),this._composedAsyncValidatorFn=FQ(this._rawAsyncValidators)}return W(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===kP}},{key:"invalid",get:function(){return this.status===O5}},{key:"pending",get:function(){return this.status==KS}},{key:"disabled",get:function(){return this.status===MP}},{key:"enabled",get:function(){return this.status!==MP}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=LQ(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=FQ(t)}},{key:"addValidators",value:function(t){this.setValidators(Qt(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Qt(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(zt(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(zt(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return mt(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return mt(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=KS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=MP,this.errors=null,this._forEachChild(function(l){l.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=kP,this._forEachChild(function(l){l.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kP||this.status===KS)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?MP:kP}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=KS,this._hasOwnPendingAsyncValidator=!0;var l=Z(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(function(c){n._hasOwnPendingAsyncValidator=!1,n.setErrors(c,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function(e,a,t){if(null==a||(Array.isArray(a)||(a=a.split(".")),Array.isArray(a)&&0===a.length))return null;var n=e;return a.forEach(function(l){n=n instanceof Aq?n.controls.hasOwnProperty(l)?n.controls[l]:null:n instanceof kne&&n.at(l)||null}),n}(this,t)}},{key:"getError",value:function(t,n){var l=n?this.get(n):this;return l&&l.errors?l.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new ye,this.statusChanges=new ye}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?MP:this.errors?O5:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(KS)?KS:this._anyControlsHaveStatus(O5)?O5:kP}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Tq(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),I5=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0;return F(this,t),(n=a.call(this,Mq(c),xq(h,c)))._onChange=[],n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),n}return W(t,[{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==h.emitViewToModelChange)}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(l,c)}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(l),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(l){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(l){this._onChange.push(l)}},{key:"_unregisterOnChange",value:function(l){P5(this._onChange,l)}},{key:"registerOnDisabledChange",value:function(l){this._onDisabledChange.push(l)}},{key:"_unregisterOnDisabledChange",value:function(l){P5(this._onDisabledChange,l)}},{key:"_forEachChild",value:function(l){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(l){this._isBoxedValue(l)?(this.value=this._pendingValue=l.value,l.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=l}}]),t}(Dq),Aq=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Mq(l),xq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"registerControl",value:function(l,c){return this.controls[l]?this.controls[l]:(this.controls[l]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}},{key:"addControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],c&&this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(l){return this.controls.hasOwnProperty(l)&&this.controls[l].enabled}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),Object.keys(l).forEach(function(_){c._throwIfControlMissing(_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(Object.keys(l).forEach(function(_){c.controls[_]&&c.controls[_].patchValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(l,c,h){return l[h]=c instanceof I5?c.value:c.getRawValue(),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,h){return!!h._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[l])throw new Error("Cannot find form control with name: ".concat(l,"."))}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(h){var _=c.controls[h];_&&l(_,h)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){c.setParent(l),c._registerOnCollectionChange(l._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(l){for(var c=0,h=Object.keys(this.controls);c0||this.disabled}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control with name: '".concat(h,"'."))})}}]),t}(Dq),kne=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Mq(l),xq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"at",value:function(l){return this.controls[l]}},{key:"push",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(l),this._registerControl(l),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:h.emitEvent})}},{key:"removeAt",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),c&&(this.controls.splice(l,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),l.forEach(function(_,C){c._throwIfControlMissing(C),c.at(C).setValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(l.forEach(function(_,C){c.at(C)&&c.at(C).patchValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this.controls.map(function(l){return l instanceof I5?l.value:l.getRawValue()})}},{key:"clear",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(c){return c._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:l.emitEvent}))}},{key:"_syncPendingControls",value:function(){var l=this.controls.reduce(function(c,h){return!!h._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(l))throw new Error("Cannot find form control at index ".concat(l))}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,h){l(c,h)})}},{key:"_updateValue",value:function(){var l=this;this.value=this.controls.filter(function(c){return c.enabled||l.disabled}).map(function(c){return c.value})}},{key:"_anyControls",value:function(l){return this.controls.some(function(c){return c.enabled&&l(c)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){return l._registerControl(c)})}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control at index: ".concat(h,"."))})}},{key:"_allControlsDisabled",value:function(){var c,l=tn(this.controls);try{for(l.s();!(c=l.n()).done;)if(c.value.enabled)return!1}catch(_){l.e(_)}finally{l.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(l){l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange)}}]),t}(Dq),Mne={provide:Yt,useExisting:Sn(function(){return Lc})},xP=function(){return Promise.resolve(null)}(),Lc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).submitted=!1,h._directives=[],h.ngSubmit=new ye,h.form=new Aq({},de(l),_e(c)),h}return W(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);c.control=_.registerControl(c.name,c.control),SP(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),h._directives.push(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name),P5(h._directives,c)})}},{key:"addFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path),C=new Aq({});IQ(C,c),_.registerControl(c.name,C),C.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){var _=this;xP.then(function(){_.form.get(c.path).setValue(h)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,RQ(this.form,this._directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(c){return c.pop(),c.length?this.form.get(c):this.form}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Mne]),Pe]}),e}(),Dne={provide:Ut,useExisting:Sn(function(){return mr})},BQ=function(){return Promise.resolve(null)}(),mr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this)).control=new I5,C._registered=!1,C.update=new ye,C._parent=l,C._setValidators(c),C._setAsyncValidators(h),C.valueAccessor=function(e,a){if(!a)return null;Array.isArray(a);var t=void 0,n=void 0,l=void 0;return a.forEach(function(c){c.constructor===g?t=c:function(e){return Object.getPrototypeOf(e.constructor)===r}(c)?n=c:l=c}),l||n||t||null}(It(C),_),C}return W(n,[{key:"ngOnChanges",value:function(c){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in c&&this._updateDisabled(c),function(e,a){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(a,t.currentValue)}(c,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(e,a){return[].concat(At(a.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(c){this.viewModel=c,this.update.emit(c)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){SP(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(c){var h=this;BQ.then(function(){h.control.setValue(c,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(c){var h=this,_=c.isDisabled.currentValue,C=""===_||_&&"false"!==_;BQ.then(function(){C&&!h.control.disabled?h.control.disable():!C&&h.control.disabled&&h.control.enable()})}}]),n}(Ut);return e.\u0275fac=function(t){return new(t||e)(N(Yt,9),N(b,10),N(w,10),N(s,10))},e.\u0275dir=ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Xe([Dne]),Pe,an]}),e}(),Eq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Ene={provide:s,useExisting:Sn(function(){return zg}),multi:!0},zg=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"registerOnChange",value:function(c){this.onChange=function(h){c(""==h?null:parseFloat(h))}}}]),n}(r);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){1&t&&ne("input",function(c){return n.onChange(c.target.value)})("blur",function(){return n.onTouched()})},features:[Xe([Ene]),Pe]}),e}(),HQ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Pq=new Ee("NgModelWithFormControlWarning"),Lne={provide:Yt,useExisting:Sn(function(){return yp})},yp=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).validators=l,h.asyncValidators=c,h.submitted=!1,h._onCollectionChange=function(){return h._updateDomValue()},h.directives=[],h.form=null,h.ngSubmit=new ye,h._setValidators(l),h._setAsyncValidators(c),h}return W(n,[{key:"ngOnChanges",value:function(c){this._checkFormPresent(),c.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(E5(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(c){var h=this.form.get(c.path);return SP(h,c),h.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),h}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){D5(c.control||null,c),P5(this.directives,c)}},{key:"addFormGroup",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormGroup",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"addFormArray",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormArray",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormArray",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){this.form.get(c.path).setValue(h)}},{key:"onSubmit",value:function(c){return this.submitted=!0,RQ(this.form,this.directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_updateDomValue",value:function(){var c=this;this.directives.forEach(function(h){var _=h.control,C=c.form.get(h.path);_!==C&&(D5(_||null,h),C instanceof I5&&(SP(C,h),h.control=C))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var h=this.form.get(c.path);IQ(h,c),h.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var h=this.form.get(c.path);h&&function(e,a){return E5(e,a)}(h,c)&&h.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){wq(this.form,this),this._oldForm&&E5(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Lne]),Pe,an]}),e}();var qne={provide:b,useExisting:Sn(function(){return Iu}),multi:!0},Xne={provide:b,useExisting:Sn(function(){return R5}),multi:!0},Iu=function(){var e=function(){function a(){F(this,a),this._required=!1}return W(a,[{key:"required",get:function(){return this._required},set:function(n){this._required=null!=n&&!1!==n&&"false"!=="".concat(n),this._onChange&&this._onChange()}},{key:"validate",value:function(n){return this.required?P(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},inputs:{required:"required"},features:[Xe([qne])]}),e}(),R5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"validate",value:function(c){return this.required?O(c):null}}]),n}(Iu);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},features:[Xe([Xne]),Pe]}),e}(),$ne={provide:b,useExisting:Sn(function(){return L5}),multi:!0},L5=function(){var e=function(){function a(){F(this,a),this._validator=j}return W(a,[{key:"ngOnChanges",value:function(n){"maxlength"in n&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(n){return this.enabled()?this._validator(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"_createValidator",value:function(){this._validator=this.enabled()?B(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):j}},{key:"enabled",value:function(){return null!=this.maxlength}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("maxlength",n.enabled()?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Xe([$ne]),an]}),e}(),tJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[HQ]]}),e}(),Jne=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[tJ]}),e}(),ere=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:[{provide:Pq,useValue:n.warnOnNgModelWithFormControl}]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[tJ]}),e}();function tre(e,a){1&e&&Wt(0)}var Fq=["*"];function nre(e,a){}var rre=function(a){return{animationDuration:a}},ire=function(a,t){return{value:a,params:t}},are=["tabBodyWrapper"],ore=["tabHeader"];function sre(e,a){}function lre(e,a){1&e&&re(0,sre,0,0,"ng-template",9),2&e&&z("cdkPortalOutlet",J().$implicit.templateLabel)}function ure(e,a){1&e&&K(0),2&e&&On(J().$implicit.textLabel)}function cre(e,a){if(1&e){var t=De();A(0,"div",6),ne("click",function(){var _=pe(t),C=_.$implicit,k=_.index,D=J(),I=Pn(1);return D._handleClick(C,I,k)})("cdkFocusChange",function(_){var k=pe(t).index;return J()._tabFocusChanged(_,k)}),A(1,"div",7),re(2,lre,1,1,"ng-template",8),re(3,ure,1,1,"ng-template",8),E(),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-label-active",c.selectedIndex==l),z("id",c._getTabLabelId(l))("disabled",n.disabled)("matRippleDisabled",n.disabled||c.disableRipple),Ke("tabIndex",c._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",c._tabs.length)("aria-controls",c._getTabContentId(l))("aria-selected",c.selectedIndex==l)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),H(2),z("ngIf",n.templateLabel),H(1),z("ngIf",!n.templateLabel)}}function fre(e,a){if(1&e){var t=De();A(0,"mat-tab-body",10),ne("_onCentered",function(){return pe(t),J()._removeTabBodyWrapperHeight()})("_onCentering",function(_){return pe(t),J()._setTabBodyWrapperHeight(_)}),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-body-active",c.selectedIndex===l),z("id",c._getTabContentId(l))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",c.animationDuration),Ke("tabindex",null!=c.contentTabIndex&&c.selectedIndex===l?c.contentTabIndex:null)("aria-labelledby",c._getTabLabelId(l))}}var nJ=["tabListContainer"],rJ=["tabList"],iJ=["nextPaginator"],aJ=["previousPaginator"],hre=new Ee("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),F5=function(){var e=function(){function a(t,n,l,c){F(this,a),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=l,this._animationMode=c}return W(a,[{key:"alignToElement",value:function(n){var l=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return l._setStyles(n)})}):this._setStyles(n)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(n){var l=this._inkBarPositioner(n),c=this._elementRef.nativeElement;c.style.left=l.left,c.style.width=l.width}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(hre),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,n){2&t&&dt("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),e}(),oJ=new Ee("MatTabContent"),sJ=new Ee("MatTabLabel"),Fc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(nE);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Xe([{provide:sJ,useExisting:e}]),Pe]}),e}(),vre=ia(function(){return function e(){F(this,e)}}()),lJ=new Ee("MAT_TAB_GROUP"),Ru=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._viewContainerRef=l,h._closestTabGroup=c,h.textLabel="",h._contentPortal=null,h._stateChanges=new qe,h.position=null,h.origin=null,h.isActive=!1,h}return W(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(c){this._setTemplateLabelInput(c)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(c){(c.hasOwnProperty("textLabel")||c.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ps(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(c){c&&(this._templateLabel=c)}}]),n}(vre);return e.\u0275fac=function(t){return new(t||e)(N($n),N(lJ,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,sJ,5),Zt(l,oJ,7,Xn)),2&t&&(Ne(c=Le())&&(n.templateLabel=c.first),Ne(c=Le())&&(n._explicitContent=c.first))},viewQuery:function(t,n){var l;1&t&&wt(Xn,7),2&t&&Ne(l=Le())&&(n._implicitContent=l.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Pe,an],ngContentSelectors:Fq,decls:1,vars:0,template:function(t,n){1&t&&(rr(),re(0,tre,1,0,"ng-template"))},encapsulation:2}),e}(),gre={translateTab:Ei("translateTab",[Bn("center, void, left-origin-center, right-origin-center",gt({transform:"none"})),Bn("left",gt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Bn("right",gt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),zn("* => left, * => right, left => center, right => center",Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zn("void => left-origin-center",[gt({transform:"translate3d(-100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zn("void => right-origin-center",[gt({transform:"translate3d(100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},mre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this,l,c,_))._host=h,C._centeringSub=Be.EMPTY,C._leavingSub=Be.EMPTY,C}return W(n,[{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe($r(this._host._isCenterPosition(this._host._position))).subscribe(function(h){h&&!c.hasAttached()&&c.attach(c._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){c.detach()})}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Os);return e.\u0275fac=function(t){return new(t||e)(N(Ki),N($n),N(Sn(function(){return uJ})),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTabBodyHost",""]],features:[Pe]}),e}(),_re=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dir=n,this._dirChangeSubscription=Be.EMPTY,this._translateTabComplete=new qe,this._onCentering=new ye,this._beforeCentering=new ye,this._afterLeavingCenter=new ye,this._onCentered=new ye(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(h){c._computePositionAnimationState(h),l.markForCheck()})),this._translateTabComplete.pipe(Xa(function(h,_){return h.fromState===_.fromState&&h.toState===_.toState})).subscribe(function(h){c._isCenterPosition(h.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(h.fromState)&&!c._isCenterPosition(c._position)&&c._afterLeavingCenter.emit()})}return W(a,[{key:"position",set:function(n){this._positionIndex=n,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(n){var l=this._isCenterPosition(n.toState);this._beforeCentering.emit(l),l&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}},{key:"_computePositionAnimationState",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(n){var l=this._getLayoutDirection();return"ltr"==l&&n<=0||"rtl"==l&&n>0?"left-origin-center":"right-origin-center"}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Mr,8),N(Vt))},e.\u0275dir=ve({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),uJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l,c,h)}return n}(_re);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Mr,8),N(Vt))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,n){var l;1&t&&wt(Os,5),2&t&&Ne(l=Le())&&(n._portalHost=l.first)},hostAttrs:[1,"mat-tab-body"],features:[Pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,n){1&t&&(A(0,"div",0,1),ne("@translateTab.start",function(c){return n._onTranslateTabStarted(c)})("@translateTab.done",function(c){return n._translateTabComplete.next(c)}),re(2,nre,0,0,"ng-template",2),E()),2&t&&z("@translateTab",zf(3,ire,n._position,vl(1,rre,n.animationDuration)))},directives:[mre],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[gre.translateTab]}}),e}(),cJ=new Ee("MAT_TABS_CONFIG"),yre=0,bre=function e(){F(this,e)},Cre=Eu(El(function(){return function e(a){F(this,e),this._elementRef=a}}()),"primary"),wre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C,k;return F(this,n),(C=t.call(this,l))._changeDetectorRef=c,C._animationMode=_,C._tabs=new Wo,C._indexToSelect=0,C._tabBodyWrapperHeight=0,C._tabsSubscription=Be.EMPTY,C._tabLabelSubscription=Be.EMPTY,C._selectedIndex=null,C.headerPosition="above",C.selectedIndexChange=new ye,C.focusChange=new ye,C.animationDone=new ye,C.selectedTabChange=new ye(!0),C._groupId=yre++,C.animationDuration=h&&h.animationDuration?h.animationDuration:"500ms",C.disablePagination=!(!h||null==h.disablePagination)&&h.disablePagination,C.dynamicHeight=!(!h||null==h.dynamicHeight)&&h.dynamicHeight,C.contentTabIndex=null!==(k=null==h?void 0:h.contentTabIndex)&&void 0!==k?k:null,C}return W(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(c){this._dynamicHeight=it(c)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(c){this._indexToSelect=Di(c,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(c){this._animationDuration=/^\d+$/.test(c)?c+"ms":c}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(c){this._contentTabIndex=Di(c,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(c){var h=this._elementRef.nativeElement;h.classList.remove("mat-background-".concat(this.backgroundColor)),c&&h.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,h=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=h){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(h));var C=this._tabBodyWrapper.nativeElement;C.style.minHeight=C.clientHeight+"px"}Promise.resolve().then(function(){c._tabs.forEach(function(k,D){return k.isActive=D===h}),_||(c.selectedIndexChange.emit(h),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(k,D){k.position=D-h,null!=c._selectedIndex&&0==k.position&&!k.origin&&(k.origin=h-c._selectedIndex)}),this._selectedIndex!==h&&(this._selectedIndex=h,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var c=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(c._clampTabIndex(c._indexToSelect)===c._selectedIndex)for(var _=c._tabs.toArray(),C=0;C<_.length;C++)if(_[C].isActive){c._indexToSelect=c._selectedIndex=C;break}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe($r(this._allTabs)).subscribe(function(h){c._tabs.reset(h.filter(function(_){return _._closestTabGroup===c||!_._closestTabGroup})),c._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"focusTab",value:function(c){var h=this._tabHeader;h&&(h.focusIndex=c)}},{key:"_focusChanged",value:function(c){this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var h=new bre;return h.index=c,this._tabs&&this._tabs.length&&(h.tab=this._tabs.toArray()[c]),h}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ot.apply(void 0,At(this._tabs.map(function(h){return h._stateChanges}))).subscribe(function(){return c._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(c){return Math.min(this._tabs.length-1,Math.max(c||0,0))}},{key:"_getTabLabelId",value:function(c){return"mat-tab-label-".concat(this._groupId,"-").concat(c)}},{key:"_getTabContentId",value:function(c){return"mat-tab-content-".concat(this._groupId,"-").concat(c)}},{key:"_setTabBodyWrapperHeight",value:function(c){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var h=this._tabBodyWrapper.nativeElement;h.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(h.style.height=c+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var c=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=c.clientHeight,c.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(c,h,_){c.disabled||(this.selectedIndex=h.focusIndex=_)}},{key:"_getTabIndex",value:function(c,h){return c.disabled?null:this.selectedIndex===h?0:-1}},{key:"_tabFocusChanged",value:function(c,h){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=h)}}]),n}(Cre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(cJ,8),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Pe]}),e}(),Nc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(wre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(cJ,8),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Ru,5),2&t&&Ne(c=Le())&&(n._allTabs=c)},viewQuery:function(t,n){var l;1&t&&(wt(are,5),wt(ore,5)),2&t&&(Ne(l=Le())&&(n._tabBodyWrapper=l.first),Ne(l=Le())&&(n._tabHeader=l.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Xe([{provide:lJ,useExisting:e}]),Pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,n){1&t&&(A(0,"mat-tab-header",0,1),ne("indexFocused",function(c){return n._focusChanged(c)})("selectFocusedIndex",function(c){return n.selectedIndex=c}),re(2,cre,4,14,"div",2),E(),A(3,"div",3,4),re(5,fre,1,9,"mat-tab-body",5),E()),2&t&&(z("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),H(2),z("ngForOf",n._tabs),H(1),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(2),z("ngForOf",n._tabs))},directives:function(){return[Tre,er,fJ,Ls,OE,Kt,Os,uJ]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),Sre=ia(function(){return function e(){F(this,e)}}()),fJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).elementRef=l,c}return W(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(Sre);return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",!!n.disabled),dt("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[Pe]}),e}(),dJ=tp({passive:!0}),pJ=function(){var e=function(){function a(t,n,l,c,h,_,C){var k=this;F(this,a),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=h,this._platform=_,this._animationMode=C,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ye,this.indexFocused=new ye,h.runOutsideAngular(function(){Tl(t.nativeElement,"mouseleave").pipe(Ht(k._destroyed)).subscribe(function(){k._stopInterval()})})}return W(a,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(n){n=Di(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}},{key:"ngAfterViewInit",value:function(){var n=this;Tl(this._previousPaginator.nativeElement,"touchstart",dJ).pipe(Ht(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),Tl(this._nextPaginator.nativeElement,"touchstart",dJ).pipe(Ht(this._destroyed)).subscribe(function(){n._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var n=this,l=this._dir?this._dir.change:ut("ltr"),c=this._viewportRuler.change(150),h=function(){n.updatePagination(),n._alignInkBarToSelectedTab()};this._keyManager=new ib(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(h):h(),ot(l,c,this._items.changes).pipe(Ht(this._destroyed)).subscribe(function(){n._ngZone.run(function(){return Promise.resolve().then(h)}),n._keyManager.withHorizontalOrientation(n._getLayoutDirection())}),this._keyManager.change.pipe(Ht(this._destroyed)).subscribe(function(_){n.indexFocused.emit(_),n._setTabFocus(_)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(n){if(!Bi(n))switch(n.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n));break;default:this._keyManager.onKeydown(n)}}},{key:"_onContentChanges",value:function(){var n=this,l=this._elementRef.nativeElement.textContent;l!==this._currentTextContent&&(this._currentTextContent=l||"",this._ngZone.run(function(){n.updatePagination(),n._alignInkBarToSelectedTab(),n._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}},{key:"_isValidIndex",value:function(n){if(!this._items)return!0;var l=this._items?this._items.toArray()[n]:null;return!!l&&!l.disabled}},{key:"_setTabFocus",value:function(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();var l=this._tabListContainer.nativeElement,c=this._getLayoutDirection();l.scrollLeft="ltr"==c?0:l.scrollWidth-l.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var n=this.scrollDistance,l="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(l),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(n){this._scrollTo(n)}},{key:"_scrollHeader",value:function(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(n){this._stopInterval(),this._scrollHeader(n)}},{key:"_scrollToLabel",value:function(n){if(!this.disablePagination){var l=this._items?this._items.toArray()[n]:null;if(l){var k,D,c=this._tabListContainer.nativeElement.offsetWidth,h=l.elementRef.nativeElement,_=h.offsetLeft,C=h.offsetWidth;"ltr"==this._getLayoutDirection()?D=(k=_)+C:k=(D=this._tabList.nativeElement.offsetWidth-_)-C;var I=this.scrollDistance,L=this.scrollDistance+c;kL&&(this.scrollDistance+=D-L+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var n=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,l=n?n.elementRef.nativeElement:null;l?this._inkBar.alignToElement(l):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(n,l){var c=this;l&&null!=l.button&&0!==l.button||(this._stopInterval(),K3(650,100).pipe(Ht(ot(this._stopScrolling,this._destroyed))).subscribe(function(){var h=c._scrollHeader(n),C=h.distance;(0===C||C>=h.maxScrollDistance)&&c._stopInterval()}))}},{key:"_scrollTo",value:function(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var l=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(l,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:l,distance:this._scrollDistance}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),xre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,l,c,h,_,C,k,D))._disableRipple=!1,I}return W(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(c){this._disableRipple=it(c)}},{key:"_itemSelected",value:function(c){c.preventDefault()}}]),n}(pJ);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disableRipple:"disableRipple"},features:[Pe]}),e}(),Tre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,h,_,C,k,D)}return n}(xre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-header"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,fJ,4),2&t&&Ne(c=Le())&&(n._items=c)},viewQuery:function(t,n){var l;1&t&&(wt(F5,7),wt(nJ,7),wt(rJ,7),wt(iJ,5),wt(aJ,5)),2&t&&(Ne(l=Le())&&(n._inkBar=l.first),Ne(l=Le())&&(n._tabListContainer=l.first),Ne(l=Le())&&(n._tabList=l.first),Ne(l=Le())&&(n._nextPaginator=l.first),Ne(l=Le())&&(n._previousPaginator=l.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Pe],ngContentSelectors:Fq,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,n){1&t&&(rr(),A(0,"div",0,1),ne("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(c){return n._handlePaginatorPress("before",c)})("touchend",function(){return n._stopInterval()}),me(2,"div",2),E(),A(3,"div",3,4),ne("keydown",function(c){return n._handleKeydown(c)}),A(5,"div",5,6),ne("cdkObserveContent",function(){return n._onContentChanges()}),A(7,"div",7),Wt(8),E(),me(9,"mat-ink-bar"),E(),E(),A(10,"div",8,9),ne("mousedown",function(c){return n._handlePaginatorPress("after",c)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),me(12,"div",2),E()),2&t&&(dt("mat-tab-header-pagination-disabled",n._disableScrollBefore),z("matRippleDisabled",n._disableScrollBefore||n.disableRipple),H(5),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(5),dt("mat-tab-header-pagination-disabled",n._disableScrollAfter),z("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},directives:[Ls,nb,F5],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),Ore=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,$t,xg,Da,ld,LE],$t]}),e}();function Ire(e,a){if(1&e){var t=De();A(0,"uds-field-text",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Rre(e,a){if(1&e){var t=De();A(0,"uds-field-autocomplete",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Lre(e,a){if(1&e){var t=De();A(0,"uds-field-textbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Fre(e,a){if(1&e){var t=De();A(0,"uds-field-numeric",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Nre(e,a){if(1&e){var t=De();A(0,"uds-field-password",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Vre(e,a){if(1&e){var t=De();A(0,"uds-field-hidden",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Bre(e,a){if(1&e){var t=De();A(0,"uds-field-choice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Hre(e,a){if(1&e){var t=De();A(0,"uds-field-multichoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function zre(e,a){if(1&e){var t=De();A(0,"uds-field-editlist",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Ure(e,a){if(1&e){var t=De();A(0,"uds-field-checkbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Gre(e,a){if(1&e){var t=De();A(0,"uds-field-imgchoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function jre(e,a){if(1&e){var t=De();A(0,"uds-field-date",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Wre(e,a){if(1&e){var t=De();A(0,"uds-field-tags",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}var gJ=function(){function e(){this.changed=new ye,this.udsGuiFieldType=Pl}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,n){1&t&&(A(0,"div",0),re(1,Ire,1,1,"uds-field-text",1),re(2,Rre,1,1,"uds-field-autocomplete",1),re(3,Lre,1,1,"uds-field-textbox",1),re(4,Fre,1,1,"uds-field-numeric",1),re(5,Nre,1,1,"uds-field-password",1),re(6,Vre,1,1,"uds-field-hidden",1),re(7,Bre,1,1,"uds-field-choice",1),re(8,Hre,1,1,"uds-field-multichoice",1),re(9,zre,1,1,"uds-field-editlist",1),re(10,Ure,1,1,"uds-field-checkbox",1),re(11,Gre,1,1,"uds-field-imgchoice",1),re(12,jre,1,1,"uds-field-date",1),re(13,Wre,1,1,"uds-field-tags",1),E()),2&t&&(z("ngSwitch",n.field.gui.type)("matTooltip",n.field.gui.tooltip),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXT),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXT_AUTOCOMPLETE),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXTBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.NUMERIC),H(1),z("ngSwitchCase",n.udsGuiFieldType.PASSWORD),H(1),z("ngSwitchCase",n.udsGuiFieldType.HIDDEN),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.MULTI_CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.EDITLIST),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHECKBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.IMAGECHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.DATE),H(1),z("ngSwitchCase",n.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),e}();function Yre(e,a){1&e&&K(0),2&e&&Ve(" ",J().$implicit," ")}function qre(e,a){if(1&e){var t=De();A(0,"uds-field",7),ne("changed",function(c){return pe(t),J(3).changed.emit(c)}),E()}2&e&&z("field",a.$implicit)}function Xre(e,a){if(1&e&&(A(0,"mat-tab"),re(1,Yre,1,1,"ng-template",4),A(2,"div",5),re(3,qre,1,1,"uds-field",6),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),z("ngForOf",n.fieldsByTab[t])}}function Zre(e,a){if(1&e&&(A(0,"mat-tab-group",2),re(1,Xre,4,1,"mat-tab",3),E()),2&e){var t=J();z("disableRipple",!0)("@.disabled",!0),H(1),z("ngForOf",t.tabs)}}function Kre(e,a){if(1&e){var t=De();A(0,"div"),A(1,"uds-field",7),ne("changed",function(c){return pe(t),J(2).changed.emit(c)}),E(),E()}if(2&e){var n=a.$implicit;H(1),z("field",n)}}function $re(e,a){1&e&&re(0,Kre,2,1,"div",3),2&e&&z("ngForOf",J().fields)}var Qre=django.gettext("Main"),Jre=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){var a=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(t){var n=void 0===t.gui.tab?Qre:t.gui.tab;a.tabs.includes(n)||(a.tabs.push(n),a.fieldsByTab[n]=new Array),a.fieldsByTab[n].push(t)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"]],template:function(t,n){if(1&t&&(re(0,Zre,2,3,"mat-tab-group",0),re(1,$re,1,1,"ng-template",null,1,ml)),2&t){var l=Pn(2);z("ngIf",n.tabs.length>1)("ngIfElse",l)}},directives:[Kt,Nc,er,Ru,Fc,gJ],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),e}();function eie(e,a){if(1&e){var t=De();A(0,"button",10),ne("click",function(){return pe(t),J().customButtonClicked()}),K(1),E()}if(2&e){var n=J();H(1),On(n.data.customButton)}}var $S,tie=function(){function e(a,t){this.dialogRef=a,this.data=t,this.onEvent=new ye(!0),this.saving=!1}return e.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},e.prototype.changed=function(a){this.onEvent.emit({type:"changed",data:a,dialog:this.dialogRef})},e.prototype.getFields=function(){var a={},t=[];return this.data.guiFields.forEach(function(n){var l=void 0!==n.values?n.values:n.value;n.gui.required&&0!==l&&(!l||l instanceof Array&&0===l.length)&&t.push(n.gui.label),"number"==typeof l&&(l=l.toString()),a[n.name]=l}),{data:a,errors:t}},e.prototype.save=function(){var a=this.getFields();a.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+a.errors.join(", ")):this.onEvent.emit({data:a.data,type:"save",dialog:this.dialogRef})},e.prototype.customButtonClicked=function(){var a=this.getFields();this.onEvent.emit({data:a.data,type:this.data.customButton,errors:a.errors,dialog:this.dialogRef})},e.\u0275fac=function(t){return new(t||e)(N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),A(2,"mat-dialog-content",null,1),A(4,"form",2),A(5,"uds-form",3),ne("changed",function(c){return n.changed(c)}),E(),E(),E(),A(6,"mat-dialog-actions"),A(7,"div",4),A(8,"div",5),re(9,eie,2,1,"button",6),E(),A(10,"div",7),A(11,"button",8),ne("click",function(){return n.dialogRef.close()}),A(12,"uds-translate"),K(13,"Discard & close"),E(),E(),A(14,"button",9),ne("click",function(){return n.save()}),A(15,"uds-translate"),K(16,"Save"),E(),E(),E(),E(),E()),2&t&&(z("innerHtml",Gf(1,5,n.data.title),Si),H(5),z("fields",n.data.guiFields),H(4),z("ngIf",void 0!==n.data.customButton),H(2),z("disabled",n.saving),H(3),z("disabled",n.saving))},directives:[Wr,Fr,Eq,Nr,Lc,Jre,Qr,Kt,Rn,Hn,Ts],pipes:[b5],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),e}(),nie=function(){function e(a){this.gui=a}return e.prototype.modalForm=function(a,t,n,l){void 0===n&&(n=null),t.sort(function(C,k){return C.gui.order>k.gui.order?1:-1});var c=null!=n;n=c?n:{},t.forEach(function(C){(!1===c||void 0===C.gui.rdonly)&&(C.gui.rdonly=!1),C.gui.type===Pl.TEXT&&C.gui.multiline&&(C.gui.type=Pl.TEXTBOX);var k=n[C.name];void 0!==k&&(k instanceof Array?(C.values=new Array,k.forEach(function(D){return C.values.push(D)})):C.value=k)});var h=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(tie,{position:{top:"64px"},width:h,data:{title:a,guiFields:t,customButton:l,gui:this.gui},disableClose:!0}).componentInstance.onEvent},e.prototype.typedForm=function(a,t,n,l,c,h,_){var C=this;_=_||{};var k=new ye,D=n?django.gettext("Test"):void 0,I={},L={},G=function(Y){L.hasOwnProperty(Y.name)&&""!==Y.value&&void 0!==Y.value&&C.executeCallback(a,Y,I)};return _.snack||(_.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),a.table.rest.gui(h).subscribe(function(Y){_.snack.dismiss(),void 0!==l&&l.forEach(function(Q){Y.push(Q)}),Y.forEach(function(Q){I[Q.name]=Q,void 0!==Q.gui.fills&&(L[Q.name]=Q.gui.fills)}),C.modalForm(t,Y,c,D).subscribe(function(Q){switch(Q.data&&(Q.data.data_type=h),Q.type){case D:if(Q.errors.length>0)return void C.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+Q.errors.join(", "));C.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),a.table.rest.test(h,Q.data).subscribe(function(Ce){"ok"!==Ce?C.gui.snackbar.open(django.gettext("Test failed:")+" "+Ce,django.gettext("dismiss")):C.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===Q.data)for(var ie=0,fe=Y;ie"+l.join(", ")+"";this.gui.yesno(t,h,!0).subscribe(function(_){if(_){var C=c.length,k=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()};c.forEach(function(D){a.table.rest.delete(D).subscribe(function(I){0==--C&&k()},function(I){0==--C&&k()})})}})},e.prototype.executeCallback=function(a,t,n,l){var c=this;void 0===l&&(l={});var h=new Array;t.gui.fills.parameters.forEach(function(_){h.push(_+"="+encodeURIComponent(n[_].value))}),a.table.rest.callback(t.gui.fills.callbackName,h.join("&")).subscribe(function(_){var C=new Array;_.forEach(function(k){var D=n[k.name];void 0!==D&&(void 0!==D.gui.fills&&C.push(D),D.gui.values.length=0,k.values.forEach(function(I){return D.gui.values.push(I)}),D.value||(D.value=k.values.length>0?k.values[0].id:""))}),C.forEach(function(k){void 0===l[k.name]&&(l[k.name]=!0,c.executeCallback(a,k,n,l))})})},e}(),iie=function(){function e(a,t){this.dialog=a,this.snackbar=t,this.forms=new nie(this)}return e.prototype.alert=function(a,t,n,l){void 0===n&&(n=0);var c=l||(window.innerWidth<800?"80%":"40%");return this.dialog.open(k5,{width:c,data:{title:a,body:t,autoclose:n,type:Ou.alert},disableClose:!0}).componentInstance.yesno},e.prototype.yesno=function(a,t,n){void 0===n&&(n=!1);var l=window.innerWidth<800?"80%":"40%";return this.dialog.open(k5,{width:l,data:{title:a,body:t,type:Ou.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},e.prototype.icon=function(a,t){return void 0===t&&(t="24px"),''},e}(),Aa=function(e){return e.NUMERIC="numeric",e.ALPHANUMERIC="alphanumeric",e.DATETIME="datetime",e.DATETIMESEC="datetimesec",e.DATE="date",e.TIME="time",e.ICON="iconType",e.CALLBACK="callback",e.DICTIONARY="dict",e.IMAGE="image",e}({}),Jr=function(e){return e[e.ALWAYS=0]="ALWAYS",e[e.SINGLE_SELECT=1]="SINGLE_SELECT",e[e.MULTI_SELECT=2]="MULTI_SELECT",e[e.ONLY_MENU=3]="ONLY_MENU",e[e.ACCELERATOR=4]="ACCELERATOR",e}({}),_J="provider",yJ="service",Nq="pool",Vq="user",CJ="transport",wJ="osmanager",Bq="calendar",SJ="poolgroup",oie={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Il=function(){function e(a){this.router=a}return e.getGotoButton=function(a,t,n){return{id:a,html:'link'+django.gettext("Go to")+" "+oie[a]+"",type:Jr.ACCELERATOR,acceleratorProperties:[t,n]}},e.prototype.gotoProvider=function(a){this.router.navigate(void 0!==a?["providers",a]:["providers"])},e.prototype.gotoService=function(a,t){this.router.navigate(void 0!==t?["providers",a,"detail",t]:["providers",a,"detail"])},e.prototype.gotoServicePool=function(a){this.router.navigate(["pools","service-pools",a])},e.prototype.gotoServicePoolDetail=function(a){this.router.navigate(["pools","service-pools",a,"detail"])},e.prototype.gotoMetapool=function(a){this.router.navigate(["pools","meta-pools",a])},e.prototype.gotoMetapoolDetail=function(a){this.router.navigate(["pools","meta-pools",a,"detail"])},e.prototype.gotoCalendar=function(a){this.router.navigate(["pools","calendars",a])},e.prototype.gotoCalendarDetail=function(a){this.router.navigate(["pools","calendars",a,"detail"])},e.prototype.gotoAccount=function(a){this.router.navigate(["pools","accounts",a])},e.prototype.gotoAccountDetail=function(a){this.router.navigate(["pools","accounts",a,"detail"])},e.prototype.gotoPoolGroup=function(a){this.router.navigate(["pools","pool-groups",a=a||""])},e.prototype.gotoAuthenticator=function(a){this.router.navigate(["authenticators",a])},e.prototype.gotoAuthenticatorDetail=function(a){this.router.navigate(["authenticators",a,"detail"])},e.prototype.gotoUser=function(a,t){this.router.navigate(["authenticators",a,"detail","users",t])},e.prototype.gotoGroup=function(a,t){this.router.navigate(["authenticators",a,"detail","groups",t])},e.prototype.gotoTransport=function(a){this.router.navigate(["transports",a])},e.prototype.gotoOSManager=function(a){this.router.navigate(["osmanagers",a])},e.prototype.goto=function(a,t,n){var l=function(c){var h=t;if(n[c].split(".").forEach(function(_){return h=h[_]}),!h)throw new Error("not going :)");return h};try{switch(a){case _J:this.gotoProvider(l(0));break;case yJ:this.gotoService(l(0),l(1));break;case Nq:this.gotoServicePool(l(0));break;case"authenticator":this.gotoAuthenticator(l(0));break;case Vq:this.gotoUser(l(0),l(1));break;case"group":this.gotoGroup(l(0),l(1));break;case CJ:this.gotoTransport(l(0));break;case wJ:this.gotoOSManager(l(0));break;case Bq:this.gotoCalendar(l(0));break;case SJ:this.gotoPoolGroup(l(0))}}catch(c){}},e}(),kJ=new Set,MJ=function(){var e=function(){function a(t){F(this,a),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lie}return W(a,[{key:"matchMedia",value:function(n){return this._platform.WEBKIT&&function(e){if(!kJ.has(e))try{$S||(($S=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild($S)),$S.sheet&&($S.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),kJ.add(e))}catch(a){console.error(a)}}(n),this._matchMedia(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function lie(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var Hq=function(){var e=function(){function a(t,n){F(this,a),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new qe}return W(a,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var l=this;return xJ(Sg(n)).some(function(h){return l._registerQuery(h).mql.matches})}},{key:"observe",value:function(n){var l=this,_=Ry(xJ(Sg(n)).map(function(C){return l._registerQuery(C).observable}));return(_=d1(_.pipe(or(1)),_.pipe(LY(1),mE(0)))).pipe(He(function(C){var k={matches:!1,breakpoints:{}};return C.forEach(function(D){var I=D.matches,L=D.query;k.matches=k.matches||I,k.breakpoints[L]=I}),k}))}},{key:"_registerQuery",value:function(n){var l=this;if(this._queries.has(n))return this._queries.get(n);var c=this._mediaMatcher.matchMedia(n),_={observable:new gn(function(C){var k=function(I){return l._zone.run(function(){return C.next(I)})};return c.addListener(k),function(){c.removeListener(k)}}).pipe($r(c),He(function(C){return{query:n,matches:C.matches}}),Ht(this._destroySubject)),mql:c};return this._queries.set(n,_),_}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(MJ),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(MJ),ce(ft))},token:e,providedIn:"root"}),e}();function xJ(e){return e.map(function(a){return a.split(",")}).reduce(function(a,t){return a.concat(t)}).map(function(a){return a.trim()})}function uie(e,a){if(1&e){var t=De();A(0,"div",1),A(1,"button",2),ne("click",function(){return pe(t),J().action()}),K(2),E(),E()}if(2&e){var n=J();H(2),On(n.data.action)}}function cie(e,a){}var DJ=new Ee("MatSnackBarData"),N5=function e(){F(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},fie=Math.pow(2,31)-1,zq=function(){function e(a,t){var n=this;F(this,e),this._overlayRef=t,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=a,this.onAction().subscribe(function(){return n.dismiss()}),a._onExit.subscribe(function(){return n._finishDismiss()})}return W(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(t,fie))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),die=function(){var e=function(){function a(t,n){F(this,a),this.snackBarRef=t,this.data=n}return W(a,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(zq),N(DJ))},e.\u0275cmp=ke({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,n){1&t&&(A(0,"span"),K(1),E(),re(2,uie,3,1,"div",0)),2&t&&(H(1),On(n.data.message),H(1),z("ngIf",n.hasAction))},directives:[Kt,Rn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),hie={snackBarState:Ei("state",[Bn("void, hidden",gt({transform:"scale(0.8)",opacity:0})),Bn("visible",gt({transform:"scale(1)",opacity:1})),zn("* => visible",Tn("150ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void, * => hidden",Tn("75ms cubic-bezier(0.4, 0.0, 1, 1)",gt({opacity:0})))])},pie=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._ngZone=l,k._elementRef=c,k._changeDetectorRef=h,k._platform=_,k.snackBarConfig=C,k._announceDelay=150,k._destroyed=!1,k._onAnnounce=new qe,k._onExit=new qe,k._onEnter=new qe,k._animationState="void",k.attachDomPortal=function(D){return k._assertNotAttached(),k._applySnackBarClasses(),k._portalOutlet.attachDomPortal(D)},k._live="assertive"!==C.politeness||C.announcementMessage?"off"===C.politeness?"off":"polite":"assertive",k._platform.FIREFOX&&("polite"===k._live&&(k._role="status"),"assertive"===k._live&&(k._role="alert")),k}return W(n,[{key:"attachComponentPortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(c)}},{key:"onAnimationEnd",value:function(c){var _=c.toState;if(("void"===_&&"void"!==c.fromState||"hidden"===_)&&this._completeExit(),"visible"===_){var C=this._onEnter;this._ngZone.run(function(){C.next(),C.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var c=this;this._ngZone.onMicrotaskEmpty.pipe(or(1)).subscribe(function(){c._onExit.next(),c._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var c=this._elementRef.nativeElement,h=this.snackBarConfig.panelClass;h&&(Array.isArray(h)?h.forEach(function(_){return c.classList.add(_)}):c.classList.add(h)),"center"===this.snackBarConfig.horizontalPosition&&c.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&c.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var c=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){c._announceTimeoutId=setTimeout(function(){var h=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(h&&_){var C=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(C=document.activeElement),h.removeAttribute("aria-hidden"),_.appendChild(h),null==C||C.focus(),c._onAnnounce.next(),c._onAnnounce.complete()}},c._announceDelay)})}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(ft),N(Ue),N(Vt),N(en),N(N5))},e.\u0275cmp=ke({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&mv("@state.done",function(c){return n.onAnimationEnd(c)}),2&t&&Ba("@state",n._animationState)},features:[Pe],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(A(0,"div",0),re(1,cie,0,0,"ng-template",1),E(),me(2,"div")),2&t&&(H(2),Ke("aria-live",n._live)("role",n._role))},directives:[Os],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[hie.snackBarState]}}),e}(),AJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[fp,xg,Wa,Rc,$t],$t]}),e}(),EJ=new Ee("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new N5}}),gie=function(){var e=function(){function a(t,n,l,c,h,_){F(this,a),this._overlay=t,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=h,this._defaultConfig=_,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=die,this.snackBarContainerComponent=pie,this.handsetCssClass="mat-snack-bar-handset"}return W(a,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,l){return this._attach(n,l)}},{key:"openFromTemplate",value:function(n,l){return this._attach(n,l)}},{key:"open",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,h=Object.assign(Object.assign({},this._defaultConfig),c);return h.data={message:n,action:l},h.announcementMessage===n&&(h.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,h)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:N5,useValue:l}]}),_=new sd(this.snackBarContainerComponent,l.viewContainerRef,h),C=n.attach(_);return C.instance.snackBarConfig=l,C.instance}},{key:"_attach",value:function(n,l){var c=this,h=Object.assign(Object.assign(Object.assign({},new N5),this._defaultConfig),l),_=this._createOverlay(h),C=this._attachSnackBarContainer(_,h),k=new zq(C,_);if(n instanceof Xn){var D=new Ps(n,null,{$implicit:h.data,snackBarRef:k});k.instance=C.attachTemplatePortal(D)}else{var I=this._createInjector(h,k),L=new sd(n,void 0,I),G=C.attachComponentPortal(L);k.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ht(_.detachments())).subscribe(function(Y){var Q=_.overlayElement.classList;Y.matches?Q.add(c.handsetCssClass):Q.remove(c.handsetCssClass)}),h.announcementMessage&&C._onAnnounce.subscribe(function(){c._live.announce(h.announcementMessage,h.politeness)}),this._animateSnackBar(k,h),this._openedSnackBarRef=k,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,l){var c=this;n.afterDismissed().subscribe(function(){c._openedSnackBarRef==n&&(c._openedSnackBarRef=null),l.announcementMessage&&c._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),l.duration&&l.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(l.duration)})}},{key:"_createOverlay",value:function(n){var l=new up;l.direction=n.direction;var c=this._overlay.position().global(),h="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!h||"end"===n.horizontalPosition&&h,C=!_&&"center"!==n.horizontalPosition;return _?c.left("0"):C?c.right("0"):c.centerHorizontally(),"top"===n.verticalPosition?c.top("0"):c.bottom("0"),l.positionStrategy=c,this._overlay.create(l)}},{key:"_createInjector",value:function(n,l){return kn.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:zq,useValue:l},{provide:DJ,useValue:n.data}]})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(iS),ce(kn),ce(Hq),ce(e,12),ce(EJ))},e.\u0275prov=We({factory:function(){return new e(ce(Ai),ce(iS),ce(uv),ce(Hq),ce(e,12),ce(EJ))},token:e,providedIn:AJ}),e}(),PJ="dark-theme",OJ="light-theme",Pt=function(){function e(a,t,n,l,c,h){this.http=a,this.router=t,this.dialog=n,this.snackbar=l,this.sanitizer=c,this.dateAdapter=h,this.user=new CW(udsData.profile),this.navigation=new Il(this.router),this.gui=new iie(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(e.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),e.prototype.restPath=function(a){return this.config.urls.rest+a},e.prototype.staticURL=function(a){return this.config.urls.static+a},e.prototype.logout=function(){window.location.href=this.config.urls.logout},e.prototype.gotoUser=function(){window.location.href=this.config.urls.user},e.prototype.putOnStorage=function(a,t){void 0!==typeof Storage&&sessionStorage.setItem(a,t)},e.prototype.getFromStorage=function(a){return void 0!==typeof Storage?sessionStorage.getItem(a):null},e.prototype.safeString=function(a){return this.sanitizer.bypassSecurityTrustHtml(a)},e.prototype.yesno=function(a){return a?django.gettext("yes"):django.gettext("no")},e.prototype.switchTheme=function(a){var t=document.getElementsByTagName("html")[0];[PJ,OJ].forEach(function(n){t.classList.contains(n)&&t.classList.remove(n)}),t.classList.add(a?PJ:OJ)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(dN),ce(Ta),ce(Sb),ce(gie),ce(ed),ce(Gr))},providedIn:"root"}),e}(),mie=function(){function e(a){this.api=a}return e.prototype.canActivate=function(a,t){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Pt))},providedIn:"root"}),e}(),Uq=function(e,a){return(Uq=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])})(e,a)};function aa(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=e}Uq(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}function Gq(e,a,t,n){return new(t||(t=Promise))(function(c,h){function _(D){try{k(n.next(D))}catch(I){h(I)}}function C(D){try{k(n.throw(D))}catch(I){h(I)}}function k(D){D.done?c(D.value):function(c){return c instanceof t?c:new t(function(h){h(c)})}(D.value).then(_,C)}k((n=n.apply(e,a||[])).next())})}var QS=function(e){return e[e.NONE=0]="NONE",e[e.READ=32]="READ",e[e.MANAGEMENT=64]="MANAGEMENT",e[e.ALL=96]="ALL",e}({}),Ea=function(){function e(a,t,n){this.api=a,void 0===n&&(n={}),void 0===n.base&&(n.base=t);var l=function(c,h){return void 0===c?h:c};this.id=t,this.paths={base:n.base,get:l(n.get,n.base),log:l(n.log,n.base),put:l(n.put,n.base),test:l(n.test,n.base+"/test"),delete:l(n.delete,n.base),types:l(n.types,n.base+"/types"),gui:l(n.gui,n.base+"/gui"),tableInfo:l(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Zh).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return e.prototype.get=function(a){return this.doGet(this.getPath(this.paths.get,a))},e.prototype.getLogs=function(a){return this.doGet(this.getPath(this.paths.log,a)+"/log")},e.prototype.overview=function(a){return this.get("overview"+(void 0!==a?"?filter="+a:""))},e.prototype.summary=function(a){return this.get("overview?summarize"+(void 0!==a?"&filter="+a:""))},e.prototype.put=function(a,t){var n=this;return this.api.http.put(this.getPath(this.paths.put,t),a,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l,!0)}))},e.prototype.create=function(a){return this.put(a)},e.prototype.save=function(a,t){return this.put(a,t=void 0!==t?t:a.id)},e.prototype.test=function(a,t){var n=this;return this.api.http.post(this.getPath(this.paths.test,a),t,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l)}))},e.prototype.delete=function(a){var t=this;return this.api.http.delete(this.getPath(this.paths.delete,a),{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.permision=function(){return this.api.user.isAdmin?QS.ALL:QS.NONE},e.prototype.getPermissions=function(a){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+a))},e.prototype.addPermission=function(a,t,n,l){var c=this,h=this.getPath("permissions/"+this.paths.base+"/"+a+"/"+t+"/add/"+n);return this.api.http.put(h,{perm:l},{headers:this.headers}).pipe(_o(function(C){return c.handleError(C)}))},e.prototype.revokePermission=function(a){var t=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:a},{headers:this.headers}).pipe(_o(function(c){return t.handleError(c)}))},e.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},e.prototype.gui=function(a){var t=this.getPath(this.paths.gui+(void 0!==a?"/"+a:""));return this.doGet(t)},e.prototype.callback=function(a,t){var n=this.getPath("gui/callback/"+a+"?"+t);return this.doGet(n)},e.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},e.prototype.detail=function(a,t){return new bie(this,a,t)},e.prototype.invoke=function(a,t){var n=a;return t&&(n=n+"?"+t),this.get(n)},e.prototype.getPath=function(a,t){return this.api.restPath(a+(void 0!==t?"/"+t:""))},e.prototype.doGet=function(a){var t=this;return this.api.http.get(a,{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.handleError=function(a,t){void 0===t&&(t=!1);var n;return n=a.error instanceof ErrorEvent?a.error.message:t?django.gettext("Error saving: ")+a.error:"Error "+a.status+": "+a.error,this.api.gui.alert(t?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),GA(n)},e}(),bie=function(e){function a(t,n,l,c){var h=e.call(this,t.api,[t.paths.base,n,l].join("/"))||this;return h.parentModel=t,h.parentId=n,h.model=l,h.perm=c,h}return aa(a,e),a.prototype.permision=function(){return this.perm||QS.ALL},a}(Ea),Cie=function(e){function a(t){var n=e.call(this,t,"providers")||this;return n.api=t,n}return aa(a,e),a.prototype.allServices=function(){return this.get("allservices")},a.prototype.service=function(t){return this.get("service/"+t)},a.prototype.maintenance=function(t){return this.get(t+"/maintenance")},a}(Ea),wie=function(e){function a(t){var n=e.call(this,t,"authenticators")||this;return n.api=t,n}return aa(a,e),a.prototype.search=function(t,n,l,c){return void 0===c&&(c=12),this.get(t+"/search?type="+encodeURIComponent(n)+"&term="+encodeURIComponent(l)+"&limit="+c)},a}(Ea),Sie=function(e){function a(t){var n=e.call(this,t,"osmanagers")||this;return n.api=t,n}return aa(a,e),a}(Ea),kie=function(e){function a(t){var n=e.call(this,t,"transports")||this;return n.api=t,n}return aa(a,e),a}(Ea),Mie=function(e){function a(t){var n=e.call(this,t,"networks")||this;return n.api=t,n}return aa(a,e),a}(Ea),xie=function(e){function a(t){var n=e.call(this,t,"servicespools")||this;return n.api=t,n}return aa(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a.prototype.actionsList=function(t){return this.get(t+"/actionsList")},a.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},a.prototype.createFromAssignable=function(t,n,l){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(n)+"&assignable_id="+encodeURIComponent(l))},a}(Ea),Tie=function(e){function a(t){var n=e.call(this,t,"metapools")||this;return n.api=t,n}return aa(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a}(Ea),Die=function(e){function a(t){var n=e.call(this,t,"config")||this;return n.api=t,n}return aa(a,e),a}(Ea),Aie=function(e){function a(t){var n=e.call(this,t,"gallery/images")||this;return n.api=t,n}return aa(a,e),a}(Ea),Eie=function(e){function a(t){var n=e.call(this,t,"gallery/servicespoolgroups")||this;return n.api=t,n}return aa(a,e),a}(Ea),Pie=function(e){function a(t){var n=e.call(this,t,"system")||this;return n.api=t,n}return aa(a,e),a.prototype.information=function(){return this.get("overview")},a.prototype.stats=function(t,n){var l="stats/"+t;return n&&(l+="/"+n),this.get(l)},a.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},a}(Ea),Oie=function(e){function a(t){var n=e.call(this,t,"reports")||this;return n.api=t,n}return aa(a,e),a.prototype.types=function(){return ut([])},a}(Ea),Iie=function(e){function a(t){var n=e.call(this,t,"calendars")||this;return n.api=t,n}return aa(a,e),a}(Ea),Rie=function(e){function a(t){var n=e.call(this,t,"accounts")||this;return n.api=t,n}return aa(a,e),a.prototype.timemark=function(t){return this.get(t+"/timemark")},a}(Ea),Lie=function(e){function a(t){var n=e.call(this,t,"proxies")||this;return n.api=t,n}return aa(a,e),a}(Ea),Fie=function(e){function a(t){var n=e.call(this,t,"actortokens")||this;return n.api=t,n}return aa(a,e),a}(Ea),Nie=function(e){function a(t){var n=e.call(this,t,"tunneltokens")||this;return n.api=t,n}return aa(a,e),a}(Ea),on=function(){function e(a){this.api=a,this.providers=new Cie(a),this.authenticators=new wie(a),this.osManagers=new Sie(a),this.transports=new kie(a),this.networks=new Mie(a),this.servicesPools=new xie(a),this.metaPools=new Tie(a),this.gallery=new Aie(a),this.servicesPoolGroups=new Eie(a),this.calendars=new Iie(a),this.accounts=new Rie(a),this.proxy=new Lie(a),this.system=new Pie(a),this.configuration=new Die(a),this.actorToken=new Fie(a),this.tunnelToken=new Nie(a),this.reports=new Oie(a)}return e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Pt))},providedIn:"root"}),e}(),FJ=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],NJ=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],VJ=function(e){var a=[];return e.forEach(function(t){a.push(t.substr(0,3))}),a},JS=function(e,a,t){return bp(e,a,t)},bp=function(e,a,t,n){n=n||{},a=a||new Date,(t=t||Uie).formats=t.formats||{};var l=a.getTime();return(n.utc||"number"==typeof n.timezone)&&(a=Vie(a)),"number"==typeof n.timezone&&(a=new Date(a.getTime()+6e4*n.timezone)),e.replace(/%([-_0]?.)/g,function(c,h){var _,C,k,D,I,L,G,Y;if(k=null,I=null,2===h.length){if("-"===(k=h[0]))I="";else if("_"===k)I=" ";else{if("0"!==k)return c;I="0"}h=h[1]}switch(h){case"A":return t.days[a.getDay()];case"a":return t.shortDays[a.getDay()];case"B":return t.months[a.getMonth()];case"b":return t.shortMonths[a.getMonth()];case"C":return Xo(Math.floor(a.getFullYear()/100),I);case"D":return bp(t.formats.D||"%m/%d/%y",a,t);case"d":return Xo(a.getDate(),I);case"e":return a.getDate();case"F":return bp(t.formats.F||"%Y-%m-%d",a,t);case"H":return Xo(a.getHours(),I);case"h":return t.shortMonths[a.getMonth()];case"I":return Xo(BJ(a),I);case"j":return G=new Date(a.getFullYear(),0,1),_=Math.ceil((a.getTime()-G.getTime())/864e5),Xo(_,3);case"k":return Xo(a.getHours(),void 0===I?" ":I);case"L":return Xo(Math.floor(l%1e3),3);case"l":return Xo(BJ(a),void 0===I?" ":I);case"M":return Xo(a.getMinutes(),I);case"m":return Xo(a.getMonth()+1,I);case"n":return"\n";case"o":return String(a.getDate())+Bie(a.getDate());case"P":case"p":return"";case"R":return bp(t.formats.R||"%H:%M",a,t);case"r":return bp(t.formats.r||"%I:%M:%S %p",a,t);case"S":return Xo(a.getSeconds(),I);case"s":return Math.floor(l/1e3);case"T":return bp(t.formats.T||"%H:%M:%S",a,t);case"t":return"\t";case"U":return Xo(HJ(a,"sunday"),I);case"u":return 0===(C=a.getDay())?7:C;case"v":return bp(t.formats.v||"%e-%b-%Y",a,t);case"W":return Xo(HJ(a,"monday"),I);case"w":return a.getDay();case"Y":return a.getFullYear();case"y":return(Y=String(a.getFullYear())).slice(Y.length-2);case"Z":return n.utc?"GMT":(L=a.toString().match(/\((\w+)\)/))&&L[1]||"";case"z":return n.utc?"+0000":((D="number"==typeof n.timezone?n.timezone:-a.getTimezoneOffset())<0?"-":"+")+Xo(Math.abs(D/60))+Xo(D%60);default:return h}})},Vie=function(e){var a=6e4*(e.getTimezoneOffset()||0);return new Date(e.getTime()+a)},Xo=function(e,a,t){"number"==typeof a&&(t=a,a="0"),a=null==a?"0":a,t=null==t?2:t;var n=String(e);if(a)for(;n.length12&&(a-=12),a},Bie=function(e){var a=e%10,t=e%100;if(t>=11&&t<=13||0===a||a>=4)return"th";switch(a){case 1:return"st";case 2:return"nd";case 3:return"rd"}},HJ=function(e,a){a=a||"sunday";var t=e.getDay();"monday"===a&&(0===t?t=6:t--);var n=new Date(e.getFullYear(),0,1),l=Math.floor((e.getTime()-n.getTime())/864e5);return Math.floor((l+7-t)/7)},zJ=function(e){return e.replace(/./g,function(a){switch(a){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+a;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return a}})},Lu=function(e,a,t){var n;if(void 0===t&&(t=null),"None"===a||null==a)a=7226578800,n=django.gettext("Never");else{var l=django.get_format(e);t&&(l+=t),n=JS(zJ(l),new Date(1e3*a))}return n},jq=function(e){return"yes"===e||!0===e||"true"===e||1===e},Uie={days:FJ,shortDays:VJ(FJ),months:NJ,shortMonths:VJ(NJ),AM:"AM",PM:"PM",am:"am",pm:"pm"},Gie=Dt(79052),ek=Dt.n(Gie),UJ=function(){if("undefined"!=typeof Map)return Map;function e(a,t){var n=-1;return a.some(function(l,c){return l[0]===t&&(n=c,!0)}),n}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(t){var n=e(this.__entries__,t),l=this.__entries__[n];return l&&l[1]},a.prototype.set=function(t,n){var l=e(this.__entries__,t);~l?this.__entries__[l][1]=n:this.__entries__.push([t,n])},a.prototype.delete=function(t){var n=this.__entries__,l=e(n,t);~l&&n.splice(l,1)},a.prototype.has=function(t){return!!~e(this.__entries__,t)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var l=0,c=this.__entries__;l0},e.prototype.connect_=function(){!Wq||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Zie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Wq||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(a){var t=a.propertyName,n=void 0===t?"":t;Xie.some(function(c){return!!~n.indexOf(c)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),GJ=function(a,t){for(var n=0,l=Object.keys(t);n0},e}(),YJ="undefined"!=typeof WeakMap?new WeakMap:new UJ,qJ=function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=Kie.getInstance(),n=new oae(a,t,this);YJ.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){qJ.prototype[e]=function(){var a;return(a=YJ.get(this))[e].apply(a,arguments)}});var lae=void 0!==B5.ResizeObserver?B5.ResizeObserver:qJ,uae=function(){function e(a){F(this,e),this.changes=a}return W(e,[{key:"notEmpty",value:function(t){if(this.changes[t]){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}},{key:"has",value:function(t){return this.changes[t]?ut(this.changes[t].currentValue):Ar}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?ut(this.changes[t].currentValue):Ar}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}}],[{key:"of",value:function(t){return new e(t)}}]),e}(),XJ=new Ee("NGX_ECHARTS_CONFIG"),ZJ=function(){var e=function(){function a(t,n,l){F(this,a),this.el=n,this.ngZone=l,this.autoResize=!0,this.loadingType="default",this.chartInit=new ye,this.optionsError=new ye,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=t.echarts}return W(a,[{key:"ngOnChanges",value:function(n){var l=this,c=uae.of(n);c.notFirstAndEmpty("options").subscribe(function(h){return l.onOptionsChange(h)}),c.notFirstAndEmpty("merge").subscribe(function(h){return l.setOption(h)}),c.has("loading").subscribe(function(h){return l.toggleLoading(!!h)}),c.notFirst("theme").subscribe(function(){return l.refreshChart()})}},{key:"ngOnInit",value:function(){var n=this;this.autoResize&&(this.resizeSub=new lae(function(){n.animationFrameID=window.requestAnimationFrame(function(){return n.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var n=this;setTimeout(function(){return n.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(n,l){if(this.chart)try{this.chart.setOption(n,l)}catch(c){console.error(c),this.optionsError.emit(c)}}},{key:"refreshChart",value:function(){return Gq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.dispose(),c.next=3,this.initChart();case 3:case"end":return c.stop()}},n,this)}))}},{key:"createChart",value:function(){var n=this,l=this.el.nativeElement;if(window&&window.getComputedStyle){var c=window.getComputedStyle(l,null).getPropertyValue("height");(!c||"0px"===c)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof n.echarts?n.echarts:function(){return Promise.resolve(n.echarts)})().then(function(_){return(0,_.init)(l,n.theme,n.initOpts)})})}},{key:"initChart",value:function(){return Gq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return c.stop()}},n,this)}))}},{key:"onOptionsChange",value:function(n){return Gq(this,void 0,void 0,ek().mark(function l(){return ek().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(n){h.next=2;break}return h.abrupt("return");case 2:if(!this.chart){h.next=6;break}this.setOption(this.options,!0),h.next=11;break;case 6:return h.next=8,this.createChart();case 8:this.chart=h.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return h.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(xa(function(c){return new gn(function(h){return c.on(n,function(_){return l.ngZone.run(function(){return h.next(_)})}),function(){l.chart&&(l.chart.isDisposed()||c.off(n))}})}))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(XJ),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[an]}),e}(),cae=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n){return{ngModule:a,providers:[{provide:XJ,useValue:n}]}}},{key:"forChild",value:function(){return{ngModule:a}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[]]}),e}();function fae(e,a){if(1&e&&(A(0,"div",21),A(1,"div",11),me(2,"img",3),A(3,"div",12),K(4),E(),E(),A(5,"div",13),A(6,"a",15),A(7,"uds-translate"),K(8,"View service pools"),E(),E(),E(),E()),2&e){var t=J(2);H(2),z("src",t.api.staticURL("admin/img/icons/logs.png"),Gt),H(2),Ve(" ",t.data.restrained," ")}}function dae(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",8),A(2,"div",9),A(3,"div",10),A(4,"div",11),me(5,"img",3),A(6,"div",12),K(7),E(),E(),A(8,"div",13),A(9,"a",14),A(10,"uds-translate"),K(11,"View authenticators"),E(),E(),E(),E(),A(12,"div",10),A(13,"div",11),me(14,"img",3),A(15,"div",12),K(16),E(),E(),A(17,"div",13),A(18,"a",15),A(19,"uds-translate"),K(20,"View service pools"),E(),E(),E(),E(),A(21,"div",10),A(22,"div",11),me(23,"img",3),A(24,"div",12),K(25),E(),E(),A(26,"div",13),A(27,"a",15),A(28,"uds-translate"),K(29,"View service pools"),E(),E(),E(),E(),re(30,fae,9,2,"div",16),E(),A(31,"div",17),A(32,"div",18),A(33,"div",19),A(34,"uds-translate"),K(35,"Assigned services chart"),E(),E(),A(36,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("assigned",c)}),E(),E(),A(37,"div",18),A(38,"div",19),A(39,"uds-translate"),K(40,"In use services chart"),E(),E(),A(41,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("inuse",c)}),E(),E(),E(),E(),E()}if(2&e){var n=J();H(5),z("src",n.api.staticURL("admin/img/icons/authenticators.png"),Gt),H(2),Ve(" ",n.data.users," "),H(7),z("src",n.api.staticURL("admin/img/icons/pools.png"),Gt),H(2),Ve(" ",n.data.pools," "),H(7),z("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(2),Ve(" ",n.data.user_services," "),H(5),z("ngIf",n.data.restrained),H(6),z("options",n.assignedChartOpts),H(5),z("options",n.inuseChartOpts)}}function hae(e,a){1&e&&(A(0,"div",22),A(1,"div",23),A(2,"div",24),A(3,"uds-translate"),K(4,"UDS Administration"),E(),E(),A(5,"div",25),A(6,"p"),A(7,"uds-translate"),K(8,"You are accessing UDS Administration as staff member."),E(),E(),A(9,"p"),A(10,"uds-translate"),K(11,"This means that you have restricted access to elements."),E(),E(),A(12,"p"),A(13,"uds-translate"),K(14,"In order to increase your access privileges, please contact your local UDS administrator. "),E(),E(),me(15,"br"),A(16,"p"),A(17,"uds-translate"),K(18,"Thank you."),E(),E(),E(),E(),E())}var pae=function(){function e(a,t){this.api=a,this.rest=t,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return e.prototype.onResize=function(a){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},e.prototype.ngOnInit=function(){var a=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(_){a.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",_.users).replace("#GRP_NUMBER#",_.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",_.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",_.user_services)},_.restrained_services_pools>0&&(a.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",_.restrained_services_pools))});for(var t=function(_){n.rest.system.stats(_).subscribe(function(C){var k={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:C.map(function(D){return Lu("SHORT_DATE_FORMAT",new Date(D.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===_?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:C.map(function(D){return D.value})}]};"assigned"===_?a.assignedChartOpts=k:a.inuseChartOpts=k})},n=this,l=0,c=["assigned","inuse"];l enter",[gt({opacity:0,transform:"translateY(-5px)"}),Tn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),$J=new Ee("MatHint"),Br=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-label"]]}),e}(),Lae=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-placeholder"]]}),e}(),QJ=new Ee("MatPrefix"),JJ=new Ee("MatSuffix"),rk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","matSuffix",""]],features:[Xe([{provide:JJ,useExisting:e}])]}),e}(),eee=0,Nae=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),nee=new Ee("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ik=new Ee("MatFormField"),_r=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._changeDetectorRef=c,L._dir=_,L._defaults=C,L._platform=k,L._ngZone=D,L._outlineGapCalculationNeededImmediately=!1,L._outlineGapCalculationNeededOnStable=!1,L._destroyed=new qe,L._showAlwaysAnimate=!1,L._subscriptAnimationState="",L._hintLabel="",L._hintLabelId="mat-hint-".concat(eee++),L._labelId="mat-form-field-label-".concat(eee++),L.floatLabel=L._getDefaultFloatLabelState(),L._animationsEnabled="NoopAnimations"!==I,L.appearance=C&&C.appearance?C.appearance:"legacy",L._hideRequiredMarker=!(!C||null==C.hideRequiredMarker)&&C.hideRequiredMarker,L}return W(n,[{key:"appearance",get:function(){return this._appearance},set:function(c){var h=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&h!==c&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(c){this._hideRequiredMarker=it(c)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(c){this._hintLabel=c,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(c){c!==this._floatLabel&&(this._floatLabel=c||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(c){this._explicitFormFieldControl=c}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var c=this;this._validateControlChild();var h=this._control;h.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(h.controlType)),h.stateChanges.pipe($r(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),h.ngControl&&h.ngControl.valueChanges&&h.ngControl.valueChanges.pipe(Ht(this._destroyed)).subscribe(function(){return c._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){c._ngZone.onStable.pipe(Ht(c._destroyed)).subscribe(function(){c._outlineGapCalculationNeededOnStable&&c.updateOutlineGap()})}),ot(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){c._outlineGapCalculationNeededOnStable=!0,c._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe($r(null)).subscribe(function(){c._processHints(),c._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe($r(null)).subscribe(function(){c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ht(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?c._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return c.updateOutlineGap()})}):c.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(c){var h=this._control?this._control.ngControl:null;return h&&h[c]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var c=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Tl(this._label.nativeElement,"transitionend").pipe(or(1)).subscribe(function(){c._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var c=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&c.push.apply(c,At(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var h=this._hintChildren?this._hintChildren.find(function(C){return"start"===C.align}):null,_=this._hintChildren?this._hintChildren.find(function(C){return"end"===C.align}):null;h?c.push(h.id):this._hintLabel&&c.push(this._hintLabelId),_&&c.push(_.id)}else this._errorChildren&&c.push.apply(c,At(this._errorChildren.map(function(C){return C.id})));this._control.setDescribedByIds(c)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var c=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&c&&c.children.length&&c.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var h=0,_=0,C=this._connectionContainerRef.nativeElement,k=C.querySelectorAll(".mat-form-field-outline-start"),D=C.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var I=C.getBoundingClientRect();if(0===I.width&&0===I.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var L=this._getStartEnd(I),G=c.children,Y=this._getStartEnd(G[0].getBoundingClientRect()),Q=0,ie=0;ie0?.75*Q+10:0}for(var fe=0;fe void",BE("@transformPanel",[QV()],{optional:!0}))]),transformPanel:Ei("transformPanel",[Bn("void",gt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Bn("showing",gt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Bn("showing-multiple",gt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),zn("void => *",Tn("120ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))])},iee=0,oee=new Ee("mat-select-scroll-strategy"),Kae=new Ee("MAT_SELECT_CONFIG"),$ae={provide:oee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Qae=function e(a,t){F(this,e),this.source=a,this.value=t},Jae=El(gp(ia(HS(function(){return function e(a,t,n,l,c){F(this,e),this._elementRef=a,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=l,this.ngControl=c}}())))),see=new Ee("MatSelectTrigger"),eoe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-select-trigger"]],features:[Xe([{provide:see,useExisting:e}])]}),e}(),toe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,Q,ie,fe){var se,be,Ce,je;return F(this,n),(se=t.call(this,C,_,D,I,G))._viewportRuler=l,se._changeDetectorRef=c,se._ngZone=h,se._dir=k,se._parentFormField=L,se._liveAnnouncer=ie,se._defaultOptions=fe,se._panelOpen=!1,se._compareWith=function($e,kt){return $e===kt},se._uid="mat-select-".concat(iee++),se._triggerAriaLabelledBy=null,se._destroy=new qe,se._onChange=function(){},se._onTouched=function(){},se._valueId="mat-select-value-".concat(iee++),se._panelDoneAnimatingStream=new qe,se._overlayPanelClass=(null===(be=se._defaultOptions)||void 0===be?void 0:be.overlayPanelClass)||"",se._focused=!1,se.controlType="mat-select",se._required=!1,se._multiple=!1,se._disableOptionCentering=null!==(je=null===(Ce=se._defaultOptions)||void 0===Ce?void 0:Ce.disableOptionCentering)&&void 0!==je&&je,se.ariaLabel="",se.optionSelectionChanges=Ly(function(){var $e=se.options;return $e?$e.changes.pipe($r($e),xa(function(){return ot.apply(void 0,At($e.map(function(kt){return kt.onSelectionChange})))})):se._ngZone.onStable.pipe(or(1),xa(function(){return se.optionSelectionChanges}))}),se.openedChange=new ye,se._openedStream=se.openedChange.pipe(vr(function($e){return $e}),He(function(){})),se._closedStream=se.openedChange.pipe(vr(function($e){return!$e}),He(function(){})),se.selectionChange=new ye,se.valueChange=new ye,se.ngControl&&(se.ngControl.valueAccessor=It(se)),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(se._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),se._scrollStrategyFactory=Q,se._scrollStrategy=se._scrollStrategyFactory(),se.tabIndex=parseInt(Y)||0,se.id=se.id,se}return W(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(c){this._disableOptionCentering=it(c)}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){(c!==this._value||this._multiple&&Array.isArray(c))&&(this.options&&this._setSelectionByValue(c),this._value=c)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(c){this._typeaheadDebounceInterval=Di(c)}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var c=this;this._selectionModel=new ip(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Xa(),Ht(this._destroy)).subscribe(function(){return c._panelDoneAnimating(c.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var c=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ht(this._destroy)).subscribe(function(h){h.added.forEach(function(_){return _.select()}),h.removed.forEach(function(_){return _.deselect()})}),this.options.changes.pipe($r(null),Ht(this._destroy)).subscribe(function(){c._resetOptions(),c._initializeSelection()})}},{key:"ngDoCheck",value:function(){var c=this._getTriggerAriaLabelledby();if(c!==this._triggerAriaLabelledBy){var h=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?h.setAttribute("aria-labelledby",c):h.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(c){c.disabled&&this.stateChanges.next(),c.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(c){this.value=c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(h){return h.viewValue});return this._isRtl()&&c.reverse(),c.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(c){this.disabled||(this.panelOpen?this._handleOpenKeydown(c):this._handleClosedKeydown(c))}},{key:"_handleClosedKeydown",value:function(c){var h=c.keyCode,_=40===h||38===h||37===h||39===h,C=13===h||32===h,k=this._keyManager;if(!k.isTyping()&&C&&!Bi(c)||(this.multiple||c.altKey)&&_)c.preventDefault(),this.open();else if(!this.multiple){var D=this.selected;k.onKeydown(c);var I=this.selected;I&&D!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(c){var h=this._keyManager,_=c.keyCode,C=40===_||38===_,k=h.isTyping();if(C&&c.altKey)c.preventDefault(),this.close();else if(k||13!==_&&32!==_||!h.activeItem||Bi(c))if(!k&&this._multiple&&65===_&&c.ctrlKey){c.preventDefault();var D=this.options.some(function(L){return!L.disabled&&!L.selected});this.options.forEach(function(L){L.disabled||(D?L.select():L.deselect())})}else{var I=h.activeItemIndex;h.onKeydown(c),this._multiple&&C&&c.shiftKey&&h.activeItem&&h.activeItemIndex!==I&&h.activeItem._selectViaInteraction()}else c.preventDefault(),h.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var c=this;this._overlayDir.positionChange.pipe(or(1)).subscribe(function(){c._changeDetectorRef.detectChanges(),c._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value),c.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(c){var h=this;if(this._selectionModel.selected.forEach(function(C){return C.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&c)Array.isArray(c),c.forEach(function(C){return h._selectValue(C)}),this._sortValues();else{var _=this._selectValue(c);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(c){var h=this,_=this.options.find(function(C){if(h._selectionModel.isSelected(C))return!1;try{return null!=C.value&&h._compareWith(C.value,c)}catch(k){return!1}});return _&&this._selectionModel.select(_),_}},{key:"_initKeyManager",value:function(){var c=this;this._keyManager=new wE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ht(this._destroy)).subscribe(function(){c.panelOpen&&(!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction(),c.focus(),c.close())}),this._keyManager.change.pipe(Ht(this._destroy)).subscribe(function(){c._panelOpen&&c.panel?c._scrollOptionIntoView(c._keyManager.activeItemIndex||0):!c._panelOpen&&!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var c=this,h=ot(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ht(h)).subscribe(function(_){c._onSelect(_.source,_.isUserInput),_.isUserInput&&!c.multiple&&c._panelOpen&&(c.close(),c.focus())}),ot.apply(void 0,At(this.options.map(function(_){return _._stateChanges}))).pipe(Ht(h)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,h){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),h&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),h&&this.focus())):(c.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(c.value)),_!==this._selectionModel.isSelected(c)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;if(this.multiple){var h=this.options.toArray();this._selectionModel.sort(function(_,C){return c.sortComparator?c.sortComparator(_,C,h):h.indexOf(_)-h.indexOf(C)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var h;h=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.valueChange.emit(h),this._onChange(h),this.selectionChange.emit(this._getChangeEvent(h)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var c;return!this._panelOpen&&!this.disabled&&(null===(c=this.options)||void 0===c?void 0:c.length)>0}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_getPanelAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}},{key:"_panelDoneAnimating",value:function(c){this.openedChange.emit(c)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(Jae);return e.\u0275fac=function(t){return new(t||e)(N(yo),N(Vt),N(ft),N(dd),N(Ue),N(Mr,8),N(Lc,8),N(yp,8),N(ik,8),N(Ut,10),Ci("tabindex"),N(oee),N(iS),N(Kae,8))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Vae,5),wt(Bae,5),wt(PV,5)),2&t&&(Ne(l=Le())&&(n.trigger=l.first),Ne(l=Le())&&(n.panel=l.first),Ne(l=Le())&&(n._overlayDir=l.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Pe,an]}),e}(),$a=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._scrollTop=0,l._triggerFontSize=0,l._transformOrigin="top",l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l}return W(n,[{key:"_calculateOverlayScroll",value:function(c,h,_){var C=this._getItemHeight();return Math.min(Math.max(0,C*c-h+C/2),_)}},{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Ht(this._destroy)).subscribe(function(){c.panelOpen&&(c._triggerRect=c.trigger.nativeElement.getBoundingClientRect(),c._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var c=this;Ie(Oe(n.prototype),"_canOpen",this).call(this)&&(Ie(Oe(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._triggerFontSize&&c._overlayDir.overlayRef&&c._overlayDir.overlayRef.overlayElement&&(c._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(c._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(c){var h=jS(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===h?0:Cb((c+h)*_,_,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(c){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Ie(Oe(n.prototype),"_panelDoneAnimating",this).call(this,c)}},{key:"_getChangeEvent",value:function(c){return new Qae(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var k,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),h=this._viewportRuler.getViewportSize(),_=this._isRtl(),C=this.multiple?56:32;if(this.multiple)k=40;else if(this.disableOptionCentering)k=16;else{var D=this._selectionModel.selected[0]||this.options.first;k=D&&D.group?32:16}_||(k*=-1);var I=0-(c.left+k-(_?C:0)),L=c.right+k-h.width+(_?0:C);I>0?k+=I+8:L>0&&(k-=L+8),this._overlayDir.offsetX=Math.round(k),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(c,h,_){var I,C=this._getItemHeight(),k=(C-this._triggerRect.height)/2,D=Math.floor(256/C);return this.disableOptionCentering?0:(I=0===this._scrollTop?c*C:this._scrollTop===_?(c-(this._getItemCount()-D))*C+(C-(this._getItemCount()*C-256)%C):h-C/2,Math.round(-1*I-k))}},{key:"_checkOverlayWithinViewport",value:function(c){var h=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),C=this._triggerRect.top-8,k=_.height-this._triggerRect.bottom-8,D=Math.abs(this._offsetY),L=Math.min(this._getItemCount()*h,256)-D-this._triggerRect.height;L>k?this._adjustPanelUp(L,k):D>C?this._adjustPanelDown(D,C,c):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(c,h){var _=Math.round(c-h);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(c,h,_){var C=Math.round(c-h);if(this._scrollTop+=C,this._offsetY+=C,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var D,c=this._getItemHeight(),h=this._getItemCount(),_=Math.min(h*c,256),k=h*c-_;D=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),D+=jS(D,this.options,this.optionGroups);var I=_/2;this._scrollTop=this._calculateOverlayScroll(D,I,k),this._offsetY=this._calculateOverlayOffsetY(D,I,k),this._checkOverlayWithinViewport(k)}},{key:"_getOriginBasedOnOption",value:function(){var c=this._getItemHeight(),h=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-h+c/2;return"50% ".concat(_,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(toe);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-select"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,see,5),Zt(l,Pi,5),Zt(l,GS,5)),2&t&&(Ne(c=Le())&&(n.customTrigger=c.first),Ne(c=Le())&&(n.options=c),Ne(c=Le())&&(n.optionGroups=c))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&t&&(Ke("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),dt("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Xe([{provide:nk,useExisting:e},{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:Yae,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,n){if(1&t&&(rr(Wae),A(0,"div",0,1),ne("click",function(){return n.toggle()}),A(3,"div",2),re(4,Hae,2,1,"span",3),re(5,Gae,3,2,"span",4),E(),A(6,"div",5),me(7,"div",6),E(),E(),re(8,jae,4,14,"ng-template",7),ne("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&t){var l=Pn(1);Ke("aria-owns",n.panelOpen?n.id+"-panel":null),H(3),z("ngSwitch",n.empty),Ke("id",n._valueId),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1),H(3),z("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[OY,bu,Cu,PV,ED,Ts],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ree.transformPanelWrap,ree.transformPanel]},changeDetection:0}),e}(),lee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[$ae],imports:[[Wa,fp,WS,$t],lp,U5,WS,$t]}),e}(),noe={tooltipState:Ei("state",[Bn("initial, void, hidden",gt({opacity:0,transform:"scale(0)"})),Bn("visible",gt({transform:"scale(1)"})),zn("* => visible",Tn("200ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0)",offset:0}),gt({opacity:.5,transform:"scale(0.99)",offset:.5}),gt({opacity:1,transform:"scale(1)",offset:1})]))),zn("* => hidden",Tn("100ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:0})))])},uee="tooltip-panel",cee=tp({passive:!0}),fee=new Ee("mat-tooltip-scroll-strategy"),ooe={provide:fee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},soe=new Ee("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),uoe=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L,G){var Y=this;F(this,a),this._overlay=t,this._elementRef=n,this._scrollDispatcher=l,this._viewContainerRef=c,this._ngZone=h,this._platform=_,this._ariaDescriber=C,this._focusMonitor=k,this._dir=I,this._defaultOptions=L,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._handleKeydown=function(Q){Y._isTooltipVisible()&&27===Q.keyCode&&!Bi(Q)&&(Q.preventDefault(),Q.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=D,this._document=G,L&&(L.position&&(this.position=L.position),L.touchGestures&&(this.touchGestures=L.touchGestures)),I.change.pipe(Ht(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),h.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return W(a,[{key:"position",get:function(){return this._position},set:function(n){var l;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(l=this._tooltipInstance)||void 0===l||l.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(n){var l=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){l._ariaDescriber.describe(l._elementRef.nativeElement,l.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ht(this._destroyed)).subscribe(function(l){l?"keyboard"===l&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),n.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(l){var c=cr(l,2);n.removeEventListener(c[0],c[1],cee)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach(),this._portal=this._portal||new sd(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=c.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ht(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(l)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var n=this;if(this._overlayRef)return this._overlayRef;var l=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),c=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(l);return c.positionChanges.pipe(Ht(this._destroyed)).subscribe(function(h){n._updateCurrentPositionClass(h.connectionPair),n._tooltipInstance&&h.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:c,panelClass:"".concat(this._cssClassPrefix,"-").concat(uee),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ht(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(Ht(this._destroyed)).subscribe(function(){var h;return null===(h=n._tooltipInstance)||void 0===h?void 0:h._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var l=n.getConfig().positionStrategy,c=this._getOrigin(),h=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),h.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),h.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l||"below"==l?c={originX:"center",originY:"above"==l?"top":"bottom"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={originX:"start",originY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={originX:"end",originY:"center"});var h=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:h.x,originY:h.y}}}},{key:"_getOverlayPosition",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l?c={overlayX:"center",overlayY:"bottom"}:"below"==l?c={overlayX:"center",overlayY:"top"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={overlayX:"end",overlayY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={overlayX:"start",overlayY:"center"});var h=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:h.x,overlayY:h.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(or(1),Ht(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,l){return"above"===this.position||"below"===this.position?"top"===l?l="bottom":"bottom"===l&&(l="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:l}}},{key:"_updateCurrentPositionClass",value:function(n){var _,l=n.overlayY,c=n.originX;if((_="center"===l?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===l&&"top"===n.originY?"above":"below")!==this._currentPosition){var C=this._overlayRef;if(C){var k="".concat(this._cssClassPrefix,"-").concat(uee,"-");C.removePanelClass(k+this._currentPosition),C.addPanelClass(k+_)}this._currentPosition=_}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var l,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var c=[];if(this._platformSupportsMouseEvents())c.push(["mouseleave",function(){return n.hide()}],["wheel",function(_){return n._wheelListener(_)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var h=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",h],["touchcancel",h])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var h=cr(c,2);l._elementRef.nativeElement.addEventListener(h[0],h[1],cee)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var l=this._document.elementFromPoint(n.clientX,n.clientY),c=this._elementRef.nativeElement;l!==c&&!c.contains(l)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var l=this._elementRef.nativeElement,c=l.style;("on"===n||"INPUT"!==l.nodeName&&"TEXTAREA"!==l.nodeName)&&(c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none"),("on"===n||!l.draggable)&&(c.webkitUserDrag="none"),c.touchAction="none",c.webkitTapHighlightColor="transparent"}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N($n),N(ft),N(en),N(FV),N(ra),N(void 0),N(Mr),N(void 0),N(lt))},e.\u0275dir=ve({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),dee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,Q){var ie;return F(this,n),(ie=t.call(this,l,c,h,_,C,k,D,I,L,G,Y,Q))._tooltipComponent=foe,ie}return n}(uoe);return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N($n),N(ft),N(en),N(FV),N(ra),N(fee),N(Mr,8),N(soe,8),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Pe]}),e}(),coe=function(){var e=function(){function a(t){F(this,a),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new qe}return W(a,[{key:"show",value:function(n){var l=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){l._visibility="visible",l._showTimeoutId=void 0,l._onShow(),l._markForCheck()},n)}},{key:"hide",value:function(n){var l=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){l._visibility="hidden",l._hideTimeoutId=void 0,l._markForCheck()},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(n){var l=n.toState;"hidden"===l&&!this.isVisible()&&this._onHide.next(),("visible"===l||"hidden"===l)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt))},e.\u0275dir=ve({type:e}),e}(),foe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._breakpointObserver=c,h._isHandset=h._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),h}return n}(coe);return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Hq))},e.\u0275cmp=ke({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,n){2&t&&Ur("zoom","visible"===n._visibility?1:null)},features:[Pe],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,n){var l;1&t&&(A(0,"div",0),ne("@state.start",function(){return n._animationStart()})("@state.done",function(h){return n._animationDone(h)}),Uf(1,"async"),K(2),E()),2&t&&(dt("mat-tooltip-handset",null==(l=Gf(1,5,n._isHandset))?null:l.matches),z("ngClass",n.tooltipClass)("@state",n._visibility),H(2),On(n.message))},directives:[Ts],pipes:[Zw],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[noe.tooltipState]},changeDetection:0}),e}(),hee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[ooe],imports:[[LE,Wa,fp,$t],$t,lp]}),e}();function doe(e,a){if(1&e&&(A(0,"mat-option",19),K(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function hoe(e,a){if(1&e){var t=De();A(0,"mat-form-field",16),A(1,"mat-select",17),ne("selectionChange",function(c){return pe(t),J(2)._changePageSize(c.value)}),re(2,doe,2,2,"mat-option",18),E(),E()}if(2&e){var n=J(2);z("appearance",n._formFieldAppearance)("color",n.color),H(1),z("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),H(1),z("ngForOf",n._displayedPageSizeOptions)}}function poe(e,a){if(1&e&&(A(0,"div",20),K(1),E()),2&e){var t=J(2);H(1),On(t.pageSize)}}function voe(e,a){if(1&e&&(A(0,"div",12),A(1,"div",13),K(2),E(),re(3,hoe,3,6,"mat-form-field",14),re(4,poe,2,1,"div",15),E()),2&e){var t=J();H(2),Ve(" ",t._intl.itemsPerPageLabel," "),H(1),z("ngIf",t._displayedPageSizeOptions.length>1),H(1),z("ngIf",t._displayedPageSizeOptions.length<=1)}}function goe(e,a){if(1&e){var t=De();A(0,"button",21),ne("click",function(){return pe(t),J().firstPage()}),pa(),A(1,"svg",7),me(2,"path",22),E(),E()}if(2&e){var n=J();z("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),Ke("aria-label",n._intl.firstPageLabel)}}function moe(e,a){if(1&e){var t=De();pa(),t0(),A(0,"button",23),ne("click",function(){return pe(t),J().lastPage()}),pa(),A(1,"svg",7),me(2,"path",24),E(),E()}if(2&e){var n=J();z("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),Ke("aria-label",n._intl.lastPageLabel)}}var kb=function(){var e=function a(){F(this,a),this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,n,l){if(0==l||0==n)return"0 of ".concat(l);var c=t*n,h=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(h," of ").concat(l)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),yoe={provide:kb,deps:[[new oi,new Fo,kb]],useFactory:function(e){return e||new kb}},Coe=new Ee("MAT_PAGINATOR_DEFAULT_OPTIONS"),woe=ia(o5(function(){return function e(){F(this,e)}}())),Soe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;if(F(this,n),(_=t.call(this))._intl=l,_._changeDetectorRef=c,_._pageIndex=0,_._length=0,_._pageSizeOptions=[],_._hidePageSize=!1,_._showFirstLastButtons=!1,_.page=new ye,_._intlChanges=l.changes.subscribe(function(){return _._changeDetectorRef.markForCheck()}),h){var C=h.pageSize,k=h.pageSizeOptions,D=h.hidePageSize,I=h.showFirstLastButtons;null!=C&&(_._pageSize=C),null!=k&&(_._pageSizeOptions=k),null!=D&&(_._hidePageSize=D),null!=I&&(_._showFirstLastButtons=I)}return _}return W(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(c){this._pageIndex=Math.max(Di(c),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(c){this._length=Di(c),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(c){this._pageSize=Math.max(Di(c),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(c){this._pageSizeOptions=(c||[]).map(function(h){return Di(h)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(c){this._hidePageSize=it(c)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(c){this._showFirstLastButtons=it(c)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex++,this._emitPageEvent(c)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex--,this._emitPageEvent(c)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=0,this._emitPageEvent(c)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(c)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var c=this.getNumberOfPages()-1;return this.pageIndex=D.length&&(I=0),D[I]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Aoe);return e.\u0275fac=function(t){return new(t||e)(N(Doe,8))},e.\u0275dir=ve({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Pe,an]}),e}(),Ug=Y9.ENTERING+" "+W9.STANDARD_CURVE,ok={indicator:Ei("indicator",[Bn("active-asc, asc",gt({transform:"translateY(0px)"})),Bn("active-desc, desc",gt({transform:"translateY(10px)"})),zn("active-asc <=> active-desc",Tn(Ug))]),leftPointer:Ei("leftPointer",[Bn("active-asc, asc",gt({transform:"rotate(-45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),rightPointer:Ei("rightPointer",[Bn("active-asc, asc",gt({transform:"rotate(45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(-45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),arrowOpacity:Ei("arrowOpacity",[Bn("desc-to-active, asc-to-active, active",gt({opacity:1})),Bn("desc-to-hint, asc-to-hint, hint",gt({opacity:.54})),Bn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",gt({opacity:0})),zn("* => asc, * => desc, * => active, * => hint, * => void",Tn("0ms")),zn("* <=> *",Tn(Ug))]),arrowPosition:Ei("arrowPosition",[zn("* => desc-to-hint, * => desc-to-active",Tn(Ug,Dl([gt({transform:"translateY(-25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-desc, * => active-to-desc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(25%)"})]))),zn("* => asc-to-hint, * => asc-to-active",Tn(Ug,Dl([gt({transform:"translateY(25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-asc, * => active-to-asc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(-25%)"})]))),Bn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",gt({transform:"translateY(0)"})),Bn("hint-to-desc, active-to-desc, desc",gt({transform:"translateY(-25%)"})),Bn("hint-to-asc, active-to-asc, asc",gt({transform:"translateY(25%)"}))]),allowChildren:Ei("allowChildren",[zn("* <=> *",[BE("@*",QV(),{optional:!0})])])},W5=function(){var e=function a(){F(this,a),this.changes=new qe};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ooe={provide:W5,deps:[[new oi,new Fo,W5]],useFactory:function(e){return e||new W5}},Ioe=ia(function(){return function e(){F(this,e)}}()),pee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._intl=l,D._changeDetectorRef=c,D._sort=h,D._columnDef=_,D._focusMonitor=C,D._elementRef=k,D._showIndicatorHint=!1,D._viewState={},D._arrowDirection="",D._disableViewStateAnimation=!1,D.arrowPosition="after",D._handleStateChanges(),D}return W(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=it(c)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){var _=!!h;_!==c._showIndicatorHint&&(c._setIndicatorHintVisible(_),c._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(c){!this._isDisabled()&&(32===c.keyCode||13===c.keyCode)&&(c.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var c=this._viewState.fromState;return(c?"".concat(c,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var c=this;this._rerenderSubscription=ot(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){c._isSorted()&&(c._updateArrowDirection(),("hint"===c._viewState.toState||"active"===c._viewState.toState)&&(c._disableViewStateAnimation=!0),c._setAnimationTransitionState({fromState:c._arrowDirection,toState:"active"}),c._showIndicatorHint=!1),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),c._changeDetectorRef.markForCheck()})}}]),n}(Ioe);return e.\u0275fac=function(t){return new(t||e)(N(W5),N(Vt),N(DP,8),N("MAT_SORT_HEADER_COLUMN_DEF",8),N(ra),N(Ue))},e.\u0275cmp=ke({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,n){1&t&&ne("click",function(){return n._handleClick()})("keydown",function(c){return n._handleKeydown(c)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&t&&(Ke("aria-sort",n._getAriaSortAttribute()),dt("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Pe],attrs:Moe,ngContentSelectors:Toe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,n){1&t&&(rr(),A(0,"div",0),A(1,"div",1),Wt(2),E(),re(3,xoe,6,6,"div",2),E()),2&t&&(dt("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"==n.arrowPosition),Ke("tabindex",n._isDisabled()?null:0),H(3),z("ngIf",n._renderArrow()))},directives:[Kt],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[ok.indicator,ok.leftPointer,ok.rightPointer,ok.arrowOpacity,ok.arrowPosition,ok.allowChildren]},changeDetection:0}),e}(),Roe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Ooe],imports:[[Wa,$t]]}),e}(),Loe=[[["caption"]],[["colgroup"],["col"]]],Foe=["caption","colgroup, col"];function Yq(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],h=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],_=arguments.length>6?arguments[6]:void 0;F(this,e),this._isNativeHtmlTable=a,this._stickCellCss=t,this.direction=n,this._coalescedStyleScheduler=l,this._isBrowser=c,this._needsPositionStickyOnElement=h,this._positionListener=_,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return W(e,[{key:"clearStickyPositioning",value:function(t,n){var _,l=this,c=[],h=tn(t);try{for(h.s();!(_=h.n()).done;){var C=_.value;if(C.nodeType===C.ELEMENT_NODE){c.push(C);for(var k=0;k3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(n.some(function(Y){return Y})||l.some(function(Y){return Y}))){var _=t[0],C=_.children.length,k=this._getCellWidths(_,h),D=this._getStickyStartColumnPositions(k,n),I=this._getStickyEndColumnPositions(k,l),L=n.lastIndexOf(!0),G=l.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var se,Y="rtl"===c.direction,Q=Y?"right":"left",ie=Y?"left":"right",fe=tn(t);try{for(fe.s();!(se=fe.n()).done;)for(var be=se.value,Ce=0;Ce1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var l=[],c=t.children,h=0;h0;h--)n[h]&&(l[h]=c,c+=t[h]);return l}}]),e}(),tX=new Ee("CDK_SPL"),Z5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","rowOutlet",""]]}),e}(),K5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),$5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),Q5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),J5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this._differs=t,this._changeDetectorRef=n,this._elementRef=l,this._dir=h,this._platform=C,this._viewRepeater=k,this._coalescedStyleScheduler=D,this._viewportRuler=I,this._stickyPositioningListener=L,this._onDestroy=new qe,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ye,this.viewChange=new Ma({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return W(a,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=it(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=it(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(l,c){return n.trackBy?n.trackBy(c.dataIndex,c.data):c}),this._viewportRuler.change().pipe(Ht(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var l=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||l,this._forceRecalculateCellWidths=l,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Y1(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var l=this._dataDiffer.diff(this._renderRows);if(!l)return this._updateNoDataRow(),void this.contentChanged.next();var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(l,c,function(h,_,C){return n._getEmbeddedViewArgs(h.item,C)},function(h){return h.item.data},function(h){1===h.operation&&h.context&&n._renderCellTemplateForItem(h.record.item.rowDef,h.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(h){c.get(h.currentIndex).context.$implicit=h.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=n.length?"":"none");var h=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,h,"top"),this._headerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=n.length?"":"none");var h=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,h,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,h),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),h=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(At(l),At(c),At(h)),["left","right"]),this._stickyColumnStylesNeedReset=!1),l.forEach(function(_,C){n._addStickyColumnStyles([_],n._headerRowDefs[C])}),this._rowDefs.forEach(function(_){for(var C=[],k=0;k0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(l,c){return n._renderRow(n._headerRowOutlet,l,c)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(l,c){return n._renderRow(n._footerRowOutlet,l,c)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,l){var c=this,h=Array.from(l.columns||[]).map(function(k){return c._columnDefsByName.get(k)}),_=h.map(function(k){return k.sticky}),C=h.map(function(k){return k.stickyEnd});this._stickyStyler.updateStickyColumns(n,_,C,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var l=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},_=n.viewContainer.createEmbeddedView(l.template,h,c);return this._renderCellTemplateForItem(l,h),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var h,c=tn(this._getCellTemplates(n));try{for(c.s();!(h=c.n()).done;)wp.mostRecentCellOutlet&&wp.mostRecentCellOutlet._viewContainer.createEmbeddedView(h.value,l)}catch(C){c.e(C)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,l=0,c=n.length;l0&&void 0!==arguments[0]?arguments[0]:[];return F(this,t),(n=a.call(this))._renderData=new Ma([]),n._filter=new Ma(""),n._internalPageChanges=new qe,n._renderChangesSubscription=null,n.sortingDataAccessor=function(c,h){var _=c[h];if(U3(_)){var C=Number(_);return CL?Q=1:I0)){var _=Math.ceil(h.length/h.pageSize)-1||0,C=Math.min(h.pageIndex,_);C!==h.pageIndex&&(h.pageIndex=C,c._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var l;null===(l=this._renderChangesSubscription)||void 0===l||l.unsubscribe(),this._renderChangesSubscription=null}}]),t}(qA));function use(e){return e instanceof Date&&!isNaN(+e)}function oH(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg,t=use(e),n=t?+e-a.now():Math.abs(e);return function(l){return l.lift(new cse(n,a))}}var cse=function(){function e(a,t){F(this,e),this.delay=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new fse(t,this.delay,this.scheduler))}}]),e}(),fse=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).delay=l,h.scheduler=c,h.queue=[],h.active=!1,h.errored=!1,h}return W(t,[{key:"_schedule",value:function(l){this.active=!0,this.destination.add(l.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:l}))}},{key:"scheduleNotification",value:function(l){if(!0!==this.errored){var c=this.scheduler,h=new dse(c.now()+this.delay,l);this.queue.push(h),!1===this.active&&this._schedule(c)}}},{key:"_next",value:function(l){this.scheduleNotification(qy.createNext(l))}},{key:"_error",value:function(l){this.errored=!0,this.queue=[],this.destination.error(l),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(qy.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(l){for(var c=l.source,h=c.queue,_=l.scheduler,C=l.destination;h.length>0&&h[0].time-_.now()<=0;)h.shift().notification.observe(C);if(h.length>0){var k=Math.max(0,h[0].time-_.now());this.schedule(l,k)}else this.unsubscribe(),c.active=!1}}]),t}(Ze),dse=function e(a,t){F(this,e),this.time=a,this.notification=t},Cee=tp({passive:!0}),wee=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return W(a,[{key:"monitor",value:function(n){var l=this;if(!this._platform.isBrowser)return Ar;var c=bc(n),h=this._monitoredElements.get(c);if(h)return h.subject;var _=new qe,C="cdk-text-field-autofilled",k=function(I){"cdk-text-field-autofill-start"!==I.animationName||c.classList.contains(C)?"cdk-text-field-autofill-end"===I.animationName&&c.classList.contains(C)&&(c.classList.remove(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!1})})):(c.classList.add(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",k,Cee),c.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(c,{subject:_,unlisten:function(){c.removeEventListener("animationstart",k,Cee)}}),_}},{key:"stopMonitoring",value:function(n){var l=bc(n),c=this._monitoredElements.get(l);c&&(c.unlisten(),c.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(l,c){return n.stopMonitoring(c)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft))},token:e,providedIn:"root"}),e}(),See=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep]]}),e}(),kee=new Ee("MAT_INPUT_VALUE_ACCESSOR"),pse=["button","checkbox","file","hidden","image","radio","range","reset","submit"],vse=0,gse=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),Hi=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G){var Y;F(this,n),(Y=t.call(this,k,_,C,h))._elementRef=l,Y._platform=c,Y._autofillMonitor=I,Y._formField=G,Y._uid="mat-input-".concat(vse++),Y.focused=!1,Y.stateChanges=new qe,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(fe){return j1().has(fe)});var Q=Y._elementRef.nativeElement,ie=Q.nodeName.toLowerCase();return Y._inputValueAccessor=D||Q,Y._previousNativeValue=Y.value,Y.id=Y.id,c.IOS&&L.runOutsideAngular(function(){l.nativeElement.addEventListener("keyup",function(fe){var se=fe.target;!se.value&&0===se.selectionStart&&0===se.selectionEnd&&(se.setSelectionRange(1,1),se.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===ie,Y._isTextarea="textarea"===ie,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=Q.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return W(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"type",get:function(){return this._type},set:function(c){this._type=c||"text",this._validateType(),!this._isTextarea&&j1().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(c){c!==this.value&&(this._inputValueAccessor.value=c,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(c){this._readonly=it(c)}},{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(h){c.autofilled=h.isAutofilled,c.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_focusChanged",value:function(c){c!==this.focused&&(this.focused=c,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var c,h,_=(null===(h=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===h?void 0:h.call(c))?null:this.placeholder;if(_!==this._previousPlaceholder){var C=this._elementRef.nativeElement;this._previousPlaceholder=_,_?C.setAttribute("placeholder",_):C.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var c=this._elementRef.nativeElement.value;this._previousNativeValue!==c&&(this._previousNativeValue=c,this.stateChanges.next())}},{key:"_validateType",value:function(){pse.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var c=this._elementRef.nativeElement.validity;return c&&c.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var c=this._elementRef.nativeElement,h=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&h&&h.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(c){c.length?this._elementRef.nativeElement.setAttribute("aria-describedby",c.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(gse);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(Ut,10),N(Lc,8),N(yp,8),N(dd),N(kee,10),N(wee),N(ft),N(ik,8))},e.\u0275dir=ve({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,n){1&t&&ne("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Zi("disabled",n.disabled)("required",n.required),Ke("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),dt("mat-input-server",n._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Xe([{provide:nk,useExisting:e}]),Pe,an]}),e}(),mse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd],imports:[[See,U5,$t],See,U5]}),e}(),_se=["searchSelectInput"],yse=["innerSelectSearch"];function bse(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){return pe(t),J()._reset(!0)}),A(1,"i",7),K(2,"close"),E(),E()}}var Cse=function(e){return{"mat-select-search-inner-multiple":e}},Vc=function(){function e(a,t){this.matSelect=a,this.changeDetectorRef=t,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new ye,this.overlayClassSet=!1,this.change=new ye,this._onDestroy=new qe}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var a=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matSelect.openedChange.pipe(oH(1),Ht(this._onDestroy)).subscribe(function(n){n?(a.getWidth(),a.disableInitialFocus||a._focus()):a.clearSearchInput&&a._reset()}),this.matSelect.openedChange.pipe(or(1)).pipe(Ht(this._onDestroy)).subscribe(function(){a._options=a.matSelect.options,a._options.changes.pipe(Ht(a._onDestroy)).subscribe(function(){var n=a.matSelect._keyManager;n&&a.matSelect.panelOpen&&setTimeout(function(){n.setFirstItemActive(),a.getWidth()},1)})}),this.change.pipe(Ht(this._onDestroy)).subscribe(function(){a.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){a.setOverlayClass()}),this.matSelect.openedChange.pipe(or(1),Ht(this._onDestroy)).subscribe(function(){a.matSelect.options.changes.pipe(Ht(a._onDestroy)).subscribe(function(){a.changeDetectorRef.markForCheck()})})},e.prototype._handleKeydown=function(a){(a.key&&1===a.key.length||a.keyCode>=65&&a.keyCode<=90||a.keyCode>=48&&a.keyCode<=57||32===a.keyCode)&&a.stopPropagation()},e.prototype.writeValue=function(a){a!==this._value&&(this._value=a,this.change.emit(a))},e.prototype.onInputChange=function(a){a.value!==this._value&&(this.initMultiSelectedValues(),this._value=a.value,this.changed.emit(a.value),this.change.emit(a.value))},e.prototype.onBlur=function(a){this.writeValue(a.value)},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var a=this.matSelect.panel.nativeElement,t=a.scrollTop;this.searchSelectInput.nativeElement.focus(),a.scrollTop=t}},e.prototype._reset=function(a){!this.searchSelectInput||(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),a&&this._focus())},e.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(a){return a.selected}).map(function(a){return a.value}))},e.prototype.setOverlayClass=function(){var a=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Ht(this._onDestroy)).subscribe(function(n){if(n){for(var l=a.searchSelectInput.nativeElement,c=void 0;l=l.parentElement;)if(l.classList.contains("cdk-overlay-pane")){c=l;break}c&&c.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},e.prototype.initMultipleHandling=function(){var a=this;this.matSelect.valueChange.pipe(Ht(this._onDestroy)).subscribe(function(t){if(a.matSelect.multiple){var n=!1;if(a._value&&a._value.length&&a.previousSelectedValues&&Array.isArray(a.previousSelectedValues)){(!t||!Array.isArray(t))&&(t=[]);var l=a.matSelect.options.map(function(c){return c.value});a.previousSelectedValues.forEach(function(c){-1===t.indexOf(c)&&-1===l.indexOf(c)&&(t.push(c),n=!0)})}n&&a.matSelect._onChange(t),a.previousSelectedValues=t}})},e.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,a=this.innerSelectSearch.nativeElement;a=a.parentElement;)if(a.classList.contains("mat-select-panel")){t=a;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},e.\u0275fac=function(t){return new(t||e)(N($a),N(Vt))},e.\u0275cmp=ke({type:e,selectors:[["uds-mat-select-search"]],viewQuery:function(t,n){if(1&t&&(wt(_se,7,Ue),wt(yse,7,Ue)),2&t){var l=void 0;Ne(l=Le())&&(n.searchSelectInput=l.first),Ne(l=Le())&&(n.innerSelectSearch=l.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[Xe([{provide:s,useExisting:Sn(function(){return e}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(me(0,"input",0),A(1,"div",1,2),A(3,"input",3,4),ne("keydown",function(c){return n._handleKeydown(c)})("input",function(c){return n.onInputChange(c.target)})("blur",function(c){return n.onBlur(c.target)}),E(),re(5,bse,3,0,"button",5),E()),2&t&&(H(1),z("ngClass",vl(3,Cse,n.matSelect.multiple)),H(2),z("placeholder",n.placeholderLabel),H(2),z("ngIf",n.value))},directives:[Hi,Ts,Kt,Rn],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),e}();function wse(e,a){1&e&&(A(0,"uds-translate"),K(1,"New user permission for"),E())}function Sse(e,a){1&e&&(A(0,"uds-translate"),K(1,"New group permission for"),E())}function kse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}function Mse(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",12),ne("changed",function(l){return pe(t),J().filterUser=l}),E()}}function xse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}function Tse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}var Dse=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new ye(!0)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"50%";return a.gui.dialog.open(e,{width:l,data:{type:t,item:n},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){t.forEach(function(n){a.authenticators.push({id:n.id,text:n.name})})})},e.prototype.changeAuth=function(a){var t=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(a,this.data.type+"s").summary().subscribe(function(n){n.forEach(function(l){t.entities.push({id:l.id,text:l.name})})})},e.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},e.prototype.filteredEntities=function(){var a=this,t=new Array;return this.entities.forEach(function(n){(!a.filterUser||n.text.toLocaleLowerCase().includes(a.filterUser.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.getFieldLabel=function(a){return"user"===a?django.gettext("User"):"group"===a?django.gettext("Group"):"auth"===a?django.gettext("Authenticator"):django.gettext("Permission")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,wse,2,0,"uds-translate",1),me(2,"b",2),re(3,Sse,2,0,"ng-template",null,3,ml),E(),A(5,"mat-dialog-content"),A(6,"div",4),A(7,"mat-form-field"),A(8,"mat-select",5),ne("valueChange",function(h){return n.changeAuth(h)})("ngModelChange",function(h){return n.authenticator=h}),re(9,kse,2,2,"mat-option",6),E(),E(),A(10,"mat-form-field"),A(11,"mat-select",7),ne("ngModelChange",function(h){return n.entity=h}),re(12,Mse,1,0,"uds-mat-select-search",8),re(13,xse,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-select",7),ne("ngModelChange",function(h){return n.permission=h}),re(16,Tse,2,2,"mat-option",6),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",9),A(19,"uds-translate"),K(20,"Cancel"),E(),E(),A(21,"button",10),ne("click",function(){return n.save()}),A(22,"uds-translate"),K(23,"Ok"),E(),E(),E()),2&t){var l=Pn(4);H(1),z("ngIf","user"===n.data.type)("ngIfElse",l),H(1),z("innerHTML",n.data.item.name,Si),H(6),z("placeholder",n.getFieldLabel("auth"))("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(2),z("placeholder",n.getFieldLabel(n.data.type))("ngModel",n.entity),H(1),z("ngIf",n.entities.length>10),H(1),z("ngForOf",n.filteredEntities()),H(2),z("placeholder",n.getFieldLabel("perm"))("ngModel",n.permission),H(1),z("ngForOf",n.permissions)}},directives:[Wr,Kt,Fr,_r,$a,Mt,mr,er,Qr,Rn,Lr,Hn,Pi,Vc],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Ase(e,a){if(1&e){var t=De();A(0,"div",11),A(1,"div",12),K(2),E(),A(3,"div",13),K(4),A(5,"a",14),ne("click",function(){var h=pe(t).$implicit;return J(2).revokePermission(h)}),A(6,"i",15),K(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),Cv(" ",n.entity_name,"@",n.auth_name," "),H(2),Ve(" ",n.perm_name," \xa0")}}function Ese(e,a){if(1&e){var t=De();A(0,"div",7),A(1,"div",8),A(2,"div",9),ne("click",function(c){var _=pe(t).$implicit;return J().newPermission(_),c.preventDefault()}),A(3,"uds-translate"),K(4,"New permission..."),E(),E(),re(5,Ase,8,3,"div",10),E(),E()}if(2&e){var n=a.$implicit;H(5),z("ngForOf",n)}}var Pse=function(e,a){return[e,a]},Ose=function(){function e(a,t,n){this.api=a,this.dialogRef=t,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return e.launch=function(a,t,n){var l=window.innerWidth<800?"90%":"60%";a.gui.dialog.open(e,{width:l,data:{rest:t,item:n},disableClose:!1})},e.prototype.ngOnInit=function(){this.reload()},e.prototype.reload=function(){var a=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(t){a.updatePermissions(t)})},e.prototype.updatePermissions=function(a){var t=this;this.userPermissions.length=0,this.groupPermissions.length=0,a.forEach(function(n){"user"===n.type?t.userPermissions.push(n):t.groupPermissions.push(n)})},e.prototype.revokePermission=function(a){var t=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+a.entity_name+"@"+a.auth_name+" "+a.perm_name+"").subscribe(function(n){n&&t.data.rest.revokePermission([a.id]).subscribe(function(l){t.reload()})})},e.prototype.newPermission=function(a){var t=this,n=a===this.userPermissions?"user":"group";Dse.launch(this.api,n,this.data.item).subscribe(function(l){t.data.rest.addPermission(t.data.item.id,n+"s",l.entity,l.permissision).subscribe(function(c){t.reload()})})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Permissions for"),E(),K(3,"\xa0"),me(4,"b",1),E(),A(5,"mat-dialog-content"),A(6,"div",2),A(7,"uds-translate",3),K(8,"Users"),E(),A(9,"uds-translate",3),K(10,"Groups"),E(),E(),A(11,"div",4),re(12,Ese,6,1,"div",5),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",6),A(15,"uds-translate"),K(16,"Ok"),E(),E(),E()),2&t&&(H(4),z("innerHTML",n.data.item.name,Si),H(8),z("ngForOf",zf(2,Pse,n.userPermissions,n.groupPermissions)))},directives:[Wr,Hn,Fr,er,Qr,Rn,Lr],styles:['.titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),sX=Dt(99595),Tee=function(e){return void 0!==e.changingThisBreaksApplicationSecurity&&(e=e.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(e=""+e).replace('"','""')+'"'},Dee=function(e){var a="";e.columns.forEach(function(n){a+=Tee(n.title)+","}),a=a.slice(0,-1)+"\r\n",e.dataSource.data.forEach(function(n){e.columns.forEach(function(l){var c=n[l.name];switch(l.type){case Aa.DATE:c=Lu("SHORT_DATE_FORMAT",c);break;case Aa.DATETIME:c=Lu("SHORT_DATETIME_FORMAT",c);break;case Aa.DATETIMESEC:c=Lu("SHORT_DATE_FORMAT",c," H:i:s");break;case Aa.TIME:c=Lu("TIME_FORMAT",c)}a+=Tee(c)+","}),a=a.slice(0,-1)+"\r\n"});var t=new Blob([a],{type:"text/csv"});setTimeout(function(){(0,sX.saveAs)(t,e.title+".csv")},100)},Rse=function(){function e(a,t){F(this,e),this._document=t;var n=this._textarea=this._document.createElement("textarea"),l=n.style;l.position="fixed",l.top=l.opacity="0",l.left="-999em",n.setAttribute("aria-hidden","true"),n.value=a,this._document.body.appendChild(n)}return W(e,[{key:"copy",value:function(){var t=this._textarea,n=!1;try{if(t){var l=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),n=this._document.execCommand("copy"),l&&l.focus()}}catch(c){}return n}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),e}(),Aee=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"copy",value:function(n){var l=this.beginCopy(n),c=l.copy();return l.destroy(),c}},{key:"beginCopy",value:function(n){return new Rse(n,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),Nse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function Vse(e,a){if(1&e&&(pa(),me(0,"circle",3)),2&e){var t=J();Ur("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}function Bse(e,a){if(1&e&&(pa(),me(0,"circle",3)),2&e){var t=J();Ur("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}var Gse=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),Pee=new Ee("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Oee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;F(this,n),(k=t.call(this,l))._document=h,k._diameter=100,k._value=0,k._fallbackAnimation=!1,k.mode="determinate";var D=n._diameters;return k._spinnerAnimationLabel=k._getSpinnerAnimationLabel(),D.has(h.head)||D.set(h.head,new Set([100])),k._fallbackAnimation=c.EDGE||c.TRIDENT,k._noopAnimations="NoopAnimations"===_&&!!C&&!C._forceAnimations,C&&(C.diameter&&(k.diameter=C.diameter),C.strokeWidth&&(k.strokeWidth=C.strokeWidth)),k}return W(n,[{key:"diameter",get:function(){return this._diameter},set:function(c){this._diameter=Di(c),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(c){this._strokeWidth=Di(c)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(c){this._value=Math.max(0,Math.min(100,Di(c)))}},{key:"ngOnInit",value:function(){var c=this._elementRef.nativeElement;this._styleRoot=W1(c)||this._document.head,this._attachStyleNode();var h="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");c.classList.add(h)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var c=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(c," ").concat(c)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var c=this._styleRoot,h=this._diameter,_=n._diameters,C=_.get(c);if(!C||!C.has(h)){var k=this._document.createElement("style");k.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),k.textContent=this._getAnimationText(),c.appendChild(k),C||(C=new Set,_.set(c,C)),C.add(h)}}},{key:"_getAnimationText",value:function(){var c=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*c)).replace(/END_VALUE/g,"".concat(.2*c)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(Gse);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt,8),N(Un,8),N(Pee))},e.\u0275cmp=ke({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,n){2&t&&(Ke("aria-valuemin","determinate"===n.mode?0:null)("aria-valuemax","determinate"===n.mode?100:null)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),Ur("width",n.diameter,"px")("height",n.diameter,"px"),dt("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Pe],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,n){1&t&&(pa(),A(0,"svg",0),re(1,Vse,1,9,"circle",1),re(2,Bse,1,7,"circle",2),E()),2&t&&(Ur("width",n.diameter,"px")("height",n.diameter,"px"),z("ngSwitch","indeterminate"===n.mode),Ke("viewBox",n._getViewBox()),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1))},directives:[bu,Cu],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),Yse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,Wa],$t]}),e}(),qse=["mat-menu-item",""];function Xse(e,a){1&e&&(pa(),A(0,"svg",2),me(1,"polygon",3),E())}var Iee=["*"];function Zse(e,a){if(1&e){var t=De();A(0,"div",0),ne("keydown",function(c){return pe(t),J()._handleKeydown(c)})("click",function(){return pe(t),J().closed.emit("click")})("@transformMenu.start",function(c){return pe(t),J()._onAnimationStart(c)})("@transformMenu.done",function(c){return pe(t),J()._onAnimationDone(c)}),A(1,"div",1),Wt(2),E(),E()}if(2&e){var n=J();z("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var sH={transformMenu:Ei("transformMenu",[Bn("void",gt({opacity:0,transform:"scale(0.8)"})),zn("void => enter",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:1,transform:"scale(1)"}))),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))]),fadeInItems:Ei("fadeInItems",[Bn("showing",gt({opacity:1})),zn("void => *",[gt({opacity:0}),Tn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ree=new Ee("MatMenuContent"),Kse=function(){var e=function(){function a(t,n,l,c,h,_,C){F(this,a),this._template=t,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=h,this._document=_,this._changeDetectorRef=C,this._attached=new qe}return W(a,[{key:"attach",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Ps(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new tE(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var l=this._template.elementRef.nativeElement;l.parentNode.insertBefore(this._outlet.outletElement,l),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,n),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Xn),N(Ki),N(lc),N(kn),N($n),N(lt),N(Vt))},e.\u0275dir=ve({type:e,selectors:[["ng-template","matMenuContent",""]],features:[Xe([{provide:Ree,useExisting:e}])]}),e}(),uX=new Ee("MAT_MENU_PANEL"),$se=El(ia(function(){return function e(){F(this,e)}}())),PP=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._elementRef=l,k._focusMonitor=h,k._parentMenu=_,k._changeDetectorRef=C,k.role="menuitem",k._hovered=new qe,k._focused=new qe,k._highlighted=!1,k._triggersSubmenu=!1,_&&_.addItem&&_.addItem(It(k)),k}return W(n,[{key:"focus",value:function(c,h){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(c){this.disabled&&(c.preventDefault(),c.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var c,h,_=this._elementRef.nativeElement.cloneNode(!0),C=_.querySelectorAll("mat-icon, .material-icons"),k=0;k0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(or(1)).subscribe(function(){return n._focusFirstItem(l)}):this._focusFirstItem(l)}},{key:"_focusFirstItem",value:function(n){var l=this._keyManager;if(l.setFocusOrigin(n).setFirstItemActive(),!l.activeItem&&this._directDescendantItems.length)for(var c=this._directDescendantItems.first._getHostElement().parentElement;c;){if("menu"===c.getAttribute("role")){c.focus();break}c=c.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(n){var l=this,c=Math.min(this._baseElevation+n,24),h="".concat(this._elevationPrefix).concat(c),_=Object.keys(this._classList).find(function(C){return C.startsWith(l._elevationPrefix)});(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[h]=!0,this._previousElevation=h)}},{key:"setPositionClasses",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,c=this._classList;c["mat-menu-before"]="before"===n,c["mat-menu-after"]="after"===n,c["mat-menu-above"]="above"===l,c["mat-menu-below"]="below"===l}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(n){this._animationDone.next(n),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var n=this;this._allItems.changes.pipe($r(this._allItems)).subscribe(function(l){n._directDescendantItems.reset(l.filter(function(c){return c._parentMenu===n})),n._directDescendantItems.notifyOnChanges()})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Lee))},e.\u0275dir=ve({type:e,contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Ree,5),Zt(l,PP,5),Zt(l,PP,4)),2&t&&(Ne(c=Le())&&(n.lazyContent=c.first),Ne(c=Le())&&(n._allItems=c),Ne(c=Le())&&(n.items=c))},viewQuery:function(t,n){var l;1&t&&wt(Xn,5),2&t&&Ne(l=Le())&&(n.templateRef=l.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),Fee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l,c,h))._elevationPrefix="mat-elevation-z",_._baseElevation=4,_}return n}(OP);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Lee))},e.\u0275cmp=ke({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,n){2&t&&Ke("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Xe([{provide:uX,useExisting:e}]),Pe],ngContentSelectors:Iee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,n){1&t&&(rr(),re(0,Zse,3,6,"ng-template"))},directives:[Ts],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[sH.transformMenu,sH.fadeInItems]},changeDetection:0}),e}(),Nee=new Ee("mat-menu-scroll-strategy"),Vee={provide:Nee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Hee=tp({passive:!0}),zee=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this._overlay=t,this._element=n,this._viewContainerRef=l,this._menuItemInstance=_,this._dir=C,this._focusMonitor=k,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Be.EMPTY,this._hoverSubscription=Be.EMPTY,this._menuCloseSubscription=Be.EMPTY,this._handleTouchStart=function(I){AE(I)||(D._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ye,this.onMenuOpen=this.menuOpened,this.menuClosed=new ye,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=h instanceof OP?h:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Hee),_&&(_._triggersSubmenu=this.triggersSubmenu())}return W(a,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(n){this.menu=n}},{key:"menu",get:function(){return this._menu},set:function(n){var l=this;n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(function(c){l._destroyMenu(c),("click"===c||"tab"===c)&&l._parentMaterialMenu&&l._parentMaterialMenu.closed.emit(c)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Hee),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var n=this;if(!this._menuOpen){this._checkMenu();var l=this._createOverlay(),c=l.getConfig();this._setPosition(c.positionStrategy),c.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,l.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return n.closeMenu()}),this._initMenu(),this.menu instanceof OP&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(n,l){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,l):this._element.nativeElement.focus(l)}},{key:"updatePosition",value:function(){var n;null===(n=this._overlayRef)||void 0===n||n.updatePosition()}},{key:"_destroyMenu",value:function(n){var l=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof OP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(vr(function(h){return"void"===h.toState}),or(1),Ht(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return l._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c.lazyContent&&c.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var n=0,l=this.menu.parentMenu;l;)n++,l=l.parentMenu;this.menu.setElevation(n)}}},{key:"_setIsMenuOpen",value:function(n){this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var n=this._getOverlayConfig();this._subscribeToPositions(n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new up({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(n){var l=this;this.menu.setPositionClasses&&n.positionChanges.subscribe(function(c){l.menu.setPositionClasses("start"===c.connectionPair.overlayX?"after":"before","top"===c.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(n){var c=cr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),h=c[0],_=c[1],k=cr("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),D=k[0],I=k[1],L=D,G=I,Y=h,Q=_,ie=0;this.triggersSubmenu()?(Q=h="before"===this.menu.xPosition?"start":"end",_=Y="end"===h?"start":"end",ie="bottom"===D?8:-8):this.menu.overlapTrigger||(L="top"===D?"bottom":"top",G="top"===I?"bottom":"top"),n.withPositions([{originX:h,originY:L,overlayX:Y,overlayY:D,offsetY:ie},{originX:_,originY:L,overlayX:Q,overlayY:D,offsetY:ie},{originX:h,originY:G,overlayX:Y,overlayY:I,offsetY:-ie},{originX:_,originY:G,overlayX:Q,overlayY:I,offsetY:-ie}])}},{key:"_menuClosingActions",value:function(){var n=this,l=this._overlayRef.backdropClick(),c=this._overlayRef.detachments();return ot(l,this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(vr(function(C){return C!==n._menuItemInstance}),vr(function(){return n._menuOpen})):ut(),c)}},{key:"_handleMousedown",value:function(n){ab(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;(13===l||32===l)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===l&&"ltr"===this.dir||37===l&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var n=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(vr(function(l){return l===n._menuItemInstance&&!l.disabled}),oH(0,BA)).subscribe(function(){n._openedBy="mouse",n.menu instanceof OP&&n.menu._isAnimating?n.menu._animationDone.pipe(or(1),oH(0,BA),Ht(n._parentMaterialMenu._hovered())).subscribe(function(){return n.openMenu()}):n.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ps(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N($n),N(Nee),N(uX,8),N(PP,10),N(Mr,8),N(ra))},e.\u0275dir=ve({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,n){1&t&&ne("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)})("click",function(c){return n._handleClick(c)}),2&t&&Ke("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),Uee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Vee],imports:[$t]}),e}(),tle=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Vee],imports:[[Wa,$t,Da,fp,Uee],lp,$t,Uee]}),e}(),nle=function(){var e=function(){function a(){F(this,a),this._vertical=!1,this._inset=!1}return W(a,[{key:"vertical",get:function(){return this._vertical},set:function(n){this._vertical=it(n)}},{key:"inset",get:function(){return this._inset},set:function(n){this._inset=it(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){2&t&&(Ke("aria-orientation",n.vertical?"vertical":"horizontal"),dt("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),rle=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t],$t]}),e}(),ile=function(){function e(){}return e.prototype.transform=function(a,t){return a.sort(void 0===t?function(l,c){return l>c?1:-1}:function(l,c){return l[t]>c[t]?1:-1})},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Gi({name:"sort",type:e,pure:!0}),e}(),ale=["trigger"];function ole(e,a){1&e&&me(0,"img",36),2&e&&z("src",J().icon,Gt)}function sle(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(5);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(5);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function lle(e,a){if(1&e&&(vt(0),A(1,"button",42),K(2),E(),A(3,"mat-menu",43,44),re(5,sle,1,1,"button",45),Uf(6,"sort"),E(),xn()),2&e){var t=a.$implicit,n=Pn(4);H(1),z("matMenuTriggerFor",n),H(1),On(t.key),H(1),z("overlapTrigger",!1),H(2),z("ngForOf",iw(6,4,t.value,"name"))}}function ule(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,lle,7,7,"ng-container",39),Uf(4,"keyvalue"),E(),A(5,"a",40),A(6,"i",17),K(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),K(10,"New"),E(),E(),A(11,"i",17),K(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Pn(2),n=J(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",Gf(4,3,n.grpTypes)),H(2),z("matMenuTriggerFor",t)}}function cle(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(4);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(4);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function fle(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,cle,1,1,"button",45),Uf(4,"sort"),E(),A(5,"a",40),A(6,"i",17),K(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),K(10,"New"),E(),E(),A(11,"i",17),K(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Pn(2),n=J(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",iw(4,3,n.oTypes,"name")),H(2),z("matMenuTriggerFor",t)}}function dle(e,a){if(1&e&&(vt(0),re(1,ule,13,5,"ng-container",8),re(2,fle,13,6,"ng-container",8),xn()),2&e){var t=J(2);H(1),z("ngIf",t.newGrouped),H(1),z("ngIf",!t.newGrouped)}}function hle(e,a){if(1&e){var t=De();vt(0),A(1,"a",47),ne("click",function(){pe(t);var l=J(2);return l.newAction.emit({param:void 0,table:l})}),A(2,"i",17),K(3,"insert_drive_file"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"New"),E(),E(),E(),xn()}}function ple(e,a){if(1&e&&(vt(0),re(1,dle,3,2,"ng-container",8),re(2,hle,7,0,"ng-container",8),xn()),2&e){var t=J();H(1),z("ngIf",void 0!==t.oTypes&&0!==t.oTypes.length),H(1),z("ngIf",void 0!==t.oTypes&&0===t.oTypes.length)}}function vle(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.editAction)}),A(2,"i",17),K(3,"edit"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Edit"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",1!==n.selection.selected.length)}}function gle(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){return pe(t),J().permissions()}),A(2,"i",17),K(3,"perm_identity"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Permissions"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",1!==n.selection.selected.length)}}function mle(e,a){if(1&e){var t=De();A(0,"a",50),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function _le(e,a){if(1&e&&(vt(0),re(1,mle,1,2,"a",49),xn()),2&e){var t=J();H(1),z("ngForOf",t.getcustomButtons())}}function yle(e,a){if(1&e){var t=De();vt(0),A(1,"a",51),ne("click",function(){return pe(t),J().export()}),A(2,"i",17),K(3,"import_export"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Export"),E(),E(),E(),xn()}}function ble(e,a){if(1&e){var t=De();vt(0),A(1,"a",52),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.deleteAction,!0)}),A(2,"i",17),K(3,"delete_forever"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Delete"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",n.selection.isEmpty())}}function Cle(e,a){if(1&e){var t=De();A(0,"button",53),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",17),K(2,"close"),E(),E()}}function wle(e,a){1&e&&me(0,"mat-header-cell")}function Sle(e,a){1&e&&(A(0,"i",17),K(1,"check_box"),E())}function kle(e,a){1&e&&(A(0,"i",17),K(1,"check_box_outline_blank"),E())}function Mle(e,a){if(1&e){var t=De();A(0,"mat-cell",56),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)}),re(1,Sle,2,0,"i",57),re(2,kle,2,0,"ng-template",null,58,ml),E()}if(2&e){var n=a.$implicit,l=Pn(3),c=J(2);H(1),z("ngIf",c.selection.isSelected(n))("ngIfElse",l)}}function xle(e,a){1&e&&(vt(0,54),re(1,wle,1,0,"mat-header-cell",22),re(2,Mle,4,2,"mat-cell",55),xn())}function Tle(e,a){1&e&&me(0,"mat-header-cell")}function Dle(e,a){if(1&e){var t=De();A(0,"mat-cell"),A(1,"div",59),ne("click",function(l){var h=pe(t).$implicit,_=J();return _.detailAction.emit({param:h,table:_}),l.stopPropagation()}),A(2,"i",17),K(3,"subdirectory_arrow_right"),E(),E(),E()}}function Ale(e,a){if(1&e&&(A(0,"mat-header-cell",63),K(1),E()),2&e){var t=J().$implicit;H(1),On(t.title)}}function Ele(e,a){if(1&e){var t=De();A(0,"mat-cell",64),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)})("contextmenu",function(_){var k=pe(t).$implicit,D=J().$implicit;return J().onContextMenu(k,D,_)}),me(1,"div",65),E()}if(2&e){var n=a.$implicit,l=J().$implicit,c=J();H(1),z("innerHtml",c.getRowColumn(n,l),Si)}}function Ple(e,a){1&e&&(vt(0,60),re(1,Ale,2,1,"mat-header-cell",61),re(2,Ele,2,1,"mat-cell",62),xn()),2&e&&il("matColumnDef",a.$implicit.name)}function Ole(e,a){1&e&&me(0,"mat-header-row")}function Ile(e,a){if(1&e&&me(0,"mat-row",66),2&e){var t=a.$implicit;z("ngClass",J().rowClass(t))}}function Rle(e,a){if(1&e&&(A(0,"div",67),K(1),A(2,"uds-translate"),K(3,"Selected items"),E(),E()),2&e){var t=J();H(1),Ve(" ",t.selection.selected.length," ")}}function Lle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).copyToClipboard()}),A(1,"i",72),K(2,"content_copy"),E(),A(3,"uds-translate"),K(4,"Copy"),E(),E()}}function Fle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J().item,c=J();return c.detailAction.emit({param:l,table:c})}),A(1,"i",72),K(2,"subdirectory_arrow_right"),E(),A(3,"uds-translate"),K(4,"Detail"),E(),E()}}function Nle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.editAction)}),A(1,"i",72),K(2,"edit"),E(),A(3,"uds-translate"),K(4,"Edit"),E(),E()}}function Vle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).permissions()}),A(1,"i",72),K(2,"perm_identity"),E(),A(3,"uds-translate"),K(4,"Permissions"),E(),E()}}function Ble(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function Hle(e,a){if(1&e){var t=De();A(0,"button",74),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.deleteAction)}),A(1,"i",72),K(2,"delete_forever"),E(),A(3,"uds-translate"),K(4,"Delete"),E(),E()}}function zle(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(3).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(3).isCustomDisabled(n))("innerHTML",n.html,Si)}}function Ule(e,a){if(1&e&&(vt(0),me(1,"mat-divider"),re(2,zle,1,2,"button",69),xn()),2&e){var t=J(2);H(2),z("ngForOf",t.getCustomAccelerators())}}function Gle(e,a){if(1&e&&(re(0,Lle,5,0,"button",68),re(1,Fle,5,0,"button",68),re(2,Nle,5,0,"button",68),re(3,Vle,5,0,"button",68),re(4,Ble,1,2,"button",69),re(5,Hle,5,0,"button",70),re(6,Ule,3,1,"ng-container",8)),2&e){var t=J();z("ngIf",!0===t.allowCopy),H(1),z("ngIf",t.detailAction.observers.length>0),H(1),z("ngIf",t.editAction.observers.length>0),H(1),z("ngIf",!0===t.hasPermissions),H(1),z("ngForOf",t.getCustomMenu()),H(1),z("ngIf",t.deleteAction.observers.length>0),H(1),z("ngIf",t.hasAccelerators)}}var jle=function(){return[5,10,25,100,1e3]},Yr=function(){function e(a,t){this.api=a,this.clipboard=t,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new ye,this.rowSelected=new ye,this.newAction=new ye,this.editAction=new ye,this.deleteAction=new ye,this.customButtonAction=new ye,this.detailAction=new ye,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new bee([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return e.prototype.ngOnInit=function(){var a=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(n,l){if(!(l in n))return"";var c=n[l];return"number"==typeof c?c:"string"==typeof c?c.toLocaleLowerCase():(null===c&&(c=7226578800),c.changingThisBreaksApplicationSecurity&&(c=c.changingThisBreaksApplicationSecurity),(""+c).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(n,l){try{a.columns.forEach(function(c){if((""+n[c.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(l))throw Error()})}catch(c){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new ip(!0===this.multiSelect,[]);var t=this.rest.permision();0==(t&QS.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),t!==QS.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(n){a.rest.tableInfo().subscribe(function(l){a.initialize(l,n)})})},e.prototype.initialize=function(a,t){var n=this;this.oTypes=t,this.types=new Map,this.grpTypes=new Map,t.forEach(function(c){n.types.set(c.type,c),void 0!==c.group&&(n.grpTypes.has(c.group)||n.grpTypes.set(c.group,[]),n.grpTypes.get(c.group).push(c))}),this.rowStyleInfo=void 0!==a["row-style"]&&void 0!==a["row-style"].field?a["row-style"]:null,this.title=a.title,this.subtitle=a.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var l=[];a.fields.forEach(function(c){for(var h in c)if(c.hasOwnProperty(h)){var _=c[h];l.push({name:h,title:_.title,type:void 0===_.type?Aa.ALPHANUMERIC:_.type,dict:_.dict}),(void 0===_.visible||_.visible)&&n.displayedColumns.push(h)}}),this.columns=l,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},e.prototype.overview=function(){var a=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(t){a.loading=!1,void 0!==a.onItem&&t.forEach(function(n){a.onItem(n)}),a.dataSource.data=t,a.loaded.emit({param:a.firstLoad,table:a}),a.firstLoad=!1},function(t){a.loading=!1}))},e.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ONLY_MENU&&a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type===Jr.ACCELERATOR}):[]},e.prototype.getRowColumn=function(a,t){var n=a[t.name];switch(t.type){case Aa.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case Aa.DATE:n=Lu("SHORT_DATE_FORMAT",n);break;case Aa.DATETIME:n=Lu("SHORT_DATETIME_FORMAT",n);break;case Aa.TIME:n=Lu("TIME_FORMAT",n);break;case Aa.DATETIMESEC:n=Lu("SHORT_DATE_FORMAT",n," H:i:s");break;case Aa.ICON:try{n=this.api.gui.icon(this.types.get(a.type).icon)+n}catch(l){}return this.api.safeString(n);case Aa.CALLBACK:break;case Aa.DICTIONARY:try{n=t.dict[n]}catch(l){n=""}}return n},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage(this.tableId+"sort-column",a.active),this.api.putOnStorage(this.tableId+"sort-direction",a.direction)},e.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},e.prototype.rowClass=function(a){var t=[];return this.selection.isSelected(a)&&t.push("selected"),null!==this.rowStyleInfo&&t.push(this.rowStyleInfo.prefix+a[this.rowStyleInfo.field]),t},e.prototype.emitIfSelection=function(a,t){void 0===t&&(t=!1);var n=this.selection.selected.length;n>0&&(!0===t||1===n)&&a.emit({table:this,param:n})},e.prototype.isCustomDisabled=function(a){switch(a.type){case void 0:case Jr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===a.disabled;case Jr.MULTI_SELECT:return this.selection.isEmpty()||!0===a.disabled;default:return!1}},e.prototype.emitCustom=function(a){!this.selection.selected.length&&a.type!==Jr.ALWAYS||(a.type===Jr.ACCELERATOR?this.api.navigation.goto(a.id,this.selection.selected[0],a.acceleratorProperties):this.customButtonAction.emit({param:a,table:this}))},e.prototype.clickRow=function(a,t){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-t.x)<16&&Math.abs(this.lastClickInfo.y-t.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(a),void(this.detailAction.observers.length?this.detailAction.emit({param:a,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:t.x,y:t.y},this.doSelect(a,t)},e.prototype.doSelect=function(a,t){if(t.ctrlKey)this.lastSel=a,this.selection.toggle(a);else if(t.shiftKey){if(this.selection.isEmpty())this.selection.toggle(a);else if(this.selection.clear(),this.lastSel!==a)for(var n=!1,c=0,h=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);c/,"")),this.clipValue=""+l,this.hasActions&&(this.selection.clear(),this.selection.select(a),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:a},this.contextMenu.openMenu())},e.prototype.selectElement=function(a,t){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(c,h){if(c[a]===t){var _=Math.floor(h/n.paginator.pageSize);n.selection.select(c),n.paginator.pageIndex=_,n.paginator.page.next({pageIndex:_,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},e.prototype.export=function(){Dee(this)},e.prototype.permissions=function(){!this.selection.selected.length||Ose.launch(this.api,this.rest,this.selection.selected[0])},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(Aee))},e.\u0275cmp=ke({type:e,selectors:[["uds-table"]],viewQuery:function(t,n){if(1&t&&(wt(ale,7),wt(j5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.contextMenu=l.first),Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,n){if(1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),re(3,ole,1,1,"img",3),K(4),E(),A(5,"div",4),K(6),E(),E(),A(7,"div",5),A(8,"div",6),A(9,"div",7),re(10,ple,3,2,"ng-container",8),re(11,vle,7,1,"ng-container",8),re(12,gle,7,1,"ng-container",8),re(13,_le,2,1,"ng-container",8),re(14,yle,7,0,"ng-container",8),re(15,ble,7,1,"ng-container",8),E(),A(16,"div",9),A(17,"div",10),A(18,"uds-translate"),K(19,"Filter"),E(),K(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",11),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(h){return n.filterText=h}),E(),re(23,Cle,3,0,"button",12),E(),E(),A(24,"div",13),me(25,"mat-paginator",14),E(),A(26,"div",15),A(27,"a",16),ne("click",function(){return n.overview()}),A(28,"i",17),K(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(h){return n.keyDown(h)}),A(31,"mat-table",19),ne("matSortChange",function(h){return n.sortChanged(h)}),re(32,xle,3,0,"ng-container",20),vt(33,21),re(34,Tle,1,0,"mat-header-cell",22),re(35,Dle,4,0,"mat-cell",23),xn(),re(36,Ple,3,1,"ng-container",24),re(37,Ole,1,0,"mat-header-row",25),re(38,Ile,1,1,"mat-row",26),E(),A(39,"div",27),A(40,"div",28),me(41,"mat-progress-spinner",29),E(),E(),E(),A(42,"div",30),K(43," \xa0 "),re(44,Rle,4,1,"div",31),E(),E(),me(45,"div",32,33),A(47,"mat-menu",null,34),re(49,Gle,7,7,"ng-template",35),E(),E()),2&t){var l=Pn(48);H(3),z("ngIf",void 0!==n.icon),H(1),Ve(" ",n.title," "),H(2),Ve(" ",n.subtitle," "),H(4),z("ngIf",n.newAction.observers.length>0),H(1),z("ngIf",n.editAction.observers.length>0),H(1),z("ngIf",!0===n.hasPermissions),H(1),z("ngIf",n.hasCustomButtons),H(1),z("ngIf",!0===n.allowExport),H(1),z("ngIf",n.deleteAction.observers.length>0),H(7),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(27,jle))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngIf",n.hasButtons),H(4),z("ngForOf",n.columns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns),H(1),z("hidden",!n.loading),H(5),z("ngIf",n.hasButtons&&n.selection.selected.length>0),H(1),Ur("left",n.contextMenuPosition.x)("top",n.contextMenuPosition.y),z("matMenuTriggerFor",l)}},directives:[Kt,Hn,_r,Hi,g,Mt,mr,j5,mp,nX,DP,rH,nH,tH,er,rX,iX,Oee,zee,Fee,Kse,PP,Rn,rk,iH,aH,pee,aX,oX,Ts,nle],pipes:[ID,ile],styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em} .dark-theme .mat-paginator-container{background-color:#303030} .dark-theme .buttons .mat-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}']}),e}(),Gee='pause'+django.gettext("Maintenance")+"",Wle='pause'+django.gettext("Exit maintenance mode")+"",Yle='pause'+django.gettext("Enter maintenance mode")+"",jee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"maintenance",html:Gee,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New provider"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit provider"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete provider"))},e.prototype.onMaintenance=function(a){var t=this,n=a.table.selection.selected[0],l=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,l).subscribe(function(c){c&&t.rest.providers.maintenance(n.id).subscribe(function(){a.table.overview()})})},e.prototype.onRowSelect=function(a){var t=a.table;this.customButtons[0].html=t.selection.selected.length>1||0===t.selection.selected.length?Gee:t.selection.selected[0].maintenance_mode?Wle:Yle},e.prototype.onDetail=function(a){this.api.navigation.gotoService(a.param.id)},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onMaintenance(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("rowSelected",function(c){return n.onRowSelect(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.providers)("onItem",n.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-services_count, .mat-column-user_services_count, .mat-column-maintenance_state{max-width:7rem;justify-content:center}"]}),e}(),Mb=function(){function e(a,t,n,l){this.title=a,this.data=t,this.columns=n,this.id=l,this.columnsDefinition=Array.from(n,function(c){var h={};return h[c.field]={visible:!0,title:c.title,type:void 0===c.type?Aa.ALPHANUMERIC:c.type},h})}return e.prototype.get=function(a){return Ar},e.prototype.getLogs=function(a){return Ar},e.prototype.overview=function(a){return"function"==typeof this.data?this.data():ut([])},e.prototype.summary=function(a){return this.overview()},e.prototype.put=function(a,t){return Ar},e.prototype.create=function(a){return Ar},e.prototype.save=function(a,t){return Ar},e.prototype.test=function(a,t){return Ar},e.prototype.delete=function(a){return Ar},e.prototype.permision=function(){return QS.ALL},e.prototype.getPermissions=function(a){return Ar},e.prototype.addPermission=function(a,t,n,l){return Ar},e.prototype.revokePermission=function(a){return Ar},e.prototype.types=function(){return ut([])},e.prototype.gui=function(a){return Ar},e.prototype.callback=function(a,t){return Ar},e.prototype.tableInfo=function(){return ut({fields:this.columnsDefinition,title:this.title})},e.prototype.detail=function(a,t){return null},e.prototype.invoke=function(a,t){return Ar},e}();function qle(e,a){if(1&e){var t=De();A(0,"button",24),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",8),K(2,"close"),E(),E()}}function Xle(e,a){if(1&e&&(A(0,"mat-header-cell",28),K(1),E()),2&e){var t=J().$implicit;H(1),On(t)}}function Zle(e,a){if(1&e&&(A(0,"mat-cell"),me(1,"div",29),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J();H(1),z("innerHtml",l.getRowColumn(t,n),Si)}}function Kle(e,a){1&e&&(vt(0,25),re(1,Xle,2,1,"mat-header-cell",26),re(2,Zle,2,1,"mat-cell",27),xn()),2&e&&z("matColumnDef",a.$implicit)}function $le(e,a){1&e&&me(0,"mat-header-row")}function Qle(e,a){if(1&e&&me(0,"mat-row",30),2&e){var t=a.$implicit;z("ngClass",J().rowClass(t))}}var Jle=function(){return[5,10,25,100,1e3]},ck=function(){function e(a){this.api=a,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new bee([]),this.selection=new ip}return e.prototype.ngOnInit=function(){var a=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(t){a.columns.push({name:t,title:t,type:"date"===t?Aa.DATETIMESEC:Aa.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},e.prototype.overview=function(){var a=this;this.rest.getLogs(this.itemId).subscribe(function(t){a.dataSource.data=t})},e.prototype.selectElement=function(a,t){},e.prototype.getRowColumn=function(a,t){var n=a[t];return"date"===t?n=Lu("SHORT_DATE_FORMAT",n," H:i:s"):"level"===t&&(n=function(e){return{1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[e]||"OTHER"}(n)),n},e.prototype.rowClass=function(a){return["level-"+a.level]},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage("logs-sort-column",a.active),this.api.putOnStorage("logs-sort-direction",a.direction)},e.prototype.export=function(){Dee(this)},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-logs-table"]],viewQuery:function(t,n){if(1&t&&(wt(j5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),me(3,"img",3),K(4," \xa0"),A(5,"uds-translate"),K(6,"Logs"),E(),E(),E(),A(7,"div",4),A(8,"div",5),A(9,"div",6),A(10,"a",7),ne("click",function(){return n.export()}),A(11,"i",8),K(12,"import_export"),E(),A(13,"span",9),A(14,"uds-translate"),K(15,"Export"),E(),E(),E(),E(),A(16,"div",10),A(17,"div",11),A(18,"uds-translate"),K(19,"Filter"),E(),K(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",12),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(c){return n.filterText=c}),E(),re(23,qle,3,0,"button",13),E(),E(),A(24,"div",14),me(25,"mat-paginator",15),E(),A(26,"div",16),A(27,"a",17),ne("click",function(){return n.overview()}),A(28,"i",8),K(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(c){return n.keyDown(c)}),A(31,"mat-table",19),ne("matSortChange",function(c){return n.sortChanged(c)}),re(32,Kle,3,1,"ng-container",20),re(33,$le,1,0,"mat-header-row",21),re(34,Qle,1,1,"mat-row",22),E(),E(),me(35,"div",23),E(),E()),2&t&&(H(3),z("src",n.api.staticURL("admin/img/icons/logs.png"),Gt),H(19),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(11,Jle))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngForOf",n.displayedColumns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns))},directives:[Hn,mp,_r,Hi,g,Mt,mr,Kt,j5,nX,DP,er,rX,iX,Rn,rk,rH,nH,tH,iH,pee,aH,aX,oX,Ts],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),e}();function eue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services pools"),E())}function tue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}var nue=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],rue=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.customButtons=[Il.getGotoButton(Nq,"id")],this.services=l.services,this.service=l.service}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:n,services:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.servicePools=new Mb(django.gettext("Service pools"),function(){return a.services.invoke(a.service.id+"/servicesPools")},nue,this.service.id+"infopsls")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),A(6,"mat-tab"),re(7,eue,2,0,"ng-template",1),me(8,"uds-table",2),E(),A(9,"mat-tab"),re(10,tue,2,0,"ng-template",1),A(11,"div",3),me(12,"uds-logs-table",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),K(16,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.service.name,"\n"),H(5),z("rest",n.servicePools)("customButtons",n.customButtons)("pageSize",6),H(4),z("rest",n.services)("itemId",n.service.id)("tableId","serviceInfo-d-log"+n.service.id)("pageSize",5))},directives:[Wr,Hn,Fr,Nc,Ru,Fc,Yr,ck,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),e}();function iue(e,a){if(1&e&&(A(0,"div",3),me(1,"div",4),me(2,"div",5),E()),2&e){var t=a.$implicit;H(1),z("innerHTML",t.gui.label,Si),H(1),z("innerHTML",t.value,Si)}}var lH=function(){function e(a){this.api=a,this.displayables=null}return e.prototype.ngOnInit=function(){this.processFields()},e.prototype.processFields=function(){var a=this;if(!this.gui||!this.value)return[];var t=this.gui.filter(function(n){return n.gui.type!==Pl.HIDDEN});t.forEach(function(n){var l=a.value[n.name];switch(n.gui.type){case Pl.CHECKBOX:n.value=l?django.gettext("Yes"):django.gettext("No");break;case Pl.PASSWORD:n.value=django.gettext("(hidden)");break;case Pl.CHOICE:var c=M5.locateChoice(l,n);n.value=c.text;break;case Pl.MULTI_CHOICE:n.value=django.gettext("Selected items :")+l.length;break;case Pl.IMAGECHOICE:c=M5.locateChoice(l,n),n.value=a.api.safeString(a.api.gui.icon(c.img)+" "+c.text);break;default:n.value=l}(""===n.value||null==n.value)&&(n.value="(empty)")}),this.displayables=t},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),re(2,iue,3,2,"div",2),E(),me(3,"div"),E()),2&t&&(H(2),z("ngForOf",n.displayables))},directives:[er],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:bold;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),e}();function aue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function oue(e,a){if(1&e&&me(0,"uds-information",15),2&e){var t=J(2);z("value",t.provider)("gui",t.gui)}}function sue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services"),E())}function lue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Usage"),E())}function uue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function cue(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,aue,2,0,"ng-template",9),A(5,"div",10),re(6,oue,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,sue,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewService(c)})("editAction",function(c){return pe(t),J().onEditService(c)})("deleteAction",function(c){return pe(t),J().onDeleteService(c)})("customButtonAction",function(c){return pe(t),J().onInformation(c)})("loaded",function(c){return pe(t),J().onLoad(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,lue,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,uue,2,0,"ng-template",9),A(17,"div",10),me(18,"uds-logs-table",14),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.provider&&n.gui),H(4),z("rest",n.services)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-services"+n.provider.id),H(4),z("rest",n.usage)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-usage"+n.provider.id),H(4),z("rest",n.services.parentModel)("itemId",n.provider.id)("tableId","providers-d-log"+n.provider.id)}}var fue=function(e){return["/providers",e]},Wee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.provider=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).subscribe(function(n){a.provider=n,a.services.parentModel.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onInformation=function(a){rue.launch(this.api,this.services,a.table.selection.selected[0])},e.prototype.onNewService=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New service"),!1)},e.prototype.onEditService=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit service"),!1)},e.prototype.onDeleteService=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service"))},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user service"))},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("service");if(void 0!==t){this.selectedTab=1;var n=a.table;n.dataSource.data.forEach(function(l){l.id===t&&n.selection.select(l)})}}},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,cue,19,17,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,fue,n.services.parentId)),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(1),Ve(" \xa0",null==n.provider?null:n.provider.name," "),H(1),z("ngIf",null!==n.provider))},directives:[xl,Kt,Nc,Ru,Fc,Yr,ck,Hn,lH],styles:[""]}),e}(),Yee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},e.prototype.onDetail=function(a){this.api.navigation.gotoAuthenticatorDetail(a.param.id)},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Authenticator"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Authenticator"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Authenticator"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible)},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),due=["panel"];function hue(e,a){if(1&e&&(A(0,"div",0,1),Wt(2),E()),2&e){var t=a.id,n=J();z("id",n.id)("ngClass",n._classList),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}var pue=["*"],vue=0,gue=function e(a,t){F(this,e),this.source=a,this.option=t},mue=El(function(){return function e(){F(this,e)}}()),qee=new Ee("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),yue=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this))._changeDetectorRef=l,C._elementRef=c,C._activeOptionChanges=Be.EMPTY,C.showPanel=!1,C._isOpen=!1,C.displayWith=null,C.optionSelected=new ye,C.opened=new ye,C.closed=new ye,C.optionActivated=new ye,C._classList={},C.id="mat-autocomplete-".concat(vue++),C.inertGroups=(null==_?void 0:_.SAFARI)||!1,C._autoActiveFirstOption=!!h.autoActiveFirstOption,C}return W(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(c){this._autoActiveFirstOption=it(c)}},{key:"classList",set:function(c){this._classList=c&&c.length?G3(c).reduce(function(h,_){return h[_]=!0,h},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new wE(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(h){c.optionActivated.emit({source:c,option:c.options.toArray()[h]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(c){this.panel&&(this.panel.nativeElement.scrollTop=c)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(c){var h=new gue(this,c);this.optionSelected.emit(h)}},{key:"_getPanelAriaLabelledby",value:function(c){return this.ariaLabel?null:this.ariaLabelledby?(c?c+" ":"")+this.ariaLabelledby:c}},{key:"_setVisibilityClasses",value:function(c){c[this._visibleClass]=this.showPanel,c[this._hiddenClass]=!this.showPanel}}]),n}(mue);return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Ue),N(qee),N(en))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Xn,7),wt(due,5)),2&t&&(Ne(l=Le())&&(n.template=l.first),Ne(l=Le())&&(n.panel=l.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Pe]}),e}(),cX=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",l._hiddenClass="mat-autocomplete-hidden",l}return n}(yue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,GS,5),Zt(l,Pi,5)),2&t&&(Ne(c=Le())&&(n.optionGroups=c),Ne(c=Le())&&(n.options=c))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Xe([{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:pue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,n){1&t&&(rr(),re(0,hue,3,4,"ng-template"))},directives:[Ts],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),e}(),Xee=new Ee("mat-autocomplete-scroll-strategy"),wue={provide:Xee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Sue={provide:s,useExisting:Sn(function(){return uH}),multi:!0},kue=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){var G=this;F(this,a),this._element=t,this._overlay=n,this._viewContainerRef=l,this._zone=c,this._changeDetectorRef=h,this._dir=C,this._formField=k,this._document=D,this._viewportRuler=I,this._defaults=L,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Be.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,this._windowBlurHandler=function(){G._canOpenOnNextFocus=G._document.activeElement!==G._element.nativeElement||G.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Ly(function(){return G.autocomplete&&G.autocomplete.options?ot.apply(void 0,At(G.autocomplete.options.map(function(Y){return Y.onSelectionChange}))):G._zone.onStable.pipe(or(1),xa(function(){return G.optionSelections}))}),this._scrollStrategy=_}return W(a,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(n){this._autocompleteDisabled=it(n)}},{key:"ngAfterViewInit",value:function(){var n=this,l=this._getWindow();void 0!==l&&this._zone.runOutsideAngular(function(){return l.addEventListener("blur",n._windowBlurHandler)})}},{key:"ngOnChanges",value:function(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var n=this._getWindow();void 0!==n&&n.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var n=this;return ot(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(vr(function(){return n._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(vr(function(){return n._overlayAttached})):ut()).pipe(He(function(l){return l instanceof d5?l:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var n=this;return ot(Tl(this._document,"click"),Tl(this._document,"auxclick"),Tl(this._document,"touchend")).pipe(vr(function(l){var c=rp(l),h=n._formField?n._formField._elementRef.nativeElement:null,_=n.connectedTo?n.connectedTo.elementRef.nativeElement:null;return n._overlayAttached&&c!==n._element.nativeElement&&(!h||!h.contains(c))&&(!_||!_.contains(c))&&!!n._overlayRef&&!n._overlayRef.overlayElement.contains(c)}))}},{key:"writeValue",value:function(n){var l=this;Promise.resolve(null).then(function(){return l._setTriggerValue(n)})}},{key:"registerOnChange",value:function(n){this._onChange=n}},{key:"registerOnTouched",value:function(n){this._onTouched=n}},{key:"setDisabledState",value:function(n){this._element.nativeElement.disabled=n}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;if(27===l&&!Bi(n)&&n.preventDefault(),this.activeOption&&13===l&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){var c=this.autocomplete._keyManager.activeItem,h=38===l||40===l;this.panelOpen||9===l?this.autocomplete._keyManager.onKeydown(n):h&&this._canOpen()&&this.openPanel(),(h||this.autocomplete._keyManager.activeItem!==c)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(n){var l=n.target,c=l.value;"number"===l.type&&(c=""==c?null:parseFloat(c)),this._previousValue!==c&&(this._previousValue=c,this._onChange(c),this._canOpen()&&this._document.activeElement===n.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(n?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var n=this;return ot(this._zone.onStable.pipe(or(1)),this.autocomplete.options.changes.pipe(Ya(function(){return n._positionStrategy.reapplyLastPosition()}),oH(0))).pipe(xa(function(){var h=n.panelOpen;return n._resetActiveItem(),n.autocomplete._setVisibility(),n.panelOpen&&(n._overlayRef.updatePosition(),h!==n.panelOpen&&n.autocomplete.opened.emit()),n.panelClosingActions}),or(1)).subscribe(function(h){return n._setValueAndClose(h)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(n){var l=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n,c=null!=l?l:"";this._formField?this._formField._control.value=c:this._element.nativeElement.value=c,this._previousValue=c}},{key:"_setValueAndClose",value:function(n){n&&n.source&&(this._clearPreviousSelectedOption(n.source),this._setTriggerValue(n.source.value),this._onChange(n.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(n.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(n){this.autocomplete.options.forEach(function(l){l!==n&&l.selected&&l.deselect()})}},{key:"_attachOverlay",value:function(){var l,n=this,c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new Ps(this.autocomplete.template,this._viewContainerRef,{id:null===(l=this._formField)||void 0===l?void 0:l.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,c.keydownEvents().subscribe(function(_){(27===_.keyCode&&!Bi(_)||38===_.keyCode&&Bi(_,"altKey"))&&(n._resetActiveItem(),n._closeKeyEventStream.next(),_.stopPropagation(),_.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){n.panelOpen&&c&&c.updateSize({width:n._getPanelWidth()})})),c&&!c.hasAttached()&&(c.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var h=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&h!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var n;return new up({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(n=this._defaults)||void 0===n?void 0:n.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}},{key:"_setStrategyPositions",value:function(n){var _,l=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass,h=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?h:"below"===this.position?l:[].concat(l,h),n.withPositions(_)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var n=this.autocomplete;n.autoActiveFirstOption?n._keyManager.setFirstItemActive():n._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var n=this._element.nativeElement;return!n.readOnly&&!n.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var n;return(null===(n=this._document)||void 0===n?void 0:n.defaultView)||window}},{key:"_scrollToOption",value:function(n){var l=this.autocomplete,c=jS(n,l.options,l.optionGroups);if(0===n&&1===c)l._setScrollTop(0);else if(l.panel){var h=l.options.toArray()[n];if(h){var _=h._getHostElement(),C=Cb(_.offsetTop,_.offsetHeight,l._getScrollTop(),l.panel.nativeElement.offsetHeight);l._setScrollTop(C)}}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N($n),N(ft),N(Vt),N(Xee),N(Mr,8),N(ik,9),N(lt,8),N(yo),N(qee,8))},e.\u0275dir=ve({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[an]}),e}(),uH=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",l}return n}(kue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,n){1&t&&ne("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(c){return n._handleInput(c)})("keydown",function(c){return n._handleKeydown(c)}),2&t&&Ke("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",!n.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[Xe([Sue]),Pe]}),e}(),Mue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[wue],imports:[[fp,WS,$t,Wa],lp,WS,$t]}),e}();function xue(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),K(2,"Edit user"),E(),K(3),E()),2&e){var t=J();H(3),Ve(" ",t.user.name," ")}}function Tue(e,a){1&e&&(A(0,"uds-translate"),K(1,"New user"),E())}function Due(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",19),ne("ngModelChange",function(c){return pe(t),J().user.name=c}),E(),E()}if(2&e){var n=J();H(2),Ve(" ",n.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",n.user.name)("disabled",n.user.id)}}function Aue(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function Eue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",20),ne("ngModelChange",function(h){return pe(t),J().user.name=h})("input",function(h){return pe(t),J().filterUser(h)}),E(),A(4,"mat-autocomplete",null,21),re(6,Aue,2,3,"mat-option",16),E(),E()}if(2&e){var n=Pn(5),l=J();H(2),Ve(" ",l.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",l.user.name)("matAutocomplete",n),H(3),z("ngForOf",l.users)}}function Pue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",23),ne("ngModelChange",function(c){return pe(t),J().user.password=c}),E(),E()}if(2&e){var n=J();H(2),Ve(" ",n.authenticator.type_info.passwordLabel," "),H(1),z("ngModel",n.user.password)}}function Oue(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var Zee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.users=[],this.authenticator=l.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==l.user&&(this.user.id=l.user.id,this.user.name=l.user.name)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,user:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(t){a.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(t){a.user=t,a.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},function(t){a.dialogRef.close()})},e.prototype.roleChanged=function(a){this.user.is_admin="admin"===a,this.user.staff_member="admin"===a||"staff"===a},e.prototype.filterUser=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"user",a.target.value,100).subscribe(function(l){t.users.length=0,l.forEach(function(c){t.users.push(c)})})},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,xue,4,1,"div",1),re(2,Tue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Due,4,3,"mat-form-field",4),re(7,Eue,7,4,"mat-form-field",4),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),K(11,"Real name"),E(),E(),A(12,"input",5),ne("ngModelChange",function(h){return n.user.real_name=h}),E(),E(),A(13,"mat-form-field"),A(14,"mat-label"),A(15,"uds-translate"),K(16,"Comments"),E(),E(),A(17,"input",6),ne("ngModelChange",function(h){return n.user.comments=h}),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),K(21,"State"),E(),E(),A(22,"mat-select",7),ne("ngModelChange",function(h){return n.user.state=h}),A(23,"mat-option",8),A(24,"uds-translate"),K(25,"Enabled"),E(),E(),A(26,"mat-option",9),A(27,"uds-translate"),K(28,"Disabled"),E(),E(),A(29,"mat-option",10),A(30,"uds-translate"),K(31,"Blocked"),E(),E(),E(),E(),A(32,"mat-form-field"),A(33,"mat-label"),A(34,"uds-translate"),K(35,"Role"),E(),E(),A(36,"mat-select",11),ne("ngModelChange",function(h){return n.user.role=h})("valueChange",function(h){return n.roleChanged(h)}),A(37,"mat-option",12),A(38,"uds-translate"),K(39,"Admin"),E(),E(),A(40,"mat-option",13),A(41,"uds-translate"),K(42,"Staff member"),E(),E(),A(43,"mat-option",14),A(44,"uds-translate"),K(45,"User"),E(),E(),E(),E(),re(46,Pue,4,2,"mat-form-field",4),A(47,"mat-form-field"),A(48,"mat-label"),A(49,"uds-translate"),K(50,"Groups"),E(),E(),A(51,"mat-select",15),ne("ngModelChange",function(h){return n.user.groups=h}),re(52,Oue,2,2,"mat-option",16),E(),E(),E(),E(),A(53,"mat-dialog-actions"),A(54,"button",17),A(55,"uds-translate"),K(56,"Cancel"),E(),E(),A(57,"button",18),ne("click",function(){return n.save()}),A(58,"uds-translate"),K(59,"Ok"),E(),E(),E()),2&t){var l=Pn(3);H(1),z("ngIf",n.user.id)("ngIfElse",l),H(5),z("ngIf",!1===n.authenticator.type_info.canSearchUsers||n.user.id),H(1),z("ngIf",!0===n.authenticator.type_info.canSearchUsers&&!n.user.id),H(5),z("ngModel",n.user.real_name),H(5),z("ngModel",n.user.comments),H(5),z("ngModel",n.user.state),H(14),z("ngModel",n.user.role),H(10),z("ngIf",n.authenticator.type_info.needsPassword),H(5),z("ngModel",n.user.groups),H(1),z("ngForOf",n.groups)}},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,$a,Pi,er,Qr,Rn,Lr,uH,cX],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Iue=["thumbContainer"],Rue=["toggleBar"],Lue=["input"],Fue=function(a){return{enterDuration:a}},Nue=["*"],Vue=new Ee("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),Bue=0,Hue={provide:s,useExisting:Sn(function(){return fk}),multi:!0},zue=function e(a,t){F(this,e),this.source=a,this.checked=t},Uue=gp(Eu(El(ia(function(){return function e(a){F(this,e),this._elementRef=a}}())))),fk=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._focusMonitor=c,D._changeDetectorRef=h,D.defaults=C,D._onChange=function(I){},D._onTouched=function(){},D._uniqueId="mat-slide-toggle-".concat(++Bue),D._required=!1,D._checked=!1,D.name=null,D.id=D._uniqueId,D.labelPosition="after",D.ariaLabel=null,D.ariaLabelledby=null,D.change=new ye,D.toggleChange=new ye,D.tabIndex=parseInt(_)||0,D.color=D.defaultColor=C.color||"accent",D._noopAnimations="NoopAnimations"===k,D}return W(n,[{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"checked",get:function(){return this._checked},set:function(c){this._checked=it(c),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){"keyboard"===h||"program"===h?c._inputElement.nativeElement.focus():h||Promise.resolve().then(function(){return c._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(c){c.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(c){c.stopPropagation()}},{key:"writeValue",value:function(c){this.checked=!!c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(c,h){h?this._focusMonitor.focusVia(this._inputElement,h,c):this._inputElement.nativeElement.focus(c)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new zue(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(Uue);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ra),N(Vt),Ci("tabindex"),N(Vue),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,n){var l;1&t&&(wt(Iue,5),wt(Rue,5),wt(Lue,5)),2&t&&(Ne(l=Le())&&(n._thumbEl=l.first),Ne(l=Le())&&(n._thumbBarEl=l.first),Ne(l=Le())&&(n._inputElement=l.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,n){2&t&&(Zi("id",n.id),Ke("tabindex",n.disabled?null:-1)("aria-label",null)("aria-labelledby",null),dt("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Xe([Hue]),Pe],ngContentSelectors:Nue,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,n){if(1&t&&(rr(),A(0,"label",0,1),A(2,"div",2,3),A(4,"input",4,5),ne("change",function(_){return n._onChangeEvent(_)})("click",function(_){return n._onInputClick(_)}),E(),A(6,"div",6,7),me(8,"div",8),A(9,"div",9),me(10,"div",10),E(),E(),E(),A(11,"span",11,12),ne("cdkObserveContent",function(){return n._onLabelTextChange()}),A(13,"span",13),K(14,"\xa0"),E(),Wt(15),E(),E()),2&t){var l=Pn(1),c=Pn(12);Ke("for",n.inputId),H(2),dt("mat-slide-toggle-bar-no-side-margin",!c.textContent||!c.textContent.trim()),H(2),z("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),Ke("name",n.name)("aria-checked",n.checked.toString())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",vl(18,Fue,n._noopAnimations?0:150))}},directives:[Ls,nb],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e}(),Gue={provide:b,useExisting:Sn(function(){return Kee}),multi:!0},Kee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(R5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Xe([Gue]),Pe]}),e}(),$ee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),jue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$ee,Da,$t,ld],$ee,$t]}),e}();function Wue(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),K(2,"Edit group"),E(),K(3),E()),2&e){var t=J();H(3),Ve(" ",t.group.name," ")}}function Yue(e,a){1&e&&(A(0,"uds-translate"),K(1,"New group"),E())}function que(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",13),ne("ngModelChange",function(c){return pe(t),J(2).group.name=c}),E(),E()}if(2&e){var n=J(2);H(2),Ve(" ",n.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",n.group.name)("disabled",n.group.id)}}function Xue(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function Zue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",14),ne("ngModelChange",function(h){return pe(t),J(2).group.name=h})("input",function(h){return pe(t),J(2).filterGroup(h)}),E(),A(4,"mat-autocomplete",null,15),re(6,Xue,2,3,"mat-option",16),E(),E()}if(2&e){var n=Pn(5),l=J(2);H(2),Ve(" ",l.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",l.group.name)("matAutocomplete",n),H(3),z("ngForOf",l.fltrGroup)}}function Kue(e,a){if(1&e&&(vt(0),re(1,que,4,3,"mat-form-field",12),re(2,Zue,7,4,"mat-form-field",12),xn()),2&e){var t=J();H(1),z("ngIf",!1===t.authenticator.type_info.canSearchGroups||t.group.id),H(1),z("ngIf",!0===t.authenticator.type_info.canSearchGroups&&!t.group.id)}}function $ue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),A(2,"uds-translate"),K(3,"Meta group name"),E(),E(),A(4,"input",13),ne("ngModelChange",function(c){return pe(t),J().group.name=c}),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.group.name)("disabled",n.group.id)}}function Que(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Jue(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Service Pools"),E(),E(),A(5,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.pools=c}),re(6,Que,2,2,"mat-option",16),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.group.pools),H(1),z("ngForOf",n.servicePools)}}function ece(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=J().$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function tce(e,a){if(1&e&&(vt(0),re(1,ece,2,2,"mat-option",22),xn()),2&e){var t=a.$implicit;H(1),z("ngIf","group"===t.type)}}function nce(e,a){if(1&e){var t=De();A(0,"div",19),A(1,"span",20),A(2,"uds-translate"),K(3,"Match mode"),E(),E(),A(4,"mat-slide-toggle",6),ne("ngModelChange",function(c){return pe(t),J().group.meta_if_any=c}),K(5),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Selected Groups"),E(),E(),A(10,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.groups=c}),re(11,tce,2,1,"ng-container",21),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.group.meta_if_any),H(1),Ve(" ",n.getMatchValue()," "),H(5),z("ngModel",n.group.groups),H(1),z("ngForOf",n.groups)}}var Qee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.fltrGroup=[],this.authenticator=l.authenticator,this.group={id:void 0,type:l.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==l.group&&(this.group.id=l.group.id,this.group.type=l.group.type,this.group.name=l.group.name)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,groupType:n,group:l},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&t.get(this.group.id).subscribe(function(n){a.group=n},function(n){a.dialogRef.close()}),"meta"===this.group.type?t.summary().subscribe(function(n){return a.groups=n}):this.rest.servicesPools.summary().subscribe(function(n){return a.servicePools=n})},e.prototype.filterGroup=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"group",a.target.value,100).subscribe(function(l){t.fltrGroup.length=0,l.forEach(function(c){t.fltrGroup.push(c)})})},e.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Wue,4,1,"div",1),re(2,Yue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Kue,3,2,"ng-container",1),re(7,$ue,5,2,"ng-template",null,4,ml),A(9,"mat-form-field"),A(10,"mat-label"),A(11,"uds-translate"),K(12,"Comments"),E(),E(),A(13,"input",5),ne("ngModelChange",function(C){return n.group.comments=C}),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),K(17,"State"),E(),E(),A(18,"mat-select",6),ne("ngModelChange",function(C){return n.group.state=C}),A(19,"mat-option",7),A(20,"uds-translate"),K(21,"Enabled"),E(),E(),A(22,"mat-option",8),A(23,"uds-translate"),K(24,"Disabled"),E(),E(),E(),E(),re(25,Jue,7,2,"ng-container",1),re(26,nce,12,4,"ng-template",null,9,ml),E(),E(),A(28,"mat-dialog-actions"),A(29,"button",10),A(30,"uds-translate"),K(31,"Cancel"),E(),E(),A(32,"button",11),ne("click",function(){return n.save()}),A(33,"uds-translate"),K(34,"Ok"),E(),E(),E()),2&t){var l=Pn(3),c=Pn(8),h=Pn(27);H(1),z("ngIf",n.group.id)("ngIfElse",l),H(5),z("ngIf","group"===n.group.type)("ngIfElse",c),H(7),z("ngModel",n.group.comments),H(5),z("ngModel",n.group.state),H(7),z("ngIf","group"===n.group.type)("ngIfElse",h)}},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,$a,Pi,Qr,Rn,Lr,uH,cX,er,fk],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function rce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function ice(e,a){if(1&e&&(A(0,"mat-tab"),re(1,rce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.group)("pageSize",6)}}function ace(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services Pools"),E())}function oce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,ace,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.servicesPools)("pageSize",6)}}function sce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned Services"),E())}function lce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,sce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.userServices)("pageSize",6)}}var uce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],cce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],fce=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],dce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.users=l.users,this.user=l.user}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:t,user:n},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(t){a.group=new Mb(django.gettext("Groups"),function(){return a.rest.authenticators.detail(a.users.parentId,"groups").overview().pipe(He(function(h){return h.filter(function(_){return t.groups.includes(_.id)})}))},uce,a.user.id+"infogrp"),a.servicesPools=new Mb(django.gettext("Services Pools"),function(){return a.users.invoke(a.user.id+"/servicesPools")},cce,a.user.id+"infopool"),a.userServices=new Mb(django.gettext("Assigned services"),function(){return a.users.invoke(a.user.id+"/userServices").pipe(He(function(h){return h.map(function(_){return _.in_use=a.api.yesno(_.in_use),_})}))},fce,a.user.id+"userservpool")})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),re(6,ice,3,2,"mat-tab",1),re(7,oce,3,2,"mat-tab",1),re(8,lce,3,2,"mat-tab",1),E(),E(),A(9,"mat-dialog-actions"),A(10,"button",2),A(11,"uds-translate"),K(12,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.user.name,"\n"),H(3),z("ngIf",n.group),H(1),z("ngIf",n.servicesPools),H(1),z("ngIf",n.userServices))},directives:[Wr,Hn,Fr,Nc,Kt,Qr,Rn,Lr,Ru,Fc,Yr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function hce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services Pools"),E())}function pce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,hce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.servicesPools)("pageSize",6)}}function vce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Users"),E())}function gce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,vce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.users)("pageSize",6)}}function mce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function _ce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,mce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.groups)("pageSize",6)}}var yce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],bce=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:Aa.DATETIME}],Cce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],wce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:n,groups:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new Mb(django.gettext("Service pools"),function(){return t.invoke(a.data.group.id+"/servicesPools")},yce,this.data.group.id+"infopls"),this.users=new Mb(django.gettext("Users"),function(){return t.invoke(a.data.group.id+"/users").pipe(He(function(h){return h.map(function(_){return _.state="A"===_.state?django.gettext("Enabled"):"I"===_.state?django.gettext("Disabled"):django.gettext("Blocked"),_})}))},bce,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new Mb(django.gettext("Groups"),function(){return t.overview().pipe(He(function(h){return h.filter(function(_){return a.data.group.groups.includes(_.id)})}))},Cce,this.data.group.id+"infogrps"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),E(),A(3,"mat-dialog-content"),A(4,"mat-tab-group"),re(5,pce,3,2,"mat-tab",1),re(6,gce,3,2,"mat-tab",1),re(7,_ce,3,2,"mat-tab",1),E(),E(),A(8,"mat-dialog-actions"),A(9,"button",2),A(10,"uds-translate"),K(11,"Ok"),E(),E(),E()),2&t&&(H(5),z("ngIf",n.servicesPools),H(1),z("ngIf",n.users),H(1),z("ngIf",n.groups))},directives:[Wr,Hn,Fr,Nc,Kt,Qr,Rn,Lr,Ru,Fc,Yr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Sce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function kce(e,a){if(1&e&&me(0,"uds-information",16),2&e){var t=J(2);z("value",t.authenticator)("gui",t.gui)}}function Mce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Users"),E())}function xce(e,a){if(1&e){var t=De();A(0,"uds-table",17),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("newAction",function(c){return pe(t),J(2).onNewUser(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Tce(e,a){if(1&e){var t=De();A(0,"uds-table",18),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Dce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Ace(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Ece(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,Sce,2,0,"ng-template",9),A(5,"div",10),re(6,kce,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Mce,2,0,"ng-template",9),A(9,"div",10),re(10,xce,1,6,"uds-table",12),re(11,Tce,1,6,"uds-table",13),E(),E(),A(12,"mat-tab"),re(13,Dce,2,0,"ng-template",9),A(14,"div",10),A(15,"uds-table",14),ne("loaded",function(c){return pe(t),J().onLoad(c)})("newAction",function(c){return pe(t),J().onNewGroup(c)})("editAction",function(c){return pe(t),J().onEditGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)})("customButtonAction",function(c){return pe(t),J().onGroupInformation(c)}),E(),E(),E(),A(16,"mat-tab"),re(17,Ace,2,0,"ng-template",9),A(18,"div",10),me(19,"uds-logs-table",15),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.authenticator&&n.gui),H(4),z("ngIf",n.authenticator.type_info.canCreateUsers),H(1),z("ngIf",!n.authenticator.type_info.canCreateUsers),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("tableId","authenticators-d-groups"+n.authenticator.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.rest.authenticators)("itemId",n.authenticator.id)("tableId","authenticators-d-log"+n.authenticator.id)}}var Pce=function(e){return["/authenticators",e]},fX=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).subscribe(function(n){a.authenticator=n,a.rest.authenticators.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");a.table.selectElement("id",t||n)}},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onNewUser=function(a){Zee.launch(this.api,this.authenticator).subscribe(function(t){return a.table.overview()})},e.prototype.onEditUser=function(a){Zee.launch(this.api,this.authenticator,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteUser=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user"))},e.prototype.onNewGroup=function(a){Qee.launch(this.api,this.authenticator,a.param.type).subscribe(function(t){return a.table.overview()})},e.prototype.onEditGroup=function(a){Qee.launch(this.api,this.authenticator,a.param.type,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete group"))},e.prototype.onUserInformation=function(a){dce.launch(this.api,this.users,a.table.selection.selected[0])},e.prototype.onGroupInformation=function(a){wce.launch(this.api,this.groups,a.table.selection.selected[0])},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Ece,20,14,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Pce,n.authenticator?n.authenticator.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(1),Ve(" \xa0",null==n.authenticator?null:n.authenticator.name," "),H(1),z("ngIf",n.authenticator))},directives:[xl,Kt,Nc,Ru,Fc,Yr,ck,Hn,lH],styles:[""]}),e}(),Jee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New OS Manager"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit OS Manager"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete OS Manager"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),ete=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Transport"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Transport"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Transport"))},e.prototype.processElement=function(a){try{a.allowed_oss=a.allowed_oss.map(function(t){return t.id}).join(", ")}catch(t){a.allowed_oss=""}},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),e}(),tte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Network"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Network"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Network"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),nte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Proxy"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Proxy"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Proxy"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),rte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(_J,"provider_id"),Il.getGotoButton(yJ,"provider_id","service_id"),Il.getGotoButton(wJ,"osmanager_id"),Il.getGotoButton(SJ,"pool_group_id")],this.editing=!1}return e.prototype.ngOnInit=function(){},e.prototype.onChange=function(a){var t=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===a.on||"service_id"===a.on.field.name){if(""===a.all.service_id.value)return a.all.osmanager_id.gui.values.length=0,void n.forEach(function(l){return a.all[l].gui.rdonly=!0});this.rest.providers.service(a.all.service_id.value).subscribe(function(l){a.all.allow_users_reset.gui.rdonly=!l.info.can_reset,a.all.osmanager_id.gui.values.length=0,t.editing||(a.all.osmanager_id.gui.rdonly=!l.info.needs_manager),!0===l.info.needs_manager?t.rest.osManagers.overview().subscribe(function(c){c.forEach(function(h){h.servicesTypes.forEach(function(_){l.info.servicesTypeProvided.includes(_)&&a.all.osmanager_id.gui.values.push({id:h.id,text:h.name})})}),a.all.osmanager_id.value=a.all.osmanager_id.gui.values.length>0?a.all.osmanager_id.value||a.all.osmanager_id.gui.values[0].id:""}):(a.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),a.all.osmanager_id.value=""),n.forEach(function(c){return a.all[c].gui.rdonly=!l.info.uses_cache}),a.all.cache_l2_srvs.gui.rdonly=!1===l.info.uses_cache||!1===l.info.uses_cache_l2,a.all.publish_on_save&&(a.all.publish_on_save.gui.rdonly=!l.info.needs_publication)}),n.forEach(function(l){a.all[l].gui.rdonly=!0})}},e.prototype.onNew=function(a){var t=this;this.editing=!1,this.api.gui.forms.typedNewForm(a,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Pl.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(n){return t.onChange(n)})},e.prototype.onEdit=function(a){var t=this;this.editing=!0,this.api.gui.forms.typedEditForm(a,django.gettext("Edit Service Pool"),!1).subscribe(function(n){return t.onChange(n)})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service pool"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.show_transports=this.api.yesno(a.show_transports),a.restrained?(a.name='warning '+this.api.gui.icon(a.info.icon)+a.name,a.state="T"):(a.name=this.api.gui.icon(a.info.icon)+a.name,a.meta_member.length>0&&(a.state="V")),a.name=this.api.safeString(a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onDetail=function(a){this.api.navigation.gotoServicePoolDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),e}();function Oce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Ice(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function Rce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var ite=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=l.userService,this.userServices=l.userServices}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,userServices:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){(""===a.userFilter||n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Change owner of assigned service"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Authenticator"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(10,Oce,2,2,"mat-option",3),E(),E(),A(11,"mat-form-field"),A(12,"mat-label"),A(13,"uds-translate"),K(14,"User"),E(),E(),A(15,"mat-select",4),ne("ngModelChange",function(c){return n.userId=c}),re(16,Ice,1,0,"uds-mat-select-search",5),re(17,Rce,2,2,"mat-option",3),E(),E(),E(),E(),A(18,"mat-dialog-actions"),A(19,"button",6),A(20,"uds-translate"),K(21,"Cancel"),E(),E(),A(22,"button",7),ne("click",function(){return n.save()}),A(23,"uds-translate"),K(24,"Ok"),E(),E(),E()),2&t&&(H(9),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,er,Kt,Qr,Rn,Lr,Pi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Lce(e,a){1&e&&(A(0,"uds-translate"),K(1,"New access rule for"),E())}function Fce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit access rule for"),E())}function Nce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Default fallback access for"),E())}function Vce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J(2).calendarsFilter=l}),E()}}function Bce(e,a){if(1&e&&(A(0,"mat-option",12),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Hce(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Priority"),E(),E(),A(5,"input",8),ne("ngModelChange",function(c){return pe(t),J().accessRule.priority=c}),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Calendar"),E(),E(),A(10,"mat-select",3),ne("ngModelChange",function(c){return pe(t),J().accessRule.calendarId=c}),re(11,Vce,1,0,"uds-mat-select-search",9),re(12,Bce,2,2,"mat-option",10),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.accessRule.priority),H(5),z("ngModel",n.accessRule.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter))}}var cH=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.calendarsFilter="",this.pool=l.pool,this.model=l.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},l.accessRule&&(this.accessRule.id=l.accessRule.id)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n,accessRule:l},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.calendars.summary().subscribe(function(t){a.calendars=t}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(t){a.accessRule=t}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(t){return a.accessRule.access=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this,t=function(){a.dialogRef.close(),a.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(t)},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,Lce,2,0,"uds-translate",1),re(2,Fce,2,0,"uds-translate",1),re(3,Nce,2,0,"uds-translate",1),K(4),E(),A(5,"mat-dialog-content"),A(6,"div",2),re(7,Hce,13,4,"ng-container",1),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),K(11,"Action"),E(),E(),A(12,"mat-select",3),ne("ngModelChange",function(c){return n.accessRule.access=c}),A(13,"mat-option",4),K(14," ALLOW "),E(),A(15,"mat-option",5),K(16," DENY "),E(),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",6),A(19,"uds-translate"),K(20,"Cancel"),E(),E(),A(21,"button",7),ne("click",function(){return n.save()}),A(22,"uds-translate"),K(23,"Ok"),E(),E(),E()),2&t&&(H(1),z("ngIf",void 0===n.accessRule.id),H(1),z("ngIf",void 0!==n.accessRule.id&&-1!==n.accessRule.id),H(1),z("ngIf",-1===n.accessRule.id),H(1),Ve(" ",n.pool.name,"\n"),H(3),z("ngIf",-1!==n.accessRule.id),H(5),z("ngModel",n.accessRule.access))},directives:[Wr,Kt,Fr,_r,Br,Hn,$a,Mt,mr,Pi,Qr,Rn,Lr,Hi,zg,g,er,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function zce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Uce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().groupFilter=l}),E()}}function Gce(e,a){if(1&e&&(vt(0),K(1),xn()),2&e){var t=J().$implicit;H(1),Ve(" (",t.comments,")")}}function jce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),re(2,Gce,2,1,"ng-container",10),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var ate=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=l.pool,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.groupId="",this.authChanged()},e.prototype.filteredGroups=function(){var a=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(t){return t.name.toLocaleLowerCase().includes(a.groupFilter.toLocaleLowerCase())})},e.prototype.save=function(){var a=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},e.prototype.authChanged=function(){var a=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(t){a.groups=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New group for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Authenticator"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(11,zce,2,2,"mat-option",3),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Group"),E(),E(),A(16,"mat-select",4),ne("ngModelChange",function(c){return n.groupId=c}),re(17,Uce,1,0,"uds-mat-select-search",5),re(18,jce,3,3,"mat-option",3),E(),E(),E(),E(),A(19,"mat-dialog-actions"),A(20,"button",6),A(21,"uds-translate"),K(22,"Cancel"),E(),E(),A(23,"button",7),ne("click",function(){return n.save()}),A(24,"uds-translate"),K(25,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.pool.name,"\n"),H(7),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.groupId),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filteredGroups()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,er,Kt,Qr,Rn,Lr,Pi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Wce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",7),ne("changed",function(l){return pe(t),J().transportsFilter=l}),E()}}function Yce(e,a){if(1&e&&(vt(0),K(1),xn()),2&e){var t=J().$implicit;H(1),Ve(" (",t.comments,")")}}function qce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),re(2,Yce,2,1,"ng-container",9),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var Xce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.transports.summary().subscribe(function(t){a.transports=t.filter(function(n){return a.servicePool.info.allowedProtocols.includes(n.protocol)})})},e.prototype.filteredTransports=function(){var a=this;return this.transportsFilter?this.transports.filter(function(t){return t.name.toLocaleLowerCase().includes(a.transportsFilter.toLocaleLowerCase())}):this.transports},e.prototype.save=function(){var a=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New transport for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Transport"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.transportId=c}),re(11,Wce,1,0,"uds-mat-select-search",3),re(12,qce,3,3,"mat-option",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),K(16,"Cancel"),E(),E(),A(17,"button",6),ne("click",function(){return n.save()}),A(18,"uds-translate"),K(19,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.transportId),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filteredTransports()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,Kt,er,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Zce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.reason="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){},e.prototype.save=function(){var a=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New publication for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Comments"),E(),E(),A(10,"input",2),ne("ngModelChange",function(c){return n.reason=c}),E(),E(),E(),E(),A(11,"mat-dialog-actions"),A(12,"button",3),A(13,"uds-translate"),K(14,"Cancel"),E(),E(),A(15,"button",4),ne("click",function(){return n.save()}),A(16,"uds-translate"),K(17,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.reason))},directives:[Wr,Hn,Fr,_r,Br,Hi,g,Mt,mr,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Kce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1})},e.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Changelog of"),E(),K(3),E(),A(4,"mat-dialog-content"),me(5,"uds-table",1,2),E(),A(7,"mat-dialog-actions"),A(8,"button",3),A(9,"uds-translate"),K(10,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(2),z("rest",n.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+n.servicePool.id))},directives:[Wr,Hn,Fr,Yr,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function $ce(e,a){1&e&&(vt(0),A(1,"uds-translate"),K(2,"Edit action for"),E(),xn())}function Qce(e,a){1&e&&(A(0,"uds-translate"),K(1,"New action for"),E())}function Jce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J().calendarsFilter=l}),E()}}function efe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function tfe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.description," ")}}function nfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).transportsFilter=l}),E()}}function rfe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function ife(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Transport"),E(),E(),A(5,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(6,nfe,1,0,"uds-mat-select-search",5),re(7,rfe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filtered(n.transports,n.transportsFilter))}}function afe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function ofe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).groupsFilter=l}),E()}}function sfe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",J(2).authenticator+"@"+t.id),H(1),Ve(" ",t.name," ")}}function lfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Authenticator"),E(),E(),A(5,"mat-select",10),ne("ngModelChange",function(c){return pe(t),J().authenticator=c})("valueChange",function(c){return pe(t),J().changedAuthenticator(c)}),re(6,afe,2,2,"mat-option",6),E(),E(),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),K(10,"Group"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(12,ofe,1,0,"uds-mat-select-search",5),re(13,sfe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filtered(n.groups,n.groupsFilter))}}function ufe(e,a){if(1&e){var t=De();vt(0),A(1,"div",8),A(2,"span",16),K(3),E(),K(4,"\xa0 "),A(5,"mat-slide-toggle",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),On(n.parameter.description),H(2),z("ngModel",n.paramValue)}}function cfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",17),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),Ve(" ",n.parameter.description," "),H(1),z("type",n.parameter.type)("ngModel",n.paramValue)}}var ffe=function(){return["transport","group","bool"]},ote=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=l.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==l.scheduledAction&&(this.scheduledAction.id=l.scheduledAction.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t,scheduledAction:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){return a.authenticators=t}),this.rest.transports.summary().subscribe(function(t){return a.transports=t}),this.rest.calendars.summary().subscribe(function(t){return a.calendars=t}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(t){a.actionList=t,a.actionList.forEach(function(n){a.paramsDict[n.id]=n.params[0]}),void 0!==a.scheduledAction.id&&a.rest.servicesPools.detail(a.servicePool.id,"actions").get(a.scheduledAction.id).subscribe(function(n){a.scheduledAction=n,a.changedAction(a.scheduledAction.action)})})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.changedAction=function(a){if(this.parameter=this.paramsDict[a],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var t=this.paramValue.split("@");2!==t.length&&(t=["",""]),this.authenticator=t[0],this.changedAuthenticator(this.authenticator)}},e.prototype.changedAuthenticator=function(a){var t=this;!a||this.rest.authenticators.detail(a,"groups").summary().subscribe(function(n){return t.groups=n})},e.prototype.save=function(){var a=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,$ce,3,0,"ng-container",1),re(2,Qce,2,0,"ng-template",null,2,ml),K(4),E(),A(5,"mat-dialog-content"),A(6,"div",3),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),K(10,"Calendar"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(h){return n.scheduledAction.calendarId=h}),re(12,Jce,1,0,"uds-mat-select-search",5),re(13,efe,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),K(17,"Events offset (minutes)"),E(),E(),A(18,"input",7),ne("ngModelChange",function(h){return n.scheduledAction.eventsOffset=h}),E(),E(),A(19,"div",8),A(20,"span",9),A(21,"uds-translate"),K(22,"At the beginning of the interval?"),E(),E(),A(23,"mat-slide-toggle",4),ne("ngModelChange",function(h){return n.scheduledAction.atStart=h}),K(24),E(),E(),A(25,"mat-form-field"),A(26,"mat-label"),A(27,"uds-translate"),K(28,"Action"),E(),E(),A(29,"mat-select",10),ne("ngModelChange",function(h){return n.scheduledAction.action=h})("valueChange",function(h){return n.changedAction(h)}),re(30,tfe,2,2,"mat-option",6),E(),E(),re(31,ife,8,3,"ng-container",11),re(32,lfe,14,5,"ng-container",11),re(33,ufe,6,2,"ng-container",11),re(34,cfe,5,3,"ng-container",11),E(),E(),A(35,"mat-dialog-actions"),A(36,"button",12),A(37,"uds-translate"),K(38,"Cancel"),E(),E(),A(39,"button",13),ne("click",function(){return n.save()}),A(40,"uds-translate"),K(41,"Ok"),E(),E(),E()),2&t){var l=Pn(3);H(1),z("ngIf",void 0!==n.scheduledAction.id)("ngIfElse",l),H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.scheduledAction.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter)),H(5),z("ngModel",n.scheduledAction.eventsOffset),H(5),z("ngModel",n.scheduledAction.atStart),H(1),Ve(" ",n.api.yesno(n.scheduledAction.atStart)," "),H(5),z("ngModel",n.scheduledAction.action),H(1),z("ngForOf",n.actionList),H(1),z("ngIf","transport"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","group"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","bool"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf",(null==n.parameter?null:n.parameter.type)&&!rw(15,ffe).includes(n.parameter.type))}},directives:[Wr,Kt,Fr,_r,Br,Hn,$a,Mt,mr,er,Hi,zg,g,fk,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}(),dX=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.userService=l.userService,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,model:n},disableClose:!1})},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Logs of"),E(),K(3),E(),A(4,"mat-dialog-content"),me(5,"uds-logs-table",1),E(),A(6,"mat-dialog-actions"),A(7,"button",2),A(8,"uds-translate"),K(9,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.userService.name,"\n"),H(2),z("rest",n.model)("itemId",n.userService.id)("tableId","servicePools-d-uslog"+n.userService.id))},directives:[Wr,Hn,Fr,ck,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function dfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().assignablesServicesFilter=l}),E()}}function hfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}function pfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function vfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function gfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var mfe=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(t){a.assignablesServices=t})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.filteredAssignables=function(){var a=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var t=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(a.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Assign service to user manually"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Service"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.serviceId=c}),re(10,dfe,1,0,"uds-mat-select-search",3),re(11,hfe,2,2,"mat-option",4),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Authenticator"),E(),E(),A(16,"mat-select",5),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(17,pfe,2,2,"mat-option",4),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),K(21,"User"),E(),E(),A(22,"mat-select",2),ne("ngModelChange",function(c){return n.userId=c}),re(23,vfe,1,0,"uds-mat-select-search",3),re(24,gfe,2,2,"mat-option",4),E(),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",6),A(27,"uds-translate"),K(28,"Cancel"),E(),E(),A(29,"button",7),ne("click",function(){return n.save()}),A(30,"uds-translate"),K(31,"Ok"),E(),E(),E()),2&t&&(H(9),z("ngModel",n.serviceId),H(1),z("ngIf",n.assignablesServices.length>10),H(1),z("ngForOf",n.filteredAssignables()),H(5),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,Kt,er,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),_fe=function(){function e(a){this.rest=a,this.chart=null}return e.prototype.onResize=function(a){this.chart&&this.chart.resize()},e.prototype.ngOnInit=function(){var a=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(t){a.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(function(n){return Lu("SHORT_DATETIME_FORMAT",new Date(n.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(function(n){return n.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(function(n){return n.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(function(n){return n.value})}]}})},e.prototype.chartInit=function(a){this.chart=a},e.\u0275fac=function(t){return new(t||e)(N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,n){1&t&&ne("resize",function(c){return n.onResize(c)},!1,A0)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),ne("chartInit",function(c){return n.chartInit(c)}),E(),E()),2&t&&(H(1),z("options",n.options))},directives:[ZJ],styles:[""]}),e}();function yfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function bfe(e,a){if(1&e&&me(0,"uds-information",21),2&e){var t=J(2);z("value",t.servicePool)("gui",t.gui)}}function Cfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned services"),E())}function wfe(e,a){if(1&e){var t=De();A(0,"uds-table",22),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Sfe(e,a){if(1&e){var t=De();A(0,"uds-table",23),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("newAction",function(c){return pe(t),J(2).onNewAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function kfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Cache"),E())}function Mfe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,kfe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",24),ne("customButtonAction",function(c){return pe(t),J(2).onCustomCached(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteCache(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),z("rest",n.cache)("multiSelect",!0)("allowExport",!0)("onItem",n.processsCacheElement)("tableId","servicePools-d-cache"+n.servicePool.id)("customButtons",n.customButtonsCachedServices)("pageSize",n.api.config.admin.page_size)}}function xfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Tfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Transports"),E())}function Dfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Publications"),E())}function Afe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,Dfe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",25),ne("customButtonAction",function(c){return pe(t),J(2).onCustomPublication(c)})("newAction",function(c){return pe(t),J(2).onNewPublication(c)})("rowSelected",function(c){return pe(t),J(2).onPublicationRowSelect(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),z("rest",n.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+n.servicePool.id)("customButtons",n.customButtonsPublication)("pageSize",n.api.config.admin.page_size)}}function Efe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Scheduled actions"),E())}function Pfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Access calendars"),E())}function Ofe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Charts"),E())}function Ife(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Rfe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(h){return pe(t),J().selectedTab=h}),A(3,"mat-tab"),re(4,yfe,2,0,"ng-template",9),A(5,"div",10),re(6,bfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Cfe,2,0,"ng-template",9),A(9,"div",10),re(10,wfe,1,7,"uds-table",12),re(11,Sfe,1,7,"ng-template",null,13,ml),E(),E(),re(13,Mfe,4,7,"mat-tab",14),A(14,"mat-tab"),re(15,xfe,2,0,"ng-template",9),A(16,"div",10),A(17,"uds-table",15),ne("newAction",function(h){return pe(t),J().onNewGroup(h)})("deleteAction",function(h){return pe(t),J().onDeleteGroup(h)}),E(),E(),E(),A(18,"mat-tab"),re(19,Tfe,2,0,"ng-template",9),A(20,"div",10),A(21,"uds-table",16),ne("newAction",function(h){return pe(t),J().onNewTransport(h)})("deleteAction",function(h){return pe(t),J().onDeleteTransport(h)}),E(),E(),E(),re(22,Afe,4,6,"mat-tab",14),A(23,"mat-tab"),re(24,Efe,2,0,"ng-template",9),A(25,"div",10),A(26,"uds-table",17),ne("customButtonAction",function(h){return pe(t),J().onCustomScheduleAction(h)})("newAction",function(h){return pe(t),J().onNewScheduledAction(h)})("editAction",function(h){return pe(t),J().onEditScheduledAction(h)})("deleteAction",function(h){return pe(t),J().onDeleteScheduledAction(h)}),E(),E(),E(),A(27,"mat-tab"),re(28,Pfe,2,0,"ng-template",9),A(29,"div",10),A(30,"uds-table",18),ne("newAction",function(h){return pe(t),J().onNewAccessCalendar(h)})("editAction",function(h){return pe(t),J().onEditAccessCalendar(h)})("deleteAction",function(h){return pe(t),J().onDeleteAccessCalendar(h)})("loaded",function(h){return pe(t),J().onAccessCalendarLoad(h)}),E(),E(),E(),A(31,"mat-tab"),re(32,Ofe,2,0,"ng-template",9),A(33,"div",10),me(34,"uds-service-pools-charts",19),E(),E(),A(35,"mat-tab"),re(36,Ife,2,0,"ng-template",9),A(37,"div",10),me(38,"uds-logs-table",20),E(),E(),E(),E(),E()}if(2&e){var n=Pn(12),l=J();H(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),H(4),z("ngIf",l.servicePool&&l.gui),H(4),z("ngIf",!1===l.servicePool.info.must_assign_manually)("ngIfElse",n),H(3),z("ngIf",l.cache),H(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsGroups)("tableId","servicePools-d-groups"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.transports)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsTransports)("tableId","servicePools-d-transports"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(1),z("ngIf",l.publications),H(4),z("rest",l.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+l.servicePool.id)("customButtons",l.customButtonsScheduledAction)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonAccessCalendars)("tableId","servicePools-d-access"+l.servicePool.id)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("poolUuid",l.servicePool.id),H(4),z("rest",l.rest.servicesPools)("itemId",l.servicePool.id)("tableId","servicePools-d-log"+l.servicePool.id)("pageSize",l.api.config.admin.page_size)}}var Lfe=function(e){return["/pools","service-pools",e]},hX='event'+django.gettext("Logs")+"",Ffe='computer'+django.gettext("VNC")+"",Nfe='schedule'+django.gettext("Launch now")+"",ste='perm_identity'+django.gettext("Change owner")+"",Vfe='perm_identity'+django.gettext("Assign service")+"",Bfe='cancel'+django.gettext("Cancel")+"",Hfe='event'+django.gettext("Changelog")+"",lte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:Nfe,type:Jr.SINGLE_SELECT},Il.getGotoButton(Bq,"calendarId")],this.customButtonAccessCalendars=[Il.getGotoButton(Bq,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:hX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Vq,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:hX,type:Jr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Bfe,type:Jr.SINGLE_SELECT},{id:"changelog",html:Hfe,type:Jr.ALWAYS}],this.customButtonsGroups=[Il.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Il.getGotoButton(CJ,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return e.cleanInvalidSelections=function(a){return a.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(t){return a.table.selection.deselect(t)}),a.table.selection.isEmpty()},e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access"),this.rest.servicesPools.get(t).subscribe(function(n){a.servicePool=n,a.cache=a.servicePool.info.uses_cache?a.rest.servicesPools.detail(t,"cache"):null,a.publications=a.servicePool.info.needs_publication?a.rest.servicesPools.detail(t,"publications"):null,a.api.config.admin.vnc_userservices&&a.customButtonsAssignedServices.push({id:"vnc",html:Ffe,type:Jr.ONLY_MENU}),a.servicePool.info.can_list_assignables&&a.customButtonsAssignedServices.push({id:"assign-service",html:Vfe,type:Jr.ALWAYS}),a.rest.servicesPools.gui().subscribe(function(l){a.gui=l.filter(function(c){return!(!1===a.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(c.name)||!1===a.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===c.name||!1===a.servicePool.info.needs_manager&&"osmanager_id"===c.name)})})})},e.prototype.onNewAssigned=function(a){},e.prototype.vnc=function(a){var n=new Blob(["[connection]\nhost="+a.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,sX.saveAs)(n,a.ip+".vnc")},100)},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.assignedServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id?dX.launch(this.api,t,this.assignedServices):"assign-service"===a.param.id?mfe.launch(this.api,this.servicePool).subscribe(function(n){return a.table.overview()}):"vnc"===a.param.id&&this.vnc(t)},e.prototype.onCustomCached=function(a){"log"===a.param.id&&dX.launch(this.api,a.table.selection.selected[0],this.cache)},e.prototype.processsAssignedElement=function(a){a.in_use=this.api.yesno(a.in_use),a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onDeleteAssigned=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onDeleteCache=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete cached service"))},e.prototype.processsCacheElement=function(a){a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.servicePool,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewTransport=function(a){Xce.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteTransport=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned transport"))},e.prototype.onNewPublication=function(a){Zce.launch(this.api,this.servicePool).subscribe(function(t){a.table.overview()})},e.prototype.onPublicationRowSelect=function(a){1===a.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(a.table.selection.selected[0].state))},e.prototype.onCustomPublication=function(a){var t=this;"cancel-publication"===a.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&t.publications.invoke(a.table.selection.selected[0].id+"/cancel").subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})}):"changelog"===a.param.id&&Kce.launch(this.api,this.servicePool)},e.prototype.onNewScheduledAction=function(a){ote.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onEditScheduledAction=function(a){ote.launch(this.api,this.servicePool,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteScheduledAction=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete scheduled action"))},e.prototype.onCustomScheduleAction=function(a){var t=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&t.scheduledActions.invoke(a.table.selection.selected[0].id+"/execute").subscribe(function(){t.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onNewAccessCalendar=function(a){cH.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){cH.launch(this.api,this.servicePool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processsCalendarOrScheduledElement=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Rfe,39,38,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Lfe,n.servicePool?n.servicePool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/pools.png"),Gt),H(1),Ve(" \xa0",null==n.servicePool?null:n.servicePool.name," "),H(1),z("ngIf",null!==n.servicePool))},directives:[xl,Kt,Nc,Ru,Fc,Yr,_fe,ck,Hn,lH],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-creation_date, .mat-column-state_date, .mat-column-publish_date, .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),e}(),ute=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New meta pool"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit meta pool"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete meta pool"))},e.prototype.onDetail=function(a){this.api.navigation.gotoMetapoolDetail(a.param.id)},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.name=this.api.safeString(this.api.gui.icon(a.thumb)+a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("detailAction",function(c){return n.onDetail(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),e}();function zfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"New member pool"),E())}function Ufe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit member pool"),E())}function Gfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J().servicePoolsFilter=l}),E()}}function jfe(e,a){if(1&e&&(A(0,"mat-option",12),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var cte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=l.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},l.memberPool&&(this.memberPool.id=l.memberPool.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:n,model:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.servicesPools.summary().subscribe(function(t){return a.servicePools=t}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(t){return a.memberPool=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,zfe,2,0,"uds-translate",1),re(2,Ufe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Priority"),E(),E(),A(9,"input",3),ne("ngModelChange",function(c){return n.memberPool.priority=c}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),K(13,"Service pool"),E(),E(),A(14,"mat-select",4),ne("ngModelChange",function(c){return n.memberPool.pool_id=c}),re(15,Gfe,1,0,"uds-mat-select-search",5),re(16,jfe,2,2,"mat-option",6),E(),E(),A(17,"div",7),A(18,"span",8),A(19,"uds-translate"),K(20,"Enabled?"),E(),E(),A(21,"mat-slide-toggle",4),ne("ngModelChange",function(c){return n.memberPool.enabled=c}),K(22),E(),E(),E(),E(),A(23,"mat-dialog-actions"),A(24,"button",9),A(25,"uds-translate"),K(26,"Cancel"),E(),E(),A(27,"button",10),ne("click",function(){return n.save()}),A(28,"uds-translate"),K(29,"Ok"),E(),E(),E()),2&t&&(H(1),z("ngIf",!(null!=n.memberPool&&n.memberPool.id)),H(1),z("ngIf",null==n.memberPool?null:n.memberPool.id),H(7),z("ngModel",n.memberPool.priority),H(5),z("ngModel",n.memberPool.pool_id),H(1),z("ngIf",n.servicePools.length>10),H(1),z("ngForOf",n.filtered(n.servicePools,n.servicePoolsFilter)),H(5),z("ngModel",n.memberPool.enabled),H(1),Ve(" ",n.api.yesno(n.memberPool.enabled)," "))},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,zg,g,Mt,mr,$a,er,fk,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function Wfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function Yfe(e,a){if(1&e&&me(0,"uds-information",17),2&e){var t=J(2);z("value",t.metaPool)("gui",t.gui)}}function qfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Service pools"),E())}function Xfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned services"),E())}function Zfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Kfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Access calendars"),E())}function $fe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Qfe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,Wfe,2,0,"ng-template",9),A(5,"div",10),re(6,Yfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,qfe,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewMemberPool(c)})("editAction",function(c){return pe(t),J().onEditMemberPool(c)})("deleteAction",function(c){return pe(t),J().onDeleteMemberPool(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,Xfe,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("customButtonAction",function(c){return pe(t),J().onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J().onDeleteAssigned(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,Zfe,2,0,"ng-template",9),A(17,"div",10),A(18,"uds-table",14),ne("newAction",function(c){return pe(t),J().onNewGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)}),E(),E(),E(),A(19,"mat-tab"),re(20,Kfe,2,0,"ng-template",9),A(21,"div",10),A(22,"uds-table",15),ne("newAction",function(c){return pe(t),J().onNewAccessCalendar(c)})("editAction",function(c){return pe(t),J().onEditAccessCalendar(c)})("deleteAction",function(c){return pe(t),J().onDeleteAccessCalendar(c)})("loaded",function(c){return pe(t),J().onAccessCalendarLoad(c)}),E(),E(),E(),A(23,"mat-tab"),re(24,$fe,2,0,"ng-template",9),A(25,"div",10),me(26,"uds-logs-table",16),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.metaPool&&n.gui),H(4),z("rest",n.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("customButtons",n.customButtons)("tableId","metaPools-d-members"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+n.metaPool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)("onItem",n.processsCalendarItem),H(4),z("rest",n.rest.metaPools)("itemId",n.metaPool.id)("tableId","metaPools-d-log"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)}}var Jfe=function(e){return["/pools","meta-pools",e]},ede=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(Nq,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:hX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Vq,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(t).subscribe(function(n){a.metaPool=n,a.rest.metaPools.gui().subscribe(function(l){a.gui=l}),a.memberPools=a.rest.metaPools.detail(t,"pools"),a.memberUserServices=a.rest.metaPools.detail(t,"services"),a.groups=a.rest.metaPools.detail(t,"groups"),a.accessCalendars=a.rest.metaPools.detail(t,"access")})},e.prototype.onNewMemberPool=function(a){cte.launch(this.api,this.memberPools).subscribe(function(){return a.table.overview()})},e.prototype.onEditMemberPool=function(a){cte.launch(this.api,this.memberPools,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteMemberPool=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Remove member pool"))},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.memberUserServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id&&dX.launch(this.api,t,this.memberUserServices)},e.prototype.onDeleteAssigned=function(a){lte.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.metaPool.id,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewAccessCalendar=function(a){cH.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){cH.launch(this.api,this.metaPool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){console.log("ID",a.table.selection.selected[0].id),-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processElement=function(a){a.enabled=this.api.yesno(a.enabled)},e.prototype.processsCalendarItem=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Qfe,27,31,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Jfe,n.metaPool?n.metaPool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/metas.png"),Gt),H(1),Ve(" ",null==n.metaPool?null:n.metaPool.name," "),H(1),z("ngIf",n.metaPool))},directives:[xl,Kt,Nc,Ru,Fc,Yr,ck,Hn,lH],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),e}(),fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete pool group"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),e}(),dte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New calendar"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit calendar"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar"))},e.prototype.onDetail=function(a){this.api.navigation.gotoCalendarDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[""]}),e}(),tde=["mat-calendar-body",""];function nde(e,a){if(1&e&&(A(0,"tr",2),A(1,"td",3),K(2),E(),E()),2&e){var t=J();H(1),Ur("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t.numCols),H(1),Ve(" ",t.label," ")}}function rde(e,a){if(1&e&&(A(0,"td",3),K(1),E()),2&e){var t=J(2);Ur("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t._firstRowOffset),H(1),Ve(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function ide(e,a){if(1&e){var t=De();A(0,"td",7),ne("click",function(C){var D=pe(t).$implicit;return J(2)._cellClicked(D,C)}),A(1,"div",8),K(2),E(),me(3,"div",9),E()}if(2&e){var n=a.$implicit,l=a.index,c=J().index,h=J();Ur("width",h._cellWidth)("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),dt("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",h._isActiveCell(c,l))("mat-calendar-body-range-start",h._isRangeStart(n.compareValue))("mat-calendar-body-range-end",h._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",h._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",h._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",h._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",h._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",h._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",h._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",h._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",h._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",h._isInPreview(n.compareValue)),z("ngClass",n.cssClasses)("tabindex",h._isActiveCell(c,l)?0:-1),Ke("data-mat-row",c)("data-mat-col",l)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",h._isSelected(n.compareValue)),H(1),dt("mat-calendar-body-selected",h._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",h._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",h.todayValue===n.compareValue),H(1),Ve(" ",n.displayValue," ")}}function ade(e,a){if(1&e&&(A(0,"tr",4),re(1,rde,2,6,"td",5),re(2,ide,4,46,"td",6),E()),2&e){var t=a.$implicit,n=a.index,l=J();H(1),z("ngIf",0===n&&l._firstRowOffset),H(1),z("ngForOf",t)}}function ode(e,a){if(1&e&&(A(0,"th",5),A(1,"abbr",6),K(2),E(),E()),2&e){var t=a.$implicit;Ke("aria-label",t.long),H(1),Ke("title",t.long),H(1),On(t.narrow)}}var hte=["*"];function sde(e,a){}function lde(e,a){if(1&e){var t=De();A(0,"mat-month-view",5),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("_userSelection",function(c){return pe(t),J()._dateSelected(c)}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function ude(e,a){if(1&e){var t=De();A(0,"mat-year-view",6),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("monthSelected",function(c){return pe(t),J()._monthSelectedInYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"month")}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function cde(e,a){if(1&e){var t=De();A(0,"mat-multi-year-view",7),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("yearSelected",function(c){return pe(t),J()._yearSelectedInMultiYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"year")}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function fde(e,a){}var dde=["button"];function hde(e,a){1&e&&(pa(),A(0,"svg",3),me(1,"path",4),E())}var pde=[[["","matDatepickerToggleIcon",""]]],vde=["[matDatepickerToggleIcon]"],IP=function(){var e=function(){function a(){F(this,a),this.changes=new qe,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return W(a,[{key:"formatYearRange",value:function(n,l){return"".concat(n," \u2013 ").concat(l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),pX=function e(a,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:a,_=arguments.length>6?arguments[6]:void 0;F(this,e),this.value=a,this.displayValue=t,this.ariaLabel=n,this.enabled=l,this.cssClasses=c,this.compareValue=h,this.rawValue=_},dk=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ye,this.previewChange=new ye,this._enterHandler=function(c){if(l._skipNextFocus&&"focus"===c.type)l._skipNextFocus=!1;else if(c.target&&l.isRange){var h=l._getCellFromElement(c.target);h&&l._ngZone.run(function(){return l.previewChange.emit({value:h.enabled?h:null,event:c})})}},this._leaveHandler=function(c){null!==l.previewEnd&&l.isRange&&c.target&&vX(c.target)&&l._ngZone.run(function(){return l.previewChange.emit({value:null,event:c})})},n.runOutsideAngular(function(){var c=t.nativeElement;c.addEventListener("mouseenter",l._enterHandler,!0),c.addEventListener("focus",l._enterHandler,!0),c.addEventListener("mouseleave",l._leaveHandler,!0),c.addEventListener("blur",l._leaveHandler,!0)})}return W(a,[{key:"_cellClicked",value:function(n,l){n.enabled&&this.selectedValueChange.emit({value:n.value,event:l})}},{key:"_isSelected",value:function(n){return this.startValue===n||this.endValue===n}},{key:"ngOnChanges",value:function(n){var l=n.numCols,c=this.rows,h=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?h-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/h,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/h,"%"))}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;n.removeEventListener("mouseenter",this._enterHandler,!0),n.removeEventListener("focus",this._enterHandler,!0),n.removeEventListener("mouseleave",this._leaveHandler,!0),n.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(n,l){var c=n*this.numCols+l;return n&&(c-=this._firstRowOffset),c==this.activeCell}},{key:"_focusActiveCell",value:function(){var n=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.pipe(or(1)).subscribe(function(){var c=n._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(l||(n._skipNextFocus=!0),c.focus())})})}},{key:"_isRangeStart",value:function(n){return gX(n,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(n){return mX(n,this.startValue,this.endValue)}},{key:"_isInRange",value:function(n){return _X(n,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(n){return gX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(n,l,c){if(!this._isComparisonStart(n)||this._isRangeStart(n)||!this._isInRange(n))return!1;var h=this.rows[l][c-1];if(!h){var _=this.rows[l-1];h=_&&_[_.length-1]}return h&&!this._isRangeEnd(h.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var h=this.rows[l][c+1];if(!h){var _=this.rows[l+1];h=_&&_[0]}return h&&!this._isRangeStart(h.compareValue)}},{key:"_isComparisonEnd",value:function(n){return mX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(n){return _X(n,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(n){return this.comparisonStart===this.comparisonEnd&&n===this.comparisonStart}},{key:"_isPreviewStart",value:function(n){return gX(n,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(n){return mX(n,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(n){return _X(n,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(n){var l;if(vX(n)?l=n:vX(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),h=l.getAttribute("data-mat-col");if(c&&h)return this.rows[parseInt(c)][parseInt(h)]}return null}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft))},e.\u0275cmp=ke({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[an],attrs:tde,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,n){1&t&&(re(0,nde,3,6,"tr",0),re(1,ade,3,2,"tr",1)),2&t&&(z("ngIf",n._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),e}();function vX(e){return"TD"===e.nodeName}function gX(e,a,t){return null!==t&&a!==t&&e=a&&e===t}function _X(e,a,t,n){return n&&null!==a&&null!==t&&a!==t&&e>=a&&e<=t}var wo=function e(a,t){F(this,e),this.start=a,this.end=t},Gg=function(){var e=function(){function a(t,n){F(this,a),this.selection=t,this._adapter=n,this._selectionChanged=new qe,this.selectionChanged=this._selectionChanged,this.selection=t}return W(a,[{key:"updateSelection",value:function(n,l){var c=this.selection;this.selection=n,this._selectionChanged.next({selection:n,source:l,oldValue:c})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(n){return this._adapter.isDateInstance(n)&&this._adapter.isValid(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(void 0),ce(Gr))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),yde=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,null,l)}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"updateSelection",this).call(this,c,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var c=new n(this._adapter);return c.updateSelection(this.selection,this),c}}]),n}(Gg);return e.\u0275fac=function(t){return new(t||e)(ce(Gr))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),pte={provide:Gg,deps:[[new oi,new Fo,Gg],Gr],useFactory:function(e,a){return e||new yde(a)}},fH=new Ee("MAT_DATE_RANGE_SELECTION_STRATEGY"),vte=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=h,this._rerenderSubscription=Be.EMPTY,this.selectedChange=new ye,this._userSelection=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),this._hasSameMonthAndYear(l,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($r(null)).subscribe(function(){return n._init()})}},{key:"ngOnChanges",value:function(n){var l=n.comparisonStart||n.comparisonEnd;l&&!l.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(n){var C,k,l=n.value,c=this._dateAdapter.getYear(this.activeDate),h=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,h,l);this._selected instanceof wo?(C=this._getDateInCurrentMonth(this._selected.start),k=this._getDateInCurrentMonth(this._selected.end)):C=k=this._getDateInCurrentMonth(this._selected),(C!==l||k!==l)&&this.selectedChange.emit(_),this._userSelection.emit({value:_,event:n.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&n.preventDefault());case 27:return void(null!=this._previewEnd&&!Bi(n)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:n}),n.preventDefault(),n.stopPropagation()));default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(n)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(n){this._matCalendarBody._focusActiveCell(n)}},{key:"_previewChanged",value:function(n){var c=n.value;if(this._rangeStrategy){var _=this._rangeStrategy.createPreview(c?c.rawValue:null,this.selected,n.event);this._previewStart=this._getCellCompareValue(_.start),this._previewEnd=this._getCellCompareValue(_.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var n=this._dateAdapter.getFirstDayOfWeek(),l=this._dateAdapter.getDayOfWeekNames("narrow"),h=this._dateAdapter.getDayOfWeekNames("long").map(function(_,C){return{long:_,narrow:l[C]}});this._weekdays=h.slice(n).concat(h.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,h=this._firstWeekOffset;c=0)&&(!this.maxDate||this._dateAdapter.compareDate(n,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(n))}},{key:"_getDateInCurrentMonth",value:function(n){return n&&this._hasSameMonthAndYear(n,this.activeDate)?this._dateAdapter.getDate(n):null}},{key:"_hasSameMonthAndYear",value:function(n,l){return!(!n||!l||this._dateAdapter.getMonth(n)!=this._dateAdapter.getMonth(l)||this._dateAdapter.getYear(n)!=this._dateAdapter.getYear(l))}},{key:"_getCellCompareValue",value:function(n){if(n){var l=this._dateAdapter.getYear(n),c=this._dateAdapter.getMonth(n),h=this._dateAdapter.getDate(n);return new Date(l,c,h).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(n){n instanceof wo?(this._rangeStart=this._getCellCompareValue(n.start),this._rangeEnd=this._getCellCompareValue(n.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(n),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"_canSelect",value:function(n){return!this.dateFilter||this.dateFilter(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Pu,8),N(Gr,8),N(Mr,8),N(fH,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-month-view"]],viewQuery:function(t,n){var l;1&t&&wt(dk,5),2&t&&Ne(l=Le())&&(n._matCalendarBody=l.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[an],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,n){1&t&&(A(0,"table",0),A(1,"thead",1),A(2,"tr"),re(3,ode,3,3,"th",2),E(),A(4,"tr"),me(5,"th",3),E(),E(),A(6,"tbody",4),ne("selectedValueChange",function(c){return n._dateSelected(c)})("previewChange",function(c){return n._previewChanged(c)})("keyup",function(c){return n._handleCalendarBodyKeyup(c)})("keydown",function(c){return n._handleCalendarBodyKeydown(c)}),E(),E()),2&t&&(H(3),z("ngForOf",n._weekdays),H(3),z("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},directives:[er,dk],encapsulation:2,changeDetection:0}),e}(),gte=function(){var e=function(){function a(t,n,l){F(this,a),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=l,this._rerenderSubscription=Be.EMPTY,this.selectedChange=new ye,this.yearSelected=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),mte(this._dateAdapter,l,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setSelectedYear(n)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($r(null)).subscribe(function(){return n._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var n=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var c=this._dateAdapter.getYear(this._activeDate)-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var h=0,_=[];h<24;h++)_.push(c+h),4==_.length&&(this._years.push(_.map(function(C){return n._createCellForYear(C)})),_=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(n){var l=n.value;this.yearSelected.emit(this._dateAdapter.createDate(l,0,1));var c=this._dateAdapter.getMonth(this.activeDate),h=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),h)))}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_getActiveCell",value:function(){return RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(n){var l=this._dateAdapter.createDate(n,0,1),c=this._dateAdapter.getYearName(l),h=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new pX(n,c,c,this._shouldEnableYear(n),h)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>h}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),h=this._dateAdapter.getMonth(this.minDate);return n enter-dropdown",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(1, 0.8)"}),gt({opacity:1,transform:"scale(1, 1)"})]))),zn("void => enter-dialog",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0.7)"}),gt({transform:"none",opacity:1})]))),zn("* => void",Tn("100ms linear",gt({opacity:0})))]),fadeInCalendar:Ei("fadeInCalendar",[Bn("void",gt({opacity:0})),Bn("enter",gt({opacity:1})),zn("void => *",Tn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Ede=0,Cte=new Ee("mat-datepicker-scroll-strategy"),Ode={provide:Cte,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ide=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),Rde=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._changeDetectorRef=c,D._globalModel=h,D._dateAdapter=_,D._rangeSelectionStrategy=C,D._subscriptions=new Be,D._animationDone=new qe,D._actionsPortal=null,D._closeButtonText=k.closeCalendarLabel,D}return W(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var c=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){c._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(c){var h=this._model.selection,_=c.value,C=h instanceof wo;if(C&&this._rangeSelectionStrategy){var k=this._rangeSelectionStrategy.selectionFinished(_,h,c.event);this._model.updateSelection(k,this)}else _&&(C||!this._dateAdapter.sameDate(_,h))&&this._model.add(_);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(Ide);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Gg),N(Gr),N(fH,8),N(IP))},e.\u0275cmp=ke({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,n){var l;1&t&&wt(CX,5),2&t&&Ne(l=Le())&&(n._calendar=l.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,n){1&t&&mv("@transformPanel.done",function(){return n._animationDone.next()}),2&t&&(Ba("@transformPanel",n._animationState),dt("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Pe],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"mat-calendar",1),ne("yearSelected",function(c){return n.datepicker._selectYear(c)})("monthSelected",function(c){return n.datepicker._selectMonth(c)})("viewChanged",function(c){return n.datepicker._viewChanged(c)})("_userSelection",function(c){return n._handleUserSelection(c)}),E(),re(2,fde,0,0,"ng-template",2),A(3,"button",3),ne("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),K(4),E(),E()),2&t&&(dt("mat-datepicker-content-container-with-actions",n._actionsPortal),H(1),z("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),H(1),z("cdkPortalOutlet",n._actionsPortal),H(1),dt("cdk-visually-hidden",!n._closeButtonFocused),z("color",n.color||"primary"),H(1),On(n._closeButtonText))},directives:[UV,CX,Ts,Os,Rn],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[bte.transformPanel,bte.fadeInCalendar]},changeDetection:0}),e}(),xb=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){F(this,a),this._overlay=n,this._ngZone=l,this._viewContainerRef=c,this._dateAdapter=_,this._dir=C,this._model=D,this._inputStateChanges=Be.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ye,this.monthSelected=new ye,this.viewChanged=new ye(!0),this.openedStream=new ye,this.closedStream=new ye,this._opened=!1,this.id="mat-datepicker-".concat(Ede++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new qe,this._scrollStrategy=h}return W(a,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(n){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(n){this._color=n}},{key:"touchUi",get:function(){return this._touchUi},set:function(n){this._touchUi=it(n)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(n){var l=it(n);l!==this._disabled&&(this._disabled=l,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(n){this._restoreFocus=it(n)}},{key:"panelClass",get:function(){return this._panelClass},set:function(n){this._panelClass=G3(n)}},{key:"opened",get:function(){return this._opened},set:function(n){it(n)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(n){var l=n.xPosition||n.yPosition;if(l&&!l.firstChange&&this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;c instanceof hE&&(this._setConnectedPositions(c),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(n){this._model.add(n)}},{key:"_selectYear",value:function(n){this.yearSelected.emit(n)}},{key:"_selectMonth",value:function(n){this.monthSelected.emit(n)}},{key:"_viewChanged",value:function(n){this.viewChanged.emit(n)}},{key:"registerInput",value:function(n){var l=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=n,this._inputStateChanges=n.stateChanges.subscribe(function(){return l.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(n){this._actionsPortal=n}},{key:"removeActions",value:function(n){n===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ky(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var n=this;if(this._opened){if(this._componentRef){var l=this._componentRef.instance;l._startExitAnimation(),l._animationDone.pipe(or(1)).subscribe(function(){return n._destroyOverlay()})}var c=function(){n._opened&&(n._opened=!1,n.closedStream.emit(),n._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(c)):c()}}},{key:"_applyPendingSelection",value:function(){var n,l;null===(l=null===(n=this._componentRef)||void 0===n?void 0:n.instance)||void 0===l||l._applyPendingSelection()}},{key:"_forwardContentValues",value:function(n){n.datepicker=this,n.color=this.color,n._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var n=this;this._destroyOverlay();var l=this.touchUi,c=this.datepickerInput.getOverlayLabelId(),h=new sd(Rde,this._viewContainerRef),_=this._overlayRef=this._overlay.create(new up({positionStrategy:l?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[l?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:l?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(l?"dialog":"popup")})),C=_.overlayElement;C.setAttribute("role","dialog"),c&&C.setAttribute("aria-labelledby",c),l&&C.setAttribute("aria-modal","true"),this._getCloseStream(_).subscribe(function(k){k&&k.preventDefault(),n.close()}),this._componentRef=_.attach(h),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(or(1)).subscribe(function(){return _.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(n)}},{key:"_setConnectedPositions",value:function(n){var l="end"===this.xPosition?"end":"start",c="start"===l?"end":"start",h="above"===this.yPosition?"bottom":"top",_="top"===h?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:h},{originX:l,originY:h,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:h},{originX:c,originY:h,overlayX:c,overlayY:_}])}},{key:"_getCloseStream",value:function(n){var l=this;return ot(n.backdropClick(),n.detachments(),n.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!Bi(c)||l.datepickerInput&&Bi(c,"altKey")&&38===c.keyCode})))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N(ft),N($n),N(Cte),N(Gr,8),N(Mr,8),N(lt,8),N(Gg))},e.\u0275dir=ve({type:e,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[an]}),e}(),wte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(xb);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Xe([pte,{provide:xb,useExisting:e}]),Pe],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0}),e}(),dH=function e(a,t){F(this,e),this.target=a,this.targetElement=t,this.value=this.target.value},Ste=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dateAdapter=n,this._dateFormats=l,this.dateChange=new ye,this.dateInput=new ye,this.stateChanges=new qe,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=Be.EMPTY,this._localeSubscription=Be.EMPTY,this._parseValidator=function(){return c._lastValueValid?null:{matDatepickerParse:{text:c._elementRef.nativeElement.value}}},this._filterValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMinDate();return!C||!_||c._dateAdapter.compareDate(C,_)<=0?null:{matDatepickerMin:{min:C,actual:_}}},this._maxValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMaxDate();return!C||!_||c._dateAdapter.compareDate(C,_)>=0?null:{matDatepickerMax:{max:C,actual:_}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){c._assignValueProgrammatically(c.value)})}return W(a,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(n){this._assignValueProgrammatically(n)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(n){var l=it(n),c=this._elementRef.nativeElement;this._disabled!==l&&(this._disabled=l,this.stateChanges.next(void 0)),l&&this._isInitialized&&c.blur&&c.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(n){var l=this;this._model=n,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){if(l._shouldHandleChangeEvent(c)){var h=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(h),l._cvaOnChange(h),l._onTouched(),l._formatValue(h),l.dateInput.emit(new dH(l,l._elementRef.nativeElement)),l.dateChange.emit(new dH(l,l._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(n){(function(e,a){for(var n=0,l=Object.keys(e);n2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!this.multiple&&this.selected&&!n.checked&&(this.selected.checked=!1),this._selectionModel?l?this._selectionModel.select(n):this._selectionModel.deselect(n):_=!0,_?Promise.resolve().then(function(){return c._updateModelValue(h)}):this._updateModelValue(h)}},{key:"_isSelected",value:function(n){return this._selectionModel&&this._selectionModel.isSelected(n)}},{key:"_isPrechecked",value:function(n){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(l){return null!=n.value&&l===n.value}):n.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(n){var l=this;this._rawValue=n,this._buttonToggles&&(this.multiple&&n?(Array.isArray(n),this._clearSelection(),n.forEach(function(c){return l._selectValue(c)})):(this._clearSelection(),this._selectValue(n)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(n){return n.checked=!1})}},{key:"_selectValue",value:function(n){var l=this._buttonToggles.find(function(c){return null!=c.value&&c.value===n});l&&(l.checked=!0,this._selectionModel.select(l))}},{key:"_updateModelValue",value:function(n){n&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Tte,8))},e.\u0275dir=ve({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Ote,5),2&t&&Ne(c=Le())&&(n._buttonToggles=c)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",n.disabled),dt("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Xe([Wde,{provide:Dte,useExisting:e}])]}),e}(),Yde=El(function(){return function e(){F(this,e)}}()),Ote=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;F(this,n),(D=t.call(this))._changeDetectorRef=c,D._elementRef=h,D._focusMonitor=_,D._isSingleSelector=!1,D._checked=!1,D.ariaLabelledby=null,D._disabled=!1,D.change=new ye;var I=Number(C);return D.tabIndex=I||0===I?I:null,D.buttonToggleGroup=l,D.appearance=k&&k.appearance?k.appearance:"standard",D}return W(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(c){this._appearance=c}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(c){var h=it(c);h!==this._checked&&(this._checked=h,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(c){this._disabled=it(c)}},{key:"ngOnInit",value:function(){var c=this.buttonToggleGroup;this._isSingleSelector=c&&!c.multiple,this.id=this.id||"mat-button-toggle-".concat(Ate++),this._isSingleSelector&&(this.name=c.name),c&&(c._isPrechecked(this)?this.checked=!0:c._isSelected(this)!==this._checked&&c._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var c=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),c&&c._isSelected(this)&&c._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(c){this._buttonElement.nativeElement.focus(c)}},{key:"_onButtonClick",value:function(){var c=!!this._isSingleSelector||!this._checked;c!==this._checked&&(this._checked=c,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Ete(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(Yde);return e.\u0275fac=function(t){return new(t||e)(N(Dte,8),N(Vt),N(Ue),N(ra),Ci("tabindex"),N(Tte,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){var l;1&t&&wt(Gde,5),2&t&&Ne(l=Le())&&(n._buttonElement=l.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()}),2&t&&(Ke("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),dt("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Pe],ngContentSelectors:jde,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){if(1&t&&(rr(),A(0,"button",0,1),ne("click",function(){return n._onButtonClick()}),A(2,"span",2),Wt(3),E(),E(),me(4,"span",3),me(5,"span",4)),2&t){var l=Pn(1);z("id",n.buttonId)("disabled",n.disabled||null),Ke("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n.name||null)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)}},directives:[Ls],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),e}(),qde=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,Da],$t]}),e}();function Xde(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit rule"),E())}function Zde(e,a){1&e&&(A(0,"uds-translate"),K(1,"New rule"),E())}function Kde(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function $de(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function Qde(e,a){if(1&e&&(A(0,"mat-button-toggle",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function Jde(e,a){if(1&e){var t=De();A(0,"div",23),A(1,"span",24),A(2,"uds-translate"),K(3,"Weekdays"),E(),E(),A(4,"mat-button-toggle-group",25),ne("ngModelChange",function(c){return pe(t),J().wDays=c}),re(5,Qde,2,2,"mat-button-toggle",8),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.wDays),H(1),z("ngForOf",n.weekDays)}}function ehe(e,a){if(1&e){var t=De();A(0,"mat-form-field",9),A(1,"mat-label"),A(2,"uds-translate"),K(3,"Repeat every"),E(),E(),A(4,"input",6),ne("ngModelChange",function(c){return pe(t),J().rule.interval=c}),E(),A(5,"div",26),K(6),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.rule.interval),H(2),Ve("\xa0",n.frequency(),"")}}var vH={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},gH={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},Ite=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Rte=function(e,a){void 0===a&&(a=!1);for(var t=new Array,n=0;n<7;n++)1&e&&t.push(Ite[n].substr(0,a?100:3)),e>>=1;return t.length?t.join(", "):django.gettext("(no days)")},Lte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.dunits=Object.keys(gH).map(function(c){return{id:c,value:gH[c]}}),this.freqs=Object.keys(vH).map(function(c){return{id:c,value:vH[c][2]}}),this.weekDays=Ite.map(function(c,h){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+gH[this.rule.duration_unit]:django.gettext("with no duration")}return a.replace("$FIELD",n)},e.prototype.save=function(){var a=this;this.rules.save(this.rule).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Xde,2,0,"uds-translate",1),re(2,Zde,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(_){return n.rule.name=_}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),K(13,"Comments"),E(),E(),A(14,"input",3),ne("ngModelChange",function(_){return n.rule.comments=_}),E(),E(),A(15,"h3"),A(16,"uds-translate"),K(17,"Event"),E(),E(),A(18,"mat-form-field",4),A(19,"mat-label"),A(20,"uds-translate"),K(21,"Start time"),E(),E(),A(22,"input",5),ne("ngModelChange",function(_){return n.startTime=_}),E(),E(),A(23,"mat-form-field",4),A(24,"mat-label"),A(25,"uds-translate"),K(26,"Duration"),E(),E(),A(27,"input",6),ne("ngModelChange",function(_){return n.rule.duration=_}),E(),E(),A(28,"mat-form-field",4),A(29,"mat-label"),A(30,"uds-translate"),K(31,"Duration units"),E(),E(),A(32,"mat-select",7),ne("ngModelChange",function(_){return n.rule.duration_unit=_}),re(33,Kde,2,2,"mat-option",8),E(),E(),A(34,"h3"),K(35," Repetition "),E(),A(36,"mat-form-field",9),A(37,"mat-label"),A(38,"uds-translate"),K(39," Start date "),E(),E(),A(40,"input",10),ne("ngModelChange",function(_){return n.startDate=_}),E(),me(41,"mat-datepicker-toggle",11),me(42,"mat-datepicker",null,12),E(),A(44,"mat-form-field",9),A(45,"mat-label"),A(46,"uds-translate"),K(47," Repeat until date "),E(),E(),A(48,"input",13),ne("ngModelChange",function(_){return n.endDate=_}),E(),me(49,"mat-datepicker-toggle",11),me(50,"mat-datepicker",null,14),E(),A(52,"div",15),A(53,"mat-form-field",9),A(54,"mat-label"),A(55,"uds-translate"),K(56,"Frequency"),E(),E(),A(57,"mat-select",16),ne("ngModelChange",function(_){return n.rule.frequency=_})("valueChange",function(){return n.rule.interval=1}),re(58,$de,2,2,"mat-option",8),E(),E(),re(59,Jde,6,2,"div",17),re(60,ehe,7,2,"mat-form-field",18),E(),A(61,"h3"),A(62,"uds-translate"),K(63,"Summary"),E(),E(),A(64,"div",19),K(65),E(),E(),E(),A(66,"mat-dialog-actions"),A(67,"button",20),A(68,"uds-translate"),K(69,"Cancel"),E(),E(),A(70,"button",21),ne("click",function(){return n.save()}),A(71,"uds-translate"),K(72,"Ok"),E(),E(),E()),2&t){var l=Pn(43),c=Pn(51);H(1),z("ngIf",n.rule.id),H(1),z("ngIf",!n.rule.id),H(7),z("ngModel",n.rule.name),H(5),z("ngModel",n.rule.comments),H(8),z("ngModel",n.startTime),H(5),z("ngModel",n.rule.duration),H(5),z("ngModel",n.rule.duration_unit),H(1),z("ngForOf",n.dunits),H(7),z("matDatepicker",l)("ngModel",n.startDate),H(1),z("for",l),H(7),z("matDatepicker",c)("ngModel",n.endDate)("placeholder",n.FOREVER_STRING),H(1),z("for",c),H(8),z("ngModel",n.rule.frequency),H(1),z("ngForOf",n.freqs),H(1),z("ngIf","WEEKDAYS"===n.rule.frequency),H(1),z("ngIf","WEEKDAYS"!==n.rule.frequency),H(5),Ve(" ",n.summary()," "),H(5),z("disabled",null!==n.updateRuleData()||""===n.rule.name)}},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,zg,$a,er,hH,Mte,rk,wte,Qr,Rn,Lr,Pi,Pte,Ote],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),e}();function nhe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Rules"),E())}function rhe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,nhe,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("newAction",function(c){return pe(t),J().onNewRule(c)})("editAction",function(c){return pe(t),J().onEditRule(c)})("deleteAction",function(c){return pe(t),J().onDeleteRule(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(4),z("rest",n.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","calendars-d-rules"+n.calendar.id)("pageSize",n.api.config.admin.page_size)}}var ihe=function(e){return["/pools","calendars",e]},ahe=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(t).subscribe(function(n){a.calendar=n,a.calendarRules=a.rest.calendars.detail(n.id,"rules")})},e.prototype.onNewRule=function(a){Lte.launch(this.api,this.calendarRules).subscribe(function(){return a.table.overview()})},e.prototype.onEditRule=function(a){Lte.launch(this.api,this.calendarRules,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteRule=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar rule"))},e.prototype.processElement=function(a){!function(e){e.interval="WEEKDAYS"===e.frequency?Rte(e.interval):e.interval+" "+vH[e.frequency][django.pluralidx(e.interval)],e.duration=e.duration+" "+gH[e.duration_unit]}(a)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,rhe,7,7,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,ihe,n.calendar?n.calendar.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/calendars.png"),Gt),H(1),Ve(" ",null==n.calendar?null:n.calendar.name," "),H(1),z("ngIf",n.calendar))},directives:[xl,Kt,Nc,Ru,Fc,Yr,Hn],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),e}(),ohe='event'+django.gettext("Set time mark")+"",Fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"timemark",html:ohe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New account"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit account"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account"))},e.prototype.onTimeMark=function(a){var t=this,n=a.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(l){l&&t.rest.accounts.timemark(n.id).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onDetail=function(a){this.api.navigation.gotoAccountDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},e.prototype.processElement=function(a){a.time_mark=78793200===a.time_mark?django.gettext("No time mark"):Lu("SHORT_DATE_FORMAT",a.time_mark)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onTimeMark(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("onItem",n.processElement)},directives:[Yr],styles:[""]}),e}();function she(e,a){1&e&&(A(0,"uds-translate"),K(1,"Account usage"),E())}function lhe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,she,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(4),z("rest",n.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","account-d-usage"+n.account.id)}}var uhe=function(e){return["/pools","accounts",e]},che=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(t).subscribe(function(n){a.account=n,a.accountUsage=a.rest.accounts.detail(n.id,"usage")})},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account usage"))},e.prototype.processElement=function(a){a.running=this.api.yesno(a.running)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,lhe,7,6,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,uhe,n.account?n.account.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/accounts.png"),Gt),H(1),Ve(" ",null==n.account?null:n.account.name," "),H(1),z("ngIf",n.account))},directives:[xl,Kt,Nc,Ru,Fc,Yr,Hn],styles:[""]}),e}();function fhe(e,a){1&e&&(A(0,"uds-translate"),K(1,"New image for"),E())}function dhe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit for"),E())}var Nte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.preview="",this.image={id:void 0,data:"",name:""},l.image&&(this.image.id=l.image.id)}return e.launch=function(a,t){void 0===t&&(t=null);var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:t},disableClose:!0}).componentInstance.onSave},e.prototype.onFileChanged=function(a){var t=this,n=a.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var l=new FileReader;l.onload=function(c){var h=l.result;t.preview=h,t.image.data=h.substr(h.indexOf("base64,")+7),t.image.name||(t.image.name=n.name)},l.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},e.prototype.ngOnInit=function(){var a=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(t){switch(a.image=t,a.image.data.substr(2)){case"iV":a.preview="data:image/png;base64,"+a.image.data;break;case"/9":a.preview="data:image/jpeg;base64,"+a.image.data;break;default:a.preview="data:image/gif;base64,"+a.image.data}})},e.prototype.background=function(){var a=this.api.config.image_size[0],t=this.api.config.image_size[1],n={"width.px":a,"height.px":t,"background-size":a+"px "+t+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},e.prototype.save=function(){var a=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){if(1&t){var l=De();A(0,"h4",0),re(1,fhe,2,0,"uds-translate",1),re(2,dhe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Image name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(h){return n.image.name=h}),E(),E(),A(10,"input",4,5),ne("change",function(h){return n.onFileChanged(h)}),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Image (click to change)"),E(),E(),A(16,"input",6),ne("click",function(){return pe(l),Pn(11).click()}),E(),A(17,"div",7),ne("click",function(){return pe(l),Pn(11).click()}),me(18,"div",8),E(),E(),A(19,"div",9),A(20,"uds-translate"),K(21,' For optimal results, use "squared" images. '),E(),A(22,"uds-translate"),K(23," The image will be resized on upload to "),E(),K(24),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",10),A(27,"uds-translate"),K(28,"Cancel"),E(),E(),A(29,"button",11),ne("click",function(){return n.save()}),A(30,"uds-translate"),K(31,"Ok"),E(),E(),E()}2&t&&(H(1),z("ngIf",!n.image.id),H(1),z("ngIf",n.image.id),H(7),z("ngModel",n.image.name),H(7),z("hidden",!0),H(2),z("ngStyle",n.background()),H(6),Cv(" ",n.api.config.image_size[0],"x",n.api.config.image_size[1]," "))},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,NF,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),e}(),Vte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){Nte.launch(this.api).subscribe(function(){return a.table.overview()})},e.prototype.onEdit=function(a){Nte.launch(this.api,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete image"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),e}(),hhe='assessment'+django.gettext("Generate report")+"",Bte=function(){function e(a,t){this.rest=a,this.api=t,this.customButtons=[{id:"genreport",html:hhe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},e.prototype.generateReport=function(a){var t=this,n=new ye;n.subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Generating report...")),t.rest.reports.save(l,a.table.selection.selected[0].id).subscribe(function(c){for(var h=c.encoded?window.atob(c.data):c.data,_=h.length,C=new Uint8Array(_),k=0;k<_;k++)C[k]=h.charCodeAt(k);var D=new Blob([C],{type:c.mime_type});t.api.gui.snackbar.open(django.gettext("Report finished"),django.gettext("dismiss"),{duration:2e3}),setTimeout(function(){(0,sX.saveAs)(D,c.filename)},100)})}),this.api.gui.forms.typedForm(a,django.gettext("Generate report"),!1,[],void 0,a.table.selection.selected[0].id,{save:n})},e.\u0275fac=function(t){return new(t||e)(N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.generateReport(c)}),E()),2&t&&z("rest",n.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]}),e}();function phe(e,a){1&e&&K(0),2&e&&Ve(" ",J().$implicit," ")}function vhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",18),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("type",c.config[l][n].crypt?"password":"text")("ngModel",c.config[l][n].value)}}function ghe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"textarea",19),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function mhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",20),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function _he(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",21),A(2,"span",22),K(3),E(),A(4,"mat-slide-toggle",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),K(5),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value),H(1),Ve(" ",c.api.yesno(c.config[l][n].value)," ")}}function yhe(e,a){if(1&e&&(A(0,"mat-option",25),K(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function bhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"mat-select",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),re(5,yhe,2,2,"mat-option",24),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Ve(" ",n," "),H(1),z("ngModel",c.config[l][n].value),H(1),z("ngForOf",c.config[l][n].params)}}function Che(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",26),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function whe(e,a){1&e&&un(0)}function She(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",27),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function khe(e,a){if(1&e&&(vt(0,15),re(1,vhe,5,3,"div",16),re(2,ghe,5,2,"div",16),re(3,mhe,5,2,"div",16),re(4,_he,6,3,"div",16),re(5,bhe,6,3,"div",16),re(6,Che,5,2,"div",16),re(7,whe,1,0,"ng-container",16),re(8,She,5,2,"div",17),xn()),2&e){var t=J().$implicit,n=J().$implicit;z("ngSwitch",J(2).config[n][t].type),H(1),z("ngSwitchCase",0),H(1),z("ngSwitchCase",1),H(1),z("ngSwitchCase",2),H(1),z("ngSwitchCase",3),H(1),z("ngSwitchCase",4),H(1),z("ngSwitchCase",5),H(1),z("ngSwitchCase",6)}}function Mhe(e,a){if(1&e&&(A(0,"div",13),re(1,khe,9,8,"ng-container",14),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J(2);H(1),z("ngIf",l.config[n][t])}}function xhe(e,a){if(1&e&&(A(0,"mat-tab"),re(1,phe,1,1,"ng-template",10),A(2,"div",11),re(3,Mhe,2,1,"div",12),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),z("ngForOf",n.configElements(t))}}function The(e,a){if(1&e){var t=De();A(0,"div",4),A(1,"div",5),A(2,"mat-tab-group",6),re(3,xhe,4,1,"mat-tab",7),E(),A(4,"div",8),A(5,"button",9),ne("click",function(){return pe(t),J().save()}),A(6,"uds-translate"),K(7,"Save"),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(1),z("ngForOf",n.sections())}}var Hte=["UDS","Security"],zte=["UDS ID"],Phe=[{path:"",canActivate:[mie],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:pae},{path:"providers",component:jee},{path:"providers/:provider/detail",component:Wee},{path:"providers/:provider",component:jee},{path:"providers/:provider/detail/:service",component:Wee},{path:"authenticators",component:Yee},{path:"authenticators/:authenticator/detail",component:fX},{path:"authenticators/:authenticator",component:Yee},{path:"authenticators/:authenticator/detail/groups/:group",component:fX},{path:"authenticators/:authenticator/detail/users/:user",component:fX},{path:"osmanagers",component:Jee},{path:"osmanagers/:osmanager",component:Jee},{path:"transports",component:ete},{path:"transports/:transport",component:ete},{path:"networks",component:tte},{path:"networks/:network",component:tte},{path:"proxies",component:nte},{path:"proxies/:proxy",component:nte},{path:"pools/service-pools",component:rte},{path:"pools/service-pools/:pool",component:rte},{path:"pools/service-pools/:pool/detail",component:lte},{path:"pools/meta-pools",component:ute},{path:"pools/meta-pools/:metapool",component:ute},{path:"pools/meta-pools/:metapool/detail",component:ede},{path:"pools/pool-groups",component:fte},{path:"pools/pool-groups/:poolgroup",component:fte},{path:"pools/calendars",component:dte},{path:"pools/calendars/:calendar",component:dte},{path:"pools/calendars/:calendar/detail",component:ahe},{path:"pools/accounts",component:Fte},{path:"pools/accounts/:account",component:Fte},{path:"pools/accounts/:account/detail",component:che},{path:"tools/gallery",component:Vte},{path:"tools/gallery/:image",component:Vte},{path:"tools/reports",component:Bte},{path:"tools/reports/:report",component:Bte},{path:"tools/configuration",component:function(){function e(a,t){this.rest=a,this.api=t}return e.prototype.ngOnInit=function(){var a=this;this.rest.configuration.overview().subscribe(function(t){for(var n in a.config=t,a.config)if(a.config.hasOwnProperty(n))for(var l in a.config[n])if(a.config[n].hasOwnProperty(l)){var c=a.config[n][l];c.crypt?c.value='\u20acfa{}#42123~#||23|\xdf\xf0\u0111\xe6"':3===c.type&&(c.value=!!["1",1,!0].includes(c.value)),c.original_value=c.value}})},e.prototype.sections=function(){var a=[];for(var t in this.config)this.config.hasOwnProperty(t)&&!Hte.includes(t)&&a.push(t);return(a=a.sort(function(n,l){return n.localeCompare(l)})).unshift.apply(a,Hte),a},e.prototype.configElements=function(a){var t=[],n=this.config[a];if(n)for(var l in n)n.hasOwnProperty(l)&&("UDS"!==a||!zte.includes(l))&&t.push(l);return t=t.sort(function(c,h){return c.localeCompare(h)}),"UDS"===a&&t.unshift.apply(t,zte),t},e.prototype.save=function(){var a=this,t={};for(var n in this.config)if(this.config.hasOwnProperty(n))for(var l in this.config[n])if(this.config[n].hasOwnProperty(l)){var c=this.config[n][l];if(c.original_value!==c.value){c.original_value=c.value,t[n]||(t[n]={});var h=c.value;3===c.type&&(h=["1",1,!0].includes(c.value)?"1":"0"),t[n][l]={value:h}}}this.rest.configuration.save(t).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})},e.\u0275fac=function(t){return new(t||e)(N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"type","ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"slider-label"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),me(2,"img",2),K(3,"\xa0"),A(4,"uds-translate"),K(5,"UDS Configuration"),E(),E(),re(6,The,8,2,"div",3),E()),2&t&&(H(2),z("src",n.api.staticURL("admin/img/icons/configuration.png"),Gt),H(4),z("ngIf",n.config))},directives:[Hn,Kt,Nc,er,Rn,Ru,Fc,bu,Cu,ED,_r,Br,Hi,g,Mt,mr,zg,fk,$a,Pi],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),e}()},{path:"tools/tokens/actor",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}()},{path:"tools/tokens/tunnel",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}()}]},{path:"**",redirectTo:"summary"}],Ohe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[FA.forRoot(Phe,{relativeLinkResolution:"legacy"})],FA]}),e}(),jte=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),jhe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Da,$t,ld,jte],$t,jte]}),e}(),Whe=["*"],Wte=new Ee("MatChipRemove"),Yte=new Ee("MatChipAvatar"),qte=new Ee("MatChipTrailingIcon"),qhe=gp(Eu(El(function e(a){F(this,e),this._elementRef=a}),"primary"),-1),mH=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._ngZone=c,L._changeDetectorRef=C,L._hasFocus=!1,L.chipListSelectable=!0,L._chipListMultiple=!1,L._chipListDisabled=!1,L._selected=!1,L._selectable=!0,L._disabled=!1,L._removable=!0,L._onFocus=new qe,L._onBlur=new qe,L.selectionChange=new ye,L.destroyed=new ye,L.removed=new ye,L._addHostClassName(),L._chipRippleTarget=k.createElement("div"),L._chipRippleTarget.classList.add("mat-chip-ripple"),L._elementRef.nativeElement.appendChild(L._chipRippleTarget),L._chipRipple=new gP(It(L),c,L._chipRippleTarget,h),L._chipRipple.setupTriggerEvents(l),L.rippleConfig=_||{},L._animationsDisabled="NoopAnimations"===D,L.tabIndex=null!=I&&parseInt(I)||-1,L}return W(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(c){var h=it(c);h!==this._selected&&(this._selected=h,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(c){this._value=c}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(c){this._selectable=it(c)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(c){this._disabled=it(c)}},{key:"removable",get:function(){return this._removable},set:function(c){this._removable=it(c)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var c="mat-basic-chip",h=this._elementRef.nativeElement;h.hasAttribute(c)||h.tagName.toLowerCase()===c?h.classList.add(c):h.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(c),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(c){this.disabled?c.preventDefault():c.stopPropagation()}},{key:"_handleKeydown",value:function(c){if(!this.disabled)switch(c.keyCode){case 46:case 8:this.remove(),c.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),c.preventDefault()}}},{key:"_blur",value:function(){var c=this;this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._ngZone.run(function(){c._hasFocus=!1,c._onBlur.next({chip:c})})})}},{key:"_dispatchSelectionChange",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:c,selected:this._selected})}}]),n}(qhe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Vt),N(lt),N(Un,8),Ci("tabindex"))},e.\u0275dir=ve({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Yte,5),Zt(l,qte,5),Zt(l,Wte,5)),2&t&&(Ne(c=Le())&&(n.avatar=c.first),Ne(c=Le())&&(n.trailingIcon=c.first),Ne(c=Le())&&(n.removeIcon=c.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&t&&(Ke("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),dt("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Pe]}),e}(),Xte=function(){var e=function(){function a(t,n){F(this,a),this._parentChip=t,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return W(a,[{key:"_handleClick",value:function(n){var l=this._parentChip;l.removable&&!l.disabled&&l.remove(),n.stopPropagation()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(mH),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})},features:[Xe([{provide:Wte,useExisting:e}])]}),e}(),Zte=new Ee("mat-chips-default-options"),Khe=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),$he=0,Qhe=function e(a,t){F(this,e),this.source=a,this.value=t},Kte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,k,_,C,D))._elementRef=l,I._changeDetectorRef=c,I._dir=h,I.controlType="mat-chip-list",I._lastDestroyedChipIndex=null,I._destroyed=new qe,I._uid="mat-chip-list-".concat($he++),I._tabIndex=0,I._userTabIndex=null,I._onTouched=function(){},I._onChange=function(){},I._multiple=!1,I._compareWith=function(L,G){return L===G},I._required=!1,I._disabled=!1,I.ariaOrientation="horizontal",I._selectable=!0,I.change=new ye,I.valueChange=new ye,I.ngControl&&(I.ngControl.valueAccessor=It(I)),I}return W(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this.writeValue(c),this._value=c}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(c){var h=this;this._selectable=it(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=h._selectable})}},{key:"tabIndex",set:function(c){this._userTabIndex=c,this._tabIndex=c}},{key:"chipSelectionChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c._onFocus})))}},{key:"chipBlurChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c.destroyed})))}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new ib(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ht(this._destroyed)).subscribe(function(h){return c._keyManager.withHorizontalOrientation(h)}),this._keyManager.tabOut.pipe(Ht(this._destroyed)).subscribe(function(){c._allowFocusEscape()}),this.chips.changes.pipe($r(null),Ht(this._destroyed)).subscribe(function(){c.disabled&&Promise.resolve().then(function(){c._syncChipsState()}),c._resetChips(),c._initializeSelection(),c._updateTabIndex(),c._updateFocusForDestroyedChips(),c.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new ip(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(c){this._chipInput=c,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",c.id)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"writeValue",value:function(c){this.chips&&this._setSelectionByValue(c,!1)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this.stateChanges.next()}},{key:"onContainerClick",value:function(c){this._originatesFromChip(c)||this.focus()}},{key:"focus",value:function(c){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(c),this.stateChanges.next()))}},{key:"_focusInput",value:function(c){this._chipInput&&this._chipInput.focus(c)}},{key:"_keydown",value:function(c){var h=c.target;h&&h.classList.contains("mat-chip")&&(this._keyManager.onKeydown(c),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var c=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(c)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(c){return c>=0&&c1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(k){return k.deselect()}),Array.isArray(c))c.forEach(function(k){return h._selectValue(k,_)}),this._sortValues();else{var C=this._selectValue(c,_);C&&_&&this._keyManager.setActiveItem(C)}}},{key:"_selectValue",value:function(c){var h=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],C=this.chips.find(function(k){return null!=k.value&&h._compareWith(k.value,c)});return C&&(_?C.selectViaInteraction():C.select(),this._selectionModel.select(C)),C}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){(c.ngControl||c._value)&&(c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value,!1),c.stateChanges.next())})}},{key:"_clearSelection",value:function(c){this._selectionModel.clear(),this.chips.forEach(function(h){h!==c&&h.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(h){h.selected&&c._selectionModel.select(h)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var h;h=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.change.emit(new Qhe(this,h)),this.valueChange.emit(h),this._onChange(h),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var c=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){c.focused||c._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var c=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){c._tabIndex=c._userTabIndex||0,c._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var c=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(h){h.source.selected?c._selectionModel.select(h.source):c._selectionModel.deselect(h.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),h.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(h){var _=c.chips.toArray().indexOf(h.chip);c._isValidIndex(_)&&c._keyManager.updateActiveItem(_),c.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){c._blur(),c.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var c=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(h){var _=h.chip,C=c.chips.toArray().indexOf(h.chip);c._isValidIndex(C)&&_._hasFocus&&(c._lastDestroyedChipIndex=C)})}},{key:"_originatesFromChip",value:function(c){for(var h=c.target;h&&h!==this._elementRef.nativeElement;){if(h.classList.contains("mat-chip"))return!0;h=h.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(c){return c._hasFocus})}},{key:"_syncChipsState",value:function(){var c=this;this.chips&&this.chips.forEach(function(h){h._chipListDisabled=c._disabled,h._chipListMultiple=c.multiple})}}]),n}(Khe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Mr,8),N(Lc,8),N(yp,8),N(dd),N(Ut,10))},e.\u0275cmp=ke({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,mH,5),2&t&&Ne(c=Le())&&(n.chips=c)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(c){return n._keydown(c)}),2&t&&(Zi("id",n._uid),Ke("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),dt("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Xe([{provide:nk,useExisting:e}]),Pe],ngContentSelectors:Whe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,n){1&t&&(rr(),A(0,"div",0),Wt(1),E())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),Jhe=0,$te=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new ye,this.placeholder="",this.id="mat-chip-list-input-".concat(Jhe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return W(a,[{key:"chipList",set:function(n){n&&(this._chipList=n,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(n){this._addOnBlur=it(n)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(n){this._disabled=it(n)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(n){if(n){if(9===n.keyCode&&!Bi(n,"shiftKey")&&this._chipList._allowFocusEscape(),8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}},{key:"_keyup",value:function(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(n){!this.inputElement.value&&!!n&&this._chipList._keydown(n),(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==n||n.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(n){this.inputElement.focus(n)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(n){return!Bi(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Zte))},e.\u0275dir=ve({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._keydown(c)})("keyup",function(c){return n._keyup(c)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&t&&(Zi("id",n.id),Ke("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[an]}),e}(),epe={separatorKeyCodes:[13]},tpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd,{provide:Zte,useValue:epe}],imports:[[$t]]}),e}(),spe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),wpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,$t,spe,xg]]}),e}(),Spe=["*",[["mat-toolbar-row"]]],kpe=["*","mat-toolbar-row"],Mpe=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),xpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),Tpe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l))._platform=c,_._document=h,_}return W(n,[{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return c._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Mpe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt))},e.\u0275cmp=ke({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,xpe,5),2&t&&Ne(c=Le())&&(n._toolbarRows=c)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Pe],ngContentSelectors:kpe,decls:2,vars:0,template:function(t,n){1&t&&(rr(Spe),Wt(0),Wt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),Dpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t],$t]}),e}(),Ape=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:nee,useValue:{floatLabel:"always"}},{provide:hP,useValue:udsData.language}],imports:[Wa,Jne,ere,Dpe,Rc,tle,hee,wpe,m5,U5,mse,lee,Ude,nq,ose,koe,Roe,Yse,jhe,Ore,tpe,qde,jue,Mue,AJ,rle,Nse]}),e}();function Epe(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){var h=pe(t).$implicit;return J().changeLang(h)}),K(1),E()}if(2&e){var n=a.$implicit;H(1),On(n.name)}}function Ppe(e,a){if(1&e&&(A(0,"button",12),A(1,"i",7),K(2,"face"),E(),K(3),E()),2&e){var t=J();z("matMenuTriggerFor",Pn(7)),H(3),On(t.api.user.user)}}function Ope(e,a){if(1&e&&(A(0,"button",18),K(1),A(2,"i",7),K(3,"arrow_drop_down"),E(),E()),2&e){var t=J();z("matMenuTriggerFor",Pn(7)),H(1),Ve("",t.api.user.user," ")}}var Ipe=function(){function e(a){this.api=a,this.isNavbarCollapsed=!0;var t=a.config.language;this.langs=[];for(var n=0,l=a.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']}),e}();function Vpe(e,a){1&e&&me(0,"div",1),2&e&&z("innerHTML",J().messages,Si)}var Bpe=function(){function e(a){this.api=a,this.messages="",this.visible=!1}return e.prototype.ngOnInit=function(){var a=this;if(this.api.notices.length>0){var n='
';this.messages='
'+n+this.api.notices.map(function(l){return l.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){a.visible=!0})}},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,n){1&t&&re(0,Vpe,1,1,"div",0),2&t&&z("ngIf",n.visible)},directives:[Kt],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),e}(),Hpe=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,n){1&t&&(A(0,"div"),K(1,"\xa9 2012-2020 "),A(2,"a",0),K(3,"Virtual Cable S.L.U."),E(),E())},styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']}),e}(),zpe=function(){function e(a){this.api=a,this.title="UDS Admin",this.blackTheme=!1}return e.prototype.handleKeyboardEvent=function(a){a.altKey&&a.ctrlKey&&"b"===a.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))},e.prototype.ngOnInit=function(){this.api.switchTheme(this.blackTheme)},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-root"]],hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n.handleKeyboardEvent(c)},!1,E0)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,n){1&t&&(me(0,"uds-navbar"),me(1,"uds-sidebar"),A(2,"div",0),A(3,"div",1),me(4,"uds-notices"),me(5,"router-outlet"),E(),A(6,"div",2),me(7,"uds-footer"),E(),E())},directives:[Ipe,Npe,Bpe,Wy,Hpe],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),e}(),Upe=function(e){function a(){var t=e.call(this)||this;return t.itemsPerPageLabel=django.gettext("Items per page"),t}return aa(a,e),a.\u0275prov=We({token:a,factory:a.\u0275fac=function(n){return new(n||a)}}),a}(kb),Gpe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("autocomplete","new-"+n.field.name))},directives:[_r,Br,Hi,g,Mt,mr,Iu,L5],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}();function jpe(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}var Wpe=function(){function e(){this.changed=new ye,this.values=[]}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,this.values=this.field.gui.values.map(function(a){return a.text})},e.prototype._filter=function(){var a=this.field.value.toLowerCase();return this.values.filter(function(t){return t.toLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["appearance","standard"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete","ngModelChange","change"],[3,"value"]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"mat-autocomplete",null,1),re(5,jpe,2,2,"mat-option",2),E(),A(6,"input",3),ne("ngModelChange",function(h){return n.field.value=h})("change",function(){return n.changed.emit(n)}),E(),E()),2&t){var l=Pn(4);H(2),Ve(" ",n.field.gui.label," "),H(3),z("ngForOf",n._filter()),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("matAutocomplete",l)("autocomplete","new-"+n.field.name)}},directives:[_r,Br,cX,er,Hi,g,uH,Mt,mr,Iu,L5,Pi],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Ype=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly))},directives:[_r,Br,Hi,zg,g,Mt,mr,Iu],styles:[""]}),e}(),qpe=function(){function e(){this.changed=new ye,this.passwordType="password"}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),A(4,"a",2),ne("click",function(){return n.passwordType="text"===n.passwordType?"password":"text"}),A(5,"i",3),K(6,"remove_red_eye"),E(),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("type",n.passwordType))},directives:[_r,Br,Hi,g,Mt,mr,Iu,mp,rk],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Xpe=function(){function e(){}return e.prototype.ngOnInit=function(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,n){},styles:[""]}),e}(),Zpe=function(){function e(){}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"textarea",1),ne("ngModelChange",function(c){return n.field.value=c}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",n.field.gui.required)("readonly",n.field.gui.rdonly))},directives:[_r,Br,Hi,g,Mt,mr,Iu],styles:[""]}),e}();function Kpe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function $pe(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var Qpe=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.value=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Kpe,1,0,"uds-mat-select-search",1),re(5,$pe,2,2,"mat-option",2),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[_r,Br,$a,Mt,mr,Iu,Kt,er,Vc,Pi],styles:[""]}),e}();function Jpe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function eve(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var tve=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(a,t,n){n[t]=""+a.id}):this.field.values=new Array},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.values=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Jpe,1,0,"uds-mat-select-search",1),re(5,eve,2,2,"mat-option",2),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.values)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[_r,Br,$a,Mt,mr,Iu,Kt,er,Vc,Pi],styles:[""]}),e}();function nve(e,a){if(1&e){var t=De();A(0,"div",12),A(1,"div",13),K(2),E(),A(3,"div",14),K(4," \xa0"),A(5,"a",15),ne("click",function(){var h=pe(t).index;return J().removeElement(h)}),A(6,"i",16),K(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),Ve(" ",n," ")}}var rve=function(){function e(a,t,n,l){var c=this;this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.values=[],this.input="",this.onSave=new ye(!0),this.data.values.forEach(function(h){return c.values.push(h)})}return e.launch=function(a,t,n){var l=window.innerWidth<800?"50%":"30%";return a.gui.dialog.open(e,{width:l,data:{title:t,values:n},disableClose:!0}).componentInstance.onSave},e.prototype.addElements=function(){var a=this;this.input.split(",").forEach(function(t){a.values.push(t)}),this.input=""},e.prototype.checkKey=function(a){"Enter"===a.code&&this.addElements()},e.prototype.removeAll=function(){this.values.length=0},e.prototype.removeElement=function(a){this.values.splice(a,1)},e.prototype.save=function(){var a=this;this.data.values.length=0,this.values.forEach(function(t){return a.data.values.push(t)}),this.onSave.emit(this.values),this.dialogRef.close()},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),K(1),E(),A(2,"mat-dialog-content"),A(3,"div",1),A(4,"div",2),re(5,nve,8,1,"div",3),E(),A(6,"div",4),A(7,"button",5),ne("click",function(){return n.removeAll()}),A(8,"uds-translate"),K(9,"Remove all"),E(),E(),E(),A(10,"div",6),A(11,"mat-form-field",7),A(12,"input",8),ne("keyup",function(c){return n.checkKey(c)})("ngModelChange",function(c){return n.input=c}),E(),A(13,"button",9),ne("click",function(){return n.addElements()}),A(14,"uds-translate"),K(15,"Add"),E(),E(),E(),E(),E(),E(),A(16,"mat-dialog-actions"),A(17,"button",10),A(18,"uds-translate"),K(19,"Cancel"),E(),E(),A(20,"button",11),ne("click",function(){return n.save()}),A(21,"uds-translate"),K(22,"Ok"),E(),E(),E()),2&t&&(H(1),Ve(" ",n.data.title,"\n"),H(4),z("ngForOf",n.values),H(7),z("ngModel",n.input))},directives:[Wr,Fr,er,Rn,Hn,_r,Hi,g,Mt,mr,rk,Qr,Lr],styles:['.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),ive=function(){function e(a){this.api=a,this.changed=new ye}return e.prototype.ngOnInit=function(){},e.prototype.launch=function(){var a=this;void 0===this.field.values&&(this.field.values=[]),rve.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(t){a.changed.emit({field:a.field})})},e.prototype.getValue=function(){if(void 0===this.field.values)return"";var a=this.field.values.filter(function(t,n,l){return n<5}).join(", ");return this.field.values.length>5&&(a+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),a},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("click",function(){return n.launch()}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("readonly",!0)("value",n.getValue())("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly))},directives:[_r,Br,Hi],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),ave=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=function(e){return""===e||null==e}(this.field.value)?jq(this.field.gui.defvalue):jq(this.field.value)},e.prototype.getValue=function(){return jq(this.field.value)?django.gettext("Yes"):django.gettext("No")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"span",1),K(2),E(),A(3,"mat-slide-toggle",2),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),K(4),E(),E()),2&t&&(H(2),On(n.field.gui.label),H(1),z("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),Ve(" ",n.getValue()," "))},directives:[fk,Kee,Mt,mr,Iu],styles:[".label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function ove(e,a){if(1&e&&me(0,"div",5),2&e){var t=J().$implicit;z("innerHTML",J().asIcon(t),Si)}}function sve(e,a){if(1&e&&(A(0,"div"),re(1,ove,1,1,"div",4),E()),2&e){var t=a.$implicit,n=J();H(1),z("ngIf",t.id==n.field.value)}}function lve(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",6),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function uve(e,a){if(1&e&&(A(0,"mat-option",7),me(1,"div",5),E()),2&e){var t=a.$implicit,n=J();z("value",t.id),H(1),z("innerHTML",n.asIcon(t),Si)}}var cve=function(){function e(a){this.api=a,this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},e.prototype.asIcon=function(a){return this.api.safeString(this.api.gui.icon(a.img)+a.text)},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("valueChange",function(){return n.changed.emit(n)})("ngModelChange",function(c){return n.field.value=c}),A(4,"mat-select-trigger"),re(5,sve,2,1,"div",1),E(),re(6,lve,1,0,"uds-mat-select-search",2),re(7,uve,2,2,"mat-option",3),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("placeholder",n.field.gui.tooltip)("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.gui.values),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[_r,Br,$a,Mt,mr,Iu,eoe,er,Kt,Vc,Pi],styles:[""]}),e}(),fve=function(){function e(){this.changed=new ye,this.value=new Date}return Object.defineProperty(e.prototype,"date",{get:function(){return this.value},set:function(a){this.value!==a&&(this.value=a,this.field.value=JS("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=JS("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=JS("%Y-12-31"));var a=this.field.value.split("-");3===a.length&&(this.value=new Date(+a[0],+a[1]-1,+a[2]))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(h){return n.date=h}),E(),me(4,"mat-datepicker-toggle",2),me(5,"mat-datepicker",null,3),E()),2&t){var l=Pn(6);H(2),Ve(" ",n.field.gui.label," "),H(1),z("matDatepicker",l)("ngModel",n.date)("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly),H(1),z("for",l)}},directives:[_r,Br,Hi,hH,g,Mt,mr,Mte,rk,wte],styles:[""]}),e}();function dve(e,a){if(1&e){var t=De();A(0,"mat-chip",5),ne("removed",function(){var _=pe(t).$implicit;return J().remove(_)}),K(1),A(2,"i",6),K(3,"cancel"),E(),E()}if(2&e){var n=a.$implicit,l=J();z("selectable",!1)("removable",!0!==l.field.gui.rdonly),H(1),Ve(" ",n," ")}}var a,t,n,hve=function(){function e(){this.changed=new ye,this.separatorKeysCodes=[13,188]}return e.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(a,t,n){""===a.trim()&&n.splice(t,1)})},e.prototype.add=function(a){var t=a.input,n=a.value;(n||"").trim()&&this.field.values.push(n.trim()),t&&(t.value="")},e.prototype.remove=function(a){var t=this.field.values.indexOf(a);t>=0&&this.field.values.splice(t,1)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"mat-chip-list",1,2),ne("change",function(){return n.changed.emit(n)}),re(5,dve,4,3,"mat-chip",3),A(6,"input",4),ne("matChipInputTokenEnd",function(h){return n.add(h)}),E(),E(),E()),2&t){var l=Pn(4);H(2),Ve(" ",n.field.gui.label," "),H(1),z("selectable",!1)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.values),H(1),z("placeholder",n.field.gui.tooltip)("matChipInputFor",l)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[_r,Br,Kte,er,$te,mH,Xte],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),e}(),pve=(Dt(41419),function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e,bootstrap:[zpe]}),e.\u0275inj=pt({providers:[Pt,on,{provide:kb,useClass:Upe}],imports:[[QD,kN,Ohe,U9,Ape,cae.forRoot({echarts:function(){return Promise.resolve().then(Dt.bind(Dt,38175))}})]]}),e}());a=[bu,dee,Cu,Gpe,Wpe,Zpe,Ype,qpe,Xpe,Qpe,tve,ive,ave,cve,fve,hve],t=[],(n=gJ.\u0275cmp).directiveDefs=function(){return a.map(Vl)},n.pipeDefs=function(){return t.map(xk)},function(){if(oc)throw new Error("Cannot enable prod mode after platform setup.");XT=!1}(),vj().bootstrapModule(pve).catch(function(e){return console.log(e)})},79052:function(Zo,sr,Dt){Zo.exports=Dt(45579)}},function(Zo){Zo(Zo.s=33516)}]); \ No newline at end of file diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index cb35d621..272c9339 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -98,7 +98,7 @@ - + \ No newline at end of file